I am creating a WebExtension API which interacts with another extension/Add-on.
In Google Chrome, I have a running code snippet which actually indicates whether an extension is active/enabled or not.
function isEnabled(commPort) {
chrome.management.get(wcChromeExtensionID, function(extensionInfo) {
commPort.postMessage({replyName: "IsOriginalExtnEnabled", replyValue: extensionInfo.enabled});
});
}
In Chrome manifest I have provided [“management”] permission to achieve this functionality. But in Firefox I am unable to find such functionality. Can you guys please help me in this case?
- How can I interact with another extension?
- How to get information regarding an extension?
- Is the chrome.management APIs are available in Firefox or any replacement?