Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
Log in
Preview of Container Tab Keeper

Container Tab Keeper by Rob McMillin

When a container extension like Facebook Container or Multi-Account Containers reopens a link in another container and closes your tab, this brings your original tab back with its history, right next to the new one.

0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Firefox container extensions such as Facebook Container and Multi-Account Containers (with "Always open this site in…" assignments) can't move a tab into a different container. When you click a link to an assigned site, they open it in a new container tab and close the tab you were on, so it looks like your back/forward history vanished.

This has been reported to Mozilla for years and is still open: bug 1610210, "Don't replace original tab when opening a new container" (https://bugzilla.mozilla.org/show_bug.cgi?id=1610210). The container extensions can't fix it on their own, because Firefox has no way to move a tab's history into another container. Until Firefox does, this add-on works around it.

Container Tab Keeper notices that close-and-reopen and immediately restores your original tab from Recently Closed Tabs, with its history intact, just to the left of the new container tab. It feels as if the link had simply opened in a new tab.

• Works with any container extension. It only watches tabs opening and closing and never touches your network requests.
• Leaves blank and new-tab pages alone, so typing facebook.com into a fresh tab doesn't leave an empty tab behind.
• If it isn't sure which closed tab to bring back, it does nothing.
• Options: which tab gets focus afterwards, which target containers to act on, how quickly the close and reopen must happen, and an optional toolbar badge.
• No data collection, no network access, no remote code.

Limitations: the restored page reloads, and scroll position and form contents come from Firefox's own session restore. Detection depends on timing, so a very slow container extension can be missed. If that happens, the Browser Console (Ctrl+Shift+J) shows why. Filter on "container-tab-keeper:".

Source code, documentation and issue tracker: https://github.com/scareduck/container-tab-keeper
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Access recently closed tabs
  • Access browser tabs

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Copy add-on ID
Version
1.0.2
Size
19.75 KB
Last updated
4 days ago (Nov 30, 2026)
Related Categories
  • Tabs
License
Mozilla Public License 2.0
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.