An ExtensionInfo object contains information about an add-on.
An ExtensionInfo object contains information about an add-on.
It is an object with the following properties:
descriptionstring. The add-on's description, taken from the manifest.json description key.
disabledReasonstring. If the add-on is disabled, the reason it was disabled. One of "unknown" or "permissions_increase".
enabledboolean. Whether or not the add-on is currently enabled.
homepageUrlstring. The add-on's homepage URL, taken from the manifest.json homepage_url key.
hostPermissionsarray of string. The add-on's host permissions.
iconsarray of object. Information about the add-on's icons. An array of objects, one for each icon. Each object contains two properties:
size: an integer representing the icon's width and height in pixels.url: a string containing a relative URL to the icon, starting at the add-on's root.idstring. The add-on's ID.
installTypestring. String describing how the add-on was installed. One of the following:
mayDisableboolean. Whether this add-on can be disabled or uninstalled by the user.
namestring. The add-on's name, taken from the manifest.json name key.
offlineEnabledboolean. Whether the add-on claims to support offline.
optionsUrlstring. URL for the item's options page, if it has one. This is a relative URL, starting at the add-on's root.
permissionsarray of string. The add-on's API permissions.
shortNamestring. A short version of the add-on's name, taken from the manifest.json short_name key.
typestring. String describing the type of add-on. This is used to distinguish extensions from apps and themes. It may take any of the following values:
updateUrlstring. URL for updates to this add-on, taken from the manifest.json browser_specific_settings key.
versionstring. Version of this add-on, taken from the manifest.json version key.
versionNamestring. Descriptive name for this add-on's version, taken from the manifest.json version_name key.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
ExtensionInfo |
Yes | 79 | 51 | ? | Yes | No | ? | ? | 51 | ? | No | ? |
disabledReason |
Yes | 79 | No | ? | Yes | No | ? | ? | No | ? | No | ? |
offlineEnabled |
Yes | 79 | No | ? | Yes | No | ? | ? | No | ? | No | ? |
type |
Yes | 79 | 55 | ? | Yes | No | ? | ? | 55 | ? | No | ? |
versionName |
Yes | 79 | No | ? | Yes | No | ? | ? | No | ? | No | ? |
Note: This API is based on Chromium's chrome.management API. This documentation is derived from management.json in the Chromium code.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/management/ExtensionInfo