webext-schema 5.5.0 → 5.5.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/modules/commander.js +1 -1
- package/package.json +15 -16
- package/schemas/beta/webext.json +512 -64
- package/schemas/central/webext.json +512 -64
- package/schemas/mail/mailext.json +136 -16
- package/schemas/release/webext.json +514 -67
package/schemas/beta/webext.json
CHANGED
|
@@ -748,54 +748,6 @@
|
|
|
748
748
|
"type": "boolean",
|
|
749
749
|
"optional": true,
|
|
750
750
|
"description": "Sets the default engine to a built-in engine only."
|
|
751
|
-
},
|
|
752
|
-
"params": {
|
|
753
|
-
"optional": true,
|
|
754
|
-
"max_manifest_version": 2,
|
|
755
|
-
"type": "array",
|
|
756
|
-
"items": {
|
|
757
|
-
"type": "object",
|
|
758
|
-
"properties": {
|
|
759
|
-
"name": {
|
|
760
|
-
"type": "string",
|
|
761
|
-
"description": "A url parameter name"
|
|
762
|
-
},
|
|
763
|
-
"condition": {
|
|
764
|
-
"type": "string",
|
|
765
|
-
"optional": true,
|
|
766
|
-
"enum": [
|
|
767
|
-
"purpose",
|
|
768
|
-
"pref"
|
|
769
|
-
],
|
|
770
|
-
"description": "The type of param can be either \"purpose\" or \"pref\"."
|
|
771
|
-
},
|
|
772
|
-
"pref": {
|
|
773
|
-
"type": "string",
|
|
774
|
-
"optional": true,
|
|
775
|
-
"description": "The preference to retrieve the value from.",
|
|
776
|
-
"preprocess": "localize"
|
|
777
|
-
},
|
|
778
|
-
"purpose": {
|
|
779
|
-
"type": "string",
|
|
780
|
-
"optional": true,
|
|
781
|
-
"enum": [
|
|
782
|
-
"contextmenu",
|
|
783
|
-
"searchbar",
|
|
784
|
-
"homepage",
|
|
785
|
-
"keyword",
|
|
786
|
-
"newtab"
|
|
787
|
-
],
|
|
788
|
-
"description": "The context that initiates a search, required if condition is \"purpose\"."
|
|
789
|
-
},
|
|
790
|
-
"value": {
|
|
791
|
-
"type": "string",
|
|
792
|
-
"optional": true,
|
|
793
|
-
"description": "A url parameter value.",
|
|
794
|
-
"preprocess": "localize"
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
"description": "A list of optional search url parameters. This allows the additon of search url parameters based on how the search is performed in Firefox."
|
|
799
751
|
}
|
|
800
752
|
}
|
|
801
753
|
}
|
|
@@ -9638,6 +9590,7 @@
|
|
|
9638
9590
|
"imageset",
|
|
9639
9591
|
"web_manifest",
|
|
9640
9592
|
"speculative",
|
|
9593
|
+
"json",
|
|
9641
9594
|
"other"
|
|
9642
9595
|
]
|
|
9643
9596
|
},
|
|
@@ -12445,7 +12398,9 @@
|
|
|
12445
12398
|
"cpufreq",
|
|
12446
12399
|
"bandwidth",
|
|
12447
12400
|
"memory",
|
|
12448
|
-
"tracing"
|
|
12401
|
+
"tracing",
|
|
12402
|
+
"sandbox",
|
|
12403
|
+
"flows"
|
|
12449
12404
|
]
|
|
12450
12405
|
},
|
|
12451
12406
|
{
|
|
@@ -13912,6 +13867,15 @@
|
|
|
13912
13867
|
"$ref": "UnrecognizedProperty"
|
|
13913
13868
|
}
|
|
13914
13869
|
},
|
|
13870
|
+
{
|
|
13871
|
+
"id": "OptionalOnlyPermission",
|
|
13872
|
+
"choices": [
|
|
13873
|
+
{
|
|
13874
|
+
"type": "string",
|
|
13875
|
+
"enum": []
|
|
13876
|
+
}
|
|
13877
|
+
]
|
|
13878
|
+
},
|
|
13915
13879
|
{
|
|
13916
13880
|
"id": "OptionalPermissionNoPrompt",
|
|
13917
13881
|
"choices": [
|
|
@@ -13946,6 +13910,9 @@
|
|
|
13946
13910
|
{
|
|
13947
13911
|
"$ref": "OptionalPermission"
|
|
13948
13912
|
},
|
|
13913
|
+
{
|
|
13914
|
+
"$ref": "OptionalOnlyPermission"
|
|
13915
|
+
},
|
|
13949
13916
|
{
|
|
13950
13917
|
"$ref": "MatchPattern"
|
|
13951
13918
|
}
|
|
@@ -14419,7 +14386,7 @@
|
|
|
14419
14386
|
{
|
|
14420
14387
|
"name": "getLinkInfo",
|
|
14421
14388
|
"type": "function",
|
|
14422
|
-
"description": "Returns the $(ref:NetworkLinkInfo
|
|
14389
|
+
"description": "Returns the $(ref:NetworkLinkInfo) of the current network connection.",
|
|
14423
14390
|
"async": true,
|
|
14424
14391
|
"parameters": []
|
|
14425
14392
|
}
|
|
@@ -15249,7 +15216,14 @@
|
|
|
15249
15216
|
"permissions": {
|
|
15250
15217
|
"type": "array",
|
|
15251
15218
|
"items": {
|
|
15252
|
-
"
|
|
15219
|
+
"choices": [
|
|
15220
|
+
{
|
|
15221
|
+
"$ref": "manifest.OptionalPermission"
|
|
15222
|
+
},
|
|
15223
|
+
{
|
|
15224
|
+
"$ref": "manifest.OptionalOnlyPermission"
|
|
15225
|
+
}
|
|
15226
|
+
]
|
|
15253
15227
|
},
|
|
15254
15228
|
"optional": true,
|
|
15255
15229
|
"default": []
|
|
@@ -15271,7 +15245,14 @@
|
|
|
15271
15245
|
"permissions": {
|
|
15272
15246
|
"type": "array",
|
|
15273
15247
|
"items": {
|
|
15274
|
-
"
|
|
15248
|
+
"choices": [
|
|
15249
|
+
{
|
|
15250
|
+
"$ref": "manifest.Permission"
|
|
15251
|
+
},
|
|
15252
|
+
{
|
|
15253
|
+
"$ref": "manifest.OptionalOnlyPermission"
|
|
15254
|
+
}
|
|
15255
|
+
]
|
|
15275
15256
|
},
|
|
15276
15257
|
"optional": true,
|
|
15277
15258
|
"default": []
|
|
@@ -16048,6 +16029,11 @@
|
|
|
16048
16029
|
"type": "string",
|
|
16049
16030
|
"optional": true,
|
|
16050
16031
|
"description": "The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available."
|
|
16032
|
+
},
|
|
16033
|
+
"userScriptWorldId": {
|
|
16034
|
+
"type": "string",
|
|
16035
|
+
"optional": true,
|
|
16036
|
+
"description": "The worldId of the USER_SCRIPT world that sent the message. Only present on onUserScriptMessage and onUserScriptConnect (in port.sender) events."
|
|
16051
16037
|
}
|
|
16052
16038
|
}
|
|
16053
16039
|
},
|
|
@@ -16716,6 +16702,20 @@
|
|
|
16716
16702
|
}
|
|
16717
16703
|
]
|
|
16718
16704
|
},
|
|
16705
|
+
{
|
|
16706
|
+
"name": "onUserScriptConnect",
|
|
16707
|
+
"type": "function",
|
|
16708
|
+
"description": "Fired when a connection is made from a USER_SCRIPT world registered through the userScripts API.",
|
|
16709
|
+
"permissions": [
|
|
16710
|
+
"userScripts"
|
|
16711
|
+
],
|
|
16712
|
+
"parameters": [
|
|
16713
|
+
{
|
|
16714
|
+
"$ref": "Port",
|
|
16715
|
+
"name": "port"
|
|
16716
|
+
}
|
|
16717
|
+
]
|
|
16718
|
+
},
|
|
16719
16719
|
{
|
|
16720
16720
|
"name": "onConnectExternal",
|
|
16721
16721
|
"type": "function",
|
|
@@ -16785,6 +16785,36 @@
|
|
|
16785
16785
|
"description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
|
|
16786
16786
|
}
|
|
16787
16787
|
},
|
|
16788
|
+
{
|
|
16789
|
+
"name": "onUserScriptMessage",
|
|
16790
|
+
"type": "function",
|
|
16791
|
+
"description": "Fired when a message is sent from a USER_SCRIPT world registered through the userScripts API.",
|
|
16792
|
+
"permissions": [
|
|
16793
|
+
"userScripts"
|
|
16794
|
+
],
|
|
16795
|
+
"parameters": [
|
|
16796
|
+
{
|
|
16797
|
+
"name": "message",
|
|
16798
|
+
"type": "any",
|
|
16799
|
+
"optional": true,
|
|
16800
|
+
"description": "The message sent by the calling script."
|
|
16801
|
+
},
|
|
16802
|
+
{
|
|
16803
|
+
"name": "sender",
|
|
16804
|
+
"$ref": "MessageSender"
|
|
16805
|
+
},
|
|
16806
|
+
{
|
|
16807
|
+
"name": "sendResponse",
|
|
16808
|
+
"type": "function",
|
|
16809
|
+
"description": "Function to call (at most once) when you have a response. The argument should be any JSON-ifiable object. If you have more than one <code>onMessage</code> listener in the same document, then only one may send a response. This function becomes invalid when the event listener returns, unless you return true from the event listener to indicate you wish to send a response asynchronously (this will keep the message channel open to the other end until <code>sendResponse</code> is called)."
|
|
16810
|
+
}
|
|
16811
|
+
],
|
|
16812
|
+
"returns": {
|
|
16813
|
+
"type": "boolean",
|
|
16814
|
+
"optional": true,
|
|
16815
|
+
"description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
|
|
16816
|
+
}
|
|
16817
|
+
},
|
|
16788
16818
|
{
|
|
16789
16819
|
"name": "onRestartRequired",
|
|
16790
16820
|
"unsupported": true,
|
|
@@ -17874,6 +17904,7 @@
|
|
|
17874
17904
|
},
|
|
17875
17905
|
{
|
|
17876
17906
|
"name": "scalarAdd",
|
|
17907
|
+
"deprecated": "`scalarAdd` is a no-op since Firefox 134 (see bug 1930196)",
|
|
17877
17908
|
"type": "function",
|
|
17878
17909
|
"description": "Adds the value to the given scalar.",
|
|
17879
17910
|
"async": true,
|
|
@@ -17893,6 +17924,7 @@
|
|
|
17893
17924
|
},
|
|
17894
17925
|
{
|
|
17895
17926
|
"name": "scalarSet",
|
|
17927
|
+
"deprecated": "`scalarSet` is a no-op since Firefox 134 (see bug 1930196)",
|
|
17896
17928
|
"type": "function",
|
|
17897
17929
|
"description": "Sets the named scalar to the given value. Throws if the value type doesn't match the scalar type.",
|
|
17898
17930
|
"async": true,
|
|
@@ -17927,6 +17959,7 @@
|
|
|
17927
17959
|
},
|
|
17928
17960
|
{
|
|
17929
17961
|
"name": "scalarSetMaximum",
|
|
17962
|
+
"deprecated": "`scalarSetMaximum` is a no-op since Firefox 134 (see bug 1930196)",
|
|
17930
17963
|
"type": "function",
|
|
17931
17964
|
"description": "Sets the scalar to the maximum of the current and the passed value",
|
|
17932
17965
|
"async": true,
|
|
@@ -17946,6 +17979,7 @@
|
|
|
17946
17979
|
},
|
|
17947
17980
|
{
|
|
17948
17981
|
"name": "keyedScalarAdd",
|
|
17982
|
+
"deprecated": "`keyedScalarAdd` is a no-op since Firefox 134 (see bug 1930196)",
|
|
17949
17983
|
"type": "function",
|
|
17950
17984
|
"description": "Adds the value to the given keyed scalar.",
|
|
17951
17985
|
"async": true,
|
|
@@ -17970,6 +18004,7 @@
|
|
|
17970
18004
|
},
|
|
17971
18005
|
{
|
|
17972
18006
|
"name": "keyedScalarSet",
|
|
18007
|
+
"deprecated": "`keyedScalarSet` is a no-op since Firefox 134 (see bug 1930196)",
|
|
17973
18008
|
"type": "function",
|
|
17974
18009
|
"description": "Sets the keyed scalar to the given value. Throws if the value type doesn't match the scalar type.",
|
|
17975
18010
|
"async": true,
|
|
@@ -18009,6 +18044,7 @@
|
|
|
18009
18044
|
},
|
|
18010
18045
|
{
|
|
18011
18046
|
"name": "keyedScalarSetMaximum",
|
|
18047
|
+
"deprecated": "`keyedScalarSetMaximum` is a no-op since Firefox 134 (see bug 1930196)",
|
|
18012
18048
|
"type": "function",
|
|
18013
18049
|
"description": "Sets the keyed scalar to the maximum of the current and the passed value",
|
|
18014
18050
|
"async": true,
|
|
@@ -18072,6 +18108,7 @@
|
|
|
18072
18108
|
},
|
|
18073
18109
|
{
|
|
18074
18110
|
"name": "registerScalars",
|
|
18111
|
+
"deprecated": "`registerScalars` is a no-op since Firefox 134 (see bug 1930196)",
|
|
18075
18112
|
"type": "function",
|
|
18076
18113
|
"description": "Register new scalars to record them from addons. See nsITelemetry.idl for more details.",
|
|
18077
18114
|
"async": true,
|
|
@@ -18939,6 +18976,110 @@
|
|
|
18939
18976
|
]
|
|
18940
18977
|
}
|
|
18941
18978
|
],
|
|
18979
|
+
"trial_ml.json": [
|
|
18980
|
+
{
|
|
18981
|
+
"namespace": "manifest",
|
|
18982
|
+
"types": [
|
|
18983
|
+
{
|
|
18984
|
+
"$extend": "OptionalOnlyPermission",
|
|
18985
|
+
"choices": [
|
|
18986
|
+
{
|
|
18987
|
+
"type": "string",
|
|
18988
|
+
"enum": [
|
|
18989
|
+
"trialML"
|
|
18990
|
+
]
|
|
18991
|
+
}
|
|
18992
|
+
]
|
|
18993
|
+
}
|
|
18994
|
+
]
|
|
18995
|
+
},
|
|
18996
|
+
{
|
|
18997
|
+
"namespace": "trial",
|
|
18998
|
+
"allowedContexts": [
|
|
18999
|
+
"content"
|
|
19000
|
+
],
|
|
19001
|
+
"permissions": [
|
|
19002
|
+
"trialML"
|
|
19003
|
+
]
|
|
19004
|
+
},
|
|
19005
|
+
{
|
|
19006
|
+
"namespace": "trial.ml",
|
|
19007
|
+
"description": "Use the trial ML API to run Machine Learning models requests from extensions pages or content scripts.",
|
|
19008
|
+
"allowedContexts": [
|
|
19009
|
+
"content"
|
|
19010
|
+
],
|
|
19011
|
+
"permissions": [
|
|
19012
|
+
"trialML"
|
|
19013
|
+
],
|
|
19014
|
+
"events": [
|
|
19015
|
+
{
|
|
19016
|
+
"name": "onProgress",
|
|
19017
|
+
"type": "function",
|
|
19018
|
+
"allowedContexts": [
|
|
19019
|
+
"content"
|
|
19020
|
+
],
|
|
19021
|
+
"description": "Events from the inference engine.",
|
|
19022
|
+
"parameters": [
|
|
19023
|
+
{
|
|
19024
|
+
"name": "progressData",
|
|
19025
|
+
"description": "Object containing the data, see https://firefox-source-docs.mozilla.org/toolkit/components/ml/notifications.html",
|
|
19026
|
+
"type": "object"
|
|
19027
|
+
}
|
|
19028
|
+
]
|
|
19029
|
+
}
|
|
19030
|
+
],
|
|
19031
|
+
"types": [
|
|
19032
|
+
{
|
|
19033
|
+
"id": "CreateEngineRequest",
|
|
19034
|
+
"type": "object",
|
|
19035
|
+
"additionalProperties": true
|
|
19036
|
+
},
|
|
19037
|
+
{
|
|
19038
|
+
"id": "RunEngineRequest",
|
|
19039
|
+
"type": "object",
|
|
19040
|
+
"additionalProperties": true
|
|
19041
|
+
}
|
|
19042
|
+
],
|
|
19043
|
+
"functions": [
|
|
19044
|
+
{
|
|
19045
|
+
"name": "createEngine",
|
|
19046
|
+
"type": "function",
|
|
19047
|
+
"description": "Prepare the inference engine",
|
|
19048
|
+
"async": true,
|
|
19049
|
+
"parameters": [
|
|
19050
|
+
{
|
|
19051
|
+
"name": "CreateEngineRequest",
|
|
19052
|
+
"$ref": "CreateEngineRequest"
|
|
19053
|
+
}
|
|
19054
|
+
]
|
|
19055
|
+
},
|
|
19056
|
+
{
|
|
19057
|
+
"name": "runEngine",
|
|
19058
|
+
"type": "function",
|
|
19059
|
+
"allowedContexts": [
|
|
19060
|
+
"content"
|
|
19061
|
+
],
|
|
19062
|
+
"description": "Call the inference engine",
|
|
19063
|
+
"async": true,
|
|
19064
|
+
"parameters": [
|
|
19065
|
+
{
|
|
19066
|
+
"name": "RunEngineRequest",
|
|
19067
|
+
"$ref": "RunEngineRequest"
|
|
19068
|
+
}
|
|
19069
|
+
]
|
|
19070
|
+
},
|
|
19071
|
+
{
|
|
19072
|
+
"name": "deleteCachedModels",
|
|
19073
|
+
"type": "function",
|
|
19074
|
+
"allowedContexts": [
|
|
19075
|
+
"content"
|
|
19076
|
+
],
|
|
19077
|
+
"description": "Delete the models the extension downloaded.",
|
|
19078
|
+
"async": true
|
|
19079
|
+
}
|
|
19080
|
+
]
|
|
19081
|
+
}
|
|
19082
|
+
],
|
|
18942
19083
|
"types.json": [
|
|
18943
19084
|
{
|
|
18944
19085
|
"namespace": "types",
|
|
@@ -19111,6 +19252,17 @@
|
|
|
19111
19252
|
{
|
|
19112
19253
|
"namespace": "manifest",
|
|
19113
19254
|
"types": [
|
|
19255
|
+
{
|
|
19256
|
+
"$extend": "OptionalOnlyPermission",
|
|
19257
|
+
"choices": [
|
|
19258
|
+
{
|
|
19259
|
+
"type": "string",
|
|
19260
|
+
"enum": [
|
|
19261
|
+
"userScripts"
|
|
19262
|
+
]
|
|
19263
|
+
}
|
|
19264
|
+
]
|
|
19265
|
+
},
|
|
19114
19266
|
{
|
|
19115
19267
|
"$extend": "WebExtensionManifest",
|
|
19116
19268
|
"properties": {
|
|
@@ -19134,13 +19286,14 @@
|
|
|
19134
19286
|
},
|
|
19135
19287
|
{
|
|
19136
19288
|
"namespace": "userScripts",
|
|
19137
|
-
"max_manifest_version": 2,
|
|
19138
19289
|
"permissions": [
|
|
19139
|
-
"manifest:user_scripts"
|
|
19290
|
+
"manifest:user_scripts",
|
|
19291
|
+
"userScripts"
|
|
19140
19292
|
],
|
|
19141
19293
|
"types": [
|
|
19142
19294
|
{
|
|
19143
19295
|
"id": "UserScriptOptions",
|
|
19296
|
+
"max_manifest_version": 2,
|
|
19144
19297
|
"type": "object",
|
|
19145
19298
|
"description": "Details of a user script",
|
|
19146
19299
|
"properties": {
|
|
@@ -19226,29 +19379,322 @@
|
|
|
19226
19379
|
},
|
|
19227
19380
|
{
|
|
19228
19381
|
"id": "RegisteredUserScript",
|
|
19382
|
+
"min_manifest_version": 3,
|
|
19229
19383
|
"type": "object",
|
|
19230
19384
|
"description": "An object that represents a user script registered programmatically",
|
|
19231
|
-
"
|
|
19385
|
+
"properties": {
|
|
19386
|
+
"id": {
|
|
19387
|
+
"type": "string",
|
|
19388
|
+
"optional": false,
|
|
19389
|
+
"description": "The ID of the user script specified in the API call. This property must not start with a '_' as it's reserved as a prefix for generated script IDs."
|
|
19390
|
+
},
|
|
19391
|
+
"allFrames": {
|
|
19392
|
+
"type": "boolean",
|
|
19393
|
+
"optional": true,
|
|
19394
|
+
"description": "If allFrames is <code>true</code>, implies that the JavaScript should be injected into all frames of current page. By default, it's <code>false</code> and is only injected into the top frame."
|
|
19395
|
+
},
|
|
19396
|
+
"js": {
|
|
19397
|
+
"type": "array",
|
|
19398
|
+
"optional": false,
|
|
19399
|
+
"description": "The list of ScriptSource objects defining sources of scripts to be injected into matching pages.",
|
|
19400
|
+
"items": {
|
|
19401
|
+
"$ref": "ScriptSource"
|
|
19402
|
+
}
|
|
19403
|
+
},
|
|
19404
|
+
"matches": {
|
|
19405
|
+
"type": "array",
|
|
19406
|
+
"optional": true,
|
|
19407
|
+
"description": "At least one of matches or includeGlobs should be non-empty. The script runs in documents whose URL match either pattern.",
|
|
19408
|
+
"items": {
|
|
19409
|
+
"$ref": "manifest.MatchPattern"
|
|
19410
|
+
}
|
|
19411
|
+
},
|
|
19412
|
+
"excludeMatches": {
|
|
19413
|
+
"type": "array",
|
|
19414
|
+
"optional": true,
|
|
19415
|
+
"items": {
|
|
19416
|
+
"$ref": "manifest.MatchPattern"
|
|
19417
|
+
}
|
|
19418
|
+
},
|
|
19419
|
+
"includeGlobs": {
|
|
19420
|
+
"type": "array",
|
|
19421
|
+
"optional": true,
|
|
19422
|
+
"description": "At least one of matches or includeGlobs should be non-empty. The script runs in documents whose URL match either pattern.",
|
|
19423
|
+
"items": {
|
|
19424
|
+
"type": "string"
|
|
19425
|
+
}
|
|
19426
|
+
},
|
|
19427
|
+
"excludeGlobs": {
|
|
19428
|
+
"type": "array",
|
|
19429
|
+
"optional": true,
|
|
19430
|
+
"items": {
|
|
19431
|
+
"type": "string"
|
|
19432
|
+
}
|
|
19433
|
+
},
|
|
19434
|
+
"runAt": {
|
|
19435
|
+
"$ref": "extensionTypes.RunAt",
|
|
19436
|
+
"optional": true,
|
|
19437
|
+
"description": "The soonest that the JavaScript will be injected into the tab. Defaults to \"document_idle\"."
|
|
19438
|
+
},
|
|
19439
|
+
"world": {
|
|
19440
|
+
"$ref": "ExecutionWorld",
|
|
19441
|
+
"optional": true,
|
|
19442
|
+
"description": "The JavaScript script for a script to execute within. Defaults to \"USER_SCRIPT\"."
|
|
19443
|
+
},
|
|
19444
|
+
"worldId": {
|
|
19445
|
+
"type": "string",
|
|
19446
|
+
"optional": true,
|
|
19447
|
+
"description": "If specified, specifies a specific user script world ID to execute in. Only valid if `world` is omitted or is `USER_SCRIPT`. If `worldId` is omitted, the script will execute in the default user script world (\"\"). Values with leading underscores (`_`) are reserved. The maximum length is 256."
|
|
19448
|
+
}
|
|
19449
|
+
}
|
|
19450
|
+
},
|
|
19451
|
+
{
|
|
19452
|
+
"id": "ExecutionWorld",
|
|
19453
|
+
"min_manifest_version": 3,
|
|
19454
|
+
"type": "string",
|
|
19455
|
+
"enum": [
|
|
19456
|
+
"MAIN",
|
|
19457
|
+
"USER_SCRIPT"
|
|
19458
|
+
],
|
|
19459
|
+
"description": "The JavaScript world for a script to execute within. <code>USER_SCRIPT</code> is the default execution environment of user scripts, <code>MAIN</code> is the web page's execution environment."
|
|
19460
|
+
},
|
|
19461
|
+
{
|
|
19462
|
+
"id": "UserScriptFilter",
|
|
19463
|
+
"min_manifest_version": 3,
|
|
19464
|
+
"type": "object",
|
|
19465
|
+
"description": "Optional filter to use with getScripts() and unregister().",
|
|
19466
|
+
"properties": {
|
|
19467
|
+
"ids": {
|
|
19468
|
+
"type": "array",
|
|
19469
|
+
"optional": true,
|
|
19470
|
+
"items": {
|
|
19471
|
+
"type": "string"
|
|
19472
|
+
}
|
|
19473
|
+
}
|
|
19474
|
+
}
|
|
19475
|
+
},
|
|
19476
|
+
{
|
|
19477
|
+
"id": "ScriptSource",
|
|
19478
|
+
"min_manifest_version": 3,
|
|
19479
|
+
"description": "Object with file xor code property. Equivalent to the ExtensionFileOrCode, except the file remains a relative URL.",
|
|
19480
|
+
"choices": [
|
|
19232
19481
|
{
|
|
19233
|
-
"
|
|
19234
|
-
"
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19482
|
+
"type": "object",
|
|
19483
|
+
"properties": {
|
|
19484
|
+
"file": {
|
|
19485
|
+
"type": "string",
|
|
19486
|
+
"description": "The path of the JavaScript file to inject relative to the extension's root directory.",
|
|
19487
|
+
"format": "unresolvedRelativeUrl"
|
|
19488
|
+
}
|
|
19489
|
+
}
|
|
19490
|
+
},
|
|
19491
|
+
{
|
|
19492
|
+
"type": "object",
|
|
19493
|
+
"properties": {
|
|
19494
|
+
"code": {
|
|
19495
|
+
"type": "string"
|
|
19496
|
+
}
|
|
19497
|
+
}
|
|
19238
19498
|
}
|
|
19239
19499
|
]
|
|
19500
|
+
},
|
|
19501
|
+
{
|
|
19502
|
+
"id": "WorldProperties",
|
|
19503
|
+
"min_manifest_version": 3,
|
|
19504
|
+
"type": "object",
|
|
19505
|
+
"description": "The configuration of a USER_SCRIPT world.",
|
|
19506
|
+
"properties": {
|
|
19507
|
+
"worldId": {
|
|
19508
|
+
"type": "string",
|
|
19509
|
+
"optional": true,
|
|
19510
|
+
"default": "",
|
|
19511
|
+
"description": "The identifier of the world. Values with leading underscores (`_`) are reserved. The maximum length is 256. Defaults to the default USER_SCRIPT world (\"\")."
|
|
19512
|
+
},
|
|
19513
|
+
"csp": {
|
|
19514
|
+
"type": "string",
|
|
19515
|
+
"optional": true,
|
|
19516
|
+
"description": "The world's Content Security Policy. Defaults to the CSP of regular content scripts, which prohibits dynamic code execution such as eval."
|
|
19517
|
+
},
|
|
19518
|
+
"messaging": {
|
|
19519
|
+
"type": "boolean",
|
|
19520
|
+
"optional": true,
|
|
19521
|
+
"default": false,
|
|
19522
|
+
"description": "Whether the runtime.sendMessage and runtime.connect methods are exposed. Defaults to not exposing these messaging APIs."
|
|
19523
|
+
}
|
|
19524
|
+
}
|
|
19240
19525
|
}
|
|
19241
19526
|
],
|
|
19242
19527
|
"functions": [
|
|
19243
19528
|
{
|
|
19244
19529
|
"name": "register",
|
|
19530
|
+
"max_manifest_version": 2,
|
|
19245
19531
|
"type": "function",
|
|
19246
|
-
"description": "Register a user script programmatically given its $(ref:userScripts.UserScriptOptions), and resolves to
|
|
19247
|
-
"async":
|
|
19532
|
+
"description": "Register a user script programmatically given its $(ref:userScripts.UserScriptOptions), and resolves to an object with the unregister() function",
|
|
19533
|
+
"async": "callback",
|
|
19248
19534
|
"parameters": [
|
|
19249
19535
|
{
|
|
19250
19536
|
"name": "userScriptOptions",
|
|
19251
19537
|
"$ref": "UserScriptOptions"
|
|
19538
|
+
},
|
|
19539
|
+
{
|
|
19540
|
+
"name": "callback",
|
|
19541
|
+
"type": "function",
|
|
19542
|
+
"parameters": [
|
|
19543
|
+
{
|
|
19544
|
+
"name": "legacyRegisteredUserScript",
|
|
19545
|
+
"type": "object",
|
|
19546
|
+
"description": "An object that represents a user script registered programmatically",
|
|
19547
|
+
"properties": {
|
|
19548
|
+
"unregister": {
|
|
19549
|
+
"type": "function",
|
|
19550
|
+
"description": "Unregister a user script registered programmatically",
|
|
19551
|
+
"async": true,
|
|
19552
|
+
"parameters": []
|
|
19553
|
+
}
|
|
19554
|
+
}
|
|
19555
|
+
}
|
|
19556
|
+
]
|
|
19557
|
+
}
|
|
19558
|
+
]
|
|
19559
|
+
},
|
|
19560
|
+
{
|
|
19561
|
+
"name": "register",
|
|
19562
|
+
"min_manifest_version": 3,
|
|
19563
|
+
"type": "function",
|
|
19564
|
+
"description": "Registers one or more user scripts for this extension.",
|
|
19565
|
+
"async": true,
|
|
19566
|
+
"parameters": [
|
|
19567
|
+
{
|
|
19568
|
+
"name": "scripts",
|
|
19569
|
+
"type": "array",
|
|
19570
|
+
"items": {
|
|
19571
|
+
"$ref": "RegisteredUserScript"
|
|
19572
|
+
},
|
|
19573
|
+
"description": "List of user scripts to be registered."
|
|
19574
|
+
}
|
|
19575
|
+
]
|
|
19576
|
+
},
|
|
19577
|
+
{
|
|
19578
|
+
"name": "update",
|
|
19579
|
+
"min_manifest_version": 3,
|
|
19580
|
+
"type": "function",
|
|
19581
|
+
"description": "Updates one or more user scripts for this extension.",
|
|
19582
|
+
"async": true,
|
|
19583
|
+
"parameters": [
|
|
19584
|
+
{
|
|
19585
|
+
"name": "scripts",
|
|
19586
|
+
"type": "array",
|
|
19587
|
+
"items": {
|
|
19588
|
+
"type": "object",
|
|
19589
|
+
"$import": "RegisteredUserScript",
|
|
19590
|
+
"properties": {
|
|
19591
|
+
"js": {
|
|
19592
|
+
"type": "array",
|
|
19593
|
+
"optional": true,
|
|
19594
|
+
"items": {
|
|
19595
|
+
"$ref": "ScriptSource"
|
|
19596
|
+
}
|
|
19597
|
+
}
|
|
19598
|
+
}
|
|
19599
|
+
},
|
|
19600
|
+
"description": "List of user scripts to be updated."
|
|
19601
|
+
}
|
|
19602
|
+
]
|
|
19603
|
+
},
|
|
19604
|
+
{
|
|
19605
|
+
"name": "unregister",
|
|
19606
|
+
"min_manifest_version": 3,
|
|
19607
|
+
"type": "function",
|
|
19608
|
+
"description": "Unregisters all dynamically-registered user scripts for this extension.",
|
|
19609
|
+
"async": true,
|
|
19610
|
+
"parameters": [
|
|
19611
|
+
{
|
|
19612
|
+
"name": "filter",
|
|
19613
|
+
"$ref": "UserScriptFilter",
|
|
19614
|
+
"optional": true,
|
|
19615
|
+
"description": "If specified, this method unregisters only the user scripts that match it."
|
|
19616
|
+
}
|
|
19617
|
+
]
|
|
19618
|
+
},
|
|
19619
|
+
{
|
|
19620
|
+
"name": "getScripts",
|
|
19621
|
+
"min_manifest_version": 3,
|
|
19622
|
+
"type": "function",
|
|
19623
|
+
"description": "Returns all dynamically-registered user scripts for this extension.",
|
|
19624
|
+
"async": "callback",
|
|
19625
|
+
"parameters": [
|
|
19626
|
+
{
|
|
19627
|
+
"name": "filter",
|
|
19628
|
+
"$ref": "UserScriptFilter",
|
|
19629
|
+
"optional": true,
|
|
19630
|
+
"description": "If specified, this method returns only the user scripts that match it."
|
|
19631
|
+
},
|
|
19632
|
+
{
|
|
19633
|
+
"name": "callback",
|
|
19634
|
+
"type": "function",
|
|
19635
|
+
"parameters": [
|
|
19636
|
+
{
|
|
19637
|
+
"name": "scripts",
|
|
19638
|
+
"type": "array",
|
|
19639
|
+
"items": {
|
|
19640
|
+
"$ref": "RegisteredUserScript"
|
|
19641
|
+
},
|
|
19642
|
+
"description": "List of registered user scripts."
|
|
19643
|
+
}
|
|
19644
|
+
]
|
|
19645
|
+
}
|
|
19646
|
+
]
|
|
19647
|
+
},
|
|
19648
|
+
{
|
|
19649
|
+
"name": "configureWorld",
|
|
19650
|
+
"min_manifest_version": 3,
|
|
19651
|
+
"type": "function",
|
|
19652
|
+
"description": "Configures the environment for scripts running in a USER_SCRIPT world.",
|
|
19653
|
+
"async": true,
|
|
19654
|
+
"parameters": [
|
|
19655
|
+
{
|
|
19656
|
+
"name": "properties",
|
|
19657
|
+
"$ref": "WorldProperties",
|
|
19658
|
+
"description": "The desired configuration for a USER_SCRIPT world."
|
|
19659
|
+
}
|
|
19660
|
+
]
|
|
19661
|
+
},
|
|
19662
|
+
{
|
|
19663
|
+
"name": "resetWorldConfiguration",
|
|
19664
|
+
"min_manifest_version": 3,
|
|
19665
|
+
"type": "function",
|
|
19666
|
+
"description": "Resets the configuration for a given world. That world will fall back to the default world's configuration.",
|
|
19667
|
+
"async": true,
|
|
19668
|
+
"parameters": [
|
|
19669
|
+
{
|
|
19670
|
+
"name": "worldId",
|
|
19671
|
+
"type": "string",
|
|
19672
|
+
"optional": true,
|
|
19673
|
+
"default": "",
|
|
19674
|
+
"description": "The ID of the USER_SCRIPT world to reset. If omitted or empty, resets the default world's configuration."
|
|
19675
|
+
}
|
|
19676
|
+
]
|
|
19677
|
+
},
|
|
19678
|
+
{
|
|
19679
|
+
"name": "getWorldConfigurations",
|
|
19680
|
+
"min_manifest_version": 3,
|
|
19681
|
+
"type": "function",
|
|
19682
|
+
"description": "Returns all registered USER_SCRIPT world configurations.",
|
|
19683
|
+
"async": "callback",
|
|
19684
|
+
"parameters": [
|
|
19685
|
+
{
|
|
19686
|
+
"name": "callback",
|
|
19687
|
+
"type": "function",
|
|
19688
|
+
"parameters": [
|
|
19689
|
+
{
|
|
19690
|
+
"name": "configurations",
|
|
19691
|
+
"type": "array",
|
|
19692
|
+
"items": {
|
|
19693
|
+
"$ref": "WorldProperties"
|
|
19694
|
+
},
|
|
19695
|
+
"description": "All configurations registered with configureWorld()."
|
|
19696
|
+
}
|
|
19697
|
+
]
|
|
19252
19698
|
}
|
|
19253
19699
|
]
|
|
19254
19700
|
}
|
|
@@ -19258,9 +19704,9 @@
|
|
|
19258
19704
|
"user_scripts_content.json": [
|
|
19259
19705
|
{
|
|
19260
19706
|
"namespace": "userScripts",
|
|
19261
|
-
"max_manifest_version": 2,
|
|
19262
19707
|
"permissions": [
|
|
19263
|
-
"manifest:user_scripts"
|
|
19708
|
+
"manifest:user_scripts",
|
|
19709
|
+
"userScripts"
|
|
19264
19710
|
],
|
|
19265
19711
|
"allowedContexts": [
|
|
19266
19712
|
"content"
|
|
@@ -19268,6 +19714,7 @@
|
|
|
19268
19714
|
"events": [
|
|
19269
19715
|
{
|
|
19270
19716
|
"name": "onBeforeScript",
|
|
19717
|
+
"max_manifest_version": 2,
|
|
19271
19718
|
"permissions": [
|
|
19272
19719
|
"manifest:user_scripts.api_script"
|
|
19273
19720
|
],
|
|
@@ -19978,6 +20425,7 @@
|
|
|
19978
20425
|
"imageset",
|
|
19979
20426
|
"web_manifest",
|
|
19980
20427
|
"speculative",
|
|
20428
|
+
"json",
|
|
19981
20429
|
"other"
|
|
19982
20430
|
]
|
|
19983
20431
|
},
|