Bug 162979

Summary: URLParser should correctly strip unnecessary 0's in IPv6 addresses
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 beidson: review+

Description Alex Christensen 2016-10-05 10:52:56 PDT
URLParser should correctly strip unnecessary 0's in IPv6 addresses
Comment 1 Alex Christensen 2016-10-05 10:54:06 PDT
Created attachment 290727 [details]
Patch
Comment 2 Alex Christensen 2016-10-05 11:30:48 PDT
Comment on attachment 290727 [details]
Patch

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

> Source/WebCore/platform/URLParser.cpp:2318
> +        if (UNLIKELY((value && leadingZeros) || (!value && length > 1) || (length > 1 && !value)))

Oops.  This was redundant.  Removed one of the checks.
Comment 3 Alex Christensen 2016-10-05 11:30:56 PDT
http://trac.webkit.org/changeset/206819