summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-20 07:35:31 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-20 07:35:31 -0400
commita3a34dad182a65500beddac7470c843ce4daebd6 (patch)
treec0836ddb727e06561dde68d921d66df72fd9d7f5 /toolkit/components/search
parent60e2837156c3ce2325782d77784f2a34731ef2f4 (diff)
downloadUXP-a3a34dad182a65500beddac7470c843ce4daebd6.tar
UXP-a3a34dad182a65500beddac7470c843ce4daebd6.tar.gz
UXP-a3a34dad182a65500beddac7470c843ce4daebd6.tar.lz
UXP-a3a34dad182a65500beddac7470c843ce4daebd6.tar.xz
UXP-a3a34dad182a65500beddac7470c843ce4daebd6.zip
Remove browser.search.region usage. Tag #245.
Diffstat (limited to 'toolkit/components/search')
-rw-r--r--toolkit/components/search/current/nsSearchService.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/toolkit/components/search/current/nsSearchService.js b/toolkit/components/search/current/nsSearchService.js
index fd8c9140e..2ea9384f5 100644
--- a/toolkit/components/search/current/nsSearchService.js
+++ b/toolkit/components/search/current/nsSearchService.js
@@ -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) {