webext-schema 5.3.0 → 5.3.2
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 +1 -1
- package/package.json +7 -7
- package/schemas/beta/webext.json +203 -6
- package/schemas/central/webext.json +200 -5
- package/schemas/mail/mailext.json +649 -105
- package/schemas/release/webext.json +16 -3
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[](https://github.com/asamuzaK/webext-schema/actions?query=workflow%3Abuild)
|
|
2
|
-
[](https://github.com/asamuzaK/webext-schema/actions/workflows/github-code-scanning/codeql)
|
|
3
3
|
[](https://www.npmjs.com/package/webext-schema)
|
|
4
4
|
|
|
5
5
|
# webext-schema
|
package/package.json
CHANGED
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
"commander": "^12.0.0",
|
|
18
18
|
"decamelize": "^6.0.0",
|
|
19
19
|
"json5": "^2.2.3",
|
|
20
|
-
"sinon": "^
|
|
20
|
+
"sinon": "^18.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/firefox-webext-browser": "^120.0.3",
|
|
24
|
-
"@types/node": "^20.12.
|
|
24
|
+
"@types/node": "^20.12.12",
|
|
25
25
|
"@types/sinon": "^17.0.3",
|
|
26
26
|
"c8": "^9.1.0",
|
|
27
|
-
"chai": "^5.1.
|
|
27
|
+
"chai": "^5.1.1",
|
|
28
28
|
"eslint": "^8.57.0",
|
|
29
29
|
"eslint-config-standard": "^17.1.0",
|
|
30
30
|
"eslint-plugin-import": "^2.29.1",
|
|
31
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.2.4",
|
|
32
32
|
"eslint-plugin-regexp": "^2.5.0",
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
33
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
34
34
|
"mocha": "^10.4.0",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
36
|
"typescript": "^5.4.5",
|
|
37
|
-
"undici": "^6.
|
|
37
|
+
"undici": "^6.16.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"update-mail": "node index update --channel=mail -i",
|
|
55
55
|
"update-release": "node index update --channel=release -i"
|
|
56
56
|
},
|
|
57
|
-
"version": "5.3.
|
|
57
|
+
"version": "5.3.2"
|
|
58
58
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -915,6 +915,12 @@
|
|
|
915
915
|
{
|
|
916
916
|
"name": "command",
|
|
917
917
|
"type": "string"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"name": "tab",
|
|
921
|
+
"$ref": "tags.Tab",
|
|
922
|
+
"optional": true,
|
|
923
|
+
"description": "Details of the $(ref:tabs.Tab) where the command was activated."
|
|
918
924
|
}
|
|
919
925
|
]
|
|
920
926
|
},
|
|
@@ -5613,9 +5619,10 @@
|
|
|
5613
5619
|
{
|
|
5614
5620
|
"name": "captureVisibleTab",
|
|
5615
5621
|
"type": "function",
|
|
5616
|
-
"description": "Captures an area of the currently active tab in the specified window. You must have
|
|
5622
|
+
"description": "Captures an area of the currently active tab in the specified window. You must have <all_urls> or activeTab permission to use this method.",
|
|
5617
5623
|
"permissions": [
|
|
5618
|
-
"<all_urls>"
|
|
5624
|
+
"<all_urls>",
|
|
5625
|
+
"activeTab"
|
|
5619
5626
|
],
|
|
5620
5627
|
"async": "callback",
|
|
5621
5628
|
"parameters": [
|
|
@@ -9974,6 +9981,20 @@
|
|
|
9974
9981
|
}
|
|
9975
9982
|
}
|
|
9976
9983
|
}
|
|
9984
|
+
},
|
|
9985
|
+
{
|
|
9986
|
+
"id": "GetRulesFilter",
|
|
9987
|
+
"type": "object",
|
|
9988
|
+
"properties": {
|
|
9989
|
+
"ruleIds": {
|
|
9990
|
+
"type": "array",
|
|
9991
|
+
"optional": true,
|
|
9992
|
+
"description": "If specified, only rules with matching IDs are included.",
|
|
9993
|
+
"items": {
|
|
9994
|
+
"type": "integer"
|
|
9995
|
+
}
|
|
9996
|
+
}
|
|
9997
|
+
}
|
|
9977
9998
|
}
|
|
9978
9999
|
],
|
|
9979
10000
|
"functions": [
|
|
@@ -10129,6 +10150,12 @@
|
|
|
10129
10150
|
"description": "Returns the current set of dynamic rules for the extension.",
|
|
10130
10151
|
"async": "callback",
|
|
10131
10152
|
"parameters": [
|
|
10153
|
+
{
|
|
10154
|
+
"name": "filter",
|
|
10155
|
+
"$ref": "GetRulesFilter",
|
|
10156
|
+
"optional": true,
|
|
10157
|
+
"description": "An object to filter the set of dynamic rules for the extension."
|
|
10158
|
+
},
|
|
10132
10159
|
{
|
|
10133
10160
|
"name": "callback",
|
|
10134
10161
|
"type": "function",
|
|
@@ -10150,6 +10177,12 @@
|
|
|
10150
10177
|
"description": "Returns the current set of session scoped rules for the extension.",
|
|
10151
10178
|
"async": "callback",
|
|
10152
10179
|
"parameters": [
|
|
10180
|
+
{
|
|
10181
|
+
"name": "filter",
|
|
10182
|
+
"$ref": "GetRulesFilter",
|
|
10183
|
+
"optional": true,
|
|
10184
|
+
"description": "An object to filter the set of session scoped rules for the extension."
|
|
10185
|
+
},
|
|
10153
10186
|
{
|
|
10154
10187
|
"name": "callback",
|
|
10155
10188
|
"type": "function",
|
|
@@ -12305,7 +12338,8 @@
|
|
|
12305
12338
|
"power",
|
|
12306
12339
|
"responsiveness",
|
|
12307
12340
|
"cpufreq",
|
|
12308
|
-
"bandwidth"
|
|
12341
|
+
"bandwidth",
|
|
12342
|
+
"memory"
|
|
12309
12343
|
]
|
|
12310
12344
|
},
|
|
12311
12345
|
{
|
|
@@ -12962,12 +12996,13 @@
|
|
|
12962
12996
|
},
|
|
12963
12997
|
{
|
|
12964
12998
|
"id": "ExtensionInstallType",
|
|
12965
|
-
"description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>other</var>: The extension was installed by other means.",
|
|
12999
|
+
"description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>admin</var>: The extension was installed by policy,<br><var>other</var>: The extension was installed by other means.",
|
|
12966
13000
|
"type": "string",
|
|
12967
13001
|
"enum": [
|
|
12968
13002
|
"development",
|
|
12969
13003
|
"normal",
|
|
12970
13004
|
"sideload",
|
|
13005
|
+
"admin",
|
|
12971
13006
|
"other"
|
|
12972
13007
|
]
|
|
12973
13008
|
},
|
|
@@ -13410,10 +13445,13 @@
|
|
|
13410
13445
|
},
|
|
13411
13446
|
"incognito": {
|
|
13412
13447
|
"type": "string",
|
|
13448
|
+
"description": "The 'split' value is not supported.",
|
|
13413
13449
|
"enum": [
|
|
13414
13450
|
"not_allowed",
|
|
13415
|
-
"spanning"
|
|
13451
|
+
"spanning",
|
|
13452
|
+
"split"
|
|
13416
13453
|
],
|
|
13454
|
+
"postprocess": "incognitoSplitUnsupportedAndFallback",
|
|
13417
13455
|
"default": "spanning",
|
|
13418
13456
|
"optional": true
|
|
13419
13457
|
},
|
|
@@ -13476,6 +13514,11 @@
|
|
|
13476
13514
|
],
|
|
13477
13515
|
"optional": true
|
|
13478
13516
|
},
|
|
13517
|
+
"options_page": {
|
|
13518
|
+
"$ref": "ExtensionURL",
|
|
13519
|
+
"optional": true,
|
|
13520
|
+
"description": "Alias property for options_ui.page, ignored when options_ui.page is set. When using this property the options page is always opened in a new tab."
|
|
13521
|
+
},
|
|
13479
13522
|
"options_ui": {
|
|
13480
13523
|
"type": "object",
|
|
13481
13524
|
"optional": true,
|
|
@@ -15713,6 +15756,132 @@
|
|
|
15713
15756
|
],
|
|
15714
15757
|
"description": "Use the <code>browser.runtime</code> API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.",
|
|
15715
15758
|
"types": [
|
|
15759
|
+
{
|
|
15760
|
+
"id": "ContextFilter",
|
|
15761
|
+
"min_manifest_version": 3,
|
|
15762
|
+
"type": "object",
|
|
15763
|
+
"description": "A filter to match against existing extension context. Matching contexts must match all specified filters.",
|
|
15764
|
+
"properties": {
|
|
15765
|
+
"contextIds": {
|
|
15766
|
+
"optional": true,
|
|
15767
|
+
"type": "array",
|
|
15768
|
+
"items": {
|
|
15769
|
+
"type": "string"
|
|
15770
|
+
}
|
|
15771
|
+
},
|
|
15772
|
+
"contextTypes": {
|
|
15773
|
+
"optional": true,
|
|
15774
|
+
"type": "array",
|
|
15775
|
+
"items": {
|
|
15776
|
+
"$ref": "ContextType"
|
|
15777
|
+
}
|
|
15778
|
+
},
|
|
15779
|
+
"documentIds": {
|
|
15780
|
+
"optional": true,
|
|
15781
|
+
"type": "array",
|
|
15782
|
+
"items": {
|
|
15783
|
+
"type": "string"
|
|
15784
|
+
}
|
|
15785
|
+
},
|
|
15786
|
+
"documentOrigins": {
|
|
15787
|
+
"optional": true,
|
|
15788
|
+
"type": "array",
|
|
15789
|
+
"items": {
|
|
15790
|
+
"type": "string"
|
|
15791
|
+
}
|
|
15792
|
+
},
|
|
15793
|
+
"documentUrls": {
|
|
15794
|
+
"optional": true,
|
|
15795
|
+
"type": "array",
|
|
15796
|
+
"items": {
|
|
15797
|
+
"type": "string"
|
|
15798
|
+
}
|
|
15799
|
+
},
|
|
15800
|
+
"frameIds": {
|
|
15801
|
+
"optional": true,
|
|
15802
|
+
"type": "array",
|
|
15803
|
+
"items": {
|
|
15804
|
+
"type": "integer"
|
|
15805
|
+
}
|
|
15806
|
+
},
|
|
15807
|
+
"tabIds": {
|
|
15808
|
+
"optional": true,
|
|
15809
|
+
"type": "array",
|
|
15810
|
+
"items": {
|
|
15811
|
+
"type": "integer"
|
|
15812
|
+
}
|
|
15813
|
+
},
|
|
15814
|
+
"windowIds": {
|
|
15815
|
+
"optional": true,
|
|
15816
|
+
"type": "array",
|
|
15817
|
+
"items": {
|
|
15818
|
+
"type": "integer"
|
|
15819
|
+
}
|
|
15820
|
+
},
|
|
15821
|
+
"incognito": {
|
|
15822
|
+
"optional": true,
|
|
15823
|
+
"type": "boolean"
|
|
15824
|
+
}
|
|
15825
|
+
}
|
|
15826
|
+
},
|
|
15827
|
+
{
|
|
15828
|
+
"id": "ContextType",
|
|
15829
|
+
"type": "string",
|
|
15830
|
+
"enum": [
|
|
15831
|
+
"BACKGROUND",
|
|
15832
|
+
"POPUP",
|
|
15833
|
+
"SIDE_PANEL",
|
|
15834
|
+
"TAB"
|
|
15835
|
+
],
|
|
15836
|
+
"description": "The type of extension view."
|
|
15837
|
+
},
|
|
15838
|
+
{
|
|
15839
|
+
"id": "ExtensionContext",
|
|
15840
|
+
"type": "object",
|
|
15841
|
+
"description": "A context hosting extension content",
|
|
15842
|
+
"properties": {
|
|
15843
|
+
"contextId": {
|
|
15844
|
+
"type": "string",
|
|
15845
|
+
"description": "An unique identifier associated to this context"
|
|
15846
|
+
},
|
|
15847
|
+
"contextType": {
|
|
15848
|
+
"$ref": "ContextType",
|
|
15849
|
+
"description": "The type of the context"
|
|
15850
|
+
},
|
|
15851
|
+
"documentId": {
|
|
15852
|
+
"type": "string",
|
|
15853
|
+
"unsupported": true,
|
|
15854
|
+
"optional": true,
|
|
15855
|
+
"description": "An UUID for the document associated with this context, or undefined if it is not hosted in a document"
|
|
15856
|
+
},
|
|
15857
|
+
"documentOrigin": {
|
|
15858
|
+
"type": "string",
|
|
15859
|
+
"optional": true,
|
|
15860
|
+
"description": "The origin of the document associated with this context, or undefined if it is not hosted in a document"
|
|
15861
|
+
},
|
|
15862
|
+
"documentUrl": {
|
|
15863
|
+
"type": "string",
|
|
15864
|
+
"optional": true,
|
|
15865
|
+
"description": "The URL of the document associated with this context, or undefined if it is not hosted in a document"
|
|
15866
|
+
},
|
|
15867
|
+
"incognito": {
|
|
15868
|
+
"type": "boolean",
|
|
15869
|
+
"description": "Whether the context is associated with an private browsing context."
|
|
15870
|
+
},
|
|
15871
|
+
"frameId": {
|
|
15872
|
+
"type": "integer",
|
|
15873
|
+
"description": "The frame ID for this context, or -1 if it is not hosted in a frame."
|
|
15874
|
+
},
|
|
15875
|
+
"tabId": {
|
|
15876
|
+
"type": "integer",
|
|
15877
|
+
"description": "The tab ID for this context, or -1 if it is not hosted in a tab."
|
|
15878
|
+
},
|
|
15879
|
+
"windowId": {
|
|
15880
|
+
"type": "integer",
|
|
15881
|
+
"description": "The window ID for this context, or -1 if it is not hosted in a window."
|
|
15882
|
+
}
|
|
15883
|
+
}
|
|
15884
|
+
},
|
|
15716
15885
|
{
|
|
15717
15886
|
"id": "Port",
|
|
15718
15887
|
"type": "object",
|
|
@@ -15982,6 +16151,33 @@
|
|
|
15982
16151
|
}
|
|
15983
16152
|
]
|
|
15984
16153
|
},
|
|
16154
|
+
{
|
|
16155
|
+
"name": "getContexts",
|
|
16156
|
+
"type": "function",
|
|
16157
|
+
"description": "Fetches information about active contexts associated with this extension",
|
|
16158
|
+
"async": "callback",
|
|
16159
|
+
"parameters": [
|
|
16160
|
+
{
|
|
16161
|
+
"name": "filter",
|
|
16162
|
+
"$ref": "ContextFilter",
|
|
16163
|
+
"description": "A filter to find matching context."
|
|
16164
|
+
},
|
|
16165
|
+
{
|
|
16166
|
+
"type": "function",
|
|
16167
|
+
"name": "callback",
|
|
16168
|
+
"parameters": [
|
|
16169
|
+
{
|
|
16170
|
+
"name": "contexts",
|
|
16171
|
+
"type": "array",
|
|
16172
|
+
"items": {
|
|
16173
|
+
"$ref": "ExtensionContext"
|
|
16174
|
+
},
|
|
16175
|
+
"description": "The matching contexts, if any."
|
|
16176
|
+
}
|
|
16177
|
+
]
|
|
16178
|
+
}
|
|
16179
|
+
]
|
|
16180
|
+
},
|
|
15985
16181
|
{
|
|
15986
16182
|
"name": "openOptionsPage",
|
|
15987
16183
|
"type": "function",
|
|
@@ -19710,6 +19906,7 @@
|
|
|
19710
19906
|
"type": "string",
|
|
19711
19907
|
"enum": [
|
|
19712
19908
|
"webRequest",
|
|
19909
|
+
"webRequestAuthProvider",
|
|
19713
19910
|
"webRequestBlocking",
|
|
19714
19911
|
"webRequestFilterResponse",
|
|
19715
19912
|
"webRequestFilterResponse.serviceWorkerScript"
|
|
@@ -19800,7 +19997,7 @@
|
|
|
19800
19997
|
"blocking",
|
|
19801
19998
|
"asyncBlocking"
|
|
19802
19999
|
],
|
|
19803
|
-
"postprocess": "
|
|
20000
|
+
"postprocess": "webRequestBlockingOrAuthProviderPermissionRequired"
|
|
19804
20001
|
},
|
|
19805
20002
|
{
|
|
19806
20003
|
"id": "OnResponseStartedOptions",
|
|
@@ -9981,6 +9981,20 @@
|
|
|
9981
9981
|
}
|
|
9982
9982
|
}
|
|
9983
9983
|
}
|
|
9984
|
+
},
|
|
9985
|
+
{
|
|
9986
|
+
"id": "GetRulesFilter",
|
|
9987
|
+
"type": "object",
|
|
9988
|
+
"properties": {
|
|
9989
|
+
"ruleIds": {
|
|
9990
|
+
"type": "array",
|
|
9991
|
+
"optional": true,
|
|
9992
|
+
"description": "If specified, only rules with matching IDs are included.",
|
|
9993
|
+
"items": {
|
|
9994
|
+
"type": "integer"
|
|
9995
|
+
}
|
|
9996
|
+
}
|
|
9997
|
+
}
|
|
9984
9998
|
}
|
|
9985
9999
|
],
|
|
9986
10000
|
"functions": [
|
|
@@ -10136,6 +10150,12 @@
|
|
|
10136
10150
|
"description": "Returns the current set of dynamic rules for the extension.",
|
|
10137
10151
|
"async": "callback",
|
|
10138
10152
|
"parameters": [
|
|
10153
|
+
{
|
|
10154
|
+
"name": "filter",
|
|
10155
|
+
"$ref": "GetRulesFilter",
|
|
10156
|
+
"optional": true,
|
|
10157
|
+
"description": "An object to filter the set of dynamic rules for the extension."
|
|
10158
|
+
},
|
|
10139
10159
|
{
|
|
10140
10160
|
"name": "callback",
|
|
10141
10161
|
"type": "function",
|
|
@@ -10157,6 +10177,12 @@
|
|
|
10157
10177
|
"description": "Returns the current set of session scoped rules for the extension.",
|
|
10158
10178
|
"async": "callback",
|
|
10159
10179
|
"parameters": [
|
|
10180
|
+
{
|
|
10181
|
+
"name": "filter",
|
|
10182
|
+
"$ref": "GetRulesFilter",
|
|
10183
|
+
"optional": true,
|
|
10184
|
+
"description": "An object to filter the set of session scoped rules for the extension."
|
|
10185
|
+
},
|
|
10160
10186
|
{
|
|
10161
10187
|
"name": "callback",
|
|
10162
10188
|
"type": "function",
|
|
@@ -12312,7 +12338,8 @@
|
|
|
12312
12338
|
"power",
|
|
12313
12339
|
"responsiveness",
|
|
12314
12340
|
"cpufreq",
|
|
12315
|
-
"bandwidth"
|
|
12341
|
+
"bandwidth",
|
|
12342
|
+
"memory"
|
|
12316
12343
|
]
|
|
12317
12344
|
},
|
|
12318
12345
|
{
|
|
@@ -12969,12 +12996,13 @@
|
|
|
12969
12996
|
},
|
|
12970
12997
|
{
|
|
12971
12998
|
"id": "ExtensionInstallType",
|
|
12972
|
-
"description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>other</var>: The extension was installed by other means.",
|
|
12999
|
+
"description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>admin</var>: The extension was installed by policy,<br><var>other</var>: The extension was installed by other means.",
|
|
12973
13000
|
"type": "string",
|
|
12974
13001
|
"enum": [
|
|
12975
13002
|
"development",
|
|
12976
13003
|
"normal",
|
|
12977
13004
|
"sideload",
|
|
13005
|
+
"admin",
|
|
12978
13006
|
"other"
|
|
12979
13007
|
]
|
|
12980
13008
|
},
|
|
@@ -13417,10 +13445,13 @@
|
|
|
13417
13445
|
},
|
|
13418
13446
|
"incognito": {
|
|
13419
13447
|
"type": "string",
|
|
13448
|
+
"description": "The 'split' value is not supported.",
|
|
13420
13449
|
"enum": [
|
|
13421
13450
|
"not_allowed",
|
|
13422
|
-
"spanning"
|
|
13451
|
+
"spanning",
|
|
13452
|
+
"split"
|
|
13423
13453
|
],
|
|
13454
|
+
"postprocess": "incognitoSplitUnsupportedAndFallback",
|
|
13424
13455
|
"default": "spanning",
|
|
13425
13456
|
"optional": true
|
|
13426
13457
|
},
|
|
@@ -14106,7 +14137,12 @@
|
|
|
14106
14137
|
"match_about_blank": {
|
|
14107
14138
|
"type": "boolean",
|
|
14108
14139
|
"optional": true,
|
|
14109
|
-
"description": "If
|
|
14140
|
+
"description": "If match_about_blank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Ignored if match_origin_as_fallback is specified. By default it is <code>false</code>."
|
|
14141
|
+
},
|
|
14142
|
+
"match_origin_as_fallback": {
|
|
14143
|
+
"type": "boolean",
|
|
14144
|
+
"optional": true,
|
|
14145
|
+
"description": "If match_origin_as_fallback is true, then the code is also injected in about:, data:, blob: when their origin matches the pattern in 'matches', even if the actual document origin is opaque (due to the use of CSP sandbox or iframe sandbox). Match patterns in 'matches' must specify a wildcard path glob. By default it is <code>false</code>."
|
|
14110
14146
|
},
|
|
14111
14147
|
"run_at": {
|
|
14112
14148
|
"$ref": "extensionTypes.RunAt",
|
|
@@ -15725,6 +15761,132 @@
|
|
|
15725
15761
|
],
|
|
15726
15762
|
"description": "Use the <code>browser.runtime</code> API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.",
|
|
15727
15763
|
"types": [
|
|
15764
|
+
{
|
|
15765
|
+
"id": "ContextFilter",
|
|
15766
|
+
"min_manifest_version": 3,
|
|
15767
|
+
"type": "object",
|
|
15768
|
+
"description": "A filter to match against existing extension context. Matching contexts must match all specified filters.",
|
|
15769
|
+
"properties": {
|
|
15770
|
+
"contextIds": {
|
|
15771
|
+
"optional": true,
|
|
15772
|
+
"type": "array",
|
|
15773
|
+
"items": {
|
|
15774
|
+
"type": "string"
|
|
15775
|
+
}
|
|
15776
|
+
},
|
|
15777
|
+
"contextTypes": {
|
|
15778
|
+
"optional": true,
|
|
15779
|
+
"type": "array",
|
|
15780
|
+
"items": {
|
|
15781
|
+
"$ref": "ContextType"
|
|
15782
|
+
}
|
|
15783
|
+
},
|
|
15784
|
+
"documentIds": {
|
|
15785
|
+
"optional": true,
|
|
15786
|
+
"type": "array",
|
|
15787
|
+
"items": {
|
|
15788
|
+
"type": "string"
|
|
15789
|
+
}
|
|
15790
|
+
},
|
|
15791
|
+
"documentOrigins": {
|
|
15792
|
+
"optional": true,
|
|
15793
|
+
"type": "array",
|
|
15794
|
+
"items": {
|
|
15795
|
+
"type": "string"
|
|
15796
|
+
}
|
|
15797
|
+
},
|
|
15798
|
+
"documentUrls": {
|
|
15799
|
+
"optional": true,
|
|
15800
|
+
"type": "array",
|
|
15801
|
+
"items": {
|
|
15802
|
+
"type": "string"
|
|
15803
|
+
}
|
|
15804
|
+
},
|
|
15805
|
+
"frameIds": {
|
|
15806
|
+
"optional": true,
|
|
15807
|
+
"type": "array",
|
|
15808
|
+
"items": {
|
|
15809
|
+
"type": "integer"
|
|
15810
|
+
}
|
|
15811
|
+
},
|
|
15812
|
+
"tabIds": {
|
|
15813
|
+
"optional": true,
|
|
15814
|
+
"type": "array",
|
|
15815
|
+
"items": {
|
|
15816
|
+
"type": "integer"
|
|
15817
|
+
}
|
|
15818
|
+
},
|
|
15819
|
+
"windowIds": {
|
|
15820
|
+
"optional": true,
|
|
15821
|
+
"type": "array",
|
|
15822
|
+
"items": {
|
|
15823
|
+
"type": "integer"
|
|
15824
|
+
}
|
|
15825
|
+
},
|
|
15826
|
+
"incognito": {
|
|
15827
|
+
"optional": true,
|
|
15828
|
+
"type": "boolean"
|
|
15829
|
+
}
|
|
15830
|
+
}
|
|
15831
|
+
},
|
|
15832
|
+
{
|
|
15833
|
+
"id": "ContextType",
|
|
15834
|
+
"type": "string",
|
|
15835
|
+
"enum": [
|
|
15836
|
+
"BACKGROUND",
|
|
15837
|
+
"POPUP",
|
|
15838
|
+
"SIDE_PANEL",
|
|
15839
|
+
"TAB"
|
|
15840
|
+
],
|
|
15841
|
+
"description": "The type of extension view."
|
|
15842
|
+
},
|
|
15843
|
+
{
|
|
15844
|
+
"id": "ExtensionContext",
|
|
15845
|
+
"type": "object",
|
|
15846
|
+
"description": "A context hosting extension content",
|
|
15847
|
+
"properties": {
|
|
15848
|
+
"contextId": {
|
|
15849
|
+
"type": "string",
|
|
15850
|
+
"description": "An unique identifier associated to this context"
|
|
15851
|
+
},
|
|
15852
|
+
"contextType": {
|
|
15853
|
+
"$ref": "ContextType",
|
|
15854
|
+
"description": "The type of the context"
|
|
15855
|
+
},
|
|
15856
|
+
"documentId": {
|
|
15857
|
+
"type": "string",
|
|
15858
|
+
"unsupported": true,
|
|
15859
|
+
"optional": true,
|
|
15860
|
+
"description": "An UUID for the document associated with this context, or undefined if it is not hosted in a document"
|
|
15861
|
+
},
|
|
15862
|
+
"documentOrigin": {
|
|
15863
|
+
"type": "string",
|
|
15864
|
+
"optional": true,
|
|
15865
|
+
"description": "The origin of the document associated with this context, or undefined if it is not hosted in a document"
|
|
15866
|
+
},
|
|
15867
|
+
"documentUrl": {
|
|
15868
|
+
"type": "string",
|
|
15869
|
+
"optional": true,
|
|
15870
|
+
"description": "The URL of the document associated with this context, or undefined if it is not hosted in a document"
|
|
15871
|
+
},
|
|
15872
|
+
"incognito": {
|
|
15873
|
+
"type": "boolean",
|
|
15874
|
+
"description": "Whether the context is associated with an private browsing context."
|
|
15875
|
+
},
|
|
15876
|
+
"frameId": {
|
|
15877
|
+
"type": "integer",
|
|
15878
|
+
"description": "The frame ID for this context, or -1 if it is not hosted in a frame."
|
|
15879
|
+
},
|
|
15880
|
+
"tabId": {
|
|
15881
|
+
"type": "integer",
|
|
15882
|
+
"description": "The tab ID for this context, or -1 if it is not hosted in a tab."
|
|
15883
|
+
},
|
|
15884
|
+
"windowId": {
|
|
15885
|
+
"type": "integer",
|
|
15886
|
+
"description": "The window ID for this context, or -1 if it is not hosted in a window."
|
|
15887
|
+
}
|
|
15888
|
+
}
|
|
15889
|
+
},
|
|
15728
15890
|
{
|
|
15729
15891
|
"id": "Port",
|
|
15730
15892
|
"type": "object",
|
|
@@ -15994,6 +16156,33 @@
|
|
|
15994
16156
|
}
|
|
15995
16157
|
]
|
|
15996
16158
|
},
|
|
16159
|
+
{
|
|
16160
|
+
"name": "getContexts",
|
|
16161
|
+
"type": "function",
|
|
16162
|
+
"description": "Fetches information about active contexts associated with this extension",
|
|
16163
|
+
"async": "callback",
|
|
16164
|
+
"parameters": [
|
|
16165
|
+
{
|
|
16166
|
+
"name": "filter",
|
|
16167
|
+
"$ref": "ContextFilter",
|
|
16168
|
+
"description": "A filter to find matching context."
|
|
16169
|
+
},
|
|
16170
|
+
{
|
|
16171
|
+
"type": "function",
|
|
16172
|
+
"name": "callback",
|
|
16173
|
+
"parameters": [
|
|
16174
|
+
{
|
|
16175
|
+
"name": "contexts",
|
|
16176
|
+
"type": "array",
|
|
16177
|
+
"items": {
|
|
16178
|
+
"$ref": "ExtensionContext"
|
|
16179
|
+
},
|
|
16180
|
+
"description": "The matching contexts, if any."
|
|
16181
|
+
}
|
|
16182
|
+
]
|
|
16183
|
+
}
|
|
16184
|
+
]
|
|
16185
|
+
},
|
|
15997
16186
|
{
|
|
15998
16187
|
"name": "openOptionsPage",
|
|
15999
16188
|
"type": "function",
|
|
@@ -16752,6 +16941,11 @@
|
|
|
16752
16941
|
"type": "string"
|
|
16753
16942
|
}
|
|
16754
16943
|
},
|
|
16944
|
+
"matchOriginAsFallback": {
|
|
16945
|
+
"type": "boolean",
|
|
16946
|
+
"optional": true,
|
|
16947
|
+
"description": "If matchOriginAsFallback is true, then the code is also injected in about:, data:, blob: when their origin matches the pattern in 'matches', even if the actual document origin is opaque (due to the use of CSP sandbox or iframe sandbox). Match patterns in 'matches' must specify a wildcard path glob. By default it is <code>false</code>."
|
|
16948
|
+
},
|
|
16755
16949
|
"runAt": {
|
|
16756
16950
|
"$ref": "extensionTypes.RunAt",
|
|
16757
16951
|
"optional": true,
|
|
@@ -20820,7 +21014,7 @@
|
|
|
20820
21014
|
{
|
|
20821
21015
|
"type": "function",
|
|
20822
21016
|
"optional": true,
|
|
20823
|
-
"name": "
|
|
21017
|
+
"name": "asyncCallback",
|
|
20824
21018
|
"parameters": [
|
|
20825
21019
|
{
|
|
20826
21020
|
"name": "response",
|
|
@@ -20839,6 +21033,7 @@
|
|
|
20839
21033
|
"type": "array",
|
|
20840
21034
|
"optional": true,
|
|
20841
21035
|
"name": "extraInfoSpec",
|
|
21036
|
+
"postprocess": "mutuallyExclusiveBlockingOrAsyncBlocking",
|
|
20842
21037
|
"description": "Array of extra information that should be passed to the listener function.",
|
|
20843
21038
|
"items": {
|
|
20844
21039
|
"$ref": "OnAuthRequiredOptions"
|