diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-12 10:18:25 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-12 10:18:25 +0200 |
commit | fd651c893ace0286f3a9a4714082778afa9c2306 (patch) | |
tree | ec652187d4857d1caea7fc82d6b90debc4fac3bd | |
parent | 70974f59f363282b802ffb0b5c855421ee62ec43 (diff) | |
download | UXP-fd651c893ace0286f3a9a4714082778afa9c2306.tar UXP-fd651c893ace0286f3a9a4714082778afa9c2306.tar.gz UXP-fd651c893ace0286f3a9a4714082778afa9c2306.tar.lz UXP-fd651c893ace0286f3a9a4714082778afa9c2306.tar.xz UXP-fd651c893ace0286f3a9a4714082778afa9c2306.zip |
[PALEMOON] about:plugins - fix "addMessageListener is not a function" (e10s off - revert bug 1068087 - partially)
-rw-r--r-- | toolkit/content/plugins.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/content/plugins.html b/toolkit/content/plugins.html index 84cbba596..d389f52dd 100644 --- a/toolkit/content/plugins.html +++ b/toolkit/content/plugins.html @@ -10,6 +10,7 @@ "use strict"; Components.utils.import("resource://gre/modules/Services.jsm"); + Components.utils.import("resource://gre/modules/AddonManager.jsm"); var Ci = Components.interfaces; var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Ci.nsIStringBundleService); @@ -57,7 +58,7 @@ */ navigator.plugins.refresh(false); - addMessageListener("PluginList", function({ data: aPlugins }) { + AddonManager.getAddonsByTypes(["plugin"], function (aPlugins) { var fragment = document.createDocumentFragment(); // "Installed plugins" @@ -209,8 +210,6 @@ document.getElementById("outside").appendChild(fragment); }); - - sendAsyncMessage("RequestPlugins"); </script> </div> </body> |