Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

Ask for confirmation before quitting with tabs open

  • 3 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 7 προβολές
  • Τελευταία απάντηση από mbf82

more options

I use Firefox on macOS where, to close a tab, you use Cmd-W and Cmd-Q quits the program. W and Q are next to each other so I often accidentally press cmd-Q when I mean to close a tab.

In about:config I have browser.tabs.warnOnClose, browser.warnOnQuit and browser.showQuitWarning all set to true, but Cmd-Q still shows no warning. Reading some all blog post, this may be because I have session restore enabled, but restoring tab is not good enough as not everything is restored (for instance if you scrolled down on a page with infinite scrolling, like Twitter).

Before Firefox 57 I used an extension to ask for confirmation before closing but that extension is not compatible with Quantum.

Is there any way to get the warning again? Alternatively, any way to change the shortcut to close the app? (This may not be possible as Cmd-Q is a OS-wide shortcut with a partiuclar meaning on macOS.)

I use Firefox on macOS where, to close a tab, you use Cmd-W and Cmd-Q quits the program. W and Q are next to each other so I often accidentally press cmd-Q when I mean to close a tab. In about:config I have browser.tabs.warnOnClose, browser.warnOnQuit and browser.showQuitWarning all set to true, but Cmd-Q still shows no warning. Reading some all blog post, this may be because I have session restore enabled, but restoring tab is not good enough as not everything is restored (for instance if you scrolled down on a page with infinite scrolling, like Twitter). Before Firefox 57 I used an extension to ask for confirmation before closing but that extension is not compatible with Quantum. Is there any way to get the warning again? Alternatively, any way to change the shortcut to close the app? (This may not be possible as Cmd-Q is a OS-wide shortcut with a partiuclar meaning on macOS.)

Όλες οι απαντήσεις (3)

more options

Hello, goto about:config and set these both to true:

browser.tabs.warnOnClose browser.tabs.warnOnCloseOtherTabs

If this solved your problem, mark as solution so others can know how to fix this issue!

Τροποποιήθηκε στις από το χρήστη Mkll

more options

Mkll said

browser.tabs.warnOnClose browser.tabs.warnOnCloseOtherTabs

Both are already set.

more options

The best workaround I found is to use Cmd-Shift-Q for quit instead of the standard Cmd-Q:

To do this, use this in a terminal (all in one line): defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Firefox" = "@$Q";}'