author | Thomas Nguyen <tnguyen@mozilla.com> |
Wed, 06 Sep 2017 11:06:20 +0800 | |
changeset 379671 | 30832c0f384d92e37d576b400c78d7093369a72c |
parent 379670 | 2f3ff7517e8448d3e3bc7434fcaaddd8006c9330 |
child 379672 | f41d54eddd16afdd6e6c9034e21ede3d4e3a398f |
push id | 32461 |
push user | kwierso@gmail.com |
push date | Fri, 08 Sep 2017 20:15:32 +0000 |
treeherder | mozilla-central@dd3736e98e4e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | francois |
bugs | 1395419 |
milestone | 57.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -1707,17 +1707,17 @@ BrowserGlue.prototype = { return; this._openPreferences("sync", { origin: "doorhanger" }); } this.AlertsService.showAlertNotification(null, title, body, true, null, clickCallback); }, // eslint-disable-next-line complexity _migrateUI: function BG__migrateUI() { - const UI_VERSION = 52; + const UI_VERSION = 53; const BROWSER_DOCURL = "chrome://browser/content/browser.xul"; let currentUIVersion; if (Services.prefs.prefHasUserValue("browser.migration.version")) { currentUIVersion = Services.prefs.getIntPref("browser.migration.version"); } else { // This is a new profile, nothing to migrate. Services.prefs.setIntPref("browser.migration.version", UI_VERSION); @@ -2085,16 +2085,29 @@ BrowserGlue.prototype = { if (currentUIVersion < 52) { // Keep old devtools log persistence behavior after splitting netmonitor and // webconsole prefs (bug 1307881). if (Services.prefs.getBoolPref("devtools.webconsole.persistlog", false)) { Services.prefs.setBoolPref("devtools.netmonitor.persistlog", true); } } + // Update user customizations that will interfere with the Safe Browsing V2 + // to V4 migration (bug 1395419). + if (currentUIVersion < 53) { + const MALWARE_PREF = "urlclassifier.malwareTable"; + if (Services.prefs.prefHasUserValue(MALWARE_PREF)) { + let malwareList = Services.prefs.getCharPref(MALWARE_PREF); + if (malwareList.indexOf("goog-malware-shavar") != -1) { + malwareList.replace("goog-malware-shavar", "goog-malware-proto"); + Services.prefs.setCharPref(MALWARE_PREF, malwareList); + } + } + } + // Update the migration version. Services.prefs.setIntPref("browser.migration.version", UI_VERSION); }, _checkForDefaultBrowser() { // Perform default browser checking. if (!ShellService) { return;