Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Firefox fails to restore session after crash or task manager quit.

  • 4 réponses
  • 5 ont ce problème
  • 4 vues
  • Dernière réponse par JMJimmy

more options

In FF 3.6 I had it configured so that when I closed the program normally all history/etc was cleared. If I closed the program via the task manager (or when FF crashed/Windows shut it down) it would save my session and offer to restore it upon re-loading the program. This was especially useful when FF would stop responding/become slow due to memory leaks. This feature does not work since I updated to FF15.

I've read the kb article, checked similar questions for possible solutions, etc. Nothing seems to make the "restore previous session" available to me. I don't get the "this is embarrassing" page, the option under "History" to restore previous session is greyed out, and about:home doesn't offer the option.

These are my about:config settings:

browser.sessionstore.enabled;true browser.sessionstore.interval;15000 browser.sessionstore.max_resumed_crashes;1 browser.sessionstore.max_tabs_undo;5 browser.sessionstore.max_windows_undo;3 browser.sessionstore.postdata;-1 browser.sessionstore.privacy_level;0 browser.sessionstore.privacy_level_deferred;1 browser.sessionstore.restore_hidden_tabs;false browser.sessionstore.restore_on_demand;true browser.sessionstore.restore_pinned_tabs_on_demand;false browser.sessionstore.resume_from_crash;true browser.sessionstore.resume_session_once;false services.sync.prefs.sync.browser.sessionstore.restore_on_demand;true

In FF 3.6 I had it configured so that when I closed the program normally all history/etc was cleared. If I closed the program via the task manager (or when FF crashed/Windows shut it down) it would save my session and offer to restore it upon re-loading the program. This was especially useful when FF would stop responding/become slow due to memory leaks. This feature does not work since I updated to FF15. I've read the kb article, checked similar questions for possible solutions, etc. Nothing seems to make the "restore previous session" available to me. I don't get the "this is embarrassing" page, the option under "History" to restore previous session is greyed out, and about:home doesn't offer the option. These are my about:config settings: browser.sessionstore.enabled;true browser.sessionstore.interval;15000 browser.sessionstore.max_resumed_crashes;1 browser.sessionstore.max_tabs_undo;5 browser.sessionstore.max_windows_undo;3 browser.sessionstore.postdata;-1 browser.sessionstore.privacy_level;0 browser.sessionstore.privacy_level_deferred;1 browser.sessionstore.restore_hidden_tabs;false browser.sessionstore.restore_on_demand;true browser.sessionstore.restore_pinned_tabs_on_demand;false browser.sessionstore.resume_from_crash;true browser.sessionstore.resume_session_once;false services.sync.prefs.sync.browser.sessionstore.restore_on_demand;true

Toutes les réponses (4)

more options

When using "Clear history when Firefox closes" do not clear the "Browsing History" because in that case Firefox won't restore tabs from the previous session (tabs are considered as history, so that prevails).

more options

By doing that it won't clear the history when closed normally (which is what I want). Firefox is supposed to be able to distinguish between a normal close and a forced close/crash.

ie: when I'm done using Firefox I want my browsing history to be deleted. when firefox crashes I want it to restore my session

more options

If you force Firefox to close and Firefox isn't able to clear the recent history then Firefox notices that and does it on the next start instead.

Firefox creates this pref on a successful shutdown:

  • user_pref("privacy.sanitize.didShutdownSanitize", true);

There is also this pref:

  • privacy.clearOnShutdown.sessions

I don't know what it is meant for.

Modifié le par cor-el

more options

privacy.clearOnShutdown.sessions is the same thing as your first answer. When you toggle Tools > Options > Privacy: History: [X] Clear history when Firefox closes > Settings that's the setting it changes to false.

Is there any way of preventing FF from clearing recent history on start so I can actually restore a session when FF crashes/hangs?