Bug 261655 - Can't completely disable the new "Install Missing Plugins" infobar. r=mconnor, a=mconnor

This commit is contained in:
db48x@yahoo.com 2007-10-02 12:08:00 -07:00
parent 556991d5f5
commit a937be023c
2 changed files with 9 additions and 1 deletions

View File

@ -434,6 +434,9 @@ pref("plugin.default_plugin_disabled", true);
// 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%");
// by default we show an infobar message when pages require plugins the user has not installed
pref("plugins.hide_infobar_for_missing_plugin", false);
#ifdef XP_WIN
pref("browser.preferences.instantApply", false);
#else

View File

@ -1,4 +1,4 @@
# -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
# -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
@ -5053,6 +5053,11 @@ missingPluginInstaller.prototype.newMissingPlugin = function(aEvent){
false);
}
try {
if (gPrefService.getBoolPref("plugins.hide_infobar_for_missing_plugin"))
return;
} catch (ex) {} // if the pref is missing, treat it as false, which shows the infobar
var tabbrowser = getBrowser();
const browsers = tabbrowser.mPanelContainer.childNodes;