Persistent Containers
Firefox extension to make containers persistent and sticky. New tabs inherit the container of the currently active tab.
Overview
By default, Firefox opens all new tabs and bookmarks in the "No Container" state, requiring users to manually sort tabs into their respective containers. Persistent Containers intercepts the creation of new tabs and automatically routes them into the same container as the currently active tab, mimicking the default behavior in Google Chrome browser.
Features
- When opening bookmarks and external links, intercepts the new tab into the current tab's container automatically.
- Opens new tabs/bookmarks right next to the current tab by default, maintaining your workflow context.
- Includes toolbar options to toggle whether new tabs open immediately next to the current tab or at the end of the tab row.
-
Use
Alt+Tto forcefully open a standard "No Container" tab, bypassing the extension's rules. - Safely ignores Private Browsing windows, session restores, and new window creations to prevent browser conflicts and memory leaks.
Usage
Once installed, the extension operates silently in the background. You can control its behavior using the following methods:
- Toolbar Menu: Click the Persistent Containers icon in your Firefox toolbar to access the settings menu. Here you can toggle the "Open next to current tab" preference.
-
Keyboard Commands:
-
Ctrl+T: Open a new tab in the current container. (default behavior) -
Alt+T: Open a new tab without a container. (Note: This shortcut can be customized in Firefox's Add-on settings).
-
-
Known Limitation:
This extension cannot distinguish When selecting "No Container" tab
Firefox creates the tab identically to a regular
Ctrl+T. The tab will be opened in the current container. UseAlt+Tto open a new tab without a container.
Permissions Used
This extension requires minimal permissions to function efficiently, keeping your data strictly local.
-
tabs: To monitor tab creation and manage tab URLs during routing. -
contextualIdentities: To read and assign container IDs (cookieStoreId) to new tabs. -
cookies: Required by Firefox's security model to programmatically create tabs inside isolated containers. -
storage: To save your settings and preferences locally in the browser memory.