There is a report that TST is not compatible with Container Tab Groups #3214
Replies: 2 comments 2 replies
-
@metastable-void for what it is worth, I tried a clean profile and just loaded CTG and TST together and didn't have any problems. I created new tabs in different containers from both addons, created trees, deleted tabs ... all the while I saw no loss of tree hierarchy. I did read the comment that user made, but obviously it was a fairly generic comment about his situation. It might be helpful if you ask them to see if they can reproduce it again and file a defect that we can all inspect. At the end of the day, TST is driven by the relationship between the tabs and the driver for that is |
Beta Was this translation helpful? Give feedback.
-
Example possible conflict points I think:
The root problem is: everything is asynchronous. For example, they addons may move a tab to somewhere. Assume that TST moves the tab to the position 4, CTG moves the tab to the position 10. But the tab is just one and it can be placed just one place. If TST won the tab is placed at the positon 4, otherwise CTG won and the tab is placed at the position 10. But they don't think that the To work TST and CTG together well, I think that CTG need to handle all tabs at first, and TST should handle the tab after that. For exampe, on TST side: browser.tabs.onCreated.addListener(async tab => {
const updatedTab = await browser.runtime.sendMessage(CTG_ID, { type: 'wait-until-initialized', tabId: tab.id });
if (!updatedTab) // If CTG closed the tab, ignore it.
return;
tab.index = updatedTab.index;
tab.cookieStoreId = updatedTab.cookieStoreId;
...
});
browser.tabs.onMoved.addListener(async (tabId, moveInfo) => {
const updatedMoveInfo = await browser.runtime.sendMessage(CTG_ID, { type: 'wait-until-moved', tabId });
if (!updatedMoveInfo) // If CTG closed the tab, ignore it.
return;
moveInfo.toIndex = updatedMoveInfo.toIndex;
...
}); Of course such How about this idea? @metastable-void |
Beta Was this translation helpful? Give feedback.
-
I am a developer of Container Tab Groups. I saw a comment (https://www.ghacks.net/2022/09/26/container-tab-groups-group-sites-securely-in-firefox/#comment-4549897) describing a breakage of TST when our add-on is enabled.
This add-on sorts tabs according to containers. I made a research on this but as of now yet to find the problem. What sort of breakage is possible and how we can prevent ones? I would like to make the both add-ons play nicely. Thanks.
Link: menhera-org/TabArray#32
Beta Was this translation helpful? Give feedback.
All reactions