I think it would be good to do "early return" if there is invalid protocol.
Created attachment 233780 [details] Patch
CC'ing Darin.
Comment on attachment 233780 [details] Patch Clearing flags on attachment: 233780 Committed r170511: <http://trac.webkit.org/changeset/170511>
All reviewed patches have been landed. Closing bug.