Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Closed-and-restored windows and containers

more options

Hello. I just closed by accident my main window so I restored it, but it apparently lost all the container data and restored all non-pinned tabs to the default container.

Is it normal, is it a bug or is it a yet-to-be feature?

It feels like a bug because pinned tabs (which were not present/open in the secondary window that stayed open when I accidentally closed the main one) where duly opened in their respective containers.

Hello. I just closed by accident my main window so I restored it, but it apparently lost all the container data and restored all non-pinned tabs to the default container. Is it normal, is it a bug or is it a yet-to-be feature? It feels like a bug because pinned tabs (which were not present/open in the secondary window that stayed open when I accidentally closed the main one) where duly opened in their respective containers.

被選擇的解決方法

I just realized that all lost containers were in fact temporary containers. When trying to reproduce the issue, normal (non-temporary) containers are not forgotten/lost. Even if temporary containers were set to disappear not before 15min after the last tab was closed, apparently closing the window did something which the add-on, Firefox or them both couldn't handle. Anyway, it's a specific add-on issue only, not a general Firefox one, so I'll close this post.

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

You should use one of these to close Firefox if you are currently doing that by clicking the close X on the Firefox Title bar, especially if you have multiple windows open to prevent losing tabs in unnoticed windows.

  • "3-bar" menu button -> Exit (Power button)
  • Windows: File -> Exit
  • Mac: Firefox -> Quit Firefox
  • Linux: File -> Quit

Did you check "History -> Recently Closed Tabs/Windows" to see if you could reopen the window with your pinned tabs ?

Pinned tabs are specific for each window.


Backup the session files in the sessionstore-backups folder in the Firefox profile folder to make sure not to lose possible important session data. Do NOT close Firefox when Firefox is already running.

You will normally find these files in the sessionstore-backups folder:

  • previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  • recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  • recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  • upgrade.jsonlz4-<build_id> (backup created during an upgrade of Firefox)

You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file with Firefox closed.

  • make sure to backup the current sessionstore.jsonlz4

You can check a recent upgrade.jsonlz4-<build_id> file and check whether this file has the lost pinned tabs. You can look at this tool to inspect a compressed jsonlz4 sessionstore file.

more options

Thank you for replying, cor-el. But my issue regards in-containers-tabs being restored out-of-any-container, and your answer doesn't mention containers at all.

Let's say I have these tabs in a window:

[Pinned][Container X] Site A [Pinned][Container Y] Site A [Non-pinned][Container Z] Site B [Non-pinned][Container W] Site B [Non-pinned][Container J] Site C [Non-pinned][Container K] Site D [Non-pinned][Container K] Site E [Non-pinned][Container Z] Site F

If I **accidentally** close that window (while having another window still open, of course), this is what Firefox restores when I tell it to restore that window:

[Pinned][Container X] Site A [Pinned][Container Y] Site A [Non-pinned][**no-container**] Site B [Non-pinned][**no-container**] Site B [Non-pinned][**no-container**] Site C [Non-pinned][**no-container**] Site D [Non-pinned][**no-container**] Site E [Non-pinned][**no-container**] Site F

This means, as I mentioned in my question, that **Firefox seems to lose container data for non-pinned tabs in (closed and) restored windows**. Is this a bug? Is is a temporary limitation yet to be solved by a upcoming feature? Is there a fix or workaround?

Thanks again.

EDIT: I just realized that all lost containers were in fact temporary containers. When trying to reproduce the issue, normal (non-temporary) containers are not forgotten/lost. Even if temporary containers were set to disappear not before 15min after the last tab was closed, apparently closing the window did something which the add-on, Firefox or them both couldn't handle. Anyway, it's a specific add-on issue only, not a general Firefox one, so I'll close this post.

由 cloudchasingfun 於 修改

more options

選擇的解決方法

I just realized that all lost containers were in fact temporary containers. When trying to reproduce the issue, normal (non-temporary) containers are not forgotten/lost. Even if temporary containers were set to disappear not before 15min after the last tab was closed, apparently closing the window did something which the add-on, Firefox or them both couldn't handle. Anyway, it's a specific add-on issue only, not a general Firefox one, so I'll close this post.