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!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Wannan tattunawa ta zama daɗaɗɗiya. Yi sabuwar tambaya idan ka na bukatar taimako.

How to make Firefox ask before closing?

  • 3 amsoshi
  • 1 yana da wannan matsala
  • 1 view
  • Amsa ta ƙarshe daga 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

An gyara daga #367259

Mafitar da aka zaɓa

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.

Karanta wannan amsa a matsayinta 👍 0

All Replies (3)

more options

Zaɓi Mafita

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.