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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user