Closed Bug 1970447 Opened 11 months ago Closed 10 months ago

Saving and closing the last group with insertAfterCurrent=true and closeWindowWithLastTab=false creates a copy of the group

Categories

(Firefox :: Tabbed Browser, defect, P3)

defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: mossop, Assigned: mossop)

References

(Blocks 1 open bug)

Details

(Keywords: regressionwindow-wanted, Whiteboard: [fidefe-tabgrps])

Attachments

(2 files)

Attached video Screen Recording

See the attached video.

If the only thing in the tab strip is groups (no tabs outside of groups) and all but one group is collapsed then attempting to close that last group causes a new tab to open in the group.

Perhaps related. If the tab strip contains a single group, no other tabs, then choosing "Save and close group" closes the group but then a new group with the same name appears with a new tab in it. The all tabs menu now shows two groups of the same name.

QA Whiteboard: [qa-triage-done-c141/b140] [qa-investig-needed-c141/b140]
QA Contact: snegritas

Hello! I have tried to reproduce the the issue with the steps from the video but unfortunately I wasn't able to with firefox 141.0a1(2025-06-06) on Ubuntu 22.04
Could you please answer the following questions in order to further investigate this issue?

  1. Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Could you please provide the OS you have encountered this issue?
  3. Are you trying to close the group with the middle click button?
Flags: needinfo?(dtownsend)
QA Whiteboard: [qa-triage-done-c141/b140] [qa-investig-needed-c141/b140] → [qa-triage-done-c141/b140] [qa-investig-done-c141/b140]

Looks like this is a side effect of setting browser.tabs.insertAfterCurrent to true.

Flags: needinfo?(dtownsend)
Blocks: tab-groups
Severity: -- → S3
Whiteboard: [fidefe-tabgrps]
Priority: -- → P3
Summary: Attempting to collapse the last expanded group in the vertical tab strip causes a new tab to open inside the group → Attempting to collapse the last expanded group with insertAfterCurrent causes a new tab to open inside the group

Bug 1949401 has resolved the original issue here, the secondary issue remains though:

  1. Set browser.tabs.insertAfterCurrent to true
  2. Set browser.tabs.closeWindowWithLastTab to false
  3. Have a window with a single tab group in it and no ungrouped tabs
  4. Save and close the group

Here we would expect the window to remain open (because closeWindowWithLastTab is false) and a new tab to be created. What actually happens is a copy of the existing group is created with the new tab inside it.

Summary: Attempting to collapse the last expanded group with insertAfterCurrent causes a new tab to open inside the group → Saving and closing the last group with insertAfterCurrent=true and closeWindowWithLastTab=false creates a copy of the group
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Pushed by dtownsend@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1ee9ac69936e https://hg.mozilla.org/integration/autoland/rev/b336904dc2bc When closeWindowWithLastTab=false and closing the last group make sure the new tab is created outside the group. r=tabbrowser-reviewers,dwalker
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c141/b140] [qa-investig-done-c141/b140] → [qa-triage-done-c143/b142]
QA Whiteboard: [qa-triage-done-c143/b142] → [qa-triage-done-c143/b142][qa-triage-done-c141/b140] [qa-investig-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: