Prefer 'KURL(ParsedURLString, String)' when dealing with known-good data.
Created attachment 194340 [details] Patch
Comment on attachment 194340 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194340&action=review We still don't have a class that wraps a known good string without KURL size overhead? > Source/WebCore/page/SecurityOrigin.cpp:532 > + return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port))); This isn't normalized to append a slash? Please watch KURL based debug testers. > Source/WebCore/page/SecurityOrigin.cpp:540 > + return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port))); Ditto.
(In reply to comment #2) > (From update of attachment 194340 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=194340&action=review > > We still don't have a class that wraps a known good string without KURL size overhead? > > > Source/WebCore/page/SecurityOrigin.cpp:532 > > + return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port))); > > This isn't normalized to append a slash? Please watch KURL based debug testers. > > > Source/WebCore/page/SecurityOrigin.cpp:540 > > + return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port))); > > Ditto. Good eye, thank you. I've added a trailing slash to both, which I think is indeed necessary. I'll CQ the patch, but keep my finger on the revert button if it chokes a bot.
Created attachment 194471 [details] Patch for landing
Comment on attachment 194471 [details] Patch for landing Clearing flags on attachment: 194471 Committed r146580: <http://trac.webkit.org/changeset/146580>
All reviewed patches have been landed. Closing bug.
This has caused bug 113961.
(In reply to comment #7) > This has caused bug 113961. Thank you for fixing the crash, and apologies that I missed that case. :/