Marketplace/Add-ons/Validation
From MozillaWiki
< Marketplace | Add-ons
Current stated support of chrome extension manifest spec can be found on https://wiki.mozilla.org/WebExtensions#Packaging_2.
However, the stated spec is not in sync with FxOS.
Contents
Manifest fields intersection
- Required: name, version
- Recommended: default_locale, description
- Single optional: browser_action
- Optional: background, content_scripts, permissions, web_accessible_resources
Also supported in Firefox OS 2.5
These fields are supported in Firefox OS 2.5, though not stated as supported by the WebExtensions wiki page:
- Recommended: icons
- Optional: author (mapped to developer.name)
Outstanding questions
- browser_action does this imply support for chrome.browserAction.*?
- background this feels like it's being replaced by event pages, even by Google.
- permissions are the permissions supported the same as the list for Chrome?
Marketplace validation of manifest directives
Bolded items mark more specificity than stated by Mozilla or Google (as of version 2). All validation as of launch can be found here.
Manifest fields
file
- valid zip file
- has manifest.json
json
- UTF-8 encoded json file
- valid json file
name
- required
- valid string
- 1 <= length <= 45
- must not consist of only whitespace characters
version
- required
- valid string
- format: max 3 dots separating max 4 integers, foreach integer:
- no leading zeros for non-zero values
- 0 <= int <= 65535
description
- optional
- length <= 132 chars
author
- optional
- 1 <= length <= 128 chars
icons
- optional
- must have 128 specified
- must be PNG
- must be square