为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.