#chrome.permissions
The permissions and host grants of the extension. Optional permissions and their prompt are not written yet: request and remove answer false.
Gate: no permission; contexts: Background, Popup, Tab. Source: api/ext_permissions.widl.
#Methods and properties
| Member | Result | Status | Gate | |
contains(optional Permissions permissions) | bool | host | | Whether every permission is in the manifest and every pattern is covered by a grant. |
getAll() | Permissions | host | | |
request(optional Permissions permissions) | bool | host | | |
remove(optional Permissions permissions) | bool | host | | |
#Events
| Event | Listener's parameters | Gate | |
onAdded | Permissions permissions | | |
onRemoved | Permissions permissions | | |
#Types
#Permissions
| Property | Type | |
permissions (optional) | string[] | |
origins (optional) | string[] | Match patterns. |
Edit this page on GitHub