Toggling "Run in Private Windows" on/off erases container cookies
Categories
(WebExtensions :: General, defect, P2)
Tracking
(firefox67 affected, firefox68 affected, firefox69 affected)
People
(Reporter: z764c86y, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
- Update to Firefox 67
- Open a Personal container tab and login to a gmail account
- Go to about:addons and click on Firefox Multi-Account Containers
- Set "Run in Private Windows" from Allow to Don't Allow
- Observe that all of your multi-container tabs disappear from the tab bar
- Re-open a Personal container tab and check gmail: you're no longer logged in
Note: a site that is set to always open in a particular container will still open in that container.
Actual results:
Accounts in all containers are logged out.
Expected results:
Accounts in different containers are still logged in.
Comment 1•6 years ago
|
||
Good afternoon Eric,
Thanks for the details. I was able to reproduce the bug on the following versions:
nightly 68.0a1 (2019-05-28) (64-bit)
release 66.0.5 (64-bit)
Beta 67.0b9 (64-bit)
I've chosen a component. If you consider that there's another component that's more proper for this case you may change it.
Best regards, Flor.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Jonathan, I'm not clear what happens when the privacy.userContext.* prefs for the contextual identities api are unset when an extension is disabled. Can you provide any insight into what is happening with the STR in comment 0?
Comment 3•6 years ago
|
||
Yeah we have had this before with Bug 1549013 and others.
The code in extensions essentially sets the prefs when there is only one addon https://searchfox.org/mozilla-central/rev/03853a6e87c4a9405fce1de49e5d03b9e7a7a274/toolkit/components/extensions/parent/ext-contextualIdentities.js#117-146
So when the last extension is removed, we reset these back to the browsers default which in stable is containers is disabled.
The ContextualIdentityService when it notices that the container enabled pref is changed to false, wipes all data: https://searchfox.org/mozilla-central/source/toolkit/components/contextualidentity/ContextualIdentityService.jsm#159-170
This is obviously heavy handed but Containers still aren't enabled in default which means when disabled we need to clear all data for them.
This is essentially a duplicate of Bug 1549204.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Lets leave this open and pursue a product decision on bug 1549204. If we enable for all users as suggested in bug 1549204 comment 7, then we'll dup this. If not, we should probably look at an additional flag on whether any extensions using the api are installed even if disabled. When the last is uninstalled, only then unset the pref that causes the data erasure.
Updated•6 years ago
|
I can trigger this bug with Multi-account containers, but I can’t reproduce it with Tab Center Reborn.
Updated•4 years ago
|
Comment 6•5 months ago
|
||
I cannot reproduce this bug anymore. Bug 1549204 probably fixed it.
Description
•