зеркало из https://github.com/mozilla/gecko-dev.git
Bug 727131: add pref to control whether searches from the context menu open in the background, r=dao
This commit is contained in:
Родитель
5ec08ca632
Коммит
56598d7510
|
@ -357,6 +357,9 @@ pref("browser.search.order.3", "chrome://browser-region/locale/re
|
|||
// search bar results always open in a new tab
|
||||
pref("browser.search.openintab", false);
|
||||
|
||||
// context menu searches open in the foreground
|
||||
pref("browser.search.context.loadInBackground", false);
|
||||
|
||||
// send ping to the server to update
|
||||
pref("browser.search.update", true);
|
||||
|
||||
|
|
|
@ -3555,10 +3555,11 @@ const BrowserSearch = {
|
|||
if (!submission)
|
||||
return;
|
||||
|
||||
let inBackground = Services.prefs.getBoolPref("browser.search.context.loadInBackground");
|
||||
openLinkIn(submission.uri.spec,
|
||||
useNewTab ? "tab" : "current",
|
||||
{ postData: submission.postData,
|
||||
inBackground: false,
|
||||
inBackground: inBackground,
|
||||
relatedToCurrent: true });
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче