summaryrefslogtreecommitdiffstats
path: root/toolkit/content
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-12 08:04:39 -0400
committerGitHub <noreply@github.com>2018-04-12 08:04:39 -0400
commitfb337a69b484aca2240b7746627da445cc6e4e90 (patch)
tree113f9f6e08a04d92715d84f3566f4a4ac99455f1 /toolkit/content
parent706493af4e0f67bffdcc77a5c21fb26a0aa43afe (diff)
parentfd651c893ace0286f3a9a4714082778afa9c2306 (diff)
downloadUXP-fb337a69b484aca2240b7746627da445cc6e4e90.tar
UXP-fb337a69b484aca2240b7746627da445cc6e4e90.tar.gz
UXP-fb337a69b484aca2240b7746627da445cc6e4e90.tar.lz
UXP-fb337a69b484aca2240b7746627da445cc6e4e90.tar.xz
UXP-fb337a69b484aca2240b7746627da445cc6e4e90.zip
Merge pull request #124 from janekptacijarabaci/pm_about-plugins_1
about:plugins - fix "addMessageListener is not a function" (e10s off - revert bug 1068087 - partially)
Diffstat (limited to 'toolkit/content')
-rw-r--r--toolkit/content/plugins.html5
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>