Search Support

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

How do I close a window without it being restored when I start up Firefox?

  • 5 replies
  • 2 have this problem
  • 9 views
  • Last reply by Mars1

more options

I would like Firefox to restore my tabs when I start it up, but I do not want it to restore 5 random windows which I closed the day before. How do I close these windows so they stay closed and stop popping up every time I restart? Frequently, Firefox doesn't even open the window I closed last and actually wanted to keep. It is incredibly frustrating. Every time I start Firefox, I get a surprise selection of windows I had once closed.

All Replies (5)

more options

There are two things to check

  • 1

Type about:preferences#general<enter> in the address bar.

There are two settings;

  • When Firefox Starts

When the browser is started, what do you want to display. Many of us choose Show My Home Page.

  • Home Page

When a new page is opened, what do you want displayed.

  1. Use Current Page. Use what ever page(s) are open at that time.
  2. Use Bookmark
  3. Restore To Default. about:home shows a Mozilla home page with tools.

You can use any of these that you wish;

about:home (Firefox default home page), about:newtab (shows the sites most visited), about:blank (a blank page),

or you can enter any web page or about: page you want.


  • 2

You may have corrupt sessionstore file(s).

Type about:support in the address bar and press enter.

Under the page logo on the left side you will see Application Basics. Under this find Profile Folder. To it’s right press the button Show Folder. This will open your file browser to the current Firefox profile. Now Close Firefox.

Locate the sessionstore file(s). Then rename or delete it. Restart Firefox.

more options

During your session, Firefox updates the session history file(s) as often as every 15 seconds. It sounds as though yours might not be updating properly. Could you keep an eye on the file's date/time stamp and see whether it is getting updated? Here's where to look:

Open your current Firefox settings (AKA Firefox profile) folder using either

  • "3-bar" menu button > "?" button > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter

In the first table on the page, click the "Show Folder" button. This should launch a new window listing various files and folders in Windows Explorer.

Then double-click into the sessionstore-backups folder and find recovery.js which contains the windows and tabs in your live Firefox session. (Or if Firefox just crashed, your last session.)

As you open new tabs and windows, does this file get updated?

Also, the following are the other kinds of file you should see in this folder. If there are others, it could indicate a problem:

  • recovery.bak: a backup copy of recovery.js
  • previous.js: the windows and tabs in your last Firefox session
  • upgrade.js-build_id: the windows and tabs in the Firefox session that was live at the time of your last update

Note: By default, Windows hides the .js extension. To ensure that you are looking at the files I mentioned, I recommend showing all file extensions. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

more options

My startup preferences are set to 'Show my windows and tabs from last time' because I do want to see my tabs from last time.

I went into the firefox folder, closed firefox and deleted sessionstore.js, sessionstore.bak, and sessionstore.bak-20140923175406.

I restarted Firefox and 5 windows opened up.

I went into the sessionstore-backups folder and found recovery.js has a current timestamp. The only other files in the folder are previous.js recovery.bak and three versions of upgrade.js.

more options

While Firefox is running and you open/close tabs and close windows, is recovery.js updating?

more options

The date modified on the recovery.js file is updating to the current time. This happens irrespective of whether I open/close windows or tabs.