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!

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

搜索 | 用户支持

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

详细了解

Firefox opens a single, blank tab in addition to my previous session on every startup

more options

This [previous question] previous question is archived, but it exactly describes and explains the problem: when only pinned tabs are open when Firefox closes, then on startup - when restoring the previous session is enabled - the previous session is restored and a new tab is created. This is annoying, so I "fixed" it:

https://gist.github.com/adeilt/6ed372f4d8a7c54f9df49a3ca1adc4b2

That's a gist of an html file that will automatically close the tab it's in. It does involve using about:config, so use appropriate caution. Just set that to be your "homepage" in the Firefox settings and the new tab will likely disappear before you even notice it. You can tweak the delay if it's not fast enough or you want to savor the impending doom of the offending tab.  :)

This [[https://support.mozilla.org/en-US/questions/1195017 previous question]] previous question is archived, but it exactly describes and explains the problem: when only pinned tabs are open when Firefox closes, then on startup - when restoring the previous session is enabled - the previous session is restored ''and'' a new tab is created. This is annoying, so I "fixed" it: https://gist.github.com/adeilt/6ed372f4d8a7c54f9df49a3ca1adc4b2 That's a gist of an html file that will automatically close the tab it's in. It does involve using about:config, so use appropriate caution. Just set that to be your "homepage" in the Firefox settings and the new tab will likely disappear before you even notice it. You can tweak the delay if it's not fast enough or you want to savor the impending doom of the offending tab. :)

由cor-el于修改

被采纳的解决方案

TL;DR: the original post contains a workaround for the problem. See above.

Thanks for the reply, but this doesn't solve my problem. The problem is reportedly a design decision in Firefox (according to a reply to the linked older question), so this is a workaround for anyone interested. I would have replied to the older question, but it's now archived despite not being solved.

I guess this question will be open until a solution is accepted, so I'll see if I can accept this reply as a "solution".

定位到答案原位置 👍 0

所有回复 (2)

more options

You can check that those pages aren't set as multiple homepages.

You can check the homepage setting in "Settings -> Home".

Firefox supports multiple homepages separated by '|' (pipe) symbols.

有帮助吗?

more options

选择的解决方案

TL;DR: the original post contains a workaround for the problem. See above.

Thanks for the reply, but this doesn't solve my problem. The problem is reportedly a design decision in Firefox (according to a reply to the linked older question), so this is a workaround for anyone interested. I would have replied to the older question, but it's now archived despite not being solved.

I guess this question will be open until a solution is accepted, so I'll see if I can accept this reply as a "solution".

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题