2

For long time I've been using Firefox's "blacklist all cookies and whitelist only what I need". This feature seems to disappear in recent Firefox (57+). They allow either "block all third-party cookies" or "block all without whitelist".

Practical use case: I want to access Gmail and not be logged in during googling, so I previously had "mail.google.com" in whitelist, but "google.com" is still blocked, so I don't carry all Google cookies.

1 Answer 1

2

It looks like Mozilla may have removed that advanced option for managing cookies from the newer releases. Hopefully someone else can chime in with a way to restore that functionality. I couldn't find a way to do it, even in about:config.

There are two alternative methods that I use to achieve the same separation of sessions in Firefox:

  1. Private Browsing mode Control+Shift+P

  2. Using the Firefox Multi-Account Containers add-on

The Multi-Account Container add-on allows you to have virtually unlimited, simultaneous, isolated sessions in Firefox, each with separate cookies that persist when the whole browser window is closed. The main advantages over Private Browsing mode are that it:

  • won't sign you out of Google in a particular container after you close either its tab or the entire Firefox window. Each container tab behaves like a separate Firefox instance

  • allows you to have multiple sessions all in the same window, giving you almost the same experience as your previous solution that relied on cookie whitelisting. The only downside is that you would need to manually select the appropriate container for the task you were working on, although that quickly becomes second nature. You wouldn't open a regular tab for something you wanted to isolate, you would long-hold the tab button and choose the container you want to work within

  • the address bar shows a label, icon and color of your choosing for each container, so you always know which container you're using

Here's how it might look in your case:

enter image description here

I even hide the add-on's icon from the menu bar and just access it by doing a long-hold mouse click on the new tab button. This presents a context menu from the add-on that allows you to choose which container your cookies will be put in for the new tab you are opening:

enter image description here

enter image description here

I use both methods: Private Browsing works to exclude any occasional Google searches that I don't want cluttering my Google account's search history, while Multi-Account Containers allows me to sign in to the same site with multiple different accounts, all in the same window.

Personally, even if cookie whitelisting was still an option, I would still prefer to use Multi-Account Containers as it opens up so many new possibilities, such as being able to sign in to multiple accounts for the same site at the same time!

2
  • 1
    I always keep a tab with gmail opened, so I just opened it in separate container and cleaned all other google cookies. Such default behavior works for me in 99% case. Awesome, thanks!
    – dveim
    Aug 17, 2019 at 19:49
  • I'm glad it helps! Aug 17, 2019 at 19:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .