diff options
author | w | 2016-03-15 10:39:54 +0100 |
---|---|---|
committer | w | 2016-03-15 10:39:54 +0100 |
commit | 8ad9f2719abf04936135c55474e8c3b0277b1eb6 (patch) | |
tree | acafb8da929fd004126a7c8c0652d75b32e74093 /firefox-45-disable-location.services.mozilla.com.patch | |
parent | 827bc9a8ade3a4161ad6b6fecb464b3706d7b670 (diff) | |
download | aur-8ad9f2719abf04936135c55474e8c3b0277b1eb6.tar.gz |
Update to FF 45 ESR
Diffstat (limited to 'firefox-45-disable-location.services.mozilla.com.patch')
-rw-r--r-- | firefox-45-disable-location.services.mozilla.com.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/firefox-45-disable-location.services.mozilla.com.patch b/firefox-45-disable-location.services.mozilla.com.patch new file mode 100644 index 000000000000..42f25557ec75 --- /dev/null +++ b/firefox-45-disable-location.services.mozilla.com.patch @@ -0,0 +1,24 @@ +--- firefox-45.0esr.bak/toolkit/components/search/nsSearchService.js 2016-03-13 ++++ firefox-45.0esr/toolkit/components/search/nsSearchService.js 2016-03-13 +@@ -436,6 +436,10 @@ + return; + } + ++ // Prevent Firefox from contacting location.services.mozilla.com on a new profile ++ Services.prefs.setCharPref("browser.search.region", "US"); ++ return; ++ + // If we have 'isUS' but no 'countryCode' then we are almost certainly + // a profile from Fx 34/35 that set 'isUS' based purely on a timezone + // check. If this said they were US, we force region to be US. +@@ -522,6 +526,10 @@ + countryCode = Services.prefs.getCharPref("browser.search.countryCode"); + } catch(e) {} + ++ // No countryCode set, use US as default, don't contact location.services.mozilla.com ++ Services.prefs.setCharPref("browser.search.countryCode", "US"); ++ return; ++ + if (!countryCode) { + // We don't have it cached, so fetch it. fetchCountryCode() will call + // storeCountryCode if it gets a result (even if that happens after the |