How To Wiki
Advertisement

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 warning[]

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 feature[]

  • 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 any more (but it does)

Script to manually disable in Debian or Ubuntu[]

  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. WARNING: there's at least two things wrong in that code, I'm too tired to fix it, so maybe don't use this until someone fixes it. If it does work, it will permanently delete your last session.
    6. Click the File menu and Save As
  3. Name the file DestroyFirefoxSession.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 DestroyFirefoxSession.sh file so that it can be executed (run)
    1. Right click on DestroyFirefoxSession.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 DestroyFirefoxSession.sh on your Desktop and double click.

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

  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

References[]

From HowTo Wiki, a Wikia wiki.

Advertisement