Firefox “Restore Previous Session” Greyed Out or Missing

Published by Nyau Wai Hoe - Updated on

There is a fairly common issue in Firefox on Windows 11 or 10 where, after a crash, a Windows restart or the browser simply being closed the wrong way, Firefox opens with none of your previous windows and tabs, and when you go to the History menu to get them back, “Restore Previous Session” is greyed out or not there at all.

Sometimes that just means Firefox already restored the session by itself, but it can also mean the session was never saved properly. The good news is that Firefox keeps a few backup copies of your session, so you can often still get your tabs back. This guide will show you how to check each cause and recover your lost tabs from those backups.

Also see: How to Reopen Closed Window or Tab in Mozilla Firefox

Firefox "Restore Previous Session" Greyed Out or Missing

Why is “Restore Previous Session” greyed out in Firefox?

The History menu item only works when Firefox has a saved session it hasn’t used yet. These are the usual reasons it doesn’t:

  • Firefox already restored the session at startup, for example when “Open previous windows and tabs” is on, or it has nothing saved to restore. The classic History menu (press Alt to show the menu bar) then shows the item greyed out, while the History panel under the menu button (three lines) doesn’t list it at all, which looks like it’s missing.
  • Firefox isn’t remembering history. With “Never remember history” or “Always use private browsing mode“, every window acts like a private window, and private windows are never saved or restored.
  • A policy is blocking it. Some antivirus or company tools add Firefox policies, and one of them can lock session restore.
  • The session file wasn’t saved properly. If Firefox crashed, was ended from Task Manager or the PC lost power, the latest session file may be missing or may not have your tabs.

Firefox History Restore previous session greyed out

Whatever the reason, don’t keep opening and closing Firefox while you try to get the tabs back. Every new start can replace an older session file, and that older file may be the one that still has your tabs.

Check “Recently Closed Windows” first

If only one of your windows came back, or the window was closed rather than the whole browser, it may still be in Firefox’s list of closed windows. Reopening it from there brings back the whole window with all of its tabs at once.

  1. Click the menu button (three lines) at the top-right of Firefox and select History.
  2. Click Recently Closed Windows and pick the window you lost. Ctrl + Shift + N reopens the last closed window too.Firefox History Recently closed windows

By default, Firefox keeps only your last 5 closed windows in this list, so check it before you close any more windows. If Recently Closed Windows is greyed out as well, there’s nothing in it, so go on to the backup files below.

Make sure Firefox is set to remember history

If Firefox is set not to keep history, it doesn’t save your session at all, so “Restore Previous Session” and the “Open previous windows and tabs” setting both stay greyed out.

  1. Open Firefox’s Settings (or type “about:preferences” in the address bar and press Enter).
  2. Go to Privacy and security and scroll down to History.
  3. Select “Remember history“. If you use “Customize history” instead, click “Choose what you want Firefox to remember” and make sure “Always use private browsing mode” is unticked.Firefox Remember history setting Privacy and Security
  4. Restart Firefox if it asks you to.

After that, browse for a bit, close Firefox normally and open it again to see if your tabs come back by themselves or History > Restore Previous Session works.

Check for a policy blocking session restore

If your history settings already look right, type “about:policies” in the address bar. When it lists active policies you didn’t set yourself, one of them may be blocking session restore, for example from an antivirus or a work or school setup.

Turn on “Open previous windows and tabs”

With this setting on, Firefox reopens your last session every time it starts, so you don’t have to depend on the History menu item at all.

  1. Open Firefox’s Settings and go to Home and startup.
  2. Under Startup, tick “Open previous windows and tabs“.Firefox Open previous windows and tabs Startup setting

From the next start on, your windows and tabs should come back by themselves, as long as Firefox was able to save them. With this on, “Restore Previous Session” stays greyed out or hidden because there’s nothing left to restore. That’s normal, not a sign that something is wrong.

Pro tip: How to Restart Firefox Browser Without Losing Tabs

Restore your tabs from a session backup file

Firefox keeps your last few saved sessions in a “sessionstore-backups” folder inside your profile, and you can put one of them back in place by hand. The files in it are:

  • recovery.jsonlz4 is the latest state Firefox saved while it was running, and recovery.baklz4 is the one before it.
  • previous.jsonlz4 is the session from the last time Firefox was closed normally.
  • upgrade.jsonlz4- followed by a long number is saved when Firefox updates.

To restore one of them:

  1. Type “about:support” in the address bar and press Enter.
  2. Next to Profile Folder, click Open Folder.Open Firefox profile folder from about:support
  3. Close Firefox completely. Check Task Manager to make sure no Firefox process is left running. The sessionstore.jsonlz4 file you’ll replace only exists while Firefox is closed.
  4. In the profile folder, open “sessionstore-backups“.Firefox sessionstore-backups folder recovery jsonlz4 files
  5. Copy the whole folder to your desktop first, so you have a safe copy whatever happens next.
  6. Look at the Date modified of each file and pick the newest one from before your tabs went missing. If one file is much smaller than the others, it’s probably mostly empty, so use a bigger one.
  7. Go back up one level to the profile folder itself (not inside sessionstore-backups). If there’s a file called sessionstore.jsonlz4, rename it to something like sessionstore-old.jsonlz4.
  8. Copy the backup file you picked into the profile folder and rename the copy to exactly sessionstore.jsonlz4. The name has to be exact, so if File Explorer hides file extensions on your PC, turn them on first.Rename Firefox session backup to sessionstore.jsonlz4
  9. Start Firefox. With “Open previous windows and tabs” on, your tabs should open by themselves. Otherwise, go to History > Restore Previous Session.

If the tabs still don’t come back, try the next older file. A file saved by a newer Firefox version, for example, may not load in an older one.

Might be useful: How to Show Hidden File Name Extensions in Windows 10 File Explorer

Pull the links out with Session History Scrounger

If no backup file restores properly, you can still pull the list of tabs out of one of them. Session History Scrounger is a free web page made by a long-time Firefox support volunteer that reads Firefox’s session files and lists the tabs of each window as links. The file is only read inside the page and isn’t sent anywhere.

  1. Go to https://www.jeffersonscher.com/ffu/scrounger.html in Firefox.
  2. Click Browse… and open a copy of the backup file (from the folder you copied to the desktop), then click Scrounge URLs.
  3. Scroll down to the list of windows and tabs it found, and reopen the ones you need or click Save List to keep them as a page.Session History Scrounger Firefox session file

Check that crash restore isn’t turned off

A setting in about:config called browser.sessionstore.resume_from_crash decides whether Firefox offers to restore your windows after a crash. It’s on (true) by default, and while it’s set to false, Firefox won’t offer anything after a crash.

  1. Type “about:config” in the address bar and press Enter.
  2. Click Accept the Risk and Continue.
  3. Search for browser.sessionstore.resume_from_crash.
  4. If it says false, click the toggle button at the end of the row to set it back to true.Firefox about:config browser.sessionstore.resume_from_crash true

Keep a backup of your tabs from now on

Many lost sessions come from Firefox not closing properly, so close it normally instead of ending it in Task Manager. When Firefox closes the normal way, it finishes saving your session first.

If you keep a lot of tabs open for weeks, an extension such as Tab Session Manager can save your windows and tabs every few minutes, so a crash costs you a few minutes at most. Tabs you really can’t lose are safer as bookmarks, which you can save for a whole window at once: How to Bookmark All Tabs in Firefox, Chrome or Edge.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 15 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.