There are situations where you may want to use more than one account on a website. Meaning you want to use more than one cookie for a specific website. This can be achieved by using a Private Window or creating/cloning a new Firefox profile. I previously wrote about Firefox profile in a separate article. While you can use more than two cookies through Firefox profile, this also means managing multiple profiles (especially if you want to use more than four cookies).
Multi-Account Containers §
Firefox Multi-Account Containers feature offers an easy way to separate cookies (login sessions). It was first mentioned in blog.mozilla.org in June 2016. By tracing the
privacy.userContext.ui configs in previous Firefox versions, we can see the groundwork was laid in Firefox 44, albeit with limited functionality and there was no UI. UI was later landed in Firefox 50.
This feature could also be utilised to minimise cookie tracking, a form of web tracking, when used correctly. It does not stop cooking tracking by default, you need to manually separate certain websites to different containers. FYI, Firefox 67.0.1 onwards block third-party tracking cookie by default. iOS 12.2 and Safari 12.1 on macOS High Sierra and Mojave limit storage of tracking cookie to seven days. There are suggestions that its use is dwindling, but it’s not going away soon.
Anyway I digressed. Back to Container; the feature was later spun off as an extension, while the built-in feature is still being developed. As of writing (Firefox 68), the feature is still disabled by default, but we can easily enable it. Simply go to
privacy.userContext.enabled;true privacy.userContext.ui.enabled;true privacy.userContext.longPressBehavior;2
Once you enabled it, you should be able to access its setting from
about:preferences#containers. Here’s what the default settings look like:
The name, icon and colour are customisable.
There are two ways of using the Containers. We can open a link on a webpage in a specific container, by right-click → Open Link in New Container Tab.
We also can open a new container tab by long-pressing the plus (+) button, next to a tab.
Facebook Container §
There is a related extension, Facebook Container which is also made by Mozilla. It functions almost similarly, but specifically target Facebook’s cookies.
With this extension, Facebook cookie (your login session) is sent only when you are accessing Facebook.com, as first-party. The cookie is not sent outside of Facebook.com, even when the website is using Facebook’s resources. Meaning Facebook cookie is not used when Facebook.com is accessed as a third-party resource in another website. This sandbox feature also means Facebook comments would not work outside of Facebook.com.