webext-schema 2.0.4 → 2.0.5
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/README.md +2 -0
- package/package.json +3 -3
- package/schemas/beta/webext.json +200 -48
- package/schemas/central/webext.json +1 -0
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
[](https://github.com/asamuzaK/webext-schema/actions?query=workflow%3Abuild)
|
|
2
2
|
[](https://github.com/asamuzaK/webext-schema/actions?query=workflow%3ACodeQL)
|
|
3
|
+
<!--
|
|
3
4
|
[](https://david-dm.org/asamuzaK/webext-schema)
|
|
4
5
|
[](https://david-dm.org/asamuzaK/webext-schema?type=dev)
|
|
6
|
+
-->
|
|
5
7
|
[](https://badge.fury.io/js/webext-schema)
|
|
6
8
|
|
|
7
9
|
# webext-schema
|
package/package.json
CHANGED
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"eslint": "^7.32.0",
|
|
37
37
|
"eslint-config-standard": "^16.0.3",
|
|
38
38
|
"eslint-plugin-import": "^2.25.3",
|
|
39
|
-
"eslint-plugin-jsdoc": "^37.0
|
|
39
|
+
"eslint-plugin-jsdoc": "^37.1.0",
|
|
40
40
|
"eslint-plugin-node": "^11.1.0",
|
|
41
|
-
"eslint-plugin-promise": "^5.
|
|
41
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
42
42
|
"mocha": "^9.1.3",
|
|
43
43
|
"nock": "^13.2.1"
|
|
44
44
|
},
|
|
45
|
-
"version": "2.0.
|
|
45
|
+
"version": "2.0.5"
|
|
46
46
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -11731,7 +11731,9 @@
|
|
|
11731
11731
|
"js",
|
|
11732
11732
|
"leaf",
|
|
11733
11733
|
"mainthreadio",
|
|
11734
|
-
"
|
|
11734
|
+
"fileio",
|
|
11735
|
+
"fileioall",
|
|
11736
|
+
"noiostacks",
|
|
11735
11737
|
"screenshots",
|
|
11736
11738
|
"seqstyle",
|
|
11737
11739
|
"stackwalk",
|
|
@@ -11739,15 +11741,17 @@
|
|
|
11739
11741
|
"jstracer",
|
|
11740
11742
|
"jsallocations",
|
|
11741
11743
|
"nostacksampling",
|
|
11742
|
-
"nativeallocations",
|
|
11743
11744
|
"preferencereads",
|
|
11745
|
+
"nativeallocations",
|
|
11744
11746
|
"ipcmessages",
|
|
11745
|
-
"fileio",
|
|
11746
|
-
"fileioall",
|
|
11747
|
-
"noiostacks",
|
|
11748
11747
|
"audiocallbacktracing",
|
|
11749
11748
|
"cpu",
|
|
11750
|
-
"notimerresolutionchange"
|
|
11749
|
+
"notimerresolutionchange",
|
|
11750
|
+
"cpuallthreads",
|
|
11751
|
+
"samplingallthreads",
|
|
11752
|
+
"markersallthreads",
|
|
11753
|
+
"unregisteredthreads",
|
|
11754
|
+
"responsiveness"
|
|
11751
11755
|
]
|
|
11752
11756
|
},
|
|
11753
11757
|
{
|
|
@@ -12757,34 +12761,13 @@
|
|
|
12757
12761
|
"postprocess": "manifestVersionCheck"
|
|
12758
12762
|
},
|
|
12759
12763
|
"applications": {
|
|
12760
|
-
"
|
|
12761
|
-
"
|
|
12762
|
-
"
|
|
12763
|
-
"gecko": {
|
|
12764
|
-
"$ref": "FirefoxSpecificProperties",
|
|
12765
|
-
"optional": true
|
|
12766
|
-
}
|
|
12767
|
-
}
|
|
12764
|
+
"$ref": "BrowserSpecificSettings",
|
|
12765
|
+
"description": "The applications property is deprecated, please use 'browser_specific_settings'",
|
|
12766
|
+
"optional": true
|
|
12768
12767
|
},
|
|
12769
12768
|
"browser_specific_settings": {
|
|
12770
|
-
"
|
|
12771
|
-
"optional": true
|
|
12772
|
-
"properties": {
|
|
12773
|
-
"gecko": {
|
|
12774
|
-
"$ref": "FirefoxSpecificProperties",
|
|
12775
|
-
"optional": true
|
|
12776
|
-
},
|
|
12777
|
-
"edge": {
|
|
12778
|
-
"type": "object",
|
|
12779
|
-
"additionalProperties": {
|
|
12780
|
-
"type": "any"
|
|
12781
|
-
},
|
|
12782
|
-
"optional": true
|
|
12783
|
-
}
|
|
12784
|
-
},
|
|
12785
|
-
"additionalProperties": {
|
|
12786
|
-
"$ref": "UnrecognizedProperty"
|
|
12787
|
-
}
|
|
12769
|
+
"$ref": "BrowserSpecificSettings",
|
|
12770
|
+
"optional": true
|
|
12788
12771
|
},
|
|
12789
12772
|
"name": {
|
|
12790
12773
|
"type": "string",
|
|
@@ -12816,6 +12799,32 @@
|
|
|
12816
12799
|
"format": "url",
|
|
12817
12800
|
"optional": true,
|
|
12818
12801
|
"preprocess": "localize"
|
|
12802
|
+
},
|
|
12803
|
+
"install_origins": {
|
|
12804
|
+
"type": "array",
|
|
12805
|
+
"optional": true,
|
|
12806
|
+
"items": {
|
|
12807
|
+
"type": "string",
|
|
12808
|
+
"format": "origin"
|
|
12809
|
+
}
|
|
12810
|
+
},
|
|
12811
|
+
"developer": {
|
|
12812
|
+
"type": "object",
|
|
12813
|
+
"optional": true,
|
|
12814
|
+
"properties": {
|
|
12815
|
+
"name": {
|
|
12816
|
+
"type": "string",
|
|
12817
|
+
"optional": true,
|
|
12818
|
+
"preprocess": "localize"
|
|
12819
|
+
},
|
|
12820
|
+
"url": {
|
|
12821
|
+
"type": "string",
|
|
12822
|
+
"format": "url",
|
|
12823
|
+
"optional": true,
|
|
12824
|
+
"preprocess": "localize",
|
|
12825
|
+
"onError": "warn"
|
|
12826
|
+
}
|
|
12827
|
+
}
|
|
12819
12828
|
}
|
|
12820
12829
|
}
|
|
12821
12830
|
},
|
|
@@ -13031,22 +13040,6 @@
|
|
|
13031
13040
|
}
|
|
13032
13041
|
]
|
|
13033
13042
|
},
|
|
13034
|
-
"developer": {
|
|
13035
|
-
"type": "object",
|
|
13036
|
-
"optional": true,
|
|
13037
|
-
"properties": {
|
|
13038
|
-
"name": {
|
|
13039
|
-
"type": "string",
|
|
13040
|
-
"optional": true,
|
|
13041
|
-
"preprocess": "localize"
|
|
13042
|
-
},
|
|
13043
|
-
"url": {
|
|
13044
|
-
"type": "string",
|
|
13045
|
-
"optional": true,
|
|
13046
|
-
"preprocess": "localize"
|
|
13047
|
-
}
|
|
13048
|
-
}
|
|
13049
|
-
},
|
|
13050
13043
|
"hidden": {
|
|
13051
13044
|
"type": "boolean",
|
|
13052
13045
|
"optional": true,
|
|
@@ -13312,6 +13305,19 @@
|
|
|
13312
13305
|
}
|
|
13313
13306
|
}
|
|
13314
13307
|
},
|
|
13308
|
+
{
|
|
13309
|
+
"id": "BrowserSpecificSettings",
|
|
13310
|
+
"type": "object",
|
|
13311
|
+
"properties": {
|
|
13312
|
+
"gecko": {
|
|
13313
|
+
"$ref": "FirefoxSpecificProperties",
|
|
13314
|
+
"optional": true
|
|
13315
|
+
}
|
|
13316
|
+
},
|
|
13317
|
+
"additionalProperties": {
|
|
13318
|
+
"type": "any"
|
|
13319
|
+
}
|
|
13320
|
+
},
|
|
13315
13321
|
{
|
|
13316
13322
|
"id": "MatchPattern",
|
|
13317
13323
|
"choices": [
|
|
@@ -15357,6 +15363,27 @@
|
|
|
15357
15363
|
"description": "The fully-qualified URL to the resource."
|
|
15358
15364
|
}
|
|
15359
15365
|
},
|
|
15366
|
+
{
|
|
15367
|
+
"name": "getFrameId",
|
|
15368
|
+
"type": "function",
|
|
15369
|
+
"allowedContexts": [
|
|
15370
|
+
"content",
|
|
15371
|
+
"devtools"
|
|
15372
|
+
],
|
|
15373
|
+
"description": "Get the frameId of any window global or frame element.",
|
|
15374
|
+
"parameters": [
|
|
15375
|
+
{
|
|
15376
|
+
"type": "any",
|
|
15377
|
+
"name": "target",
|
|
15378
|
+
"description": "A WindowProxy or a Browsing Context container element (IFrame, Frame, Embed, Object) for the target frame."
|
|
15379
|
+
}
|
|
15380
|
+
],
|
|
15381
|
+
"allowCrossOriginArguments": true,
|
|
15382
|
+
"returns": {
|
|
15383
|
+
"type": "number",
|
|
15384
|
+
"description": "The frameId of the target frame, or -1 if it doesn't exist."
|
|
15385
|
+
}
|
|
15386
|
+
},
|
|
15360
15387
|
{
|
|
15361
15388
|
"name": "setUninstallURL",
|
|
15362
15389
|
"type": "function",
|
|
@@ -15811,6 +15838,131 @@
|
|
|
15811
15838
|
]
|
|
15812
15839
|
}
|
|
15813
15840
|
],
|
|
15841
|
+
"scripting.json": [
|
|
15842
|
+
{
|
|
15843
|
+
"namespace": "manifest",
|
|
15844
|
+
"types": [
|
|
15845
|
+
{
|
|
15846
|
+
"$extend": "OptionalPermissionNoPrompt",
|
|
15847
|
+
"choices": [
|
|
15848
|
+
{
|
|
15849
|
+
"type": "string",
|
|
15850
|
+
"enum": [
|
|
15851
|
+
"scripting"
|
|
15852
|
+
],
|
|
15853
|
+
"min_manifest_version": 3
|
|
15854
|
+
}
|
|
15855
|
+
]
|
|
15856
|
+
}
|
|
15857
|
+
]
|
|
15858
|
+
},
|
|
15859
|
+
{
|
|
15860
|
+
"namespace": "scripting",
|
|
15861
|
+
"description": "Use the scripting API to execute script in different contexts.",
|
|
15862
|
+
"permissions": [
|
|
15863
|
+
"scripting"
|
|
15864
|
+
],
|
|
15865
|
+
"min_manifest_version": 3,
|
|
15866
|
+
"types": [
|
|
15867
|
+
{
|
|
15868
|
+
"id": "ScriptInjection",
|
|
15869
|
+
"type": "object",
|
|
15870
|
+
"description": "Details of a script injection",
|
|
15871
|
+
"properties": {
|
|
15872
|
+
"args": {
|
|
15873
|
+
"type": "array",
|
|
15874
|
+
"optional": true,
|
|
15875
|
+
"description": "The arguments to curry into a provided function. This is only valid if the <code>func</code> parameter is specified. These arguments must be JSON-serializable.",
|
|
15876
|
+
"items": {
|
|
15877
|
+
"type": "any"
|
|
15878
|
+
}
|
|
15879
|
+
},
|
|
15880
|
+
"files": {
|
|
15881
|
+
"type": "array",
|
|
15882
|
+
"optional": true,
|
|
15883
|
+
"description": "The path of the JS or CSS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>func</code> must be specified.",
|
|
15884
|
+
"minItems": 1,
|
|
15885
|
+
"items": {
|
|
15886
|
+
"type": "string"
|
|
15887
|
+
}
|
|
15888
|
+
},
|
|
15889
|
+
"func": {
|
|
15890
|
+
"type": "function",
|
|
15891
|
+
"optional": true,
|
|
15892
|
+
"description": "A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of <code>files</code> and <code>func</code> must be specified."
|
|
15893
|
+
},
|
|
15894
|
+
"target": {
|
|
15895
|
+
"$ref": "InjectionTarget",
|
|
15896
|
+
"description": "Details specifying the target into which to inject the script."
|
|
15897
|
+
}
|
|
15898
|
+
}
|
|
15899
|
+
},
|
|
15900
|
+
{
|
|
15901
|
+
"id": "InjectionResult",
|
|
15902
|
+
"type": "object",
|
|
15903
|
+
"description": "Result of a script injection.",
|
|
15904
|
+
"properties": {
|
|
15905
|
+
"frameId": {
|
|
15906
|
+
"type": "number",
|
|
15907
|
+
"description": "The frame ID associated with the injection."
|
|
15908
|
+
},
|
|
15909
|
+
"result": {
|
|
15910
|
+
"type": "any",
|
|
15911
|
+
"optional": true,
|
|
15912
|
+
"description": "The result of the script execution."
|
|
15913
|
+
}
|
|
15914
|
+
}
|
|
15915
|
+
},
|
|
15916
|
+
{
|
|
15917
|
+
"id": "InjectionTarget",
|
|
15918
|
+
"type": "object",
|
|
15919
|
+
"properties": {
|
|
15920
|
+
"frameIds": {
|
|
15921
|
+
"type": "array",
|
|
15922
|
+
"optional": true,
|
|
15923
|
+
"description": "The IDs of specific frames to inject into.",
|
|
15924
|
+
"items": {
|
|
15925
|
+
"type": "number"
|
|
15926
|
+
}
|
|
15927
|
+
},
|
|
15928
|
+
"tabId": {
|
|
15929
|
+
"type": "number",
|
|
15930
|
+
"description": "The ID of the tab into which to inject."
|
|
15931
|
+
}
|
|
15932
|
+
}
|
|
15933
|
+
}
|
|
15934
|
+
],
|
|
15935
|
+
"functions": [
|
|
15936
|
+
{
|
|
15937
|
+
"name": "executeScript",
|
|
15938
|
+
"type": "function",
|
|
15939
|
+
"description": "Injects a script into a target context. The script will be run at <code>document_idle</code>.",
|
|
15940
|
+
"async": "callback",
|
|
15941
|
+
"parameters": [
|
|
15942
|
+
{
|
|
15943
|
+
"name": "injection",
|
|
15944
|
+
"$ref": "ScriptInjection",
|
|
15945
|
+
"description": "The details of the script which to inject."
|
|
15946
|
+
},
|
|
15947
|
+
{
|
|
15948
|
+
"name": "callback",
|
|
15949
|
+
"type": "function",
|
|
15950
|
+
"description": "Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.",
|
|
15951
|
+
"parameters": [
|
|
15952
|
+
{
|
|
15953
|
+
"name": "results",
|
|
15954
|
+
"type": "array",
|
|
15955
|
+
"items": {
|
|
15956
|
+
"$ref": "InjectionResult"
|
|
15957
|
+
}
|
|
15958
|
+
}
|
|
15959
|
+
]
|
|
15960
|
+
}
|
|
15961
|
+
]
|
|
15962
|
+
}
|
|
15963
|
+
]
|
|
15964
|
+
}
|
|
15965
|
+
],
|
|
15814
15966
|
"storage.json": [
|
|
15815
15967
|
{
|
|
15816
15968
|
"namespace": "storage",
|
|
@@ -11750,6 +11750,7 @@
|
|
|
11750
11750
|
"cpuallthreads",
|
|
11751
11751
|
"samplingallthreads",
|
|
11752
11752
|
"markersallthreads",
|
|
11753
|
+
"unregisteredthreads",
|
|
11753
11754
|
"responsiveness"
|
|
11754
11755
|
]
|
|
11755
11756
|
},
|