[Webkit-unassigned] [Bug 137718] New: URLs that start with http:/// and https:/// lose two slashes when parsed, causing assertion failure and inconsistent behavior
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 14 14:30:57 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137718
Summary: URLs that start with http:/// and https:/// lose two
slashes when parsed, causing assertion failure and
inconsistent behavior
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Keywords: InRadar
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mitz at webkit.org
CC: ap at webkit.org
<rdar://problem/18029894>
Given a URL that starts with http:/// or https:///, URL::parse() removes exactly two slashes from the URL. There are a couple of undesirable side effects to this:
1. It makes parsing non-idempotent for such URL with four or more slashes, which in turn causes an assertion failure in the already-parsed URL constructor when trying to follow <a href="http:////webkit.org">
2. If the URL has sufficiently many slashes after the colon, then even after repeated reparsing it will contain more than two, and therefore CFNetwork will consider its host to be localhost, which is incorrect
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list