An
ExtensionInfo
object contains information about an add-on.
It is an object with the following properties:
description
string
. The add-on's description, taken from the manifest.json
description
key.
disabledReason
string
. If the add-on is disabled, the reason it was disabled. One of "unknown" or "permissions_increase".
enabled
boolean
. Whether or not the add-on is currently enabled.
homepageUrl
string
. The add-on's homepage URL, taken from the manifest.json
homepage_url
key.
hostPermissions
array
of
string
. The add-on's
host permissions
.
icons
array
of
对象
. 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.
id
string
. The add-on's ID.
installType
string
. String describing how the add-on was installed. One of the following:
mayDisable
boolean
. Whether this add-on can be disabled or uninstalled by the user.
名称
string
. The add-on's name, taken from the manifest.json
name
key.
offlineEnabled
boolean
. Whether the add-on claims to support offline.
optionsUrl
string
. URL for the item's
options page
, if it has one. This is a relative URL, starting at the add-on's root.
permissions
array
of
string
. The add-on's
API permissions
.
shortName
string
. A short version of the add-on's name, taken from the manifest.json
short_name
key.
type
string
. 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:
updateUrl
string
. URL for updates to this add-on, taken from the manifest.json
应用程序
key.
version
string
. Version of this add-on, taken from the manifest.json
version
key.
versionName
string
. Descriptive name for this add-on's version, taken from the manifest.json
version_name
key.
BCD tables only load in the browser
注意:
This API is based on Chromium's
chrome.management
API. This documentation is derived from
management.json
in the Chromium code.
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
最后修改: , 由 MDN 贡献者