Closed Bug 1698514 Opened 3 years ago Closed 3 years ago

Multiple quit/close warnings appear when closing/quitting multiple times without responding to the first dialog

Categories

(Firefox :: Tabbed Browser, defect, P3)

Firefox 88
Desktop
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1706963
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- disabled
firefox88 --- disabled
firefox89 --- wontfix

People

(Reporter: alice0775, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: helpwanted, nightly-community, regression, Whiteboard: [proton-modals])

Attachments

(1 file)

Steps to reproduce:

  1. Enable Titlebar
  2. Open multiple tabs(more than 3 tabs)
  3. Click native window close button multiple times
  4. Click "Close" button in the alert box
    --- the alert box will appear again and again --- Bug!
    (Optionally)
  5. Click "Cancel" button in the alert box (and repeats step 5 if any)
    --- If you choose "Close" even once, the browser will close even if you choose "Cancel" for all the rest. --- Maybe bug!

Actual results:
The native window close button is clickable multiple times.
The alert box appears multiple times.

Expected results:
The native window's close button should not be clickable multiple times.
There should be only one alert box.

There are 2 regression window.
#1:
The native window close button is clickable multiple times.
The alert box sometimes disappears.
Browser sometimes dimmed without the alert box.
This bug also appear when choose "Close Window" from right click taskbar button.

#2:
The native window close button is clickable multiple times.
This bug also appear when choose "Close Window" from right click taskbar button.

#1 regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=9cf59af57183940e3d5f629f4ea29b499e956fca&tochange=1129347e2aadcde6d60e03b6917539413c306639

Regressed by Bug 1685313

#2 regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=50cd37e08dd9ba6cfe4aec7e6b1f208400a76d9e&tochange=f476c97b7c04306d7e21305a06de61b6d718714c

Bug 1696793 does not fix multiple aleart box problem.

Has Regression Range: --- → yes
Has STR: --- → yes
Regressed by: 1696793, 1685313
Summary: The native window close button is clickable multiple times. (Multiple alert box appears when the native window close button is clicked multiple times.) → Multiple alert box appears
Whiteboard: [proton-modals]
Priority: -- → P3

This should be fixable by teaching the _onQuitRequest handling code in BrowserGlue.jsm and its warnAboutClosingWindow sibling in browser.js to both track in some way whether they have already been invoked (clearing that flag when the dialog returns in a finally clause or similar), and if so, when re-entering, bail immediately (and indicate not wanting to close). In the quit case in BrowserGlue, we'd want to track the browser window in which we show the dialog and (re-)raise it via window.focus() if quitting is attempted a second time. See also bug 1524249 for the quit steps on macOS which predate this issue (which should be the _onQuitRequest case, too).

Keywords: helpwanted
See Also: → 1524249
Summary: Multiple alert box appears → Multiple quit/close warnings appear when closing/quitting multiple times without responding to the first dialog

The issue of multiple alert boxes no longer occurs for me in Nightly 90.0a1 (2021-05-25). Video demonstrates that attempting to close multi-tab window via click and keyboard shortcut both only result in one confirmation dialog.

Ed, did this get fixed by the work to make this warning override the onboarding modal, ie bug 1706963?

Flags: needinfo?(edilee)

As the bug is titled, yes this is fixed with bug 1706963 as multiple subsequent prompts don't appear after interacting with the first. The earlier/current prompts get closed similar to the user selecting Cancel to then show the next (potentially same) quit/close prompt.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(edilee)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: