mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Bug 261655 - Can't completely disable the new "Install Missing Plugins" infobar. r=mconnor, a=mconnor
This commit is contained in:
parent
556991d5f5
commit
a937be023c
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user