mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
[PALEMOON] about:plugins - fix "addMessageListener is not a function" (e10s off - revert bug 1068087 - partially)
This commit is contained in:
parent
56966712f2
commit
9eaa4561ac
1 changed files with 2 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue