From 2f949f3cc05b011b1ebe84955e883399eda81db3 Mon Sep 17 00:00:00 2001 From: Philip Chee Date: Sat, 3 Jan 2015 04:26:06 +0800 Subject: [PATCH] Bug 1115575 Error: formatURLPref: Couldn't get pref: browser.search.geoip.url r=IanN --- suite/browser/browser-prefs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/suite/browser/browser-prefs.js b/suite/browser/browser-prefs.js index 3037977ac0..a0c5595ca1 100644 --- a/suite/browser/browser-prefs.js +++ b/suite/browser/browser-prefs.js @@ -126,6 +126,14 @@ pref("browser.search.update.interval", 21600); // enable search suggestions by default pref("browser.search.suggest.enabled", true); +// geoip end-point and timeout +// SeaMonkey note: we are using a dummy key "no-mozilla-api-key" as this +// Mozilla service currently doesn't use an API key. +pref("browser.search.geoip.url", "https://location.services.mozilla.com/v1/country?key=no-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); + // Smart Browsing prefs pref("keyword.enabled", true); // Override the default keyword.URL. Empty value means