webext-schema 5.6.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +13 -0
- package/.github/workflows/node.js.yml +31 -0
- package/eslint.config.mjs +52 -0
- package/modules/browser.js +5 -5
- package/modules/common.js +7 -7
- package/modules/schema.js +3 -4
- package/modules/update.js +0 -9
- package/package.json +17 -19
- package/schemas/beta/webext.json +41 -166
- package/schemas/central/webext.json +35 -206
- package/schemas/mail/mailext.json +325 -97
- package/test/browser.test.js +3040 -0
- package/test/commander.test.js +134 -0
- package/test/common.test.js +120 -0
- package/test/constant.test.js +34 -0
- package/test/file/test 2.cmd +2 -0
- package/test/file/test 2.sh +2 -0
- package/test/file/test.cmd +2 -0
- package/test/file/test.js +1 -0
- package/test/file/test.sh +2 -0
- package/test/file/test.txt +1 -0
- package/test/file-util.test.js +370 -0
- package/test/index.test.js +13 -0
- package/test/mocha/setup.js +40 -0
- package/test/schema.test.js +1280 -0
- package/test/update.test.js +1022 -0
- package/types/modules/browser.d.ts +5 -5
- package/types/modules/common.d.ts +5 -5
- package/types/modules/update.d.ts +0 -1
- package/schemas/esr/webext.json +0 -21462
- package/schemas/release/webext.json +0 -22485
|
@@ -6447,6 +6447,12 @@
|
|
|
6447
6447
|
],
|
|
6448
6448
|
"description": "The tab's new favicon URL. This property is only present if the extension's manifest includes the <code>\"tabs\"</code> permission."
|
|
6449
6449
|
},
|
|
6450
|
+
"groupId": {
|
|
6451
|
+
"type": "integer",
|
|
6452
|
+
"optional": true,
|
|
6453
|
+
"minimum": -1,
|
|
6454
|
+
"description": "The tab's new group ID. $(ref:tabGroups.TAB_GROUP_ID_NONE) (-1) if the tab no longer belongs to a tab group."
|
|
6455
|
+
},
|
|
6450
6456
|
"hidden": {
|
|
6451
6457
|
"type": "boolean",
|
|
6452
6458
|
"optional": true,
|
|
@@ -9116,6 +9122,11 @@
|
|
|
9116
9122
|
"optional": true,
|
|
9117
9123
|
"description": "The JavaScript world for a script to execute within. Defaults to \"ISOLATED\"."
|
|
9118
9124
|
},
|
|
9125
|
+
"cssOrigin": {
|
|
9126
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
9127
|
+
"optional": true,
|
|
9128
|
+
"description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
|
|
9129
|
+
},
|
|
9119
9130
|
"cookieStoreId": {
|
|
9120
9131
|
"choices": [
|
|
9121
9132
|
{
|
|
@@ -12564,7 +12575,8 @@
|
|
|
12564
12575
|
"user",
|
|
12565
12576
|
"author"
|
|
12566
12577
|
],
|
|
12567
|
-
"description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet."
|
|
12578
|
+
"description": "The origin of the CSS to inject, this affects the cascading order (priority) of the stylesheet.",
|
|
12579
|
+
"preprocess": "stringToLowerCase"
|
|
12568
12580
|
},
|
|
12569
12581
|
{
|
|
12570
12582
|
"id": "InjectDetails",
|
|
@@ -12606,6 +12618,7 @@
|
|
|
12606
12618
|
"cssOrigin": {
|
|
12607
12619
|
"$ref": "CSSOrigin",
|
|
12608
12620
|
"optional": true,
|
|
12621
|
+
"default": "author",
|
|
12609
12622
|
"description": "The css origin of the stylesheet to inject. Defaults to \"author\"."
|
|
12610
12623
|
}
|
|
12611
12624
|
}
|
|
@@ -12824,7 +12837,8 @@
|
|
|
12824
12837
|
"memory",
|
|
12825
12838
|
"tracing",
|
|
12826
12839
|
"sandbox",
|
|
12827
|
-
"flows"
|
|
12840
|
+
"flows",
|
|
12841
|
+
"jssources"
|
|
12828
12842
|
]
|
|
12829
12843
|
},
|
|
12830
12844
|
{
|
|
@@ -13503,7 +13517,7 @@
|
|
|
13503
13517
|
},
|
|
13504
13518
|
{
|
|
13505
13519
|
"id": "ExtensionInstallType",
|
|
13506
|
-
"description": "How the extension was installed
|
|
13520
|
+
"description": "How the extension was installed.<dl><dt>development</dt><dd>The extension was loaded unpacked in developer mode,</dd><dt>normal</dt><dd>The extension was installed normally via an .xpi file</dd><dt>sideload</dt><dd>The extension was installed by other software on the machine</dd><dt>admin</dt><dd>The extension was installed by policy</dd><dt>other</dt><dd>The extension was installed by other means.</dd></dl>",
|
|
13507
13521
|
"type": "string",
|
|
13508
13522
|
"enum": [
|
|
13509
13523
|
"development",
|
|
@@ -13854,8 +13868,7 @@
|
|
|
13854
13868
|
"manifest_version": {
|
|
13855
13869
|
"type": "integer",
|
|
13856
13870
|
"minimum": 2,
|
|
13857
|
-
"maximum": 3
|
|
13858
|
-
"postprocess": "manifestVersionCheck"
|
|
13871
|
+
"maximum": 3
|
|
13859
13872
|
},
|
|
13860
13873
|
"applications": {
|
|
13861
13874
|
"$ref": "DeprecatedApplications",
|
|
@@ -14552,6 +14565,9 @@
|
|
|
14552
14565
|
"optional": true,
|
|
14553
14566
|
"default": false
|
|
14554
14567
|
}
|
|
14568
|
+
},
|
|
14569
|
+
"additionalProperties": {
|
|
14570
|
+
"$ref": "UnrecognizedProperty"
|
|
14555
14571
|
}
|
|
14556
14572
|
}
|
|
14557
14573
|
},
|
|
@@ -14698,6 +14714,11 @@
|
|
|
14698
14714
|
"$ref": "ExtensionURL"
|
|
14699
14715
|
}
|
|
14700
14716
|
},
|
|
14717
|
+
"css_origin": {
|
|
14718
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
14719
|
+
"default": "author",
|
|
14720
|
+
"optional": true
|
|
14721
|
+
},
|
|
14701
14722
|
"js": {
|
|
14702
14723
|
"type": "array",
|
|
14703
14724
|
"optional": true,
|
|
@@ -16600,6 +16621,7 @@
|
|
|
16600
16621
|
"aarch64",
|
|
16601
16622
|
"arm",
|
|
16602
16623
|
"ppc64",
|
|
16624
|
+
"riscv64",
|
|
16603
16625
|
"s390x",
|
|
16604
16626
|
"sparc64",
|
|
16605
16627
|
"x86-32",
|
|
@@ -16976,7 +16998,7 @@
|
|
|
16976
16998
|
],
|
|
16977
16999
|
"returns": {
|
|
16978
17000
|
"$ref": "Port",
|
|
16979
|
-
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port
|
|
17001
|
+
"description": "Port through which messages can be sent and received. The port's $(ref:runtime.Port.onDisconnect) event is fired if the extension/app does not exist. "
|
|
16980
17002
|
}
|
|
16981
17003
|
},
|
|
16982
17004
|
{
|
|
@@ -17632,6 +17654,10 @@
|
|
|
17632
17654
|
"items": {
|
|
17633
17655
|
"$ref": "manifest.ExtensionURL"
|
|
17634
17656
|
}
|
|
17657
|
+
},
|
|
17658
|
+
"cssOrigin": {
|
|
17659
|
+
"$ref": "extensionTypes.CSSOrigin",
|
|
17660
|
+
"optional": true
|
|
17635
17661
|
}
|
|
17636
17662
|
}
|
|
17637
17663
|
}
|
|
@@ -17840,203 +17866,6 @@
|
|
|
17840
17866
|
{
|
|
17841
17867
|
"id": "StorageArea",
|
|
17842
17868
|
"type": "object",
|
|
17843
|
-
"functions": [
|
|
17844
|
-
{
|
|
17845
|
-
"name": "get",
|
|
17846
|
-
"type": "function",
|
|
17847
|
-
"description": "Gets one or more items from storage.",
|
|
17848
|
-
"async": "callback",
|
|
17849
|
-
"parameters": [
|
|
17850
|
-
{
|
|
17851
|
-
"name": "keys",
|
|
17852
|
-
"choices": [
|
|
17853
|
-
{
|
|
17854
|
-
"type": "string"
|
|
17855
|
-
},
|
|
17856
|
-
{
|
|
17857
|
-
"type": "array",
|
|
17858
|
-
"items": {
|
|
17859
|
-
"type": "string"
|
|
17860
|
-
}
|
|
17861
|
-
},
|
|
17862
|
-
{
|
|
17863
|
-
"type": "object",
|
|
17864
|
-
"description": "Storage items to return in the callback, where the values are replaced with those from storage if they exist.",
|
|
17865
|
-
"additionalProperties": {
|
|
17866
|
-
"type": "any"
|
|
17867
|
-
}
|
|
17868
|
-
}
|
|
17869
|
-
],
|
|
17870
|
-
"description": "A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in <code>null</code> to get the entire contents of storage.",
|
|
17871
|
-
"optional": true
|
|
17872
|
-
},
|
|
17873
|
-
{
|
|
17874
|
-
"name": "callback",
|
|
17875
|
-
"type": "function",
|
|
17876
|
-
"description": "Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17877
|
-
"parameters": [
|
|
17878
|
-
{
|
|
17879
|
-
"name": "items",
|
|
17880
|
-
"type": "object",
|
|
17881
|
-
"additionalProperties": {
|
|
17882
|
-
"type": "any"
|
|
17883
|
-
},
|
|
17884
|
-
"description": "Object with items in their key-value mappings."
|
|
17885
|
-
}
|
|
17886
|
-
]
|
|
17887
|
-
}
|
|
17888
|
-
]
|
|
17889
|
-
},
|
|
17890
|
-
{
|
|
17891
|
-
"name": "getBytesInUse",
|
|
17892
|
-
"unsupported": true,
|
|
17893
|
-
"type": "function",
|
|
17894
|
-
"description": "Gets the amount of space (in bytes) being used by one or more items.",
|
|
17895
|
-
"async": "callback",
|
|
17896
|
-
"parameters": [
|
|
17897
|
-
{
|
|
17898
|
-
"name": "keys",
|
|
17899
|
-
"choices": [
|
|
17900
|
-
{
|
|
17901
|
-
"type": "string"
|
|
17902
|
-
},
|
|
17903
|
-
{
|
|
17904
|
-
"type": "array",
|
|
17905
|
-
"items": {
|
|
17906
|
-
"type": "string"
|
|
17907
|
-
}
|
|
17908
|
-
}
|
|
17909
|
-
],
|
|
17910
|
-
"description": "A single key or list of keys to get the total usage for. An empty list will return 0. Pass in <code>null</code> to get the total usage of all of storage.",
|
|
17911
|
-
"optional": true
|
|
17912
|
-
},
|
|
17913
|
-
{
|
|
17914
|
-
"name": "callback",
|
|
17915
|
-
"type": "function",
|
|
17916
|
-
"description": "Callback with the amount of space being used by storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17917
|
-
"parameters": [
|
|
17918
|
-
{
|
|
17919
|
-
"name": "bytesInUse",
|
|
17920
|
-
"type": "integer",
|
|
17921
|
-
"description": "Amount of space being used in storage, in bytes."
|
|
17922
|
-
}
|
|
17923
|
-
]
|
|
17924
|
-
}
|
|
17925
|
-
]
|
|
17926
|
-
},
|
|
17927
|
-
{
|
|
17928
|
-
"name": "getKeys",
|
|
17929
|
-
"type": "function",
|
|
17930
|
-
"description": "Gets the keys of all items in storage.",
|
|
17931
|
-
"async": "callback",
|
|
17932
|
-
"parameters": [
|
|
17933
|
-
{
|
|
17934
|
-
"name": "callback",
|
|
17935
|
-
"type": "function",
|
|
17936
|
-
"description": "Callback with the keys of all items in storage, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17937
|
-
"parameters": [
|
|
17938
|
-
{
|
|
17939
|
-
"name": "keys",
|
|
17940
|
-
"type": "array",
|
|
17941
|
-
"items": {
|
|
17942
|
-
"type": "string"
|
|
17943
|
-
},
|
|
17944
|
-
"description": "The keys of all items in storage."
|
|
17945
|
-
}
|
|
17946
|
-
]
|
|
17947
|
-
}
|
|
17948
|
-
]
|
|
17949
|
-
},
|
|
17950
|
-
{
|
|
17951
|
-
"name": "set",
|
|
17952
|
-
"type": "function",
|
|
17953
|
-
"description": "Sets multiple items.",
|
|
17954
|
-
"async": "callback",
|
|
17955
|
-
"parameters": [
|
|
17956
|
-
{
|
|
17957
|
-
"name": "items",
|
|
17958
|
-
"type": "object",
|
|
17959
|
-
"additionalProperties": {
|
|
17960
|
-
"type": "any"
|
|
17961
|
-
},
|
|
17962
|
-
"description": "<p>An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.</p><p>Primitive values such as numbers will serialize as expected. Values with a <code>typeof</code> <code>\"object\"</code> and <code>\"function\"</code> will typically serialize to <code>{}</code>, with the exception of <code>Array</code> (serializes as expected), <code>Date</code>, and <code>Regex</code> (serialize using their <code>String</code> representation).</p>"
|
|
17963
|
-
},
|
|
17964
|
-
{
|
|
17965
|
-
"name": "callback",
|
|
17966
|
-
"type": "function",
|
|
17967
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17968
|
-
"parameters": [],
|
|
17969
|
-
"optional": true
|
|
17970
|
-
}
|
|
17971
|
-
]
|
|
17972
|
-
},
|
|
17973
|
-
{
|
|
17974
|
-
"name": "remove",
|
|
17975
|
-
"type": "function",
|
|
17976
|
-
"description": "Removes one or more items from storage.",
|
|
17977
|
-
"async": "callback",
|
|
17978
|
-
"parameters": [
|
|
17979
|
-
{
|
|
17980
|
-
"name": "keys",
|
|
17981
|
-
"choices": [
|
|
17982
|
-
{
|
|
17983
|
-
"type": "string"
|
|
17984
|
-
},
|
|
17985
|
-
{
|
|
17986
|
-
"type": "array",
|
|
17987
|
-
"items": {
|
|
17988
|
-
"type": "string"
|
|
17989
|
-
}
|
|
17990
|
-
}
|
|
17991
|
-
],
|
|
17992
|
-
"description": "A single key or a list of keys for items to remove."
|
|
17993
|
-
},
|
|
17994
|
-
{
|
|
17995
|
-
"name": "callback",
|
|
17996
|
-
"type": "function",
|
|
17997
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
17998
|
-
"parameters": [],
|
|
17999
|
-
"optional": true
|
|
18000
|
-
}
|
|
18001
|
-
]
|
|
18002
|
-
},
|
|
18003
|
-
{
|
|
18004
|
-
"name": "clear",
|
|
18005
|
-
"type": "function",
|
|
18006
|
-
"description": "Removes all items from storage.",
|
|
18007
|
-
"async": "callback",
|
|
18008
|
-
"parameters": [
|
|
18009
|
-
{
|
|
18010
|
-
"name": "callback",
|
|
18011
|
-
"type": "function",
|
|
18012
|
-
"description": "Callback on success, or on failure (in which case $(ref:runtime.lastError) will be set).",
|
|
18013
|
-
"parameters": [],
|
|
18014
|
-
"optional": true
|
|
18015
|
-
}
|
|
18016
|
-
]
|
|
18017
|
-
}
|
|
18018
|
-
],
|
|
18019
|
-
"events": [
|
|
18020
|
-
{
|
|
18021
|
-
"name": "onChanged",
|
|
18022
|
-
"type": "function",
|
|
18023
|
-
"description": "Fired when one or more items change.",
|
|
18024
|
-
"parameters": [
|
|
18025
|
-
{
|
|
18026
|
-
"name": "changes",
|
|
18027
|
-
"type": "object",
|
|
18028
|
-
"additionalProperties": {
|
|
18029
|
-
"$ref": "StorageChange"
|
|
18030
|
-
},
|
|
18031
|
-
"description": "Object mapping each key that changed to its corresponding $(ref:storage.StorageChange) for that item."
|
|
18032
|
-
}
|
|
18033
|
-
]
|
|
18034
|
-
}
|
|
18035
|
-
]
|
|
18036
|
-
},
|
|
18037
|
-
{
|
|
18038
|
-
"id": "StorageAreaWithUsage",
|
|
18039
|
-
"type": "object",
|
|
18040
17869
|
"functions": [
|
|
18041
17870
|
{
|
|
18042
17871
|
"name": "get",
|
|
@@ -18248,14 +18077,14 @@
|
|
|
18248
18077
|
{
|
|
18249
18078
|
"name": "areaName",
|
|
18250
18079
|
"type": "string",
|
|
18251
|
-
"description": "The name of the storage area (<code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
|
|
18080
|
+
"description": "The name of the storage area (<code>\"session\"</code>, <code>\"sync\"</code>, <code>\"local\"</code> or <code>\"managed\"</code>) the changes are for."
|
|
18252
18081
|
}
|
|
18253
18082
|
]
|
|
18254
18083
|
}
|
|
18255
18084
|
],
|
|
18256
18085
|
"properties": {
|
|
18257
18086
|
"sync": {
|
|
18258
|
-
"$ref": "
|
|
18087
|
+
"$ref": "StorageArea",
|
|
18259
18088
|
"description": "Items in the <code>sync</code> storage area are synced by the browser.",
|
|
18260
18089
|
"properties": {
|
|
18261
18090
|
"QUOTA_BYTES": {
|
|
@@ -18309,7 +18138,7 @@
|
|
|
18309
18138
|
"allowedContexts": [
|
|
18310
18139
|
"devtools"
|
|
18311
18140
|
],
|
|
18312
|
-
"$ref": "
|
|
18141
|
+
"$ref": "StorageArea",
|
|
18313
18142
|
"description": "Items in the <code>session</code> storage area are kept in memory, and only until the either browser or extension is closed or reloaded.",
|
|
18314
18143
|
"properties": {
|
|
18315
18144
|
"QUOTA_BYTES": {
|