Closed Bug 1921857 Opened 5 months ago Closed 2 months ago

"Close tabs to the left/right" should save and close groups, including collpased groups

Categories

(Firefox :: Tabbed Browser, task, P2)

task
Points:
2

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: sthompson, Assigned: sthompson)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-tabgrps-tabbrowser] )

Attachments

(1 file)

Current behavior with 3 tabs (standalone 1, grouped 1, grouped 2):

  • With tab group not collapsed: Standalone 1 active, Close Tabs to the Right, only standalone 1 is left and the group is gone
  • With tab group collapsed: Standalone 1 active, the context menu has “Close Tabs to the Right” greyed out as an option. A similar thing happens when a tab group is the first item in the tab bar and you have a standalone tab with the “Close Tabs to the Left” option.

Desired behavior:

  • "Close tabs to the left/right" context menu option should be available even if the only item(s) to the left/right are collapsed tab groups
  • "Close tabs to the left/right" should close any tab groups to the left/right
  • The closed tab groups' state should still be saved and available to restore

"Close tabs to the left/right" is currently available as an option based on "visible" tabs to the left/right, which currently excludes tabs in collapsed tab groups.

Currently, I don't know what behavior gBrowser.removeTab and gBrowser.removeTabs have with respect to saving the context that they were in a group.

Blocks: 1907099
Whiteboard: [fidefe-tabgrps-tabbrowser]
Points: --- → 2
Priority: -- → P3
Blocks: 1908417
See Also: → 1933813
Summary: "Close tabs to the left/right" should close tab groups → "Close tabs to the left/right" should save and close groups, including collpased groups
Depends on: 1921802
  1. should be available in the context menu even if there are collapsed tab groups to the left/right
  2. should close collapsed tab groups when they are to the left/right
  3. tab groups should be saved when they are going to be closed when using "close tabs to the left/right"
Assignee: nobody → sthompson
Status: NEW → ASSIGNED
Priority: P3 → P2
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecc4ec402175 "close tabs to the left/right" changes for tab groups r=dao,sessionstore-reviewers,tabbrowser-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Blocks: 1948859
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: