Remove browser.search.region usage. Tag #245.

This commit is contained in:
Ascrod 2019-04-20 07:35:31 -04:00 committed by Roy Tam
commit f591aeb2fa
2 changed files with 1 additions and 17 deletions

View file

@ -3236,14 +3236,7 @@ SearchService.prototype = {
// Fallback to building a list based on the regions in the JSON
if (!engineNames || !engineNames.length) {
let region;
if (Services.prefs.prefHasUserValue("browser.search.region")) {
region = Services.prefs.getCharPref("browser.search.region");
}
if (!region || !(region in searchSettings)) {
region = "default";
}
engineNames = searchSettings[region]["visibleDefaultEngines"];
engineNames = searchSettings["default"]["visibleDefaultEngines"];
}
for (let name of engineNames) {