Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

How can I get Firefox 5 Mac to warn me before quitting?

  • 5 trả lời
  • 6 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Using Firefox 4, a warning dialog was displayed before I quit the browser. This warning is essential to me since I work through a web application and risk losing work if I accidentally quit. I frequently use Cmd+W to close tabs, and Cmd+Q is an easy slip of the finger.

I have the following config settings:

browser.showQuitWarning = true browser.warnOnQuit = true

Is there any way to get the quit confirmation dialog back? Alternatively, as a workaround, is there any way to remap or disable the Cmd+Q shortcut?

Using Firefox 4, a warning dialog was displayed before I quit the browser. This warning is essential to me since I work through a web application and risk losing work if I accidentally quit. I frequently use Cmd+W to close tabs, and Cmd+Q is an easy slip of the finger. I have the following config settings: browser.showQuitWarning = true browser.warnOnQuit = true Is there any way to get the quit confirmation dialog back? Alternatively, as a workaround, is there any way to remap or disable the Cmd+Q shortcut?

Tất cả các câu trả lời (5)

more options

How can I get Firefox 5 Mac to warn me before quitting?

Restoring tabs from a lost session is now done after restarting through the History menu ("Alt+S") with "Restore previous session".

You can still have the old messages, to make sure you get your tabs restored immediately, but with or without the messages and whichever way you respond to the message you can still get back your previous session through the History menu.


You can make Firefox 5.0 look like Firefox 3.6.19, see numbered items 1-10 in the following topic Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 5.0, or 4.0.1, look like 3.6). Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.

more options

Restoring tabs is not the issue. I need the dialog box with the quit warning. Any unsaved work in the web application I use to work will be lost if I quit, and I cannot save my work until it is complete.

I do not get any quit warning dialog even though I have the settings exactly as specified in the linked document:

   browser.showQuitWarning user set boolean true
   browser.tabs.warnOnClose default boolean true
   browser.warnOnQuit default boolean true
   browser.warnOnRestart user set boolean true
more options

Giải pháp được chọn

more options

Thank you for the workaround, cor-el. I'm not the only user with this issue, so I hope that the developers will take notice and restore the option for a quit warning. This is not just about restoring/saving a session. There are some things that can't be restored, such as data entered into certain web applications.

more options

I keep the Ctrl+Q key disabled on Linux to avoid closing Firefox by accident as it is to easily to hit Ctrl+Q instead of Ctrl+W like you wrote.

Maybe this extension also works on a Mac:


Here is a modified version for the key_closeWindow and key_quitApplication shortcut keys.

<keyset id="mainKeyset">
	<key id="key_closeWindow"     removeelement="true"/>
	<key id="key_quitApplication" removeelement="true"/>
</keyset>

data:application/octet-stream;base64,
UEsDBBQAAAAIAKwgDz93972VTAAAAIUAAAAPABwAY2hyb21lLm1hbmlmZXN0VVQJAAPkfkhO5H5I
TnV4CwABBOkDAAAEZAAAAEvOzytJzSvhLCzNLNFNySxOTMpJ5UzOKMrPTdVPhsjp83LxcuWXpRbl
JFZCpaz09ZOK8suLU4vgiqB8vYrSHIQiZFPhKpEFQcp5uQBQSwMEFAAAAAgABiEPP4BUDUGQAQAA
HgMAAAsAHABpbnN0YWxsLnJkZlVUCQADjH9ITnl/SE51eAsAAQTpAwAABGQAAABtkstu2zAQRdc1
4H9gmV0AirRkNJEgKy0aZNVNA7RZ09LIJsqHSlKRk6L/Hr0Iy2121J1zOcM7yu9OSqJnsE4YvcOb
iOG7Yr1ar/LH+wfU17Tb4aP3TUZp13VRl0TGHugmTVPKYhrHxFY1cS/a8xPR7gpPngzUhU2ZVyEl
H70xY1sKajBe4b4Xyu/BlVY0vh8B8b1p/Q63VmezKRPaeS4lUVyLGpwfTSgHlYmq+N0KTyrh+F7C
59nxKjQMrXI6MQHXXEHxfWEYgVENyJxE0QcxFsN3qFfnUS9uQgTNJ4fwUEAPwkJtThhxXSH8VRoH
6EnoynQYuaOxvmz92GJ55Xr1YehSWuDe2KIS5a9nOVJBmomjUdDwA/x4/FbMOdfGtspF72WwpMNL
/EsDRTyWx+OwiI+E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