Closed Bug 1267087 Opened 8 years ago Closed 8 years ago

The beforeunload dialog should focus its window

Categories

(Firefox :: General, defect)

31 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1246468

People

(Reporter: Oriol, Unassigned)

References

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160423030220

Steps to reproduce:

1. Open a Firefox window (window1)
2. In tab1 of window1, go to a page with beforeunload event listener
3. Open a new tab2 in window1
4. Open a new window2
5. Exit Firefox


Actual results:

1. Tab1 shows beforeunload dialog :)
2. Window1 changes selected tab from tab2 to tab1 :)
3. Window2 is still focused :(


Expected results:

Window1 should become focused.

Otherwise the dialog might not be noticeable, e.g. if window2 is maximized or window1 is minimized.

Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=690c810c8e3e&tochange=d8c1b10c3a3d
Blocks: 616853
Component: Untriaged → General
Keywords: regression
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.