Closed
Bug 1855873
Opened 1 year ago
Closed 1 year ago
URL constructor does not parse hostname, port for non-special schemes
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1374505
People
(Reporter: danoftheroses, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Steps to reproduce:
Type into the javascript console:
new URL("wtf://127.0.0.1:12345/path")
Actual results:
The parsed URL object has pathname: "//127.0.0.1:12345/path"
and that the hostname
and port
properties are ""
.
Expected results:
The resulting URL object should have:
hostname: "127.0.0.1"
port: "12345"
pathname: "path"
The relevant spec is https://url.spec.whatwg.org/
Updated•1 year ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1374505
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•