devtools-protocol 0.0.1247362 → 0.0.1248698
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/json/browser_protocol.json +7 -19
- package/json/js_protocol.json +1 -3
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +22 -22
- package/pdl/js_protocol.pdl +4 -4
- package/types/protocol-tests-proxy-api.d.ts +4508 -0
@@ -2685,7 +2685,6 @@
|
|
2685
2685
|
{
|
2686
2686
|
"name": "resetPermissions",
|
2687
2687
|
"description": "Reset all permission management for all origins.",
|
2688
|
-
"experimental": true,
|
2689
2688
|
"parameters": [
|
2690
2689
|
{
|
2691
2690
|
"name": "browserContextId",
|
@@ -5854,7 +5853,6 @@
|
|
5854
5853
|
{
|
5855
5854
|
"name": "scrollIntoViewIfNeeded",
|
5856
5855
|
"description": "Scrolls the specified rect of the given node into view if not already visible.\nNote: exactly one between nodeId, backendNodeId and objectId should be passed\nto identify the node.",
|
5857
|
-
"experimental": true,
|
5858
5856
|
"parameters": [
|
5859
5857
|
{
|
5860
5858
|
"name": "nodeId",
|
@@ -8888,7 +8886,6 @@
|
|
8888
8886
|
{
|
8889
8887
|
"name": "setCPUThrottlingRate",
|
8890
8888
|
"description": "Enables CPU throttling to emulate slow CPUs.",
|
8891
|
-
"experimental": true,
|
8892
8889
|
"parameters": [
|
8893
8890
|
{
|
8894
8891
|
"name": "rate",
|
@@ -9071,7 +9068,6 @@
|
|
9071
9068
|
{
|
9072
9069
|
"name": "setEmulatedVisionDeficiency",
|
9073
9070
|
"description": "Emulates the given vision deficiency.",
|
9074
|
-
"experimental": true,
|
9075
9071
|
"parameters": [
|
9076
9072
|
{
|
9077
9073
|
"name": "type",
|
@@ -9167,7 +9163,6 @@
|
|
9167
9163
|
{
|
9168
9164
|
"name": "setIdleOverride",
|
9169
9165
|
"description": "Overrides the Idle state.",
|
9170
|
-
"experimental": true,
|
9171
9166
|
"parameters": [
|
9172
9167
|
{
|
9173
9168
|
"name": "isUserActive",
|
@@ -9183,8 +9178,7 @@
|
|
9183
9178
|
},
|
9184
9179
|
{
|
9185
9180
|
"name": "clearIdleOverride",
|
9186
|
-
"description": "Clears Idle state overrides."
|
9187
|
-
"experimental": true
|
9181
|
+
"description": "Clears Idle state overrides."
|
9188
9182
|
},
|
9189
9183
|
{
|
9190
9184
|
"name": "setNavigatorOverrides",
|
@@ -9291,7 +9285,6 @@
|
|
9291
9285
|
{
|
9292
9286
|
"name": "setTimezoneOverride",
|
9293
9287
|
"description": "Overrides default host system timezone with the specified one.",
|
9294
|
-
"experimental": true,
|
9295
9288
|
"parameters": [
|
9296
9289
|
{
|
9297
9290
|
"name": "timezoneId",
|
@@ -13940,7 +13933,6 @@
|
|
13940
13933
|
{
|
13941
13934
|
"name": "setBypassServiceWorker",
|
13942
13935
|
"description": "Toggles ignoring of service worker for each request.",
|
13943
|
-
"experimental": true,
|
13944
13936
|
"parameters": [
|
13945
13937
|
{
|
13946
13938
|
"name": "bypass",
|
@@ -18216,7 +18208,6 @@
|
|
18216
18208
|
{
|
18217
18209
|
"name": "setBypassCSP",
|
18218
18210
|
"description": "Enable page Content Security Policy by-passing.",
|
18219
|
-
"experimental": true,
|
18220
18211
|
"parameters": [
|
18221
18212
|
{
|
18222
18213
|
"name": "enabled",
|
@@ -18468,7 +18459,6 @@
|
|
18468
18459
|
{
|
18469
18460
|
"name": "setLifecycleEventsEnabled",
|
18470
18461
|
"description": "Controls whether page will emit lifecycle events.",
|
18471
|
-
"experimental": true,
|
18472
18462
|
"parameters": [
|
18473
18463
|
{
|
18474
18464
|
"name": "enabled",
|
@@ -18553,8 +18543,7 @@
|
|
18553
18543
|
},
|
18554
18544
|
{
|
18555
18545
|
"name": "close",
|
18556
|
-
"description": "Tries to close page, running its beforeunload hooks, if any."
|
18557
|
-
"experimental": true
|
18546
|
+
"description": "Tries to close page, running its beforeunload hooks, if any."
|
18558
18547
|
},
|
18559
18548
|
{
|
18560
18549
|
"name": "setWebLifecycleState",
|
@@ -18660,7 +18649,6 @@
|
|
18660
18649
|
{
|
18661
18650
|
"name": "setInterceptFileChooserDialog",
|
18662
18651
|
"description": "Intercept file chooser requests and transfer control to protocol clients.\nWhen file chooser interception is enabled, native file chooser dialog is not shown.\nInstead, a protocol event `Page.fileChooserOpened` is emitted.",
|
18663
|
-
"experimental": true,
|
18664
18652
|
"parameters": [
|
18665
18653
|
{
|
18666
18654
|
"name": "enabled",
|
@@ -19731,7 +19719,6 @@
|
|
19731
19719
|
{
|
19732
19720
|
"name": "setIgnoreCertificateErrors",
|
19733
19721
|
"description": "Enable/disable whether all certificate errors should be ignored.",
|
19734
|
-
"experimental": true,
|
19735
19722
|
"parameters": [
|
19736
19723
|
{
|
19737
19724
|
"name": "ignore",
|
@@ -22158,29 +22145,32 @@
|
|
22158
22145
|
{
|
22159
22146
|
"name": "createBrowserContext",
|
22160
22147
|
"description": "Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than\none.",
|
22161
|
-
"experimental": true,
|
22162
22148
|
"parameters": [
|
22163
22149
|
{
|
22164
22150
|
"name": "disposeOnDetach",
|
22165
22151
|
"description": "If specified, disposes this context when debugging session disconnects.",
|
22152
|
+
"experimental": true,
|
22166
22153
|
"optional": true,
|
22167
22154
|
"type": "boolean"
|
22168
22155
|
},
|
22169
22156
|
{
|
22170
22157
|
"name": "proxyServer",
|
22171
22158
|
"description": "Proxy server, similar to the one passed to --proxy-server",
|
22159
|
+
"experimental": true,
|
22172
22160
|
"optional": true,
|
22173
22161
|
"type": "string"
|
22174
22162
|
},
|
22175
22163
|
{
|
22176
22164
|
"name": "proxyBypassList",
|
22177
22165
|
"description": "Proxy bypass list, similar to the one passed to --proxy-bypass-list",
|
22166
|
+
"experimental": true,
|
22178
22167
|
"optional": true,
|
22179
22168
|
"type": "string"
|
22180
22169
|
},
|
22181
22170
|
{
|
22182
22171
|
"name": "originsWithUniversalNetworkAccess",
|
22183
22172
|
"description": "An optional list of origins to grant unlimited cross-origin access to.\nParts of the URL other than those constituting origin are ignored.",
|
22173
|
+
"experimental": true,
|
22184
22174
|
"optional": true,
|
22185
22175
|
"type": "array",
|
22186
22176
|
"items": {
|
@@ -22199,7 +22189,6 @@
|
|
22199
22189
|
{
|
22200
22190
|
"name": "getBrowserContexts",
|
22201
22191
|
"description": "Returns all browser contexts created with `Target.createBrowserContext` method.",
|
22202
|
-
"experimental": true,
|
22203
22192
|
"returns": [
|
22204
22193
|
{
|
22205
22194
|
"name": "browserContextIds",
|
@@ -22296,7 +22285,6 @@
|
|
22296
22285
|
{
|
22297
22286
|
"name": "disposeBrowserContext",
|
22298
22287
|
"description": "Deletes a BrowserContext. All the belonging pages will be closed without calling their\nbeforeunload hooks.",
|
22299
|
-
"experimental": true,
|
22300
22288
|
"parameters": [
|
22301
22289
|
{
|
22302
22290
|
"name": "browserContextId",
|
@@ -22372,7 +22360,6 @@
|
|
22372
22360
|
{
|
22373
22361
|
"name": "setAutoAttach",
|
22374
22362
|
"description": "Controls whether to automatically attach to new targets which are considered to be related to\nthis one. When turned on, attaches to all existing related targets as well. When turned off,\nautomatically detaches from all currently attached targets.\nThis also clears all targets added by `autoAttachRelated` from the list of targets to watch\nfor creation of related targets.",
|
22375
|
-
"experimental": true,
|
22376
22363
|
"parameters": [
|
22377
22364
|
{
|
22378
22365
|
"name": "autoAttach",
|
@@ -22387,6 +22374,7 @@
|
|
22387
22374
|
{
|
22388
22375
|
"name": "flatten",
|
22389
22376
|
"description": "Enables \"flat\" access to the session via specifying sessionId attribute in the commands.\nWe plan to make this the default, deprecate non-flattened mode,\nand eventually retire it. See crbug.com/991325.",
|
22377
|
+
"experimental": true,
|
22390
22378
|
"optional": true,
|
22391
22379
|
"type": "boolean"
|
22392
22380
|
},
|
package/json/js_protocol.json
CHANGED
@@ -3466,7 +3466,6 @@
|
|
3466
3466
|
{
|
3467
3467
|
"name": "addBinding",
|
3468
3468
|
"description": "If executionContextId is empty, adds binding with the given name on the\nglobal objects of all inspected contexts, including those created later,\nbindings survive reloads.\nBinding function takes exactly one argument, this argument should be string,\nin case of any other input, function throws an exception.\nEach binding function call produces Runtime.bindingCalled notification.",
|
3469
|
-
"experimental": true,
|
3470
3469
|
"parameters": [
|
3471
3470
|
{
|
3472
3471
|
"name": "name",
|
@@ -3475,6 +3474,7 @@
|
|
3475
3474
|
{
|
3476
3475
|
"name": "executionContextId",
|
3477
3476
|
"description": "If specified, the binding would only be exposed to the specified\nexecution context. If omitted and `executionContextName` is not set,\nthe binding is exposed to all execution contexts of the target.\nThis parameter is mutually exclusive with `executionContextName`.\nDeprecated in favor of `executionContextName` due to an unclear use case\nand bugs in implementation (crbug.com/1169639). `executionContextId` will be\nremoved in the future.",
|
3477
|
+
"experimental": true,
|
3478
3478
|
"deprecated": true,
|
3479
3479
|
"optional": true,
|
3480
3480
|
"$ref": "ExecutionContextId"
|
@@ -3482,7 +3482,6 @@
|
|
3482
3482
|
{
|
3483
3483
|
"name": "executionContextName",
|
3484
3484
|
"description": "If specified, the binding is exposed to the executionContext with\nmatching name, even for contexts created after the binding is added.\nSee also `ExecutionContext.name` and `worldName` parameter to\n`Page.addScriptToEvaluateOnNewDocument`.\nThis parameter is mutually exclusive with `executionContextId`.",
|
3485
|
-
"experimental": true,
|
3486
3485
|
"optional": true,
|
3487
3486
|
"type": "string"
|
3488
3487
|
}
|
@@ -3491,7 +3490,6 @@
|
|
3491
3490
|
{
|
3492
3491
|
"name": "removeBinding",
|
3493
3492
|
"description": "This method does not remove binding function from global object but\nunsubscribes current runtime agent from Runtime.bindingCalled notifications.",
|
3494
|
-
"experimental": true,
|
3495
3493
|
"parameters": [
|
3496
3494
|
{
|
3497
3495
|
"name": "name",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1299,7 +1299,7 @@ domain Browser
|
|
1299
1299
|
optional BrowserContextID browserContextId
|
1300
1300
|
|
1301
1301
|
# Reset all permission management for all origins.
|
1302
|
-
|
1302
|
+
command resetPermissions
|
1303
1303
|
parameters
|
1304
1304
|
# BrowserContext to reset permissions. When omitted, default browser context is used.
|
1305
1305
|
optional BrowserContextID browserContextId
|
@@ -2737,7 +2737,7 @@ domain DOM
|
|
2737
2737
|
# Scrolls the specified rect of the given node into view if not already visible.
|
2738
2738
|
# Note: exactly one between nodeId, backendNodeId and objectId should be passed
|
2739
2739
|
# to identify the node.
|
2740
|
-
|
2740
|
+
command scrollIntoViewIfNeeded
|
2741
2741
|
parameters
|
2742
2742
|
# Identifier of the node.
|
2743
2743
|
optional NodeId nodeId
|
@@ -4045,7 +4045,7 @@ domain Emulation
|
|
4045
4045
|
optional boolean enabled
|
4046
4046
|
|
4047
4047
|
# Enables CPU throttling to emulate slow CPUs.
|
4048
|
-
|
4048
|
+
command setCPUThrottlingRate
|
4049
4049
|
parameters
|
4050
4050
|
# Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
4051
4051
|
number rate
|
@@ -4124,7 +4124,7 @@ domain Emulation
|
|
4124
4124
|
optional array of MediaFeature features
|
4125
4125
|
|
4126
4126
|
# Emulates the given vision deficiency.
|
4127
|
-
|
4127
|
+
command setEmulatedVisionDeficiency
|
4128
4128
|
parameters
|
4129
4129
|
# Vision deficiency to emulate. Order: best-effort emulations come first, followed by any
|
4130
4130
|
# physiologically accurate emulations for medically recognized color vision deficiencies.
|
@@ -4173,7 +4173,7 @@ domain Emulation
|
|
4173
4173
|
SensorReading reading
|
4174
4174
|
|
4175
4175
|
# Overrides the Idle state.
|
4176
|
-
|
4176
|
+
command setIdleOverride
|
4177
4177
|
parameters
|
4178
4178
|
# Mock isUserActive
|
4179
4179
|
boolean isUserActive
|
@@ -4181,7 +4181,7 @@ domain Emulation
|
|
4181
4181
|
boolean isScreenUnlocked
|
4182
4182
|
|
4183
4183
|
# Clears Idle state overrides.
|
4184
|
-
|
4184
|
+
command clearIdleOverride
|
4185
4185
|
|
4186
4186
|
# Overrides value returned by the javascript navigator object.
|
4187
4187
|
experimental deprecated command setNavigatorOverrides
|
@@ -4234,7 +4234,7 @@ domain Emulation
|
|
4234
4234
|
optional string locale
|
4235
4235
|
|
4236
4236
|
# Overrides default host system timezone with the specified one.
|
4237
|
-
|
4237
|
+
command setTimezoneOverride
|
4238
4238
|
parameters
|
4239
4239
|
# The timezone identifier. If empty, disables the override and
|
4240
4240
|
# restores default host system timezone.
|
@@ -6376,7 +6376,7 @@ domain Network
|
|
6376
6376
|
array of string urls
|
6377
6377
|
|
6378
6378
|
# Toggles ignoring of service worker for each request.
|
6379
|
-
|
6379
|
+
command setBypassServiceWorker
|
6380
6380
|
parameters
|
6381
6381
|
# Bypass service worker and load from network.
|
6382
6382
|
boolean bypass
|
@@ -8400,7 +8400,7 @@ domain Page
|
|
8400
8400
|
boolean enabled
|
8401
8401
|
|
8402
8402
|
# Enable page Content Security Policy by-passing.
|
8403
|
-
|
8403
|
+
command setBypassCSP
|
8404
8404
|
parameters
|
8405
8405
|
# Whether to bypass page CSP.
|
8406
8406
|
boolean enabled
|
@@ -8512,7 +8512,7 @@ domain Page
|
|
8512
8512
|
optional number accuracy
|
8513
8513
|
|
8514
8514
|
# Controls whether page will emit lifecycle events.
|
8515
|
-
|
8515
|
+
command setLifecycleEventsEnabled
|
8516
8516
|
parameters
|
8517
8517
|
# If true, starts emitting lifecycle events.
|
8518
8518
|
boolean enabled
|
@@ -8552,7 +8552,7 @@ domain Page
|
|
8552
8552
|
experimental command crash
|
8553
8553
|
|
8554
8554
|
# Tries to close page, running its beforeunload hooks, if any.
|
8555
|
-
|
8555
|
+
command close
|
8556
8556
|
|
8557
8557
|
# Tries to update the web lifecycle state of the page.
|
8558
8558
|
# It will transition the page to the given state according to:
|
@@ -8622,7 +8622,7 @@ domain Page
|
|
8622
8622
|
# Intercept file chooser requests and transfer control to protocol clients.
|
8623
8623
|
# When file chooser interception is enabled, native file chooser dialog is not shown.
|
8624
8624
|
# Instead, a protocol event `Page.fileChooserOpened` is emitted.
|
8625
|
-
|
8625
|
+
command setInterceptFileChooserDialog
|
8626
8626
|
parameters
|
8627
8627
|
boolean enabled
|
8628
8628
|
|
@@ -9308,7 +9308,7 @@ domain Security
|
|
9308
9308
|
command enable
|
9309
9309
|
|
9310
9310
|
# Enable/disable whether all certificate errors should be ignored.
|
9311
|
-
|
9311
|
+
command setIgnoreCertificateErrors
|
9312
9312
|
parameters
|
9313
9313
|
# If true, all certificate errors will be ignored.
|
9314
9314
|
boolean ignore
|
@@ -10374,23 +10374,23 @@ domain Target
|
|
10374
10374
|
|
10375
10375
|
# Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
|
10376
10376
|
# one.
|
10377
|
-
|
10377
|
+
command createBrowserContext
|
10378
10378
|
parameters
|
10379
10379
|
# If specified, disposes this context when debugging session disconnects.
|
10380
|
-
optional boolean disposeOnDetach
|
10380
|
+
experimental optional boolean disposeOnDetach
|
10381
10381
|
# Proxy server, similar to the one passed to --proxy-server
|
10382
|
-
optional string proxyServer
|
10382
|
+
experimental optional string proxyServer
|
10383
10383
|
# Proxy bypass list, similar to the one passed to --proxy-bypass-list
|
10384
|
-
optional string proxyBypassList
|
10384
|
+
experimental optional string proxyBypassList
|
10385
10385
|
# An optional list of origins to grant unlimited cross-origin access to.
|
10386
10386
|
# Parts of the URL other than those constituting origin are ignored.
|
10387
|
-
optional array of string originsWithUniversalNetworkAccess
|
10387
|
+
experimental optional array of string originsWithUniversalNetworkAccess
|
10388
10388
|
returns
|
10389
10389
|
# The id of the context created.
|
10390
10390
|
Browser.BrowserContextID browserContextId
|
10391
10391
|
|
10392
10392
|
# Returns all browser contexts created with `Target.createBrowserContext` method.
|
10393
|
-
|
10393
|
+
command getBrowserContexts
|
10394
10394
|
returns
|
10395
10395
|
# An array of browser context ids.
|
10396
10396
|
array of Browser.BrowserContextID browserContextIds
|
@@ -10430,7 +10430,7 @@ domain Target
|
|
10430
10430
|
|
10431
10431
|
# Deletes a BrowserContext. All the belonging pages will be closed without calling their
|
10432
10432
|
# beforeunload hooks.
|
10433
|
-
|
10433
|
+
command disposeBrowserContext
|
10434
10434
|
parameters
|
10435
10435
|
Browser.BrowserContextID browserContextId
|
10436
10436
|
|
@@ -10468,7 +10468,7 @@ domain Target
|
|
10468
10468
|
# automatically detaches from all currently attached targets.
|
10469
10469
|
# This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
10470
10470
|
# for creation of related targets.
|
10471
|
-
|
10471
|
+
command setAutoAttach
|
10472
10472
|
parameters
|
10473
10473
|
# Whether to auto-attach to related targets.
|
10474
10474
|
boolean autoAttach
|
@@ -10478,7 +10478,7 @@ domain Target
|
|
10478
10478
|
# Enables "flat" access to the session via specifying sessionId attribute in the commands.
|
10479
10479
|
# We plan to make this the default, deprecate non-flattened mode,
|
10480
10480
|
# and eventually retire it. See crbug.com/991325.
|
10481
|
-
optional boolean flatten
|
10481
|
+
experimental optional boolean flatten
|
10482
10482
|
# Only targets matching filter will be attached.
|
10483
10483
|
experimental optional TargetFilter filter
|
10484
10484
|
|
package/pdl/js_protocol.pdl
CHANGED
@@ -1665,7 +1665,7 @@ domain Runtime
|
|
1665
1665
|
# Binding function takes exactly one argument, this argument should be string,
|
1666
1666
|
# in case of any other input, function throws an exception.
|
1667
1667
|
# Each binding function call produces Runtime.bindingCalled notification.
|
1668
|
-
|
1668
|
+
command addBinding
|
1669
1669
|
parameters
|
1670
1670
|
string name
|
1671
1671
|
# If specified, the binding would only be exposed to the specified
|
@@ -1675,17 +1675,17 @@ domain Runtime
|
|
1675
1675
|
# Deprecated in favor of `executionContextName` due to an unclear use case
|
1676
1676
|
# and bugs in implementation (crbug.com/1169639). `executionContextId` will be
|
1677
1677
|
# removed in the future.
|
1678
|
-
deprecated optional ExecutionContextId executionContextId
|
1678
|
+
experimental deprecated optional ExecutionContextId executionContextId
|
1679
1679
|
# If specified, the binding is exposed to the executionContext with
|
1680
1680
|
# matching name, even for contexts created after the binding is added.
|
1681
1681
|
# See also `ExecutionContext.name` and `worldName` parameter to
|
1682
1682
|
# `Page.addScriptToEvaluateOnNewDocument`.
|
1683
1683
|
# This parameter is mutually exclusive with `executionContextId`.
|
1684
|
-
|
1684
|
+
optional string executionContextName
|
1685
1685
|
|
1686
1686
|
# This method does not remove binding function from global object but
|
1687
1687
|
# unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
1688
|
-
|
1688
|
+
command removeBinding
|
1689
1689
|
parameters
|
1690
1690
|
string name
|
1691
1691
|
|