зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123972 - Up search geo timeout to 3 seconds. r=florian
MozReview-Commit-ID: 71olvznwLrr --HG-- extra : rebase_source : 1e08f5b26f75e5431db513db988c8cd08158c687
This commit is contained in:
Родитель
ae89e5bb1b
Коммит
9465f77f90
|
@ -5356,9 +5356,7 @@ pref("browser.search.reset.enabled", false);
|
|||
pref("browser.search.reset.whitelist", "");
|
||||
pref("browser.search.geoSpecificDefaults", false);
|
||||
pref("browser.search.geoip.url", "https://location.services.mozilla.com/v1/country?key=%MOZILLA_API_KEY%");
|
||||
// NOTE: this timeout figure is also the "high" value for the telemetry probe
|
||||
// SEARCH_SERVICE_COUNTRY_FETCH_MS - if you change this also change that probe.
|
||||
pref("browser.search.geoip.timeout", 2000);
|
||||
pref("browser.search.geoip.timeout", 3000);
|
||||
|
||||
#ifdef MOZ_OFFICIAL_BRANDING
|
||||
// {moz:official} expands to "official"
|
||||
|
|
|
@ -344,7 +344,7 @@ if (!isChild) {
|
|||
// The geo-specific search tests assume certain prefs are already setup, which
|
||||
// might not be true when run in comm-central etc. So create them here.
|
||||
Services.prefs.setBoolPref("browser.search.geoSpecificDefaults", true);
|
||||
Services.prefs.setIntPref("browser.search.geoip.timeout", 2000);
|
||||
Services.prefs.setIntPref("browser.search.geoip.timeout", 3000);
|
||||
// But still disable geoip lookups - tests that need it will re-configure this.
|
||||
Services.prefs.setCharPref("browser.search.geoip.url", "");
|
||||
// Also disable region defaults - tests using it will also re-configure it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче