The Permissions interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
Permissions
MDN Reference
The query() method of the Permissions interface returns the state of a user permission on the global scope.
query()
The
Permissionsinterface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.MDN Reference