Skip to main content

Manifest

A manifest contains information about the extension and is necessary for loading an extension.

TYPE
object

Properties

NAMETYPEDESCRIPTION
namestringThe name of the extension, limited to 45 characters
versionstringThe version number of the extension
manifest_versionnumberThe targeted manifest version
descriptionstringThe description of the extension, limited to 128 characters
iconstringAn optional path to the extensions icon
authorstringAn optional author to display for the extension
homepage_urlstringAn optional link to a home page for the extension
actionManifestActionAn optional action for this extension
background_urlstringAn optional url to load as a background script
permissionsManifestPermission[]An optional array of permissions to give to all iframes of your extension

Type Definitions

ManifestAction

The action definition for a manifest.

To control the action after an extension has been loaded see the Action API.

TYPE
object

Properties

NAMETYPEDESCRIPTION
titlestringThe initial title of the action
iconstringThe initial icon of the action
popoverstringThe url of the popover page to load
widthnumberAn optional max width for the popover
heightnumberAn optional max height for the popover

ManifestPermission

Permissions used with the iframe allow property of your extension and a reason why you need it.

TYPE
object

Properties

NAMETYPEDESCRIPTION
nameManifestPermissionNameThe name of the permission
reasonstringThe reason for use

ManifestPermissionName

The currently supported values available for a manifest permission

TYPEvalues
string"clipboard-write" | "clipboard-read" | "autoplay" | "bluetooth" | "camera" | "microphone" | "usb" | "display-capture" | "hid"