Closed Bug 1696048 Opened 4 years ago Closed 4 years ago

window.opener.document.location='foo.bar' causes window to lose focus

Categories

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

Firefox 87
All
Unspecified
defect

Tracking

()

RESOLVED DUPLICATE of bug 1694927

People

(Reporter: obettens, Unassigned)

References

Details

Attachments

(2 obsolete files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

in a popup window opened by window.open(), use window.opener.document.location="myLocation"

Actual results:

the popup window loses focus

Expected results:

the popup window should keep focus
(the comportement the behavior has changed since version 86 beta)

Hardware: Unspecified → All
Version: 78 Branch → Firefox 87

(In reply to Olivier Bettens from comment #0)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

in a popup window opened by window.open(), use window.opener.document.location="myLocation"

Actual results:

the popup window loses focus

Expected results:

the popup window should keep focus
(the behavior has changed, probably since version 86 beta)

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
See Also: → 1695669
Attached file child.html (obsolete) —
Attached file test.html (obsolete) —
Attachment #9206578 - Attachment is obsolete: true
Attachment #9206579 - Attachment is obsolete: true

Bug 1694927 is landed. Olivier, do you still encounter this issue on today's Nightly (20210303215027)?

Flags: needinfo?(obettens)

(In reply to Edgar Chen [:edgar] from comment #5)

Bug 1694927 is landed. Olivier, do you still encounter this issue on today's Nightly (20210303215027)?

No, it's fixed! tested on nightly 88.0a1 (2021-03-04)
Thanks a lot.

Flags: needinfo?(obettens)

Close as a duplicate of bug 1694927.
Thanks for verifying, Olivier!

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: