Closed Bug 646690 Opened 14 years ago Closed 4 years ago

window.location.* doesn't return useful values for nested URIs

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: Gavin, Unassigned)

Details

Attachments

(1 file)

nsLocation::GetURI() unwraps nsIJARURIs, but it doesn't unwrap other nested URIs (e.g. view-source:). This causes some trouble for UI code that does not expect to have to special-case such URIs when getting e.g. location.hostname. (At least we no longer throw, given bug 562433) See also bug 522319 and bug 645564.
I don't know whether there are any compatibility concerns here.
(or whether this is specced by HTML)
There's no spec for this; none of our nested URIs are standardized. That patch is probably ok to take, but needs a not-me reviewer, for obvious reasons... ;)
Version: unspecified → Trunk
Attachment #523175 - Flags: review?(jst)
Summary: window.location.* does return useful values for nested URIs → window.location.* doesn't return useful values for nested URIs
Attachment #523175 - Flags: review?(jst) → review+
Assignee: nobody → gavin.sharp
Assignee: gavin.sharp → nobody
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: