Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/management/getall/index.md
6580 views
------{{AddonSidebar()}}
Retrieves an array of {{WebExtAPIRef("management.ExtensionInfo", "ExtensionInfo")}} objects, one for each installed add-on.
Note that Google Chrome retrieves apps as well as add-ons. In Chrome you can distinguish apps from add-ons using the type property of {{WebExtAPIRef("management.ExtensionInfo", "ExtensionInfo")}}.
This API requires the "management" API permission.
This is an asynchronous function that returns a Promise.
Syntax
Parameters
None.
Return value
A Promise that will be fulfilled with an array of {{WebExtAPIRef("management.ExtensionInfo", "ExtensionInfo")}} objects, one for each installed add-on.
Browser compatibility
{{Compat}}
Examples
Log the name of all installed add-ons:
{{WebExtExamples}}
Note: This API is based on Chromium's
chrome.managementAPI. This documentation is derived frommanagement.jsonin the Chromium code.