+
+
+/* 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);