This is an archived page. It's not actively maintained.

ExtensionManager (Toolkit)

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The ExtensionManager follows the nsIExtensionManager API.

Note: This API is obsolete starting in Gecko 2.0, and has been replaced by the new Add-on Manager.


Here is how to retrive all the extensions installed:

var em = Cc[';1']
const nsIUpdateItem = Ci.nsIUpdateItem;

var extension_type = nsIUpdateItem.TYPE_EXTENSION;
items = em.getItemList(extension_type, {});
items.forEach(function(item, index, array) {
    alert( + " / " + + " version: " + item.version);