GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

7 results across 6 corpora for ExtensionInfo.

Encyclopedia 1

Extension:ExtensionInfo

MediaWiki extension

e01 Encyclopedia · CC0-1.0 · http://www.wikidata.org/entity/Q25929371

Developer library 6

management

/Add-ons/WebExtensions/manifest.json/permissions). Operations that don't provide access to other add-ons don't require this permission. ## Types - management.ExtensionInfo - : An 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()

Retrieves an ExtensionInfo object containing information about the calling add-on. This API _does not_ require the "management" [API permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions). This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax ```js-nolint let gettingSelf = browser.management.getSelf() ``` ### Parameters

ExtensionInfo

An `ExtensionInfo` object contains information about an add-on. ## Type It is an object with the following properties: - `description` - : `string`. The add-on's description, taken from the manifest.json [description](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/description) key. - `disabledReason` - : `string`. If the add-on is disabled, the reason it was disabled. One of "unknown" or "permissions_increa

management.get()

Retrieves an ExtensionInfo object containing information about the specified add-on. This API requires the "management" [API permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions). This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax ```js-nolint let gettingInfo = browser.management.get( id // string )

management.onDisabled

dListener syntax ### Parameters - `listener` - : The function called when this event occurs. The function is passed this argument: - `info` - : [`ExtensionInfo`](/docs/Mozilla/Add-ons/WebExtensions/API/management/ExtensionInfo): info about the add-on that was disabled. ## Examples Log the names of add-ons when they are disabled: ```js browser.management.onDisabled.addListener((info) => { console.lo

management.onUninstalled

dListener syntax ### Parameters - `listener` - : The function called when this event occurs. The function is passed this argument: - `info` - : [`ExtensionInfo`](/docs/Mozilla/Add-ons/WebExtensions/API/management/ExtensionInfo): info about the add-on that was uninstalled. ## Examples Log the names of add-ons when they are uninstalled: ```js browser.management.onUninstalled.addListener((info) => { c

JSON results · Services directory