搜尋 Mozilla 技術支援網站

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

Learn More

How to make Firefox ask before closing?

  • 3 回覆
  • 1 有這個問題
  • 983 次檢視
  • 最近回覆由 cor-el

more options

in about:config page the options: browser.tabs.warnOnClose (true - default) browser.tabs.warnOnCloseOtherTabs (true - default) browser.sessionstore.warnOnQuit (false - default) browser.warnOnQuit true (true - default)

But when i do Ctrl+q accidentally, it closes the only Firefox window i have. This window has many tabs open. Yes it restore next time, but i want FF to ask me before closing it.

FF 84.0.1 Arch Linux

in about:config page the options: browser.tabs.warnOnClose (true - default) browser.tabs.warnOnCloseOtherTabs (true - default) browser.sessionstore.warnOnQuit (false - default) browser.warnOnQuit true (true - default) But when i do Ctrl+q accidentally, it closes the only Firefox window i have. This window has many tabs open. Yes it restore next time, but i want FF to ask me before closing it. FF 84.0.1 Arch Linux

由 #367259 於 修改

被選擇的解決方法

It appears that all 4 config. options mentioned in OP has to be set to true. In my case the one that was false was: browser.sessionstore.warnOnQuit Developers should fix this and let this option be true by default.

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

選擇的解決方法

It appears that all 4 config. options mentioned in OP has to be set to true. In my case the one that was false was: browser.sessionstore.warnOnQuit Developers should fix this and let this option be true by default.

more options

There is a checkbox in "Options/Preferences -> General -> Startup" for the browser.sessionstore.warnOnQuit pref.

  • Warn you when quitting the browser
more options

Firefox 87+ versions have a pref to disable Ctrl+Q to close Firefox.

  • browser.quitShortcut.disabled = true

You need to close and restart Firefox after toggling this pref.