Gathering detailed insights and metrics for ffext-manifest-schema
Gathering detailed insights and metrics for ffext-manifest-schema
Gathering detailed insights and metrics for ffext-manifest-schema
Gathering detailed insights and metrics for ffext-manifest-schema
JSON Schema for manifest.json of Firefox WebExtensions.
npm install ffext-manifest-schema
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
110 Commits
1 Branches
1 Contributors
Updated on Aug 27, 2021
Latest Version
0.26.0
Package Id
ffext-manifest-schema@0.26.0
Unpacked Size
171.45 kB
Size
126.44 kB
File Count
7
NPM Version
6.14.13
Node Version
14.17.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
As for VS Code's workspace config, such as foo.code-workspace
{
"settings": {
"json.schemas": [
{
"fileMatch": ["*/path/to/manifest.json"],
"url": "./path/to/ffext.min.json",
}
]
}
}
Then you will get:
1$ npm run build -- --mozilla-repo /path/to/mozilla
//
commentOne-line comment is allowed (only Firefox?), but I can not specify it in the JSON Scheme.
default_locale
For default_locale
, to be mandatory or prohibited is conditional.
Its condition cannot be described in this JSON Schema, because it involves the existence of _locales
directory.
VS Code's validator does not discriminate objects inside oneOf
and result in that warning on background
or so.
1 { 2 "two different subschema cannot be discriminated." 3 "background": { 4 "oneOf": [ 5 { 6 "type": "object", 7 "properties": { 8 "page": { 9 "type": "number" 10 } 11 } 12 }, 13 { 14 "type": "object", 15 "properties": { 16 "scripts": { 17 "type": "array", 18 "items": { 19 "$ref": "#/definitions/ExtensionURL" 20 } 21 }, 22 "persistent": { 23 "$ref": "#/definitions/PersistentBackgroundProperty" 24 } 25 } 26 } 27 ] 28 } 29 }
c.f. Combining schemas — Understanding JSON Schema 7.0 documentation
format
may result in error or warningJSON Schema Document says "JSON Schema implementations are not required to implement this part of the specification, and many of them do not".
As for VS Code, validator seems to do nothing for format
.
So, this schema currently does nothing for it, and non-standard format
such as strictRelativeUrl
remains in.
c.f. string — Understanding JSON Schema 7.0 documentation
$id
does not workJSON Schema Document says "This functionality isn’t currently supported by the Python jsonschema library".
I do not know about VS Code's JSON Schema Validator, but anyway it does not handle $id
.
c.f. Structuring a complex schema — Understanding JSON Schema 7.0 documentation
For the case of string
type, it can have pattern
keyword.
JSON Schema does not handle it, and that results in RegExp error.
some useful staff.
API Implementation Basics — Mozilla Source Tree Docs 68.0a1 documentation
For experiments
.
API Schemas — Mozilla Source Tree Docs 68.0a1 documentation
This says "Refer to the documentation and examples at the JSON Schema site for details on how these items are defined in a schema".
But some items in API schema (e.g. choices
) does not match with specs of all versions like 4.0 or 7.0 currently (2019 March) on that site.
mozilla-central (or mozilla-beta or so)'s toolkit/components/extensions/Schemas.jsm
This module handles preprocess
, optional
or so.
MPL-2.0.
npm package includes json files. These contains contents which come from
json schema files of mozilla-central repository.
Some ones are under 3-Clause BSD License, others are under MPL-2.0 License.
Both are in License
directory.
2019-04-02 0.1.0
2019-04-28 0.2.0 chrome_settings_overrides
: search_url_get_params
, suggest_url_get_params
, search_form
2019-05-09 0.3.0 New captivePortal
Api. Deleted icons
of ThemeType
.
1545159
2019-05-19 0.4.0 fix: 10 permissions are not included.
downloads.open
, management
, nativeMessaging
, theme
, webRequestBlocking
, devtools
, menus.overrideContext
, activeTab
, tabs
, tabHide
2019-05-19 0.4.1 fix: again
2019-06-01 0.5.0 New: urlbar
API
1547285
2019-06-15 0.6.0 new edge
property of browser_specific_settings
1542351
2019-06-28 0.7.0 New: normandyAddonStudy.json 1522214
2019-07-05 No Release
topSites
API moved from toolkit/
to browser
2019-07-24 0.8.0 New: networkStatus
permission
1550605
2019-08-19 0.9.0 New: activityLog
permission
1542403
2019-09-12 0.10.0 New: memory
permission
1296898
2019-10-09 0.11.0 Removal: memory
permission
2019-11-01 (NO RELEASE) New: OnClickData
1405031
2019-11-04 0.12.0 Add: content_security_policy
may be { "extension_pages":xxxx, "content_scripts":xxxx }
1581609
2019-11-08 0.13.0 New property: l10n_resources
1457865
2019-11-16 0.14.0
Change: chrome_settings_overrides
: search_provider
: format of favicon_url
changed from url
to relativeUrl
1571110
2019-11-24 0.15.0
Removal: OnClickData
(fix for 2019-11-01 #1405031)
1595931
2020-01-31 0.16.0 New property: isolated_world
of content_security_policy
1594232
2020-03-05 0.17.0 New permission: privacy
1618399
2020-10-26 0.18.0 very many changes from April To October.
2021-01-23 0.19.0
content_scripts
and isolated_world
properties of content_security_policy
1594234suggest_url
of search_provider
property of chrome_settings_overrides
1687313
(You may see "Access Denied - You are not authorized to access bug 1687313. To see this bug, you must first log in to an account with the appropriate permissions.")2021-02-03 0.19.1 fix: some permissions are not included, e.g. activeTab
2021-02-06 No Update
nativeMessaging
became optional permission
16304152021-03-18 0.20.0 New: ftp
for protocol_handlers
2021-04-21 No Update
toolbar_field_separator
of colors
of ThemeType
17035902021-04-24 0.21.0 New: matrix
scheme of protocol
of ProtocolHandler
1688030
2021-05-02 No Update
chrome_settings_overrides
- search_provider.favicon_url
can be "strictRelativeUrl" on ManifestV3.
This has no effect because JSON Schema meta-spec (draft 7, and its validators) does not know Mozilla's "format"s.
1697059content_security_policy
has version specs(max_manifest_version
and min...
), but currently this Schema does not handle them.
Maybe draft 7's if-then-else
resolves this.
16960432021-05-15 0.22.0 New: object { resources: [string], matches: [string] }
array for web_accessible_resources
(ManifestV3)
1696580
1697334
2021-06-17 0.23.0 Rename: browserAction
API to action
API only on Manifest V3.
On Manifest V2, browserAction
API still remains.
This schema file does not handle whether Manifest V is 2 or 3.
So, the properties of both API are available.
1706398
2021-06-25 0.24.0 New: extensions
array for web_accessible_resources
(ManifestV3)
1711168
2021-07-08 0.25.0 Removed(0.24.0): : extensions
array for web_accessible_resources
(ManifestV3)
1711168
2021-07-26 0.26.0 New: host_permissions
for ManifestV3
1693385
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More