Created
March 28, 2017 17:09
-
-
Save TyDraniu/d654e2ef99a7e01e8e85b23f872b354e to your computer and use it in GitHub Desktop.
Checks the multiprocess compatibility of Firefox's addons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddonManager.getAddonsByTypes(["extension"], function (aAddons) { | |
var list = []; | |
aAddons.forEach(function (aAddon) { | |
if (aAddon.hidden == false) { | |
list.push(aAddon.name + ", E10 compatible: " + | |
(aAddon.multiprocessCompatible ? "Yes" : "No")); | |
} | |
}); | |
alert(list.join("\n")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The public Add-on Manager interfaces are documented on MDN:
https://developer.mozilla.org/en-US/Add-ons/Add-on_Manager
https://firefox-source-docs.mozilla.org/toolkit/mozapps/extensions/addon-manager/AddonManager.html
https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Add-on_Manager/Addon