After using container tab for a while, I feel that i don't have the control of this feature.
I have several containers configured on my Firefox and these container have information associated.
However, sometimes I was not very focused and I used the wrong one for specific task, so I don't know what webpage cookies are associated to each container.
In other words I would like to know where containers store their information, and how to edit this information in the most friendly way.
View/Edit Firefox multi "container tab" configuration
-
- Posts: 15
- Joined: November 12th, 2018, 7:09 am
-
- Posts: 15
- Joined: November 12th, 2018, 7:09 am
Re: View/Edit Firefox multi "container tab" configuration
After checking the last modified sqlite db files and other configuration files, i haven't find the relation among containers and cookies.
Any tip?
Any tip?
-
- Posts: 6404
- Joined: February 3rd, 2009, 6:29 pm
Re: View/Edit Firefox multi "container tab" configuration
I assume you are using the Basilisk browser, not Firefox. Try asking for help in the Pale Moon forum.
http://en.wikipedia.org/wiki/Goanna_(software)
http://en.wikipedia.org/wiki/Goanna_(software)
-
- Posts: 15
- Joined: November 12th, 2018, 7:09 am
Re: View/Edit Firefox multi "container tab" configuration
It is a generic question for Gecko/Goanna and Multi container extension (v4 and current v6).
In any browser I was able to find where the cookies are associated to a specific container.
In containers.json we have the containers and they have the attribute "userContextId": x(number)
I understand that in a configuration file we should find a cookie associated to x number. Right?
In any browser I was able to find where the cookies are associated to a specific container.
In containers.json we have the containers and they have the attribute "userContextId": x(number)
I understand that in a configuration file we should find a cookie associated to x number. Right?
-
- Posts: 15
- Joined: November 12th, 2018, 7:09 am
Re: View/Edit Firefox multi "container tab" configuration
After a new attempt of searching I found out the key thing; column originAttributes in cookies.sqlite database.
In this column sometimes there is a string like ^userContextId=6
In this column sometimes there is a string like ^userContextId=6
- dickvl
- Posts: 54145
- Joined: July 18th, 2005, 3:25 am
Re: View/Edit Firefox multi "container tab" configuration
Did you look at the containers.json file in the profile folder?
-
- Posts: 15
- Joined: November 12th, 2018, 7:09 am
Re: View/Edit Firefox multi "container tab" configuration
Yes, but this file has not much information. Just the name, icon and color. You can see the same information from Firefox menu "Manage containers".dickvl wrote:Did you look at the containers.json file in the profile folder?
-
- Posts: 6404
- Joined: February 3rd, 2009, 6:29 pm
Re: View/Edit Firefox multi "container tab" configuration
I can run the following code in the console in the Firefox Multi-Account Containers environment using the about:debugging page. The output shows the container objects and their associated cookies.
Here are the standard cookie store ids in the WebExtensions context.
* firefox-default (default container for normal tabs)
* firefox-container-1 (personal container)
* firefox-container-2 (work container)
* firefox-container-3 (banking container)
* firefox-container-4 (shopping container)
I guess the '^userContextId=1' value is for the personal container in the cookies.sqlite file.
Containers
http://wiki.mozilla.org/Security/Contex ... Containers
WebExtensions contextualIdentities
http://developer.mozilla.org/docs/Mozil ... Identities
WebExtensions cookies
http://developer.mozilla.org/docs/Mozil ... PI/cookies
Firefox Multi-Account Containers 6.1.0
Firefox 67.0.1
Windows 7 SP1 32-bit
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3049905
Code: Select all
(function () {
browser.cookies.getAllCookieStores().then(function (stores) {
for (var store of stores) {
if (store.id !== "firefox-default") {
browser.contextualIdentities.get(store.id).then(function (container) {
console.log(container);
});
browser.cookies.getAll({storeId: store.id}).then(function (cookies) {
for (var cookie of cookies) {
console.log(`${cookie.storeId}, domain: ${cookie.domain}, name: ${cookie.name}`);
}
});
}
}
});
})();
* firefox-default (default container for normal tabs)
* firefox-container-1 (personal container)
* firefox-container-2 (work container)
* firefox-container-3 (banking container)
* firefox-container-4 (shopping container)
I guess the '^userContextId=1' value is for the personal container in the cookies.sqlite file.
Containers
http://wiki.mozilla.org/Security/Contex ... Containers
WebExtensions contextualIdentities
http://developer.mozilla.org/docs/Mozil ... Identities
WebExtensions cookies
http://developer.mozilla.org/docs/Mozil ... PI/cookies
Firefox Multi-Account Containers 6.1.0
Firefox 67.0.1
Windows 7 SP1 32-bit
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3049905