webext-schema 2.0.3 → 2.0.7
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/modules/update.js +10 -4
- package/package.json +8 -8
- package/schemas/beta/webext.json +263 -50
- package/schemas/central/webext.json +368 -50
- package/schemas/mail/mailext.json +265 -115
- package/schemas/release/webext.json +210 -49
|
@@ -5165,7 +5165,17 @@
|
|
|
5165
5165
|
"description": "The position of the tabs within their windows."
|
|
5166
5166
|
},
|
|
5167
5167
|
"cookieStoreId": {
|
|
5168
|
-
"
|
|
5168
|
+
"choices": [
|
|
5169
|
+
{
|
|
5170
|
+
"type": "array",
|
|
5171
|
+
"items": {
|
|
5172
|
+
"type": "string"
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"type": "string"
|
|
5177
|
+
}
|
|
5178
|
+
],
|
|
5169
5179
|
"optional": true,
|
|
5170
5180
|
"description": "The CookieStoreId used for the tab."
|
|
5171
5181
|
},
|
|
@@ -9033,6 +9043,22 @@
|
|
|
9033
9043
|
"$ref": "extensionTypes.RunAt",
|
|
9034
9044
|
"optional": true,
|
|
9035
9045
|
"description": "The soonest that the JavaScript or CSS will be injected into the tab. Defaults to \"document_idle\"."
|
|
9046
|
+
},
|
|
9047
|
+
"cookieStoreId": {
|
|
9048
|
+
"choices": [
|
|
9049
|
+
{
|
|
9050
|
+
"type": "array",
|
|
9051
|
+
"minItems": 1,
|
|
9052
|
+
"items": {
|
|
9053
|
+
"type": "string"
|
|
9054
|
+
}
|
|
9055
|
+
},
|
|
9056
|
+
{
|
|
9057
|
+
"type": "string"
|
|
9058
|
+
}
|
|
9059
|
+
],
|
|
9060
|
+
"optional": true,
|
|
9061
|
+
"description": "limit the set of matched tabs to those that belong to the given cookie store id"
|
|
9036
9062
|
}
|
|
9037
9063
|
}
|
|
9038
9064
|
},
|
|
@@ -11731,23 +11757,27 @@
|
|
|
11731
11757
|
"js",
|
|
11732
11758
|
"leaf",
|
|
11733
11759
|
"mainthreadio",
|
|
11734
|
-
"
|
|
11760
|
+
"fileio",
|
|
11761
|
+
"fileioall",
|
|
11762
|
+
"noiostacks",
|
|
11735
11763
|
"screenshots",
|
|
11736
11764
|
"seqstyle",
|
|
11737
11765
|
"stackwalk",
|
|
11738
|
-
"threads",
|
|
11739
11766
|
"jstracer",
|
|
11740
11767
|
"jsallocations",
|
|
11741
11768
|
"nostacksampling",
|
|
11742
|
-
"nativeallocations",
|
|
11743
11769
|
"preferencereads",
|
|
11770
|
+
"nativeallocations",
|
|
11744
11771
|
"ipcmessages",
|
|
11745
|
-
"fileio",
|
|
11746
|
-
"fileioall",
|
|
11747
|
-
"noiostacks",
|
|
11748
11772
|
"audiocallbacktracing",
|
|
11749
11773
|
"cpu",
|
|
11750
|
-
"notimerresolutionchange"
|
|
11774
|
+
"notimerresolutionchange",
|
|
11775
|
+
"cpuallthreads",
|
|
11776
|
+
"samplingallthreads",
|
|
11777
|
+
"markersallthreads",
|
|
11778
|
+
"unregisteredthreads",
|
|
11779
|
+
"processcpu",
|
|
11780
|
+
"responsiveness"
|
|
11751
11781
|
]
|
|
11752
11782
|
},
|
|
11753
11783
|
{
|
|
@@ -12757,34 +12787,13 @@
|
|
|
12757
12787
|
"postprocess": "manifestVersionCheck"
|
|
12758
12788
|
},
|
|
12759
12789
|
"applications": {
|
|
12760
|
-
"
|
|
12761
|
-
"
|
|
12762
|
-
"
|
|
12763
|
-
"gecko": {
|
|
12764
|
-
"$ref": "FirefoxSpecificProperties",
|
|
12765
|
-
"optional": true
|
|
12766
|
-
}
|
|
12767
|
-
}
|
|
12790
|
+
"$ref": "BrowserSpecificSettings",
|
|
12791
|
+
"description": "The applications property is deprecated, please use 'browser_specific_settings'",
|
|
12792
|
+
"optional": true
|
|
12768
12793
|
},
|
|
12769
12794
|
"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
|
-
}
|
|
12795
|
+
"$ref": "BrowserSpecificSettings",
|
|
12796
|
+
"optional": true
|
|
12788
12797
|
},
|
|
12789
12798
|
"name": {
|
|
12790
12799
|
"type": "string",
|
|
@@ -12816,6 +12825,32 @@
|
|
|
12816
12825
|
"format": "url",
|
|
12817
12826
|
"optional": true,
|
|
12818
12827
|
"preprocess": "localize"
|
|
12828
|
+
},
|
|
12829
|
+
"install_origins": {
|
|
12830
|
+
"type": "array",
|
|
12831
|
+
"optional": true,
|
|
12832
|
+
"items": {
|
|
12833
|
+
"type": "string",
|
|
12834
|
+
"format": "origin"
|
|
12835
|
+
}
|
|
12836
|
+
},
|
|
12837
|
+
"developer": {
|
|
12838
|
+
"type": "object",
|
|
12839
|
+
"optional": true,
|
|
12840
|
+
"properties": {
|
|
12841
|
+
"name": {
|
|
12842
|
+
"type": "string",
|
|
12843
|
+
"optional": true,
|
|
12844
|
+
"preprocess": "localize"
|
|
12845
|
+
},
|
|
12846
|
+
"url": {
|
|
12847
|
+
"type": "string",
|
|
12848
|
+
"format": "url",
|
|
12849
|
+
"optional": true,
|
|
12850
|
+
"preprocess": "localize",
|
|
12851
|
+
"onError": "warn"
|
|
12852
|
+
}
|
|
12853
|
+
}
|
|
12819
12854
|
}
|
|
12820
12855
|
}
|
|
12821
12856
|
},
|
|
@@ -13031,22 +13066,6 @@
|
|
|
13031
13066
|
}
|
|
13032
13067
|
]
|
|
13033
13068
|
},
|
|
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
13069
|
"hidden": {
|
|
13051
13070
|
"type": "boolean",
|
|
13052
13071
|
"optional": true,
|
|
@@ -13154,6 +13173,30 @@
|
|
|
13154
13173
|
}
|
|
13155
13174
|
}
|
|
13156
13175
|
},
|
|
13176
|
+
{
|
|
13177
|
+
"id": "WebExtensionSitePermissionsManifest",
|
|
13178
|
+
"type": "object",
|
|
13179
|
+
"description": "Represents a WebExtension site permissions manifest.json file",
|
|
13180
|
+
"$import": "ManifestBase",
|
|
13181
|
+
"properties": {
|
|
13182
|
+
"site_permissions": {
|
|
13183
|
+
"type": "array",
|
|
13184
|
+
"minItems": 1,
|
|
13185
|
+
"items": {
|
|
13186
|
+
"$ref": "SitePermission"
|
|
13187
|
+
}
|
|
13188
|
+
},
|
|
13189
|
+
"install_origins": {
|
|
13190
|
+
"type": "array",
|
|
13191
|
+
"minItems": 1,
|
|
13192
|
+
"maxItems": 1,
|
|
13193
|
+
"items": {
|
|
13194
|
+
"type": "string",
|
|
13195
|
+
"format": "origin"
|
|
13196
|
+
}
|
|
13197
|
+
}
|
|
13198
|
+
}
|
|
13199
|
+
},
|
|
13157
13200
|
{
|
|
13158
13201
|
"id": "ThemeIcons",
|
|
13159
13202
|
"type": "object",
|
|
@@ -13253,6 +13296,18 @@
|
|
|
13253
13296
|
}
|
|
13254
13297
|
]
|
|
13255
13298
|
},
|
|
13299
|
+
{
|
|
13300
|
+
"id": "SitePermission",
|
|
13301
|
+
"choices": [
|
|
13302
|
+
{
|
|
13303
|
+
"type": "string",
|
|
13304
|
+
"enum": [
|
|
13305
|
+
"midi",
|
|
13306
|
+
"midi-sysex"
|
|
13307
|
+
]
|
|
13308
|
+
}
|
|
13309
|
+
]
|
|
13310
|
+
},
|
|
13256
13311
|
{
|
|
13257
13312
|
"id": "HttpURL",
|
|
13258
13313
|
"type": "string",
|
|
@@ -13312,6 +13367,19 @@
|
|
|
13312
13367
|
}
|
|
13313
13368
|
}
|
|
13314
13369
|
},
|
|
13370
|
+
{
|
|
13371
|
+
"id": "BrowserSpecificSettings",
|
|
13372
|
+
"type": "object",
|
|
13373
|
+
"properties": {
|
|
13374
|
+
"gecko": {
|
|
13375
|
+
"$ref": "FirefoxSpecificProperties",
|
|
13376
|
+
"optional": true
|
|
13377
|
+
}
|
|
13378
|
+
},
|
|
13379
|
+
"additionalProperties": {
|
|
13380
|
+
"type": "any"
|
|
13381
|
+
}
|
|
13382
|
+
},
|
|
13315
13383
|
{
|
|
13316
13384
|
"id": "MatchPattern",
|
|
13317
13385
|
"choices": [
|
|
@@ -15357,6 +15425,27 @@
|
|
|
15357
15425
|
"description": "The fully-qualified URL to the resource."
|
|
15358
15426
|
}
|
|
15359
15427
|
},
|
|
15428
|
+
{
|
|
15429
|
+
"name": "getFrameId",
|
|
15430
|
+
"type": "function",
|
|
15431
|
+
"allowedContexts": [
|
|
15432
|
+
"content",
|
|
15433
|
+
"devtools"
|
|
15434
|
+
],
|
|
15435
|
+
"description": "Get the frameId of any window global or frame element.",
|
|
15436
|
+
"parameters": [
|
|
15437
|
+
{
|
|
15438
|
+
"type": "any",
|
|
15439
|
+
"name": "target",
|
|
15440
|
+
"description": "A WindowProxy or a Browsing Context container element (IFrame, Frame, Embed, Object) for the target frame."
|
|
15441
|
+
}
|
|
15442
|
+
],
|
|
15443
|
+
"allowCrossOriginArguments": true,
|
|
15444
|
+
"returns": {
|
|
15445
|
+
"type": "number",
|
|
15446
|
+
"description": "The frameId of the target frame, or -1 if it doesn't exist."
|
|
15447
|
+
}
|
|
15448
|
+
},
|
|
15360
15449
|
{
|
|
15361
15450
|
"name": "setUninstallURL",
|
|
15362
15451
|
"type": "function",
|
|
@@ -15811,6 +15900,219 @@
|
|
|
15811
15900
|
]
|
|
15812
15901
|
}
|
|
15813
15902
|
],
|
|
15903
|
+
"scripting.json": [
|
|
15904
|
+
{
|
|
15905
|
+
"namespace": "manifest",
|
|
15906
|
+
"types": [
|
|
15907
|
+
{
|
|
15908
|
+
"$extend": "OptionalPermissionNoPrompt",
|
|
15909
|
+
"choices": [
|
|
15910
|
+
{
|
|
15911
|
+
"type": "string",
|
|
15912
|
+
"enum": [
|
|
15913
|
+
"scripting"
|
|
15914
|
+
],
|
|
15915
|
+
"min_manifest_version": 3
|
|
15916
|
+
}
|
|
15917
|
+
]
|
|
15918
|
+
}
|
|
15919
|
+
]
|
|
15920
|
+
},
|
|
15921
|
+
{
|
|
15922
|
+
"namespace": "scripting",
|
|
15923
|
+
"description": "Use the scripting API to execute script in different contexts.",
|
|
15924
|
+
"permissions": [
|
|
15925
|
+
"scripting"
|
|
15926
|
+
],
|
|
15927
|
+
"min_manifest_version": 3,
|
|
15928
|
+
"types": [
|
|
15929
|
+
{
|
|
15930
|
+
"id": "ScriptInjection",
|
|
15931
|
+
"type": "object",
|
|
15932
|
+
"description": "Details of a script injection",
|
|
15933
|
+
"properties": {
|
|
15934
|
+
"args": {
|
|
15935
|
+
"type": "array",
|
|
15936
|
+
"optional": true,
|
|
15937
|
+
"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.",
|
|
15938
|
+
"items": {
|
|
15939
|
+
"type": "any"
|
|
15940
|
+
}
|
|
15941
|
+
},
|
|
15942
|
+
"files": {
|
|
15943
|
+
"type": "array",
|
|
15944
|
+
"optional": true,
|
|
15945
|
+
"description": "The path of the JS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>func</code> must be specified.",
|
|
15946
|
+
"minItems": 1,
|
|
15947
|
+
"items": {
|
|
15948
|
+
"type": "string"
|
|
15949
|
+
}
|
|
15950
|
+
},
|
|
15951
|
+
"func": {
|
|
15952
|
+
"type": "function",
|
|
15953
|
+
"optional": true,
|
|
15954
|
+
"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."
|
|
15955
|
+
},
|
|
15956
|
+
"target": {
|
|
15957
|
+
"$ref": "InjectionTarget",
|
|
15958
|
+
"description": "Details specifying the target into which to inject the script."
|
|
15959
|
+
}
|
|
15960
|
+
}
|
|
15961
|
+
},
|
|
15962
|
+
{
|
|
15963
|
+
"id": "InjectionResult",
|
|
15964
|
+
"type": "object",
|
|
15965
|
+
"description": "Result of a script injection.",
|
|
15966
|
+
"properties": {
|
|
15967
|
+
"frameId": {
|
|
15968
|
+
"type": "integer",
|
|
15969
|
+
"description": "The frame ID associated with the injection."
|
|
15970
|
+
},
|
|
15971
|
+
"result": {
|
|
15972
|
+
"type": "any",
|
|
15973
|
+
"optional": true,
|
|
15974
|
+
"description": "The result of the script execution."
|
|
15975
|
+
},
|
|
15976
|
+
"error": {
|
|
15977
|
+
"type": "object",
|
|
15978
|
+
"optional": true,
|
|
15979
|
+
"description": "When the injection has failed, the error is exposed to the caller with this property.",
|
|
15980
|
+
"properties": {
|
|
15981
|
+
"message": {
|
|
15982
|
+
"type": "string",
|
|
15983
|
+
"description": "A message explaining why the injection has failed."
|
|
15984
|
+
}
|
|
15985
|
+
}
|
|
15986
|
+
}
|
|
15987
|
+
}
|
|
15988
|
+
},
|
|
15989
|
+
{
|
|
15990
|
+
"id": "InjectionTarget",
|
|
15991
|
+
"type": "object",
|
|
15992
|
+
"properties": {
|
|
15993
|
+
"frameIds": {
|
|
15994
|
+
"type": "array",
|
|
15995
|
+
"optional": true,
|
|
15996
|
+
"description": "The IDs of specific frames to inject into.",
|
|
15997
|
+
"items": {
|
|
15998
|
+
"type": "number"
|
|
15999
|
+
}
|
|
16000
|
+
},
|
|
16001
|
+
"allFrames": {
|
|
16002
|
+
"type": "boolean",
|
|
16003
|
+
"optional": true,
|
|
16004
|
+
"description": "Whether the script should inject into all frames within the tab. Defaults to false. This must not be true if <code>frameIds</code> is specified."
|
|
16005
|
+
},
|
|
16006
|
+
"tabId": {
|
|
16007
|
+
"type": "number",
|
|
16008
|
+
"description": "The ID of the tab into which to inject."
|
|
16009
|
+
}
|
|
16010
|
+
}
|
|
16011
|
+
},
|
|
16012
|
+
{
|
|
16013
|
+
"id": "CSSInjection",
|
|
16014
|
+
"type": "object",
|
|
16015
|
+
"properties": {
|
|
16016
|
+
"css": {
|
|
16017
|
+
"type": "string",
|
|
16018
|
+
"optional": true,
|
|
16019
|
+
"description": "A string containing the CSS to inject. Exactly one of <code>files</code> and <code>css</code> must be specified."
|
|
16020
|
+
},
|
|
16021
|
+
"files": {
|
|
16022
|
+
"type": "array",
|
|
16023
|
+
"optional": true,
|
|
16024
|
+
"description": "The path of the CSS files to inject, relative to the extension's root directory. Exactly one of <code>files</code> and <code>css</code> must be specified.",
|
|
16025
|
+
"minItems": 1,
|
|
16026
|
+
"items": {
|
|
16027
|
+
"type": "string"
|
|
16028
|
+
}
|
|
16029
|
+
},
|
|
16030
|
+
"origin": {
|
|
16031
|
+
"type": "string",
|
|
16032
|
+
"optional": true,
|
|
16033
|
+
"enum": [
|
|
16034
|
+
"USER",
|
|
16035
|
+
"AUTHOR"
|
|
16036
|
+
],
|
|
16037
|
+
"default": "AUTHOR",
|
|
16038
|
+
"description": "The style origin for the injection. Defaults to <code>'AUTHOR'</code>."
|
|
16039
|
+
},
|
|
16040
|
+
"target": {
|
|
16041
|
+
"$ref": "InjectionTarget",
|
|
16042
|
+
"description": "Details specifying the target into which to inject the CSS."
|
|
16043
|
+
}
|
|
16044
|
+
}
|
|
16045
|
+
}
|
|
16046
|
+
],
|
|
16047
|
+
"functions": [
|
|
16048
|
+
{
|
|
16049
|
+
"name": "executeScript",
|
|
16050
|
+
"type": "function",
|
|
16051
|
+
"description": "Injects a script into a target context. The script will be run at <code>document_idle</code>.",
|
|
16052
|
+
"async": "callback",
|
|
16053
|
+
"parameters": [
|
|
16054
|
+
{
|
|
16055
|
+
"name": "injection",
|
|
16056
|
+
"$ref": "ScriptInjection",
|
|
16057
|
+
"description": "The details of the script which to inject."
|
|
16058
|
+
},
|
|
16059
|
+
{
|
|
16060
|
+
"name": "callback",
|
|
16061
|
+
"type": "function",
|
|
16062
|
+
"description": "Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.",
|
|
16063
|
+
"parameters": [
|
|
16064
|
+
{
|
|
16065
|
+
"name": "results",
|
|
16066
|
+
"type": "array",
|
|
16067
|
+
"items": {
|
|
16068
|
+
"$ref": "InjectionResult"
|
|
16069
|
+
}
|
|
16070
|
+
}
|
|
16071
|
+
]
|
|
16072
|
+
}
|
|
16073
|
+
]
|
|
16074
|
+
},
|
|
16075
|
+
{
|
|
16076
|
+
"name": "insertCSS",
|
|
16077
|
+
"type": "function",
|
|
16078
|
+
"description": "Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.",
|
|
16079
|
+
"async": "callback",
|
|
16080
|
+
"parameters": [
|
|
16081
|
+
{
|
|
16082
|
+
"name": "injection",
|
|
16083
|
+
"$ref": "CSSInjection",
|
|
16084
|
+
"description": "The details of the styles to insert."
|
|
16085
|
+
},
|
|
16086
|
+
{
|
|
16087
|
+
"name": "callback",
|
|
16088
|
+
"type": "function",
|
|
16089
|
+
"description": "Invoked upon completion of the injection.",
|
|
16090
|
+
"parameters": []
|
|
16091
|
+
}
|
|
16092
|
+
]
|
|
16093
|
+
},
|
|
16094
|
+
{
|
|
16095
|
+
"name": "removeCSS",
|
|
16096
|
+
"type": "function",
|
|
16097
|
+
"description": "Removes a CSS stylesheet that was previously inserted by this extension from a target context.",
|
|
16098
|
+
"async": "callback",
|
|
16099
|
+
"parameters": [
|
|
16100
|
+
{
|
|
16101
|
+
"name": "injection",
|
|
16102
|
+
"$ref": "CSSInjection",
|
|
16103
|
+
"description": "The details of the styles to remove. Note that the <code>css</code>, <code>files</code>, and <code>origin</code> properties must exactly match the stylesheet inserted through <code>insertCSS</code>. Attempting to remove a non-existent stylesheet is a no-op."
|
|
16104
|
+
},
|
|
16105
|
+
{
|
|
16106
|
+
"name": "callback",
|
|
16107
|
+
"type": "function",
|
|
16108
|
+
"description": "Invoked upon completion of the injection.",
|
|
16109
|
+
"parameters": []
|
|
16110
|
+
}
|
|
16111
|
+
]
|
|
16112
|
+
}
|
|
16113
|
+
]
|
|
16114
|
+
}
|
|
16115
|
+
],
|
|
15814
16116
|
"storage.json": [
|
|
15815
16117
|
{
|
|
15816
16118
|
"namespace": "storage",
|
|
@@ -17796,6 +18098,22 @@
|
|
|
17796
18098
|
"default": "document_idle",
|
|
17797
18099
|
"optional": true,
|
|
17798
18100
|
"description": "The soonest that the JavaScript will be injected into the tab. Defaults to \"document_idle\"."
|
|
18101
|
+
},
|
|
18102
|
+
"cookieStoreId": {
|
|
18103
|
+
"choices": [
|
|
18104
|
+
{
|
|
18105
|
+
"type": "array",
|
|
18106
|
+
"minItems": 1,
|
|
18107
|
+
"items": {
|
|
18108
|
+
"type": "string"
|
|
18109
|
+
}
|
|
18110
|
+
},
|
|
18111
|
+
{
|
|
18112
|
+
"type": "string"
|
|
18113
|
+
}
|
|
18114
|
+
],
|
|
18115
|
+
"optional": true,
|
|
18116
|
+
"description": "limit the set of matched tabs to those that belong to the given cookie store id"
|
|
17799
18117
|
}
|
|
17800
18118
|
}
|
|
17801
18119
|
},
|