Closed Bug 1929384 Opened 1 month ago Closed 27 days ago

Window should not close if there are still collapsed tab groups

Categories

(Firefox :: Tabbed Browser, task, P2)

task
Points:
2

Tracking

()

VERIFIED FIXED
134 Branch
Tracking Status
firefox134 --- verified

People

(Reporter: sthompson, Assigned: sthompson)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-tabgrps-tabbrowser] )

Attachments

(1 file)

Current behavior:

Create 3 tabs. Select the first 2 tabs and create a new tab group from them. Collapse the tab group. Close the third tab (the only standalone tab that is left). The Firefox browser window closes.

This surprised a number of tab group users. It feels very bad and confusing to end up in that situation.

tabbrowser.js:_beginRemoveTab chooses whether to close the Firefox window when:

  • the tab being closed is visible
  • the number of visible tabs on the tab strip is 1 (tabs in collapsed tab groups are NOT counted as visible)
  • the window is a full browser window (not a popup)
  • the browser.tabs.closeWindowWithLastTab pref is true (which is the default)

We can detect when the user is closing the last visible tab BUT there is a collapsed group (or multiple) still present. We can take a different action instead of closing the window.

No longer blocks: 1908417
No longer depends on: 1921876
Priority: -- → P2
Points: --- → 2

When closing the last visible tab, if there are any collapsed tab groups, make one of the tabs in a tab group active. Based on pre-existing behavior, activating a tab in a collapsed tab group causes the tab group to expand.

Currently, if you close the last visible tab while you still have collapsed tab groups present on the tab bar, the browser window will close. This is surprising and sad behavior for users.

Assignee: nobody → sthompson
Status: NEW → ASSIGNED
Duplicate of this bug: 1927536
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb62d287a016 do not close window if there are still collapsed tab groups r=dao,tabbrowser-reviewers
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch

Verified as fixed in our latest Nightly 134.0a1 (2024-11-21)

Status: RESOLVED → VERIFIED
See Also: → 1933775
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: