Bug 1208145 - Clear XUL persistence data for passwordManager.xul passwordCol.hidden. r=dolske

Bug 1121291 made @hidden persist but we are reverting that change so we need to remove the values so the password column doesn't always show by default.

--HG--
extra : commitid : 7WHEU1OHPgl
extra : rebase_source : fb7f791197c61b67fe50280bb5ce4371dc95caad
This commit is contained in:
Matthew Noorenberghe 2016-01-12 11:39:02 -08:00
parent ead3dd1fda
commit bde0328bab

View File

@ -1839,7 +1839,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 35;
const UI_VERSION = 36;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
let currentUIVersion = 0;
try {
@ -2189,6 +2189,12 @@ BrowserGlue.prototype = {
this._maybeMigrateTabGroups();
}
if (currentUIVersion < 36) {
xulStore.removeValue("chrome://passwordmgr/content/passwordManager.xul",
"passwordCol",
"hidden");
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},