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:
parent
e021897954
commit
71bf046be4
@ -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);
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user