Bug 870112 - Migrate plugins.hide_infobar_for_missing_plugin to plugins.notifyMissingFlash r=dolske

This commit is contained in:
Christian Sonne
2013-05-08 17:20:20 -07:00
parent 3e7dd5da98
commit ed93f39533
3 changed files with 12 additions and 4 deletions

View File

@@ -1170,7 +1170,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 12;
const UI_VERSION = 13;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul#";
let currentUIVersion = 0;
try {
@@ -1363,6 +1363,14 @@ BrowserGlue.prototype = {
}
}
if (currentUIVersion < 13) {
try {
if (Services.prefs.getBoolPref("plugins.hide_infobar_for_missing_plugin"))
Services.prefs.setBoolPref("plugins.notifyMissingFlash", false);
}
catch (ex) {}
}
if (this._dirty)
this._dataSource.QueryInterface(Ci.nsIRDFRemoteDataSource).Flush();