Bug 276318 - Context menu search does not obey browser.tabs.loadInBackground pref. patch by Gavin Sharp <gavin.sharp@gmail.com> r=mconnor

This commit is contained in:
mozilla.mano%sent.com 2005-02-06 21:07:09 +00:00
parent 1302f89c53
commit 1a1c09e363

View File

@ -2479,7 +2479,7 @@ function OpenSearch(tabName, searchStr, newTabFlag)
}
else {
var newTab = getBrowser().addTab(defaultSearchURL);
if (!pref.getBoolPref("browser.tabs.loadInBackground"))
if (!gPrefService.getBoolPref("browser.tabs.loadInBackground"))
getBrowser().selectedTab = newTab;
}
}