2
browser/base/content/browser.js | 21 +++++++++++++++++++++
3
1 file changed, 21 insertions(+)
5
Index: mozilla/browser/base/content/browser.js
6
===================================================================
7
--- mozilla.orig/browser/base/content/browser.js
8
+++ mozilla/browser/base/content/browser.js
9
@@ -5780,22 +5780,30 @@
12
missingPluginInstaller.prototype.installSinglePlugin = function(aEvent){
13
var missingPluginsArray = {};
15
var pluginInfo = getPluginInfo(aEvent.target);
16
missingPluginsArray[pluginInfo.mimetype] = pluginInfo;
18
+ gBrowser.selectedBrowser.addEventListener("NewPluginInstalled",
19
+ gMissingPluginInstaller.refreshBrowser,
22
if (missingPluginsArray) {
23
window.openDialog("chrome://mozapps/content/plugins/pluginInstallerWizard.xul",
24
"PFSWindow", "chrome,centerscreen,resizable=yes",
25
{plugins: missingPluginsArray, browser: gBrowser.selectedBrowser});
28
+ gBrowser.selectedBrowser.removeEventListener("NewPluginInstalled",
29
+ gMissingPluginInstaller.refreshBrowser,
32
aEvent.stopPropagation();
35
missingPluginInstaller.prototype.managePlugins = function(aEvent){
36
BrowserOpenAddonsMgr("plugins");
37
aEvent.stopPropagation();
40
@@ -5897,37 +5905,50 @@
42
// clear the plugin list, now that at least one plugin has been installed
43
browser.missingPlugins = null;
46
notificationBox.removeNotification(notification);
48
// reload the browser to make the new plugin show.
51
+ var pm = Components.classes["@mozilla.org/plugin/manager;1"]
52
+ .getService(Components.interfaces.nsIPluginManager);
53
+ pm.reloadPlugins(false);
55
+ // ... and reload the browser to activate new plugins available
59
function blocklistInfo()
61
var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
62
.getService(Components.interfaces.nsIURLFormatter);
63
var url = formatter.formatURLPref("extensions.blocklist.detailsURL");
64
gBrowser.loadOneTab(url, null, null, null, false, false);
68
function pluginsMissing()
70
// get the urls of missing plugins
71
var missingPluginsArray = gBrowser.selectedBrowser.missingPlugins;
72
+ gBrowser.selectedBrowser.addEventListener("NewPluginInstalled",
73
+ gMissingPluginInstaller.refreshBrowser,
75
if (missingPluginsArray) {
76
window.openDialog("chrome://mozapps/content/plugins/pluginInstallerWizard.xul",
77
"PFSWindow", "chrome,centerscreen,resizable=yes",
78
{plugins: missingPluginsArray, browser: gBrowser.selectedBrowser});
80
+ gBrowser.selectedBrowser.removeEventListener("NewPluginInstalled",
81
+ gMissingPluginInstaller.refreshBrowser,
85
var gMissingPluginInstaller = new missingPluginInstaller();
87
function convertFromUnicode(charset, str)
90
var unicodeConverter = Components