Gets the current permission value for a specific permission and origin.
The name of the permission to query (e.g., "geolocation").
The manifest URI of the application.
The origin URI to check the permission for.
Whether the permission check is for a browser element.
The permission state (e.g., "allow", "deny", "prompt", "unknown").
Checks if a permission is explicitly set for a given origin.
The name of the permission to check.
The manifest URI of the application.
The origin URI to check.
Whether the check is for a browser element.
True if the permission is explicitly set, false otherwise.
Removes a permission setting.
Removing a permission is only allowed for pages with a different origin than the app and pages that have browserFlag=true, so remove() doesn't have a browserFlag parameter.
The name of the permission to remove.
The manifest URI of the application.
The origin URI to remove the permission from.
Sets the permission value for a specific permission and origin.
The name of the permission to set.
The value to set (e.g., "allow", "deny", "prompt").
The manifest URI of the application.
The origin URI to set the permission for.
Whether the permission setting is for a browser element.
Permissions
permissions
Preference
dom.mozPermissionSettings.enabled