Bug 219532: Add pref to make search bar results always open in a new tab, patch by Chris Butcher <cbutcher@gmail.com>, r=mconnor

git-svn-id: svn://10.0.0.236/trunk@180473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2005-09-17 19:51:21 +00:00
parent e021897954
commit 71bf046be4
2 changed files with 5 additions and 1 deletions

View File

@ -213,6 +213,9 @@ pref("browser.search.order.Yahoo", "chrome://branding/content/searchc
// (note: must be a string representation of a float or it'll default to 0.0)
pref("browser.search.basic.min_ver", "0.0");
// search bar results always open in a new tab
pref("browser.search.openintab", false);
// send ping to the server to update
pref("browser.search.update", true);

View File

@ -323,7 +323,8 @@
} catch (ex) {}
}
var evt = aEvent || this.mEnterEvent;
SearchLoadURL(searchURL, (evt && evt.altKey));
var openInTab = this.prefService.getBoolPref("browser.search.openintab");
SearchLoadURL(searchURL, (evt && evt.altKey || openInTab));
]]></body>
</method>