Bug 1378108 - Part 3 - Migrate Firebug theme users to the light theme;r=Gijs

MozReview-Commit-ID: 9a8bNvMVAGr
This commit is contained in:
Brian Grinstead
2018-04-04 12:33:06 -07:00
parent 3ffee913fc
commit 01995e7f58

View File

@@ -1838,7 +1838,7 @@ BrowserGlue.prototype = {
// eslint-disable-next-line complexity
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 66;
const UI_VERSION = 67;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
let currentUIVersion;
@@ -2187,6 +2187,13 @@ BrowserGlue.prototype = {
this._migrateMatchBucketsPrefForUI66();
}
if (currentUIVersion < 67) {
// Migrate devtools firebug theme users to light theme (bug 1378108):
if (Services.prefs.getCharPref("devtools.theme") == "firebug") {
Services.prefs.setCharPref("devtools.theme", "light");
}
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},