Bug 1115440 - Don't rely on preference values for firefox. r=markh

This commit is contained in:
Hiroyuki Ikezoe 2014-12-29 13:43:30 -08:00
parent c6a10e7bb5
commit 5339f7076c

View File

@ -205,7 +205,11 @@ function isSubObjectOf(expectedObj, actualObj) {
// Expand the amount of information available in error logs
Services.prefs.setBoolPref("browser.search.log", true);
// Disable geoip lookups
// 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);
// But still disable geoip lookups - tests that need it will re-configure this.
Services.prefs.setCharPref("browser.search.geoip.url", "");
/**