Bug 1414965 - Reset geo preferences for Firefox 57. r=florian

MozReview-Commit-ID: FukSW7TB4Av

--HG--
extra : rebase_source : e2e7da1305ec581f029123c1021f61dc1e858d02
This commit is contained in:
Michael Kaply 2017-11-06 16:01:34 -06:00
parent dc06fb21ec
commit 710efa953f

View File

@ -1745,7 +1745,7 @@ BrowserGlue.prototype = {
// eslint-disable-next-line complexity
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 57;
const UI_VERSION = 58;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
let currentUIVersion;
@ -2170,6 +2170,13 @@ BrowserGlue.prototype = {
}
}
if (currentUIVersion < 58) {
// With Firefox 57, we are doing a one time reset of the geo prefs due to bug 1413652
Services.prefs.clearUserPref("browser.search.countryCode");
Services.prefs.clearUserPref("browser.search.region");
Services.prefs.clearUserPref("browser.search.isUS");
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},