Closed Bug 1947853 Opened 1 year ago Closed 11 months ago

[Multi-Account Containers] Tabs reopened in a container are ejected from tab group

Categories

(Firefox :: Tabbed Browser, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox137 --- wontfix
firefox138 --- verified
firefox139 --- verified
firefox140 --- verified

People

(Reporter: aleiserson, Assigned: sthompson)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [TabGroupsFoxfooding][fidefe-tabgrps-tabbrowser])

This is an interaction between tab groups and the multi-account containers extension. So to reproduce, that extension will need to be installed, and some site (say, containersite.com) needs to be configured to always open in a particular container.

Steps to reproduce:

  1. Right-click on a default-container tab in a tab group and select "New tab to right". This opens a new tab in the default container.
  2. Type "containersite.com" in the URL bar and press enter.

Expected behavior: a tab for containersite.com in the configured container should open at the current position in the tab bar
Observed behavior: a tab for containersite.com opens positioned to the left of the first tab in the group

Blocks: 1907099
Whiteboard: [TabGroupsFoxfooding] → [TabGroupsFoxfooding][fidefe-tabgrps-tabbrowser]
Severity: -- → S3
Priority: -- → P2
Priority: P2 → P1
Depends on: 1959714
See Also: → 1956278
Summary: Tabs reopened in a container are ejected from tab group → [Multi-Account Containers] Tabs reopened in a container are ejected from tab group
See Also: → 1957723

I filed https://github.com/mozilla/multi-account-containers/issues/2747 "Open/reopen in container should always preserve tab group membership" on Github

@Andy So far I have only seen this behavior when the opening tab is in the first or last position of a tab group. Tabs reopened in a container seem to maintain their tab group membership when they in a tab group and not at the edges of the tab group. Have you seen any other failure scenarios?

I tried just now and I'm only seeing the problematic behavior at the end of the tab group -- at the beginning or in the middle, the tab stays in the group, like I would expect. I also tried in a tab immediately prior to the tab group to see if it would move in to the tab group, but it does not, it stays outside the tab group.

Assignee: nobody → sthompson
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED

Hi @Stephen, if we Right click the Right most tab from a Tab group and reopen it in a new Container it would always open outside of the group, if we Right click a link from that page or have a website to always open in a specific container it would always open a container tab inside of the group.

is the Right click Tab > Open in new Container tab scenario separate from this fix or is this scenario intended behavior ??

Flags: needinfo?(sthompson)

Right-clicking a tab and choosing "Open in New Container Tab" uses Firefox's built-in container functionality. You are correct, the behavior is wrong. I filed bug 1968158 to track the Firefox issue.

This bug is tracking a fix in the Firefox Multi-Account Containers add-on and I confirmed that using the add-on functionality to reopen the last tab of a tab group in a container it will open the new tab inside of the tab group.

Flags: needinfo?(sthompson)

Verified as fixed in Release 138.0.4, Beta 139 and Nightly 140.0a1 (2025-05-22)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.