View/Edit Firefox multi "container tab" configuration

User Help for Mozilla Firefox
Post Reply
dapgo
Posts: 15
Joined: November 12th, 2018, 7:09 am

View/Edit Firefox multi "container tab" configuration

Post by dapgo »

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.
dapgo
Posts: 15
Joined: November 12th, 2018, 7:09 am

Re: View/Edit Firefox multi "container tab" configuration

Post by dapgo »

After checking the last modified sqlite db files and other configuration files, i haven't find the relation among containers and cookies.

Any tip?
morat
Posts: 6393
Joined: February 3rd, 2009, 6:29 pm

Re: View/Edit Firefox multi "container tab" configuration

Post by morat »

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)
dapgo
Posts: 15
Joined: November 12th, 2018, 7:09 am

Re: View/Edit Firefox multi "container tab" configuration

Post by dapgo »

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?
dapgo
Posts: 15
Joined: November 12th, 2018, 7:09 am

Re: View/Edit Firefox multi "container tab" configuration

Post by dapgo »

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
User avatar
dickvl
Posts: 54137
Joined: July 18th, 2005, 3:25 am

Re: View/Edit Firefox multi "container tab" configuration

Post by dickvl »

Did you look at the containers.json file in the profile folder?
dapgo
Posts: 15
Joined: November 12th, 2018, 7:09 am

Re: View/Edit Firefox multi "container tab" configuration

Post by dapgo »

dickvl wrote:Did you look at the containers.json file in the profile folder?
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".
morat
Posts: 6393
Joined: February 3rd, 2009, 6:29 pm

Re: View/Edit Firefox multi "container tab" configuration

Post by morat »

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.

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}`);
          }
        });
      }
    }
  });

})();
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
Post Reply