"http://" is not a valid URL

RESOLVED DUPLICATE of bug 1275746

Status

()

Core
Networking
RESOLVED DUPLICATE of bug 1275746
10 months ago
10 months ago

People

(Reporter: manishearth, Assigned: manishearth)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Assignee)

Description

10 months ago
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

10 months 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
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
Last Resolved: 10 months ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1275746
Comment hidden (mozreview-request)

Updated

10 months ago
Attachment #8819695 - Flags: review?(valentin.gosu)
You need to log in before you can comment on or make changes to this bug.