Fandom

How To Wiki

How to disable Firefox's session restore crash recovery feature

1,795pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

You may find Firefox's session restore crash recovery feature annoying and not too useful. You can disable this feature fairly easily.

The Firefox crash recovery warningEdit

Firefox-resore-previous-session-crach-warning

You last Firefox session closed unexpectedly. You can restore the tabs and windows from your previous session, or start a new session if you think the problem was related to the pare you were viewing.
Start New Session,
Restore Session

Disabling crash recovery featureEdit

  • Open about:config in the Firefox location bar
  • Type browser.sessionstore.resume_from_crash in the filter box, or search for it manually iny
  • Double click
    browser.sessionstore.resume_from_crash
  • It should change from
    • browser.sessionstore.resume_from_crash default boolean true
      to
    • browser.sessionstore.resume_from_crash user_set boolean false
  • Close and restart Firefox, and it should not warn you anymore

Script to manually disable in Debian or UbuntuEdit

  1. create a new shell script file with a text editor of your choice (such as gedit)
  2. and add the following code to it: rm /home/USER/.mozilla/firefox/mwad0hks.default/sessionstore.js
    /opt/Firefox/Firefox
    1. open gedit
    2. paste "*rm /home/USER/.mozilla/firefox/mwad0hks.default/sessionstore.js
      /opt/Firefox/Firefox
      " into the new blank gedit window.
    3. Replace USER with your User Name
    4. or, substitute "/home/USER" with "~"
    5. Click the File menu and Save As
  3. Name the file Firefox.sh
    1. Save in folder: Drop down menu select: Desktop
    2. Save the file, then it on your Desktop.
  4. then, assign permissions to the new Firefox.sh file so that it can be executed (run)
    1. Right click on Firefox.sh and click Properties
    2. Click the Permissions Tab.
    3. Check the box next to Execute: Allow executing this file as program. Close
  5. run the script
    1. Find Firefox.sh on your Desktop and double click.

To have Firefox restore previous window after any closing of Firefox (crash or no crash)Edit

  1. Open the Firefox options panel.
    • (Windows) At the top of the Firefox window, click on the Tools menu, and select Options...
    • (Mac) On the menu bar, click on the Firefox menu, and select Preferences...
    • (Linux) At the top of the Firefox window, click on the Edit menu, and select Preferences...
  2. Click the Main icon
  3. From the When Firefox starts drop-down, select Show my windows and tabs from last time
  4. Click OK

link title

ReferencesEdit

From HowTo Wiki, a Wikia wiki.