-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new sites to Multi-Account Containers requires disabling of TC #170
Comments
Some dirty solutions are mentioned in mozilla/multi-account-containers#976 (comment) and in mozilla/multi-account-containers#976 (comment). |
This is a frustration indeed. As an example, I opened a link to github.com, it opened in a new temporary container. I converted that to a permanent container through the toolbar icon. I told MAC to always open github.com links in that container. Everything there is working great. Now I want to add gist.github.com to this container. By default, it opens in a new temporary container (tab1). If I right-click on the tab and choose "Reopen in container > github.com", then that gets intercepted and a new temporary container gets created (tab2). I have to first go into the Temporary Tab preferences and disable "Open new Temporary Containers if a Permanent Container Tab tries to load a Domain that isn't assigned to "Always open in" that container". Then open the gist URL in the github.com container, tell MAC to always use that container, and finally re-enable the setting in Temporary Containers preferences. This is quite a long, convoluted process. If anyone knows of an easier way, please let me know! |
I've also been having this issue and super frustrated with it, and after tinkering with all the settings today I found that this one seems to be the culprit.
Once I disabled that, I can actually use the Multi-Account Container extensions "Reopen in Container" tab action to convert the tmp container to a permanent one, and then record that as a permanent setting in the MAC extension. No disabling of TemporaryContainers necessary, and I even have automatic mode turned on. I think the underlying issue here is that a number of settings in Temporary Containers are not fully understood (and not documented well enough) and potentially conflict with one another. |
Echoing zwanson's last comment, for me, the root bug that would be great to see fixed would be to correct the behaviour with the Multi-Account Container "Reopen in Container" feature. Right now, when you select a container, Temporary Containers takes over and flips back into a temporary container instead of allowing the switch into the target container. My typical workflow for adding a site to a container is to open the site, "Reopen in Container", pick the desired container, then select "Always open in " in the Multi-Account Container dropdown. But because Temporary Containers interruptions the process and forces the tab back into a temporary container, this workflow is busted. The workaround, as zwanson indicates, is to disable the "Multi-account container" setting, but I really want that on! Otherwise sites like Feedly will always open links in the current (logged in) container, which is precisely what I don't want! If this one bug is fixed, from my perspective, this add-on combined with Multi-account Containers is a virtually perfect combination! Really great work! |
I have ditched MAC and Containerise due to problems. I have adapted differently. See #140 (comment) Maybe you will find it useful. |
"The workaround, as zwanson indicates, is to disable the "Multi-account container" setting, but I really want that on! Otherwise sites like Feedly will always open links in the current (logged in) container, which is precisely what I don't want!" No, that's kit correct. As I described, disabling that one option gives me exactly the behavior you're looking for. All clicks on links that go to a different domain open in tmp containers, but I'm now able to designate a tmp container to reopen correctly as a permanent one. |
Agreed, in general that's true. Unfortunately, Temporary Containers appears to have a separate, unrelated bug specifically related to Feedly. Go figure. :) When using Feedly (which is in my Google container) with Temporary Containers and Multi-Account Containers, if you have an article highlighted and press "V" to open the article, it opens in the same (Google) container as Feedly, instead of opening in a new, temporary container. Enabling "Multi-Account Containers" support in Temporary Containers resolves this, but unfortunately that feature triggers this bug where Temporary Containers prevents Multi-Account Containers from reopening tabs in a different container. As a result, I either permanently disable "Multi-Account Container" support in Temporary containers and have Feedly open tabs in the same container as all my Google cookies (bad), or I temporarily disable "Multi-Account Container" support in Temporary Containers any time I want to reassign a site to a container, after which I turn the feature back on (less bad). Truly, it is a rich tapestry. :) |
I've run into this issue too. There's a few different use cases that are impacted by the same problem:
A workaround for this is to temporarily disable Multi-Account Containers Isolation, open the site in the container, and tick it, then re-enable it.
The same workaround as 1) can be applied for 2). However, I'm opening email/google services far more often than I'm assigning a a site to a container, so it's much more annoying to do. As a result, I leave Multi-Account Containers Isolation disabled, even though I would like to use it. A possible solution I can think of would be: Thoughts? |
@xarx00
The alternative would be to enable Isolation, either Per Domain with pattern e.g.
Unfortunately I don't see a way of doing that because the "Reopen"-feature is natively implemented in Firefox and Add-ons don't have a way of detecting that a Tab was opened by this feature. |
Hmm, it seems that doesn't work. I have no idea how Feedly opens links, but even with Feedly-specific isolation enabled as you suggest (I actually tested configuring those isolation settings to "Always" across the board), when you use the 'v' hotkey to open a link in a new tab, it opens in the permanent container used for Feedly instead of a new temporary container. Enabling "Multi-Account Containers" isolation resolves this issue (the tab Feedly opens is opened in a temporary container), but then exhibits the other issue already described. At this point, the simplest workaround for me would be to have a toolbar icon I could click to quickly disable and then re-enable the add-on. It's annoying, but less annoying than opening the add-ons panel each time! :) |
@fancypantalons It should work since the MAC Isolation basically works the same way as the "normal" Isolation. Maybe feedly is operating on the domain instead of a subdomain, in this case the Domain Pattern needed would be just A fast way to (temporarily) disable Isolation is definitely needed. Some thoughts around that are also in #182 |
Related - this may not be seen as an issue, but in order to escape this bug I've bumped into the following potentially undesirable behavior:
Should Temporary Containers stop treating a container as temporary if it has been renamed? |
@stoically Can you detect the difference between these two scenarios?
Rephrased, does the MAC isolation implementation know anything about the site you're navigating from, or only the site you're navigating to?
|
@AeliusSaionji You can use the popup (activate in the advanced preferences), click the menu button top-left, then "actions" and "convert to permanent container". I'm personally not a fan of making it an implicit behavior. However, that won't work with MAC isolation enabled, since converting reloads the tab (to make the container name change visible) and isolation would reopen in a TC because the domain isn't assigned (same would apply for renaming). @smichel17 If |
|
That's currently expected behavior. MAC isolation should really only allow assigned domains to open in a container. To actually answer your question (I didn't realize that you posted in this issue for a reason, my bad): afaik it's not clearly detectable that you navigated from an Manually keeping track of But, it should only allow loading the exact domain entered into the address bar to "overwrite" the isolation, which would make redirects (like the common However, I like the idea of having a "Force reopen" button (that'd be still problematic for redirects, but those should arguably not happen in this case). I'll look to add that to the popup > actions section - and maybe in second step also to the context menu (probably when adding #185, which then would result in a |
I cannot confirm this. For me the following procedure works flawlessly:
Again, this works without any problems for me. |
@curiosity-seeker I assume you don't have |
@stoically : Yes, confirmed! |
v1.0beta4 has a circle icon button in the popup top nav, which allows to disable / enable Isolation globally - so adding new sites to MAC is possible by clicking that button, assigning, and clicking the button again. Just a workaround, but way more convenient than opening the full preferences page. |
Putting this issue on the |
General > Automatic Mode = off
Isolation > Multi-account container = Enabled
Purpose of the settings above is to isolate explicitly specified domains (in Multi-AccountContainers, futher M.A.C) to their containers, but whenever I click a link to another domain, the site opens in its own container (perhaps a tmp container). The M.A.C alone don't allow this, hence I use it together with TC. It works - to an extent - fine.
Problem: When I want to assign a new domain to a container in M.A.C, I am not able to do that without disabling TC first, TC doesn't allow me to do that.
Steps to reproduce
Then I plan to add this domain to M.A.C
Actual behavior
TC changes the selected container to a tmp container for the new domain, because the domain is not yet assigned to a container in M.A.C.
I have to disable TC and repeat the process with TC off. After adding the domain, I have to enable TC again.
Expected behavior
TC leaves the manually typed URL in the selected container. Then
3. I can click the M.A.C toolbar icon > Always Open In Container
The text was updated successfully, but these errors were encountered: