搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 4 回覆
  • 5 有這個問題
  • 4 次檢視
  • 最近回覆由 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

所有回覆 (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.

由 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?