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

搜索 | 用户支持

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

详细了解

Firefox doesn't warn me when I close last window with multiple tabs

  • 11 个回答
  • 1 人有此问题
  • 8 次查看
  • 最后回复者为 McCoy

more options

I get a warning if I close multiple tabs in Firefox *except* if it's the last window. I've already tried setting all of these to true, and there was no change: browser.showQuitWarning browser.tabs.warnOnClose browser.tabs.warnOnCloseOtherTabs browser.warnOnQuit

I get a warning if I close multiple tabs in Firefox *except* if it's the last window. I've already tried setting all of these to true, and there was no change: browser.showQuitWarning browser.tabs.warnOnClose browser.tabs.warnOnCloseOtherTabs browser.warnOnQuit

所有回复 (11)

more options

You could check the value of this preference :

browser.tabs.closeWindowWithLastTab

由McCoy于修改

more options

It's set to "true"

more options

sugarcookie said

It's set to "true"

Would you change the value to "false"  ?

(don't forget to close and restart Firefox, in order for the change to take effect)

more options

I tried that and I'm still experiencing the issue.

more options

Actually it is not a issue, it is the standard behaviour for 1 tab.

more options

sugarcookie said

I tried that and I'm still experiencing the issue.

It doesn't have to be a problem :

By default, when Firefox starts, a single window is opened, displaying your specified home page. If you wish, you can configure Firefox to open all windows and tabs from your previous session :

3-bar menu (or Tools) => Options => General => under 'Startup':

check 'Restore previous session'.

more options

Note that Firefox won't warn when you use "Restore Previous Session", so if you currently use this choice then select another.

more options

cor-el said

Note that Firefox won't warn when you use "Restore Previous Session", so if you currently use this choice then select another.

As the OP says :

" warning if I close multiple tabs in Firefox *except* if it's the last window "

I assume that the "Restore Previous Session" is unchecked.

'Suggesting to check it as an option to get previous session back, even after closing the last window inadvertently.

more options

I do have "restore previous session" checked, but it has always warned me on the last window even with that option checked. This behavior is new after an update.

If this is just how Firefox functions now, then I would suggest it's a bug rather than by design. Why would one thing negate the other? I want to restore my session and I want to be warned when closing multiple tabs.

more options

In response to pkshadow - there were multiple tabs open, not just one.

more options

sugarcookie said

I do have "restore previous session" checked, but it has always warned me on the last window even with that option checked. This behavior is new after an update. If this is just how Firefox functions now, then I would suggest it's a bug rather than by design. Why would one thing negate the other? I want to restore my session and I want to be warned when closing multiple tabs.

You get the warning, in case you'd accidentally close all windows/tabs and lose your previous session.

When you check "Restore previous session" you won't need the warning.

I think it's weird that you had the option checked and yet got the warning - I have no explanation for it.