power-tabs
power-tabs copied to clipboard
Associate a container to a group
I think somehow a container could be associate to a group. As a result all tabs opened in a group should be open a the group container.
Contextual identity support (what Firefox calls "Containers") was actually on my mind for a while when I was making this add-on but I couldn't find of a good way to actually support it.
I think something similar to assigned domains except with assigned contextual identities might work fine but I'm not sure. I'll give this a bit more thought.
Been working on this on my spare time lately.
Unfortunately it's a bit tricky to associate a container to a tab, in particular "updating" a tab from container A to container B requires closing the tab and then reopening it which can be a little janky. Not only that but you lose the ability to go back (i.e. pressing the back button) since the tab is recreated all history is gone.
From a quick google it seems that this is actually how the container extension works under the hood and is a cause of UX issues and other sorts of bugs but they insist it's due to privacy reasons (see here). Which if you think about it does make sense but makes for groggy UX.
For certain tabs this isn't a problem, e.g. if you open a new tab via about:newtab then get redirected to the new page in the new container you probably would not care about the history of that tab being lost. On the other hand if a tab is associated with a group and that group is associated with Container A but the tab is associated with Container B, to do the group switch would require removing the tab and replacing it with a Container A version of that tab which would lose history + change of cookies.
I think I'm going to make the behaviour above the default (about:newtab redirects will always work) but "forced" group changes such as the one I outlined between requests will have to be hidden under a setting to make sure a user actually wants that behaviour. Not sure if there are better solutions but if you have one let me know.
https://github.com/Drive4ik/simple-tab-groups already does this and it works really well.
I replaced STG with https://github.com/mbnuqw/sidebery, but am not 100% satisfied with it either, maybe your great addon will ;) I really like it so far!
Any possible updates on this? Supporting the container tab's icon on the outside of the site's favicon on the tab would be great, along with some coloring to indicate which container tab you're in at the moment.