mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 727131: add pref to control whether searches from the context menu open in the background, r=dao
This commit is contained in:
parent
ee7d02bb70
commit
343141a53f
@ -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 });
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user