搜尋 Mozilla 技術支援網站

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

了解更多

Close browser by closing last tab

  • 5 回覆
  • 8 有這個問題
  • 5 次檢視
  • 最近回覆由 Kocayine

more options

I would like my browser to close when I close the last tab. I tried browser.tabs.closeWindowWithLastTab;true but when rightclicking the last tab, "close" is grayed out.

I would like my browser to close when I close the last tab. I tried browser.tabs.closeWindowWithLastTab;true but when rightclicking the last tab, "close" is grayed out.

被選擇的解決方法

Back to Chrome then, thanks.

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

所有回覆 (5)

more options

(deleted by moderator)

由 cor-el 於 修改

more options

woops sorry wrong copypasta, what i meant to say was have you tried turning it off and on again

more options

You can't close the last tab via the right-click context menu or via a middle-click if browser.tabs.closeWindowWithLastTab is true.
If the pref is false then you can close the tab, but not the window.

You can only close the last tab and window via the Ctrl+W shortcut.
Via the menu only Quit or Exit is available unless you open the File menu via the Alt+F shortcut and then you see Close Tab.

more options

選擇的解決方法

Back to Chrome then, thanks.

more options

did u try my sugestion