Open Bug 1603199 Opened 4 years ago Updated 9 months ago

Make nsIURI.host return a bracket enclosed IPv6 address

Categories

(Core :: Networking, task, P3)

task

Tracking

()

People

(Reporter: valentin, Unassigned)

Details

(Whiteboard: [necko-triaged])

Historically if the host of a URL is an IPv6 address, nsIURI.host has returned only the IPv6 address literal ::1 instead of [::1]. This is presumably because consumers will pass the output of nsIURI.host to a platform API (NSPR sockets?) which don't necessarily handle the brackets. However, this leads to odd little hacks like this and this

Want to change this behaviour - this implies auditing every use of nsIURI.host

Not working on this right now.

Assignee: valentin.gosu → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.