MozillaZine

View/Edit Firefox multi "container tab" configuration

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

Post Posted May 16th, 2019, 8:45 am

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: 11
Joined: November 12th, 2018, 7:09 am

Post Posted May 20th, 2019, 2:28 am

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: 3247
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 20th, 2019, 1:26 pm

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: 11
Joined: November 12th, 2018, 7:09 am

Post Posted May 21st, 2019, 2:05 am

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: 11
Joined: November 12th, 2018, 7:09 am

Post Posted May 21st, 2019, 2:36 am

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

dickvl

User avatar
 
Posts: 52693
Joined: July 18th, 2005, 3:25 am

Post Posted May 21st, 2019, 2:54 pm

Did you look at the containers.json file in the profile folder?

dapgo
 
Posts: 11
Joined: November 12th, 2018, 7:09 am

Post Posted June 3rd, 2019, 6:59 am

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: 3247
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 4th, 2019, 7:57 pm

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/Contextual_Identity_Project/Containers

WebExtensions contextualIdentities
http://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities

WebExtensions cookies
http://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/cookies

Firefox Multi-Account Containers 6.1.0
Firefox 67.0.1
Windows 7 SP1 32-bit

Similar thread: viewtopic.php?f=38&t=3049905

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 12 guests