Closed Bug 1695444 Opened 4 years ago Closed 4 years ago

regression: (Re)loading a frame puts the window into foreground

Categories

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

Firefox 86
defect

Tracking

()

RESOLVED DUPLICATE of bug 1694927

People

(Reporter: bobwei9, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

Use Windows 10. (Does not reproduce on macOS.)

Create a page with contents:

<iframe name="test"></iframe>
<script>
setTimeout(function() {
window.frames.test.location.href="https://1.1.1.1";
}, 4000);
</script>

Open that page. Put another firefox window in front of the current window within 4 seconds. (e.g. by pressing ctrl+n)

Actual results:

The window with the iframe suddenly is moved into foreground as soon as the frame is loading.

Happens since Firefox 86.

Expected results:

The window should not have changed its relative order to other windows.

Ad. Also happens on macos … only realized now I had Firefox 85 there.

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

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core

Moving to a cross-platform component since the issue is said to reproduce on all platforms.

Component: Widget: Cocoa → DOM: UI Events & Focus Handling
Attached file testcase?

Does this reproduce in a fresh profile? Could you try to find a regression range with mozregression? https://mozilla.github.io/mozregression/

Flags: needinfo?(bobwei9)

I can reproduce this on macOS in Firefox 86 release but not on Nightly. I'll get the regression and fix ranges.

Flags: needinfo?(bobwei9)

Found it.

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: