The Permissions interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions
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 permissionsMDN Reference