為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

How can i make firefox to restore my tabs after a crash without prompting for it?

more options

Whenever firefox crashes it can restore tabs. But it does so with a prompt.

What i want is that firefox do not ask me to restore or start new session i want it to restore the tab without asking? i use firefox on linux Surprisingly its very hard to do.

Whenever firefox crashes it can restore tabs. But it does so with a prompt. What i want is that firefox do not ask me to restore or start new session i want it to restore the tab without asking? i use firefox on linux Surprisingly its very hard to do.

所有回覆 (3)

more options

For a single crash, Firefox will automatically restore the previous session without prompting. If multiple crashes occur, then you are presented with the prompt.

The above controls how many times Firefox will restore the previous session automatically.

  • toolkit.startup.max_resumed_crashes

The above controls the maximum number of times Firefox may crash at startup before it will start in Safe Mode automatically.

The above preferences only apply to crashes more recent than 6 hours. To edit the preferences, type about:config into the address bar, then press Enter.


If you haven't already, be sure to read the following article for help with the crashing problem.

more options

Thank you very much it now works like a charm. What happens if i put the value to 0?

I know the origin of the crash and i cannot help it. I use firefox on linux and when you shutdown linux without closing firefox it registers it as a crash. Its just that i am automating some processes on my computer when it starts up and it happens that firefox is in the process and that prompt for crash was kinda getting in the way of the process order.

由 Crisislord 於 修改

more options

Crisislord wrote:

Thank you very much it now works like a charm. What happens if i put the value to 0?

You're welcome. As explained in the article I linked to, that would cause the restore session prompt to always be displayed in case of a crash. What you want is -1 which would cause the prompt to never be displayed (for crashes that occured less than 6 hours prior).

Crisislord wrote:

I use firefox on linux and when you shutdown linux without closing firefox it registers it as a crash.

If Firefox is saying it crashed, then it was forcefully terminated. You should research a way to ensure it's gracefully closed on shutdown.
If it's not possible to tweak the shutdown process, then you could try running a command before shutdown instead. You're supposed to be able to close programs gracefully using wmctrl.

At the very least you should keep backups of your profile folder.