[whatwg] Effect on window.opener when navigating an existing window using window.open
bobowencode at gmail.com
Mon Mar 3 03:04:04 PST 2014
The spec at  and  seems to be fairly clear that if an existing window
is navigated using window.open, by a browsing context that is not the
original opener, then window.opener should remain unchanged.
Currently, Trident (and incidentally Presto) seems to have the correct
behaviour, but Blink, WebKit and Gecko all change window.opener to the
window of the browsing context that has just caused it to navigate.
I believe this to be a very long standing difference (>10 years for Gecko
I am proposing to change Gecko to match the spec, but I was advised to
raise the issue here before going ahead.
Do people agree that window.opener should remain unchanged in this
If agreed, looking at the code, this would seem to be a fairly simple
change for WebKit and Blink as well.
More information about the whatwg