Closed Bug 1732422 Opened 4 years ago Closed 4 years ago

ctrl+q / control+q warning should revert to normal close warning behavior when turned off

Categories

(Firefox :: Tabbed Browser, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 1732446

People

(Reporter: mozilla, Unassigned)

Details

Attachments

(2 files)

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

Steps to reproduce:

  1. Uncheck "Confirm before quitting with Ctrl+Q"
  2. Check "Confirm before closing multiple tabs"
  3. Open multiple tabs.
  4. Press Ctrl+Q.

Actual results:

All tabs close without warning.

Expected results:

There should be a warning that multiple tabs will be closed.

The attached patch implements the behavior proposed in this bug report.

When a single tab is closed, a warning will be shown only when browser.warnOnQuitShortcut is true and ctrl+q is used.

When multiple tabs (or windows) are closed, a warning will be shown whenever one of the following occurs:

  • browser.tabs.warnOnClose is true
  • browser.warnOnQuitShortcut is true and ctrl+q is used

I believe the actual result is the expected result in this case. If Firefox is closed by clicking on the "X" button, then the close warning is displayed, but if the "Confirm before quitting with Ctrl+Q" is unchecked, then the warning will no longer be displayed when closed from the keyboard shortcut (CTRL+Q).

I'm setting this on the Tabbed Browser component in order to get a Dev's opinion on this.

Component: Untriaged → Tabbed Browser

The problem is when there are multiple tabs open and browser.tabs.warnOnClose is true. The expected behavior should be that there will be a warning, but there isn't when browser.warnOnQuitShortcut is false.

This appears to have been resolved by afe05f311e80

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

Creator:
Created:
Updated:
Size: