Fix #2747: open/reopen container tabs in tab groups when appropriate

Firefox 137 introduced tab groups. Tab group web extension support is rolling out in Firefox 138 and later. Creating a new tab after the last tab in a tab group can inadvertently create the new tab outside of the tab group.

When a user opens a new tab that should be in a container, this patch will make sure that the new tab resides in the same tab group as the original tab.
This commit is contained in:
Stephen Thompson
2025-04-21 23:35:28 -04:00
parent a60f5bb1be
commit b6a1bff9e8
5 changed files with 122 additions and 26 deletions
+6 -2
View File
@@ -91,7 +91,9 @@ const messageHandler = {
m.newUserContextId,
m.tabIndex,
m.active,
true
true,
null,
m.groupId
);
break;
case "assignAndReloadInContainer":
@@ -101,7 +103,9 @@ const messageHandler = {
m.newUserContextId,
m.tabIndex,
m.active,
true
true,
null,
m.groupId
);
// m.tabId is used for where to place the in content message
// m.url is the assignment to be removed/added