Closed Bug 823196 Opened 12 years ago Closed 5 years ago

Sort out which inner window to pass to ctors after document.open

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Unassigned)

References

(Blocks 1 open bug)

Details

See also https://bugzilla.mozilla.org/show_bug.cgi?id=820841#c8 etc

In order to keep the old, and perhaps least surprising behavior, we should pass
the current inner window.
More precisely, pass the current inner if it's same-origin with the inner associated with the constructor.
I think passing the current inner (keeping comment 1 in mind) is the only sane thing to do. Basically, we could think about this as though we're passing the old inner window, realizing that there was a document.open and doing the reparenting all in one operation.
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
Component: DOM → DOM: Core & HTML

After bug 1489308 document.open() doesn't affect which inner windows are around, so this is not an issue.

Status: NEW → RESOLVED
Closed: 5 years ago
Depends on: 1489308
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.