This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Non-pinned tabs are not being restored when I restart the browser

  • 7 ردود
  • 1 has this problem
  • 7 views
  • آخر ردّ كتبه cor-el

more options

Okay, so I have the option set in Preferences -> General for "Restore previous session".

However, when I restart the browser, all my open tabs are lost EXCEPT for any pinned tabs.

Does anybody know why this would be?

Okay, so I have the option set in Preferences -> General for "Restore previous session". However, when I restart the browser, all my open tabs are lost EXCEPT for any pinned tabs. Does anybody know why this would be?

All Replies (7)

more options

In case you use "Clear history when Firefox closes".

  • do not clear the Browsing History
  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • clearing "Cookies" will remove all selected cookies including cookies with an allow exception you may want to keep

You can check for problems with the sessionstore.jsonlz4 file in the Firefox profile folder that stores session data.

  • delete sessionstore.jsonlz4 and sessionstore.js

When sessionstore.jsonlz4 is deleted you lose pinned-tabs and open tabs and you will have to recreate them, so if necessary make a note or bookmark them. sessionstore.jsonlz4 is only present in the Firefox profile folder when Firefox is closed.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

Note that on Mac closing Firefox can be more complicated because you can close all open windows, but keep Firefox running with the menu bar visible or minimized in the Doc.

Use one of these to close Firefox if you are currently doing that by clicking the close X on the Firefox Title bar.

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

> In case you use "Clear history when Firefox closes"

I don't.

> delete sessionstore.jsonlz4 and sessionstore.js

I looked in the profile folder and they weren't there. The fact that they were missing is indicative of the issue - if it's not saving my session, I'm guessing they won't be present.

more options

sessionstore.jsonlz4 is only present in the main profile folder in "AppData\Roaming" when Firefox is closed. When Firefox is running then files in the sessionstore-backups folder are used.

more options

Ok, so I've been doing some reading on this and I think I've just mis-understood how Firefox deals with restoring tabs.

Please tell me if this is correct...

  1. If you exit Firefox in Mac via the menu (i.e. Firefox -> Quit Firefox), it saves all your tabs.
  2. If you exit Firefox by any other means, it doesn't save your open tabs.

Is this right? This is different behaviour to what I'm used to (Chrome user before).

Also, why does Firefox (in the 2nd example), save pinned tabs?

more options

The pinned tabs are in the session history file, so the question is what else is in there...

Firefox remembers up to three closed windows. However, instead of using the same shortcut you use for re-opening the last closed tab, as in Chrome, you need to use a different shortcut, or the menu.

First, did Firefox restore your previous session? Check whether either of these are available (not hidden or grayed out):

  • "3-bar" menu button > Restore Previous Session
  • (menu bar) History > Restore Previous Session

If they are missing or grayed, then check for closed windows. Either:

  • "3-bar" menu button > Library > History > Recently Closed Windows
  • "Library" toolbar button > History > Recently Closed Windows
  • (menu bar) History > Recently Closed Windows

Does Firefox list them there?

more options

Each window has its own set of pinned tabs, so if you get the pinned tabs restored, but not unpinned tabs then this means the Restore Previous Session isn't enabled or isn't working properly, but sessions restore as such is working.

Your troubleshooting information list shows some tab related extensions with Undo Close Tab being enabled.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or userChrome.css is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window