Closed Bug 1695669 Opened 4 years ago Closed 4 years ago

Child window looeses fucus when refreshing Parent window. Version 85.0.1 was ok, Version 86.0 has this bug

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

Firefox 86
defect

Tracking

()

RESOLVED DUPLICATE of bug 1694927

People

(Reporter: daniel.messerli, Unassigned)

References

Details

(Keywords: regressionwindow-wanted)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0

Steps to reproduce:

I have a parent window ( tab ) and a child window.
The child window updates the parent window by this line:

window.opener.document.location.href=window.opener.document.location.href;

It works also on I.E., Chrome, Opera, Safari, Edge.

Actual results:

Now at version 86.0 the child window ( tab ) looses the focus and the parent window is displayed. The user must maually switch to the child window.

Expected results:

Until version 85.0.1, the parent window was updates in background and the child window still had the focus. This is the desired behaviour. Compatible with: I.E., Chrome, Opera, Safari, Edge.

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

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

Do you think you could try to find the regression range using
https://mozilla.github.io/mozregression/ ?

And a minimal testcase would be really useful here.

Severity: -- → S2
Flags: needinfo?(daniel.messerli)
Priority: -- → P3
QA Whiteboard: [qa-regression-triage]
Attachment #9206580 - Attachment description: bug1695669_child.html → child.html

STR:

  1. Load test.html
  2. Click 'Open child window' to open a new child window
  3. Click 'Refresh parent window'

Actual results:
the child window loses focus

Expected results:
the child window should keep focus

I will try to get a regression window.

This might be the same as bug 1694927

73:18.54 INFO: No more integration revisions, bisection finished.
73:18.54 INFO: Last good revision: 129b45a961fb5bf9a71a217da71ac8079fbc4657
73:18.54 INFO: First bad revision: 06c045f7240a7f168e904e1e278e08cf1d3ed928
73:18.54 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=129b45a961fb5bf9a71a217da71ac8079fbc4657&tochange=06c045f7240a7f168e904e1e278e08cf1d3ed928

Yeah, I think it is the same as bug 1694927.

I could not reproduce this on today's Nightly (20210303215027), so close as a duplicate of bug 1694927.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(daniel.messerli)
Resolution: --- → DUPLICATE

Thank you verry much for your Help. Bug 1694927 is exactly the same. I hope the bugfix is made finished soon.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: