Bug 1184045 - Enable region specific search defaults, r=markh.

This commit is contained in:
Florian Quèze 2015-07-15 21:17:35 +02:00
Родитель 21cf24a3d8
Коммит 1b4b660dd8
4 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -407,7 +407,7 @@ pref("browser.search.order.3", "chrome://browser-region/locale/re
// This is disabled globally, and then enabled for individual locales
// in firefox-l10n.js (eg. it's enabled for en-US).
pref("browser.search.geoSpecificDefaults", false);
pref("browser.search.geoSpecificDefaults.url", "");
pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla.com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%");
// US specific default (used as a fallback if the geoSpecificDefaults request fails).
pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Yahoo");

Просмотреть файл

@ -59,6 +59,8 @@
// desired side-effect of preventing our geoip lookup.
branch.setBoolPref("browser.search.isUS", true);
branch.setCharPref("browser.search.countryCode", "US");
// Prevent the geoSpecificDefaults XHR by emptying the URL.
branch.setCharPref("browser.search.geoSpecificDefaults.url", "");
// Make sure SelfSupport doesn't hit the network.
branch.setCharPref("browser.selfsupport.url", "https://%(server)s/selfsupport-dummy/");

Просмотреть файл

@ -269,7 +269,7 @@ pref("browser.search.order.3", "chrome://browser/locale/region.properties");
// This is disabled globally, and then enabled for individual locales
// in firefox-l10n.js (eg. it's enabled for en-US).
pref("browser.search.geoSpecificDefaults", false);
pref("browser.search.geoSpecificDefaults.url", "");
pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla.com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%");
// US specific default (used as a fallback if the geoSpecificDefaults request fails).
pref("browser.search.defaultenginename.US", "chrome://browser/locale/region.properties");

Просмотреть файл

@ -5,7 +5,7 @@
},
"global": {
"talos_repo": "https://hg.mozilla.org/build/talos",
"talos_revision": "67dbdddb880f"
"talos_revision": "8a61f8d21fc0"
},
"extra_options": {
"android": [ "--apkPath=%(apk_path)s" ]