X-Git-Url: http://gitweb.michael.orlitzky.com/?p=firefox-user-prefs.git;a=blobdiff_plain;f=ui;h=d5dd753b28b48c3fa9ff0f5b765a213432557ab8;hp=5a33a5e1fea87297aeb6e91e7d90ee9f20b99796;hb=refs%2Fheads%2Fmaster;hpb=99a64b748cfce0247d79aa8c10321a65375b9e82 diff --git a/ui b/ui index 5a33a5e..1049ee6 100644 --- a/ui +++ b/ui @@ -74,3 +74,35 @@ user_pref("permissions.default.shortcuts", 2); * */ user_pref("browser.link.open_newwindow.restriction", 0); + + +/* Open search results (from the search bar) in a new tab. + * + * If you're reading a page and want to (say) Ctrl-k to the search bar + * to look up a word, then you probably don't want the search results + * to overwrite the page you're in the middle of reading. This is the + * safe choice in any case. + * + * This setting does not affect searches from within the URL bar. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/954276 + * 2. https://support.mozilla.org/en-US/questions/1309754 + * + */ +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);