Make URLParser work with URLs missing URL parts
Created attachment 285956 [details] Patch
Comment on attachment 285956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285956&action=review > Source/WebCore/platform/URLParser.cpp:116 > + url.m_protocolIsInHTTPFamily = equalIgnoringASCIICase(urlScheme, "http") || equalIgnoringASCIICase(urlScheme, "https"); This can be a case-sensitive comparison because it is always lower case.
Comment on attachment 285956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285956&action=review > Source/WebCore/platform/URLParser.cpp:65 > - enum class State : uint8_t { > + enum State { Leave enum class, please. > Source/WebCore/platform/URLParser.cpp:68 > SchemeEndCheckForSlashes, // Scheme state steps 2. 8. Now's a good time to remove this comment.
Created attachment 285970 [details] Patch
https://trac.webkit.org/changeset/204431