From: Michael Orlitzky Date: Thu, 5 Oct 2023 23:14:53 +0000 (-0400) Subject: ui: set browser.tabs.closeWindowWithLastTab = true X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8b023b4699bf1a746b4c8422fb3ff55843d481a5;p=firefox-user-prefs.git ui: set browser.tabs.closeWindowWithLastTab = true --- diff --git a/ui b/ui index 4d5e63c..1049ee6 100644 --- a/ui +++ b/ui @@ -92,3 +92,17 @@ user_pref("browser.link.open_newwindow.restriction", 0); * */ user_pref("browser.search.openintab", true); + + +/* Don't close the window when the last tab closes. + * + * The behavior of Ctrl-W shouldn't be context-dependent, and + * surprise-quit is especially dangerous if Firefox is configured to + * delete your history when it closes. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/1205166 + * + */ +user_pref("browser.tabs.closeWindowWithLastTab", false);