mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 870112 - Migrate plugins.hide_infobar_for_missing_plugin to plugins.notifyMissingFlash r=dolske
This commit is contained in:
parent
61a31e4493
commit
66a299bc03
@ -603,8 +603,8 @@ pref("accessibility.typeaheadfind.flashBar", 1);
|
||||
// plugin finder service url
|
||||
pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%");
|
||||
|
||||
// by default we show an infobar message when pages require plugins the user has not installed, or are outdated
|
||||
pref("plugins.hide_infobar_for_missing_plugin", false);
|
||||
// by default we show an infobar message when pages require plugins that are blocked, or are outdated
|
||||
pref("plugins.hide_infobar_for_blocked_plugin", false);
|
||||
pref("plugins.hide_infobar_for_outdated_plugin", false);
|
||||
|
||||
pref("plugins.update.url", "https://www.mozilla.org/%LOCALE%/plugincheck/");
|
||||
|
@ -935,7 +935,7 @@ var gPluginHandler = {
|
||||
return;
|
||||
|
||||
if (eventType == "PluginBlocklisted") {
|
||||
if (gPrefService.getBoolPref("plugins.hide_infobar_for_missing_plugin")) // XXX add a new pref?
|
||||
if (gPrefService.getBoolPref("plugins.hide_infobar_for_blocked_plugin"))
|
||||
return;
|
||||
|
||||
if (blockedNotification)
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user