June 3rd 2020
Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.
The Permissions API provides a consistent programmatic way to query the status of API permissions attributed to the current context. For example, the Permissions API can be used to determine if permission to access a particular API has been granted or denied.
Concepts and usage
object that provides access to the Permissions API functionality.
method to return a promise that resolves with the
for a specific API.
Not all APIs’ permission statuses can be queried using the Permissions API. Notable APIs that are Permissions-aware include:
More APIs will gain Permissions API support over time.
object from the main context and worker context respectively.
Provides the core Permission API functionality, such as methods for querying and revoking permissions.
Provides access to the current status of a permission, and an event handler to respond to changes in permission status.