This module facilitates checking that required permissions are provided in the WebExtensions manifest.
- Source:
Methods
(static) check(options) → {boolean}
Check that the WebExtensions manifest includes specified API and origin permissions.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
Returns:
Whether the WebExtensions manifest includes the required WebExtensions API permissions, origin permissions, and Content Security Policy directives.
- Type
- boolean
(static) getManifestOriginMatchPatterns()
Retrieve the origin match patterns permitted by the extension manifest.
- Source:
Type Definitions
ContentSecurityPolicy
An object where keys are Content Security Policy directive names and values are arrays of directive values.
Type:
- Object
- Source:
Example
{
"script-src": [ "'self'", "www.example.com" ],
"object-src": [ 'self' ]
}