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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

How can I stop Firefox 22 restoring my tabs from previous session instead of my home page?

  • 11 uphendule
  • 20 zinale nkinga
  • 3340 views
  • Igcine ukuphendulwa ngu smcc42

more options

I updated to Firefox 22 today and since then Firefox opens in the tabs from the previous session instead of my home page. This occurs no matter how I close Firefox. I am aware that this has happened in previous versions of Firefox(e.g. Firefox 20) and that a solution would be found in a future version. The solution has obviously not been found.

I have applied the suggested workaround, changing the preference for browser.sessionstore.resume_from_crash to false, with absolutely no effect. This workaround did work in versions 20 and 21.

Can anyone help?

All Replies (11)

more options

Go to Firefox > Options > General > Home Page and change the value to "Show my Home Page"

more options

Not really much help as this is already set to "Show my home page"! I had already checked that.

more options
more options

I seem to have solved the problem by altering this preference from true to false "user_pref("browser.sessionstore.resume_session_once", true) in the user.js file.

I cannot explain why this was reset by updating to Firefox 22.

more options

You can remove the user.js file as it shouldn't be there.

The user.js file is only present if you or other software has created it, so normally it wouldn't be there.

The user.js file is read on every start of Firefox and preferences set via this file will be set to the value specified in user.js on every start of Firefox and thus can only be changed temporarily for the current session.

more options

I have reset the value specified above and it has remained as I set it despite closing and re-opening Firefox several times and shutting down and rebooting the PC twice. Firefox now opens at my home page.

You suggest that the user.js file has to have been created by me or "other software". I can assure that I have never knowingly created such a file. Are you saying that, if I set preferences for Firefox, a user.js file is created? If this is the case, deleting the file will surely lead to the loss of all of my preferences.

Can you give me an example of the type of "other software" that might produce this file?

Okulungisiwe ngu smcc42

more options

No, Firefox will never create a user.js file, but an extension or other software (e.g. malware) that is installed on the computer can do this and in such a case you can't make changed to affected prefs permanently because Firefox will initialize them on each start with the settings in user.js

You can use this file yourself to initialize some settings to your preferred settings.
Then they will be restored automatically on a next start if you change them (temporarily) in a session.
The search engine in the search bar can be an example if you want to reset it to Google on each start, but regularly switch to other search engines.

more options

Thanks for your reply, which explains a lot. As I said, however, Firefox appears to have retained the change that I made to the preference and not restored the previous setting, suggesting that the change I made is not temporary.

If I delete the user.js file will my preferences be lost?

more options

nope just delete the file the actual prefs are in prefs.js, user.js is used for something else

Therefore: delete user.js

more options

No, Preferences that have been changed from the default are saved in the prefs.js file.

more options

Thanks for your help. User.js file duly deleted.