How to deal with Firefox extensions that require cookies

Some Firefox extensions require access to local storage and/or indexedDB, for instance to store data on the user device Firefox runs on.

These extensions may break if cookies are blocked. Extensions like uBlock Origin, uMatrix, or Stylus use the storage and thus require cookie permissions even if they don’t set cookies to work correctly.

While some come with fallbacks built-in to overcome this limitation, it is best to address this head on instead as indexedDB usage is usually the better option to whichever fallback solution is used otherwise.

firefox extensions cookies

The easiest way to get to the profile folder is to load about:support, and click on the show folder button on the page that opens.

You can check the storagedefault directory of the Firefox profile if extensions use indexedDB. If you have folders starting with moz-extension in there, you have extensions that use it and thus require cookie access. Note that the extensions are listed with their internal UUID and not their name. Note that the UUID is randomly assigned during installation. Means: if you uninstall and reinstall, or use the extension on multiple systems, it is different.

Firefox users have two options to address the issue:

  1. Allow first party cookies, and clean up cookies regularly or block cookies and storage.
  2. Keep the deny all setting, but use exceptions to allow extensions that need cookie access to use indexedDB storage to function properly.

Set cookie exceptions for extensions in Firefox

firefox cookie exceptions for extensions

  1. Load about:debugging in Firefox to get started. The page lists all system add-ons, and all installed extensions of the Firefox browser.
  2. Locate the browser extension that you want to add exceptions for. You find the internal UUID listed next to extensions that you have installed in the browser. This helps with the identification.
  3. Click on Manifest URL underneath the extension listing.
  4. Right-click on the page that opens, and select View Page Info from the context menu.
  5. Switch to the Permissions tab of the Page Info window.
  6. Locate Set Cookies in the list of permissions. Remove the checkmark from “use default”, and set it to allow instead.
  7. Repeat the process for any other extension that requires access to cookies.
  8. Restart Firefox.

Tip: You can manage cookie permissions under Options > Privacy & Security > History > use custom settings for history > Accept cookies from websites, Exceptions. You may use the prompt to add cookie exceptions as well. All that is required is to copy the entire folder name, replace the +++ with ://,  add it under “address of website” and set it to allow. (e.g. moz-extension+++23bf26fb-1c8d-40d3-b7c2-798882a0d55c to moz-extension://23bf26fb-1c8d-40d3-b7c2-798882a0d55c)

firefox whitelist cookies extensions

Additional information:

  • CCleaner detects extensions cookies but it makes no difference whether it cleans them or not as they get recreated automatically on the next start of the browser.

Closing Words

The Ghacks user.js file for Firefox blocks cookies by default. Users who apply it and run extensions that require cookies may run into issues afterwards. The article highlighted a method to overcome this without enabling first party cookies globally for all sites and extensions in the browser. (Thank you Pants)

Ghacks needs you. You can find out how to support us here or support the site directly by becoming a Patreon. Thank you for being a Ghacks reader.

The post How to deal with Firefox extensions that require cookies appeared first on gHacks Technology News.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.