From 8b023b4699bf1a746b4c8422fb3ff55843d481a5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 5 Oct 2023 19:14:53 -0400 Subject: [PATCH] ui: set browser.tabs.closeWindowWithLastTab = true --- ui | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- 2.44.2