Closed Bug 1784323 Opened 2 years ago Closed 2 years ago

"Confirm before closing multiple tabs" asks for confirmation when closing a window with just Firefox View and one tab

Categories

(Firefox :: Firefox View, defect, P3)

defect

Tracking

()

VERIFIED FIXED
107 Branch
Tracking Status
firefox105 --- disabled
firefox106 --- wontfix
firefox107 --- verified

People

(Reporter: cpeterson, Assigned: bigiri)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-firefox-view])

Attachments

(2 files)

Attached image screenshot.png

STR:

  1. Enable the "Confirm before closing multiple tabs" setting in about:preferences.
  2. Open a new window. It should have two tabs: the Firefox View tab and the newtab tab.
  3. Close the window (using the Ctrl+W keyboard shortcut or clicking the X window button).
  4. The window closes as expected.
  5. Open another new window. It should have two tabs: the Firefox View tab and the newtab tab.
  6. Switch focus from the newtab tab to the Firefox View tab.
  7. [2022-09-21 EDIT] To reproduce this bug, I now have to switch focus from Firefox View back to the newtab tab.
  8. Try to close the window (using the Ctrl+W keyboard shortcut or clicking the X window button).

Expected result:

The window should close without interruption. The Firefox View tab should not be considered a "blocking tab" for closing a window.

Actual result

Firefox shows the "Confirm before closing multiple tabs" dialog. See the attached screenshot.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [fidefe-firefox-view]
Blocks: firefox-view
Assignee: nobody → bigiri
Status: NEW → ASSIGNED

Explicitly exclude the Firefox View tab, from the tab count, when determining whether or not to show the multiple open tabs warning.

Attachment #9295860 - Attachment description: Bug 1784323 - Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=Gijs! → Bug 1784323 - Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=Dao!
Pushed by bigiri@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14e2cb36d7b8 Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=dao,Gijs
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit auto_nag documentation.

The patch landed in nightly and beta is affected.
:bigiri, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox106 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(bigiri)

Comment on attachment 9295860 [details]
Bug 1784323 - Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=Dao!

Beta/Release Uplift Approval Request

  • User impact if declined: When the user closes the browser they may get unexpected "confirm before closing multiple tabs" prompts.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: STR:
  1. Enable the "Confirm before closing multiple tabs" setting in about:preferences.
  2. Open a new window. It should have two tabs: the Firefox View tab and the newtab tab.
  3. Close the window (using the Ctrl+W keyboard shortcut or clicking the X window button).
  4. The window closes as expected.
  5. Open another new window. It should have two tabs: the Firefox View tab and the newtab tab.
  6. Switch focus from the newtab tab to the Firefox View tab.
  7. [2022-09-21 EDIT] To reproduce this bug, I now have to switch focus from Firefox View back to the newtab tab.
  8. Try to close the window (using the Ctrl+W keyboard shortcut or clicking the X window button).

Expected result:

The window should close without interruption. The Firefox View tab should not be considered a "blocking tab" for closing a window.

  • List of other uplifts needed: None
  • Risk to taking this patch: Medium
  • Why is the change risky/not risky? (and alternatives if risky): There is an automated test in place but this does have functionality change. The risk is that the "confirm before closing multiple tabs" prompt may show or not show at the wrong time.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(bigiri)
Attachment #9295860 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9295860 [details]
Bug 1784323 - Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=Dao!

We ship 106 tomorrow.

Attachment #9295860 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
QA Whiteboard: [qa-triaged]

Reproduced the issue described in comment 0 using an old Nightly from 2022-08-11, verified that this is not reproducible anymore using Nightly 107.0a1 from today across platforms (Windows 10, macOS 11 and Ubuntu 22.04).

Based on the recent change in the firefox status flags, I'll go ahead and close this bug as Verified Fixed.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: