Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Even though the "browser.ShowQuitWarning" is set to yes, firefox just immediately closes when I go to close it, and doesn't show the Save on Quit warning

  • 7 个回答
  • 36 人有此问题
  • 4 次查看
  • 最后回复者为 nightowl12

more options

I have tried toggling the yes/no for the browser.showQuitWarning on about:config

My current addons are: Bartab, Download Status Bar, Flashblock, Google Music Downloader, Movable Firefox Button, and Read it Later. Thanks!

I have tried toggling the yes/no for the browser.showQuitWarning on about:config My current addons are: Bartab, Download Status Bar, Flashblock, Google Music Downloader, Movable Firefox Button, and Read it Later. Thanks!

所有回复 (7)

more options

Make sure that you do not run Firefox in permanent Private Browsing mode.

  • https://support.mozilla.com/kb/Private+Browsing
  • You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
  • To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting Firefox will: Use custom settings for history
  • Deselect: [ ] "Permanent Private Browsing mode"
more options

Thanks for the reply! Unfortunately, that's not the problem, as I have it set to remember history. Thanks again

more options

Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.
Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows.
You can use "History > Restore Previous Session" to get the previous session at any time.
You may need to click the orange/gray Firefox button to see History.
There is also a "Restore Previous Session" button on the default about:home Home page.

Another possibility is to use:

more options

Thanks for the reply, I think all of us do not struggle with restoring our sessions, which now happens automatically as you correctly point out. The issue rather is that this AUTOMATIC behavior is not always wanted: I would rather have Firefox ask me upon quitting if indeed I wish the session to be restored the next time so that I may choose "NO" (and start with a blank session next time) or "YES" depending on the situation at hand. Until FF 6.0.1 the browser.showQuitWarning boolean did the job, but now seems to be ignored.

由blauvogel于修改

more options

Beyond the asking if I want to save my tabs, I find the warning box to be highly useful when I accidentally hit Command + Q on my mac.. when I was intending to hit Command + W (which is right next to Q) or Command + Tab (also next to Q). I liked that if I accidentally hit the Q, it would ask me before quitting.

more options

I recently came across this method to change that command to Shift+Ctrl+Q.

defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Firefox" = "@$Q";}'
more options

Don't forget the "browser.warnOnQuit" setting.

I also had this problem. Check your 'Startup' setting in Options > General. If it is set to "Show my windows and tabs from last time", then toggling the 'warning' settings won't make a difference.

Set it to "Show my home page" and you'll get the familiar message again.