Bug 161711

Summary: URLParser should handle URLs with empty authority
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch beidson: review+

Description Alex Christensen 2016-09-07 13:28:05 PDT
URLParser should handle URLs with empty authority
Comment 1 Alex Christensen 2016-09-07 13:29:53 PDT
Created attachment 288180 [details]
Patch
Comment 2 Alex Christensen 2016-09-07 18:48:56 PDT
Created attachment 288221 [details]
Patch
Comment 3 Alex Christensen 2016-09-08 10:30:53 PDT
Created attachment 288275 [details]
Patch
Comment 4 Alex Christensen 2016-09-08 11:31:41 PDT
Created attachment 288290 [details]
Patch
Comment 5 Alex Christensen 2016-09-08 11:33:00 PDT
Comment on attachment 288290 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=288290&action=review

> Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:371
> -        {"https", "", "", "", 0, "", "", "", "https://"},
> +        {"", "", "", "", 0, "", "", "", ""},

Note: This changes to match the standard and Anne's comment in https://bugs.webkit.org/show_bug.cgi?id=161364
I was skeptical in that patch, but this patch helps me to see he's right.
Comment 6 Brady Eidson 2016-09-08 15:13:30 PDT
Comment on attachment 288290 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=288290&action=review

> Source/WebCore/platform/URLParser.cpp:975
>  void URLParser::parseAuthority(StringView::CodePoints::Iterator& iterator, const StringView::CodePoints::Iterator& end)

This has already come up before, but this method signature stinks :(
Comment 7 Alex Christensen 2016-09-08 15:17:14 PDT
r205667