Closed
Bug 1324244
Opened 7 years ago
Closed 7 years ago
"http://" is not a valid URL
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
DUPLICATE
of bug 1275746
People
(Reporter: manishearth, Assigned: manishearth)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
We currently parse "http://" and "ftp://" as valid URLs. They are not. See https://url.spec.whatwg.org/#hostname-state, special schemes (https://url.spec.whatwg.org/#special-scheme) cannot have empty hosts. Chrome agrees with the spec here.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
I'm not sure if this is the right place to do this check, or if I should do it in nsURLParsers.cpp. nsURLParsers.cpp seems to be a bit more general.
Assignee: nobody → manishearth
Status: NEW → ASSIGNED
Comment 3•7 years ago
|
||
We tried to fix this a few months ago, but it got backed out because it triggered a regression in the HTML form validator. I'll try to land it as soon as the form bug gets fixed.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Attachment #8819695 -
Flags: review?(valentin.gosu)
You need to log in
before you can comment on or make changes to this bug.
Description
•