]> gitweb.michael.orlitzky.com - firefox-user-prefs.git/commitdiff
ui: set browser.tabs.closeWindowWithLastTab = true
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 5 Oct 2023 23:14:53 +0000 (19:14 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 5 Oct 2023 23:14:53 +0000 (19:14 -0400)
ui

diff --git a/ui b/ui
index 4d5e63cc63ca212a6d52053857337563544ae769..1049ee6d24924fa229a1b9b79bc7b459a46eafc5 100644 (file)
--- 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);