management
Get information about installed add-ons.
With themanagement API you can:
- get information about installed add-ons
- enable/disable add-ons
- uninstall add-ons
- find out which permission warnings are given for particular add-ons or manifests
- get notifications of add-ons being installed, uninstalled, enabled, or disabled.
Most of these operations require the "management"API permission. Operations that don't provide access to other add-ons don't require this permission.
In this article
Types
management.ExtensionInfoAn object that contains information about an installed add-on.
Functions
management.getAll()Returns information about all installed add-ons.
management.get()Returns information about a particular add-on, given its ID.
management.getSelf()Returns information about the calling add-on.
management.install()Installs a particular theme, given its URL ataddons.mozilla.org.
management.uninstall()Uninstalls a particular add-on, given its ID.
management.uninstallSelf()Uninstalls the calling add-on.
management.getPermissionWarningsById()Get the set of permission warnings for a particular add-on, given its ID.
management.getPermissionWarningsByManifest()Get the set of permission warnings that would be displayed for the given manifest string.
management.setEnabled()Enable/disable a particular add-on, given its ID.
Events
management.onInstalledFired when an add-on is installed.
management.onUninstalledFired when an add-on is uninstalled.
management.onEnabledFired when an add-on is enabled.
management.onDisabledFired when an add-on is disabled.
Example extensions
Browser compatibility
Note:This API is based on Chromium'schrome.management API. This documentation is derived frommanagement.json in the Chromium code.