devtools-protocol 0.0.1427544 → 0.0.1429850
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.
@@ -9386,6 +9386,61 @@
|
|
9386
9386
|
"Runtime"
|
9387
9387
|
],
|
9388
9388
|
"types": [
|
9389
|
+
{
|
9390
|
+
"id": "SafeAreaInsets",
|
9391
|
+
"experimental": true,
|
9392
|
+
"type": "object",
|
9393
|
+
"properties": [
|
9394
|
+
{
|
9395
|
+
"name": "top",
|
9396
|
+
"description": "Overrides safe-area-inset-top.",
|
9397
|
+
"optional": true,
|
9398
|
+
"type": "integer"
|
9399
|
+
},
|
9400
|
+
{
|
9401
|
+
"name": "topMax",
|
9402
|
+
"description": "Overrides safe-area-max-inset-top.",
|
9403
|
+
"optional": true,
|
9404
|
+
"type": "integer"
|
9405
|
+
},
|
9406
|
+
{
|
9407
|
+
"name": "left",
|
9408
|
+
"description": "Overrides safe-area-inset-left.",
|
9409
|
+
"optional": true,
|
9410
|
+
"type": "integer"
|
9411
|
+
},
|
9412
|
+
{
|
9413
|
+
"name": "leftMax",
|
9414
|
+
"description": "Overrides safe-area-max-inset-left.",
|
9415
|
+
"optional": true,
|
9416
|
+
"type": "integer"
|
9417
|
+
},
|
9418
|
+
{
|
9419
|
+
"name": "bottom",
|
9420
|
+
"description": "Overrides safe-area-inset-bottom.",
|
9421
|
+
"optional": true,
|
9422
|
+
"type": "integer"
|
9423
|
+
},
|
9424
|
+
{
|
9425
|
+
"name": "bottomMax",
|
9426
|
+
"description": "Overrides safe-area-max-inset-bottom.",
|
9427
|
+
"optional": true,
|
9428
|
+
"type": "integer"
|
9429
|
+
},
|
9430
|
+
{
|
9431
|
+
"name": "right",
|
9432
|
+
"description": "Overrides safe-area-inset-right.",
|
9433
|
+
"optional": true,
|
9434
|
+
"type": "integer"
|
9435
|
+
},
|
9436
|
+
{
|
9437
|
+
"name": "rightMax",
|
9438
|
+
"description": "Overrides safe-area-max-inset-right.",
|
9439
|
+
"optional": true,
|
9440
|
+
"type": "integer"
|
9441
|
+
}
|
9442
|
+
]
|
9443
|
+
},
|
9389
9444
|
{
|
9390
9445
|
"id": "ScreenOrientation",
|
9391
9446
|
"description": "Screen orientation.",
|
@@ -9781,6 +9836,17 @@
|
|
9781
9836
|
}
|
9782
9837
|
]
|
9783
9838
|
},
|
9839
|
+
{
|
9840
|
+
"name": "setSafeAreaInsetsOverride",
|
9841
|
+
"description": "Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the\nrespective variables to be undefined, even if previously overridden.",
|
9842
|
+
"experimental": true,
|
9843
|
+
"parameters": [
|
9844
|
+
{
|
9845
|
+
"name": "insets",
|
9846
|
+
"$ref": "SafeAreaInsets"
|
9847
|
+
}
|
9848
|
+
]
|
9849
|
+
},
|
9784
9850
|
{
|
9785
9851
|
"name": "setDeviceMetricsOverride",
|
9786
9852
|
"description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height,\nwindow.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media\nquery results).",
|
@@ -14370,6 +14436,50 @@
|
|
14370
14436
|
"zstd"
|
14371
14437
|
]
|
14372
14438
|
},
|
14439
|
+
{
|
14440
|
+
"id": "DirectSocketDnsQueryType",
|
14441
|
+
"experimental": true,
|
14442
|
+
"type": "string",
|
14443
|
+
"enum": [
|
14444
|
+
"ipv4",
|
14445
|
+
"ipv6"
|
14446
|
+
]
|
14447
|
+
},
|
14448
|
+
{
|
14449
|
+
"id": "DirectTCPSocketOptions",
|
14450
|
+
"experimental": true,
|
14451
|
+
"type": "object",
|
14452
|
+
"properties": [
|
14453
|
+
{
|
14454
|
+
"name": "noDelay",
|
14455
|
+
"description": "TCP_NODELAY option",
|
14456
|
+
"type": "boolean"
|
14457
|
+
},
|
14458
|
+
{
|
14459
|
+
"name": "keepAliveDelay",
|
14460
|
+
"description": "Expected to be unsigned integer.",
|
14461
|
+
"optional": true,
|
14462
|
+
"type": "number"
|
14463
|
+
},
|
14464
|
+
{
|
14465
|
+
"name": "sendBufferSize",
|
14466
|
+
"description": "Expected to be unsigned integer.",
|
14467
|
+
"optional": true,
|
14468
|
+
"type": "number"
|
14469
|
+
},
|
14470
|
+
{
|
14471
|
+
"name": "receiveBufferSize",
|
14472
|
+
"description": "Expected to be unsigned integer.",
|
14473
|
+
"optional": true,
|
14474
|
+
"type": "number"
|
14475
|
+
},
|
14476
|
+
{
|
14477
|
+
"name": "dnsQueryType",
|
14478
|
+
"optional": true,
|
14479
|
+
"$ref": "DirectSocketDnsQueryType"
|
14480
|
+
}
|
14481
|
+
]
|
14482
|
+
},
|
14373
14483
|
{
|
14374
14484
|
"id": "PrivateNetworkRequestPolicy",
|
14375
14485
|
"experimental": true,
|
@@ -16024,6 +16134,108 @@
|
|
16024
16134
|
}
|
16025
16135
|
]
|
16026
16136
|
},
|
16137
|
+
{
|
16138
|
+
"name": "directTCPSocketCreated",
|
16139
|
+
"description": "Fired upon direct_socket.TCPSocket creation.",
|
16140
|
+
"experimental": true,
|
16141
|
+
"parameters": [
|
16142
|
+
{
|
16143
|
+
"name": "identifier",
|
16144
|
+
"$ref": "RequestId"
|
16145
|
+
},
|
16146
|
+
{
|
16147
|
+
"name": "remoteAddr",
|
16148
|
+
"type": "string"
|
16149
|
+
},
|
16150
|
+
{
|
16151
|
+
"name": "remotePort",
|
16152
|
+
"description": "Unsigned int 16.",
|
16153
|
+
"type": "integer"
|
16154
|
+
},
|
16155
|
+
{
|
16156
|
+
"name": "options",
|
16157
|
+
"$ref": "DirectTCPSocketOptions"
|
16158
|
+
},
|
16159
|
+
{
|
16160
|
+
"name": "timestamp",
|
16161
|
+
"$ref": "MonotonicTime"
|
16162
|
+
},
|
16163
|
+
{
|
16164
|
+
"name": "initiator",
|
16165
|
+
"optional": true,
|
16166
|
+
"$ref": "Initiator"
|
16167
|
+
}
|
16168
|
+
]
|
16169
|
+
},
|
16170
|
+
{
|
16171
|
+
"name": "directTCPSocketOpened",
|
16172
|
+
"description": "Fired when direct_socket.TCPSocket connection is opened.",
|
16173
|
+
"experimental": true,
|
16174
|
+
"parameters": [
|
16175
|
+
{
|
16176
|
+
"name": "identifier",
|
16177
|
+
"$ref": "RequestId"
|
16178
|
+
},
|
16179
|
+
{
|
16180
|
+
"name": "remoteAddr",
|
16181
|
+
"type": "string"
|
16182
|
+
},
|
16183
|
+
{
|
16184
|
+
"name": "remotePort",
|
16185
|
+
"description": "Expected to be unsigned integer.",
|
16186
|
+
"type": "integer"
|
16187
|
+
},
|
16188
|
+
{
|
16189
|
+
"name": "timestamp",
|
16190
|
+
"$ref": "MonotonicTime"
|
16191
|
+
},
|
16192
|
+
{
|
16193
|
+
"name": "localAddr",
|
16194
|
+
"optional": true,
|
16195
|
+
"type": "string"
|
16196
|
+
},
|
16197
|
+
{
|
16198
|
+
"name": "localPort",
|
16199
|
+
"description": "Expected to be unsigned integer.",
|
16200
|
+
"optional": true,
|
16201
|
+
"type": "integer"
|
16202
|
+
}
|
16203
|
+
]
|
16204
|
+
},
|
16205
|
+
{
|
16206
|
+
"name": "directTCPSocketAborted",
|
16207
|
+
"description": "Fired when direct_socket.TCPSocket is aborted.",
|
16208
|
+
"experimental": true,
|
16209
|
+
"parameters": [
|
16210
|
+
{
|
16211
|
+
"name": "identifier",
|
16212
|
+
"$ref": "RequestId"
|
16213
|
+
},
|
16214
|
+
{
|
16215
|
+
"name": "errorMessage",
|
16216
|
+
"type": "string"
|
16217
|
+
},
|
16218
|
+
{
|
16219
|
+
"name": "timestamp",
|
16220
|
+
"$ref": "MonotonicTime"
|
16221
|
+
}
|
16222
|
+
]
|
16223
|
+
},
|
16224
|
+
{
|
16225
|
+
"name": "directTCPSocketClosed",
|
16226
|
+
"description": "Fired when direct_socket.TCPSocket is closed.",
|
16227
|
+
"experimental": true,
|
16228
|
+
"parameters": [
|
16229
|
+
{
|
16230
|
+
"name": "identifier",
|
16231
|
+
"$ref": "RequestId"
|
16232
|
+
},
|
16233
|
+
{
|
16234
|
+
"name": "timestamp",
|
16235
|
+
"$ref": "MonotonicTime"
|
16236
|
+
}
|
16237
|
+
]
|
16238
|
+
},
|
16027
16239
|
{
|
16028
16240
|
"name": "requestWillBeSentExtraInfo",
|
16029
16241
|
"description": "Fired when additional information about a requestWillBeSent event is available from the\nnetwork stack. Not every requestWillBeSent event will have an additional\nrequestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent\nor requestWillBeSentExtraInfo will be fired first for the same request.",
|
@@ -26929,6 +27141,9 @@
|
|
26929
27141
|
"PrefetchNotEligibleSchemeIsNotHttps",
|
26930
27142
|
"PrefetchNotEligibleUserHasCookies",
|
26931
27143
|
"PrefetchNotEligibleUserHasServiceWorker",
|
27144
|
+
"PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler",
|
27145
|
+
"PrefetchNotEligibleRedirectFromServiceWorker",
|
27146
|
+
"PrefetchNotEligibleRedirectToServiceWorker",
|
26932
27147
|
"PrefetchNotEligibleBatterySaverEnabled",
|
26933
27148
|
"PrefetchNotEligiblePreloadingDisabled",
|
26934
27149
|
"PrefetchNotFinishedInTime",
|
@@ -27607,6 +27822,22 @@
|
|
27607
27822
|
{
|
27608
27823
|
"name": "enable",
|
27609
27824
|
"description": "Enable the BluetoothEmulation domain.",
|
27825
|
+
"parameters": [
|
27826
|
+
{
|
27827
|
+
"name": "state",
|
27828
|
+
"description": "State of the simulated central.",
|
27829
|
+
"$ref": "CentralState"
|
27830
|
+
},
|
27831
|
+
{
|
27832
|
+
"name": "leSupported",
|
27833
|
+
"description": "If the simulated central supports low-energy.",
|
27834
|
+
"type": "boolean"
|
27835
|
+
}
|
27836
|
+
]
|
27837
|
+
},
|
27838
|
+
{
|
27839
|
+
"name": "setSimulatedCentralState",
|
27840
|
+
"description": "Set the state of the simulated central.",
|
27610
27841
|
"parameters": [
|
27611
27842
|
{
|
27612
27843
|
"name": "state",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -4346,6 +4346,25 @@ domain Emulation
|
|
4346
4346
|
depends on Page
|
4347
4347
|
depends on Runtime
|
4348
4348
|
|
4349
|
+
experimental type SafeAreaInsets extends object
|
4350
|
+
properties
|
4351
|
+
# Overrides safe-area-inset-top.
|
4352
|
+
optional integer top
|
4353
|
+
# Overrides safe-area-max-inset-top.
|
4354
|
+
optional integer topMax
|
4355
|
+
# Overrides safe-area-inset-left.
|
4356
|
+
optional integer left
|
4357
|
+
# Overrides safe-area-max-inset-left.
|
4358
|
+
optional integer leftMax
|
4359
|
+
# Overrides safe-area-inset-bottom.
|
4360
|
+
optional integer bottom
|
4361
|
+
# Overrides safe-area-max-inset-bottom.
|
4362
|
+
optional integer bottomMax
|
4363
|
+
# Overrides safe-area-inset-right.
|
4364
|
+
optional integer right
|
4365
|
+
# Overrides safe-area-max-inset-right.
|
4366
|
+
optional integer rightMax
|
4367
|
+
|
4349
4368
|
# Screen orientation.
|
4350
4369
|
type ScreenOrientation extends object
|
4351
4370
|
properties
|
@@ -4516,6 +4535,12 @@ domain Emulation
|
|
4516
4535
|
# cleared.
|
4517
4536
|
optional DOM.RGBA color
|
4518
4537
|
|
4538
|
+
# Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
4539
|
+
# respective variables to be undefined, even if previously overridden.
|
4540
|
+
experimental command setSafeAreaInsetsOverride
|
4541
|
+
parameters
|
4542
|
+
SafeAreaInsets insets
|
4543
|
+
|
4519
4544
|
# Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
4520
4545
|
# window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
4521
4546
|
# query results).
|
@@ -7379,6 +7404,60 @@ domain Network
|
|
7379
7404
|
# Timestamp.
|
7380
7405
|
MonotonicTime timestamp
|
7381
7406
|
|
7407
|
+
experimental type DirectSocketDnsQueryType extends string
|
7408
|
+
enum
|
7409
|
+
ipv4
|
7410
|
+
ipv6
|
7411
|
+
|
7412
|
+
experimental type DirectTCPSocketOptions extends object
|
7413
|
+
properties
|
7414
|
+
# TCP_NODELAY option
|
7415
|
+
boolean noDelay
|
7416
|
+
# Expected to be unsigned integer.
|
7417
|
+
optional number keepAliveDelay
|
7418
|
+
# Expected to be unsigned integer.
|
7419
|
+
optional number sendBufferSize
|
7420
|
+
# Expected to be unsigned integer.
|
7421
|
+
optional number receiveBufferSize
|
7422
|
+
optional DirectSocketDnsQueryType dnsQueryType
|
7423
|
+
|
7424
|
+
|
7425
|
+
# Fired upon direct_socket.TCPSocket creation.
|
7426
|
+
experimental event directTCPSocketCreated
|
7427
|
+
parameters
|
7428
|
+
RequestId identifier
|
7429
|
+
string remoteAddr
|
7430
|
+
# Unsigned int 16.
|
7431
|
+
integer remotePort
|
7432
|
+
DirectTCPSocketOptions options
|
7433
|
+
MonotonicTime timestamp
|
7434
|
+
optional Initiator initiator
|
7435
|
+
|
7436
|
+
# Fired when direct_socket.TCPSocket connection is opened.
|
7437
|
+
experimental event directTCPSocketOpened
|
7438
|
+
parameters
|
7439
|
+
RequestId identifier
|
7440
|
+
string remoteAddr
|
7441
|
+
# Expected to be unsigned integer.
|
7442
|
+
integer remotePort
|
7443
|
+
MonotonicTime timestamp
|
7444
|
+
optional string localAddr
|
7445
|
+
# Expected to be unsigned integer.
|
7446
|
+
optional integer localPort
|
7447
|
+
|
7448
|
+
# Fired when direct_socket.TCPSocket is aborted.
|
7449
|
+
experimental event directTCPSocketAborted
|
7450
|
+
parameters
|
7451
|
+
RequestId identifier
|
7452
|
+
string errorMessage
|
7453
|
+
MonotonicTime timestamp
|
7454
|
+
|
7455
|
+
# Fired when direct_socket.TCPSocket is closed.
|
7456
|
+
experimental event directTCPSocketClosed
|
7457
|
+
parameters
|
7458
|
+
RequestId identifier
|
7459
|
+
MonotonicTime timestamp
|
7460
|
+
|
7382
7461
|
experimental type PrivateNetworkRequestPolicy extends string
|
7383
7462
|
enum
|
7384
7463
|
Allow
|
@@ -9419,7 +9498,7 @@ domain Page
|
|
9419
9498
|
autoReject
|
9420
9499
|
autoOptOut
|
9421
9500
|
|
9422
|
-
# Sets the Secure Payment Confirmation transaction mode.
|
9501
|
+
# Sets the Secure Payment Confirmation transaction mode.
|
9423
9502
|
# https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
|
9424
9503
|
experimental command setSPCTransactionMode
|
9425
9504
|
parameters
|
@@ -12815,6 +12894,9 @@ experimental domain Preload
|
|
12815
12894
|
PrefetchNotEligibleSchemeIsNotHttps
|
12816
12895
|
PrefetchNotEligibleUserHasCookies
|
12817
12896
|
PrefetchNotEligibleUserHasServiceWorker
|
12897
|
+
PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler
|
12898
|
+
PrefetchNotEligibleRedirectFromServiceWorker
|
12899
|
+
PrefetchNotEligibleRedirectToServiceWorker
|
12818
12900
|
PrefetchNotEligibleBatterySaverEnabled
|
12819
12901
|
PrefetchNotEligiblePreloadingDisabled
|
12820
12902
|
PrefetchNotFinishedInTime
|
@@ -13124,6 +13206,14 @@ experimental domain BluetoothEmulation
|
|
13124
13206
|
|
13125
13207
|
# Enable the BluetoothEmulation domain.
|
13126
13208
|
command enable
|
13209
|
+
parameters
|
13210
|
+
# State of the simulated central.
|
13211
|
+
CentralState state
|
13212
|
+
# If the simulated central supports low-energy.
|
13213
|
+
boolean leSupported
|
13214
|
+
|
13215
|
+
# Set the state of the simulated central.
|
13216
|
+
command setSimulatedCentralState
|
13127
13217
|
parameters
|
13128
13218
|
# State of the simulated central.
|
13129
13219
|
CentralState state
|
@@ -351,6 +351,22 @@ export namespace ProtocolMapping {
|
|
351
351
|
* Fired when WebTransport is disposed.
|
352
352
|
*/
|
353
353
|
'Network.webTransportClosed': [Protocol.Network.WebTransportClosedEvent];
|
354
|
+
/**
|
355
|
+
* Fired upon direct_socket.TCPSocket creation.
|
356
|
+
*/
|
357
|
+
'Network.directTCPSocketCreated': [Protocol.Network.DirectTCPSocketCreatedEvent];
|
358
|
+
/**
|
359
|
+
* Fired when direct_socket.TCPSocket connection is opened.
|
360
|
+
*/
|
361
|
+
'Network.directTCPSocketOpened': [Protocol.Network.DirectTCPSocketOpenedEvent];
|
362
|
+
/**
|
363
|
+
* Fired when direct_socket.TCPSocket is aborted.
|
364
|
+
*/
|
365
|
+
'Network.directTCPSocketAborted': [Protocol.Network.DirectTCPSocketAbortedEvent];
|
366
|
+
/**
|
367
|
+
* Fired when direct_socket.TCPSocket is closed.
|
368
|
+
*/
|
369
|
+
'Network.directTCPSocketClosed': [Protocol.Network.DirectTCPSocketClosedEvent];
|
354
370
|
/**
|
355
371
|
* Fired when additional information about a requestWillBeSent event is available from the
|
356
372
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -2752,6 +2768,14 @@ export namespace ProtocolMapping {
|
|
2752
2768
|
paramsType: [Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest?];
|
2753
2769
|
returnType: void;
|
2754
2770
|
};
|
2771
|
+
/**
|
2772
|
+
* Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
2773
|
+
* respective variables to be undefined, even if previously overridden.
|
2774
|
+
*/
|
2775
|
+
'Emulation.setSafeAreaInsetsOverride': {
|
2776
|
+
paramsType: [Protocol.Emulation.SetSafeAreaInsetsOverrideRequest];
|
2777
|
+
returnType: void;
|
2778
|
+
};
|
2755
2779
|
/**
|
2756
2780
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
2757
2781
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
@@ -5215,6 +5239,13 @@ export namespace ProtocolMapping {
|
|
5215
5239
|
paramsType: [Protocol.BluetoothEmulation.EnableRequest];
|
5216
5240
|
returnType: void;
|
5217
5241
|
};
|
5242
|
+
/**
|
5243
|
+
* Set the state of the simulated central.
|
5244
|
+
*/
|
5245
|
+
'BluetoothEmulation.setSimulatedCentralState': {
|
5246
|
+
paramsType: [Protocol.BluetoothEmulation.SetSimulatedCentralStateRequest];
|
5247
|
+
returnType: void;
|
5248
|
+
};
|
5218
5249
|
/**
|
5219
5250
|
* Disable the BluetoothEmulation domain.
|
5220
5251
|
*/
|
@@ -1891,6 +1891,12 @@ export namespace ProtocolProxyApi {
|
|
1891
1891
|
*/
|
1892
1892
|
setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<void>;
|
1893
1893
|
|
1894
|
+
/**
|
1895
|
+
* Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
1896
|
+
* respective variables to be undefined, even if previously overridden.
|
1897
|
+
*/
|
1898
|
+
setSafeAreaInsetsOverride(params: Protocol.Emulation.SetSafeAreaInsetsOverrideRequest): Promise<void>;
|
1899
|
+
|
1894
1900
|
/**
|
1895
1901
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
1896
1902
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
@@ -2678,6 +2684,26 @@ export namespace ProtocolProxyApi {
|
|
2678
2684
|
*/
|
2679
2685
|
on(event: 'webTransportClosed', listener: (params: Protocol.Network.WebTransportClosedEvent) => void): void;
|
2680
2686
|
|
2687
|
+
/**
|
2688
|
+
* Fired upon direct_socket.TCPSocket creation.
|
2689
|
+
*/
|
2690
|
+
on(event: 'directTCPSocketCreated', listener: (params: Protocol.Network.DirectTCPSocketCreatedEvent) => void): void;
|
2691
|
+
|
2692
|
+
/**
|
2693
|
+
* Fired when direct_socket.TCPSocket connection is opened.
|
2694
|
+
*/
|
2695
|
+
on(event: 'directTCPSocketOpened', listener: (params: Protocol.Network.DirectTCPSocketOpenedEvent) => void): void;
|
2696
|
+
|
2697
|
+
/**
|
2698
|
+
* Fired when direct_socket.TCPSocket is aborted.
|
2699
|
+
*/
|
2700
|
+
on(event: 'directTCPSocketAborted', listener: (params: Protocol.Network.DirectTCPSocketAbortedEvent) => void): void;
|
2701
|
+
|
2702
|
+
/**
|
2703
|
+
* Fired when direct_socket.TCPSocket is closed.
|
2704
|
+
*/
|
2705
|
+
on(event: 'directTCPSocketClosed', listener: (params: Protocol.Network.DirectTCPSocketClosedEvent) => void): void;
|
2706
|
+
|
2681
2707
|
/**
|
2682
2708
|
* Fired when additional information about a requestWillBeSent event is available from the
|
2683
2709
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -4457,6 +4483,11 @@ export namespace ProtocolProxyApi {
|
|
4457
4483
|
*/
|
4458
4484
|
enable(params: Protocol.BluetoothEmulation.EnableRequest): Promise<void>;
|
4459
4485
|
|
4486
|
+
/**
|
4487
|
+
* Set the state of the simulated central.
|
4488
|
+
*/
|
4489
|
+
setSimulatedCentralState(params: Protocol.BluetoothEmulation.SetSimulatedCentralStateRequest): Promise<void>;
|
4490
|
+
|
4460
4491
|
/**
|
4461
4492
|
* Disable the BluetoothEmulation domain.
|
4462
4493
|
*/
|
@@ -2015,6 +2015,12 @@ export namespace ProtocolTestsProxyApi {
|
|
2015
2015
|
*/
|
2016
2016
|
setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2017
2017
|
|
2018
|
+
/**
|
2019
|
+
* Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
2020
|
+
* respective variables to be undefined, even if previously overridden.
|
2021
|
+
*/
|
2022
|
+
setSafeAreaInsetsOverride(params: Protocol.Emulation.SetSafeAreaInsetsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2023
|
+
|
2018
2024
|
/**
|
2019
2025
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
2020
2026
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
@@ -2858,6 +2864,34 @@ export namespace ProtocolTestsProxyApi {
|
|
2858
2864
|
offWebTransportClosed(listener: (event: { params: Protocol.Network.WebTransportClosedEvent }) => void): void;
|
2859
2865
|
onceWebTransportClosed(eventMatcher?: (event: { params: Protocol.Network.WebTransportClosedEvent }) => boolean): Promise<{ params: Protocol.Network.WebTransportClosedEvent }>;
|
2860
2866
|
|
2867
|
+
/**
|
2868
|
+
* Fired upon direct_socket.TCPSocket creation.
|
2869
|
+
*/
|
2870
|
+
onDirectTCPSocketCreated(listener: (event: { params: Protocol.Network.DirectTCPSocketCreatedEvent }) => void): void;
|
2871
|
+
offDirectTCPSocketCreated(listener: (event: { params: Protocol.Network.DirectTCPSocketCreatedEvent }) => void): void;
|
2872
|
+
onceDirectTCPSocketCreated(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketCreatedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketCreatedEvent }>;
|
2873
|
+
|
2874
|
+
/**
|
2875
|
+
* Fired when direct_socket.TCPSocket connection is opened.
|
2876
|
+
*/
|
2877
|
+
onDirectTCPSocketOpened(listener: (event: { params: Protocol.Network.DirectTCPSocketOpenedEvent }) => void): void;
|
2878
|
+
offDirectTCPSocketOpened(listener: (event: { params: Protocol.Network.DirectTCPSocketOpenedEvent }) => void): void;
|
2879
|
+
onceDirectTCPSocketOpened(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketOpenedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketOpenedEvent }>;
|
2880
|
+
|
2881
|
+
/**
|
2882
|
+
* Fired when direct_socket.TCPSocket is aborted.
|
2883
|
+
*/
|
2884
|
+
onDirectTCPSocketAborted(listener: (event: { params: Protocol.Network.DirectTCPSocketAbortedEvent }) => void): void;
|
2885
|
+
offDirectTCPSocketAborted(listener: (event: { params: Protocol.Network.DirectTCPSocketAbortedEvent }) => void): void;
|
2886
|
+
onceDirectTCPSocketAborted(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketAbortedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketAbortedEvent }>;
|
2887
|
+
|
2888
|
+
/**
|
2889
|
+
* Fired when direct_socket.TCPSocket is closed.
|
2890
|
+
*/
|
2891
|
+
onDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
|
2892
|
+
offDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
|
2893
|
+
onceDirectTCPSocketClosed(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketClosedEvent }>;
|
2894
|
+
|
2861
2895
|
/**
|
2862
2896
|
* Fired when additional information about a requestWillBeSent event is available from the
|
2863
2897
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -4853,6 +4887,11 @@ export namespace ProtocolTestsProxyApi {
|
|
4853
4887
|
*/
|
4854
4888
|
enable(params: Protocol.BluetoothEmulation.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4855
4889
|
|
4890
|
+
/**
|
4891
|
+
* Set the state of the simulated central.
|
4892
|
+
*/
|
4893
|
+
setSimulatedCentralState(params: Protocol.BluetoothEmulation.SetSimulatedCentralStateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4894
|
+
|
4856
4895
|
/**
|
4857
4896
|
* Disable the BluetoothEmulation domain.
|
4858
4897
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -8395,6 +8395,41 @@ export namespace Protocol {
|
|
8395
8395
|
*/
|
8396
8396
|
export namespace Emulation {
|
8397
8397
|
|
8398
|
+
export interface SafeAreaInsets {
|
8399
|
+
/**
|
8400
|
+
* Overrides safe-area-inset-top.
|
8401
|
+
*/
|
8402
|
+
top?: integer;
|
8403
|
+
/**
|
8404
|
+
* Overrides safe-area-max-inset-top.
|
8405
|
+
*/
|
8406
|
+
topMax?: integer;
|
8407
|
+
/**
|
8408
|
+
* Overrides safe-area-inset-left.
|
8409
|
+
*/
|
8410
|
+
left?: integer;
|
8411
|
+
/**
|
8412
|
+
* Overrides safe-area-max-inset-left.
|
8413
|
+
*/
|
8414
|
+
leftMax?: integer;
|
8415
|
+
/**
|
8416
|
+
* Overrides safe-area-inset-bottom.
|
8417
|
+
*/
|
8418
|
+
bottom?: integer;
|
8419
|
+
/**
|
8420
|
+
* Overrides safe-area-max-inset-bottom.
|
8421
|
+
*/
|
8422
|
+
bottomMax?: integer;
|
8423
|
+
/**
|
8424
|
+
* Overrides safe-area-inset-right.
|
8425
|
+
*/
|
8426
|
+
right?: integer;
|
8427
|
+
/**
|
8428
|
+
* Overrides safe-area-max-inset-right.
|
8429
|
+
*/
|
8430
|
+
rightMax?: integer;
|
8431
|
+
}
|
8432
|
+
|
8398
8433
|
export const enum ScreenOrientationType {
|
8399
8434
|
PortraitPrimary = 'portraitPrimary',
|
8400
8435
|
PortraitSecondary = 'portraitSecondary',
|
@@ -8580,6 +8615,10 @@ export namespace Protocol {
|
|
8580
8615
|
color?: DOM.RGBA;
|
8581
8616
|
}
|
8582
8617
|
|
8618
|
+
export interface SetSafeAreaInsetsOverrideRequest {
|
8619
|
+
insets: SafeAreaInsets;
|
8620
|
+
}
|
8621
|
+
|
8583
8622
|
export interface SetDeviceMetricsOverrideRequest {
|
8584
8623
|
/**
|
8585
8624
|
* Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
|
@@ -11595,6 +11634,28 @@ export namespace Protocol {
|
|
11595
11634
|
*/
|
11596
11635
|
export type ContentEncoding = ('deflate' | 'gzip' | 'br' | 'zstd');
|
11597
11636
|
|
11637
|
+
export type DirectSocketDnsQueryType = ('ipv4' | 'ipv6');
|
11638
|
+
|
11639
|
+
export interface DirectTCPSocketOptions {
|
11640
|
+
/**
|
11641
|
+
* TCP_NODELAY option
|
11642
|
+
*/
|
11643
|
+
noDelay: boolean;
|
11644
|
+
/**
|
11645
|
+
* Expected to be unsigned integer.
|
11646
|
+
*/
|
11647
|
+
keepAliveDelay?: number;
|
11648
|
+
/**
|
11649
|
+
* Expected to be unsigned integer.
|
11650
|
+
*/
|
11651
|
+
sendBufferSize?: number;
|
11652
|
+
/**
|
11653
|
+
* Expected to be unsigned integer.
|
11654
|
+
*/
|
11655
|
+
receiveBufferSize?: number;
|
11656
|
+
dnsQueryType?: DirectSocketDnsQueryType;
|
11657
|
+
}
|
11658
|
+
|
11598
11659
|
export type PrivateNetworkRequestPolicy = ('Allow' | 'BlockFromInsecureToMorePrivate' | 'WarnFromInsecureToMorePrivate' | 'PreflightBlock' | 'PreflightWarn' | 'PermissionBlock');
|
11599
11660
|
|
11600
11661
|
export type IPAddressSpace = ('Local' | 'Private' | 'Public' | 'Unknown');
|
@@ -12672,6 +12733,56 @@ export namespace Protocol {
|
|
12672
12733
|
timestamp: MonotonicTime;
|
12673
12734
|
}
|
12674
12735
|
|
12736
|
+
/**
|
12737
|
+
* Fired upon direct_socket.TCPSocket creation.
|
12738
|
+
*/
|
12739
|
+
export interface DirectTCPSocketCreatedEvent {
|
12740
|
+
identifier: RequestId;
|
12741
|
+
remoteAddr: string;
|
12742
|
+
/**
|
12743
|
+
* Unsigned int 16.
|
12744
|
+
*/
|
12745
|
+
remotePort: integer;
|
12746
|
+
options: DirectTCPSocketOptions;
|
12747
|
+
timestamp: MonotonicTime;
|
12748
|
+
initiator?: Initiator;
|
12749
|
+
}
|
12750
|
+
|
12751
|
+
/**
|
12752
|
+
* Fired when direct_socket.TCPSocket connection is opened.
|
12753
|
+
*/
|
12754
|
+
export interface DirectTCPSocketOpenedEvent {
|
12755
|
+
identifier: RequestId;
|
12756
|
+
remoteAddr: string;
|
12757
|
+
/**
|
12758
|
+
* Expected to be unsigned integer.
|
12759
|
+
*/
|
12760
|
+
remotePort: integer;
|
12761
|
+
timestamp: MonotonicTime;
|
12762
|
+
localAddr?: string;
|
12763
|
+
/**
|
12764
|
+
* Expected to be unsigned integer.
|
12765
|
+
*/
|
12766
|
+
localPort?: integer;
|
12767
|
+
}
|
12768
|
+
|
12769
|
+
/**
|
12770
|
+
* Fired when direct_socket.TCPSocket is aborted.
|
12771
|
+
*/
|
12772
|
+
export interface DirectTCPSocketAbortedEvent {
|
12773
|
+
identifier: RequestId;
|
12774
|
+
errorMessage: string;
|
12775
|
+
timestamp: MonotonicTime;
|
12776
|
+
}
|
12777
|
+
|
12778
|
+
/**
|
12779
|
+
* Fired when direct_socket.TCPSocket is closed.
|
12780
|
+
*/
|
12781
|
+
export interface DirectTCPSocketClosedEvent {
|
12782
|
+
identifier: RequestId;
|
12783
|
+
timestamp: MonotonicTime;
|
12784
|
+
}
|
12785
|
+
|
12675
12786
|
/**
|
12676
12787
|
* Fired when additional information about a requestWillBeSent event is available from the
|
12677
12788
|
* network stack. Not every requestWillBeSent event will have an additional
|
@@ -19050,7 +19161,7 @@ export namespace Protocol {
|
|
19050
19161
|
* TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
|
19051
19162
|
* filter out the ones that aren't necessary to the developers.
|
19052
19163
|
*/
|
19053
|
-
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
|
19164
|
+
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
|
19054
19165
|
|
19055
19166
|
/**
|
19056
19167
|
* Information of headers to be displayed when the header mismatch occurred.
|
@@ -19386,6 +19497,17 @@ export namespace Protocol {
|
|
19386
19497
|
* State of the simulated central.
|
19387
19498
|
*/
|
19388
19499
|
state: CentralState;
|
19500
|
+
/**
|
19501
|
+
* If the simulated central supports low-energy.
|
19502
|
+
*/
|
19503
|
+
leSupported: boolean;
|
19504
|
+
}
|
19505
|
+
|
19506
|
+
export interface SetSimulatedCentralStateRequest {
|
19507
|
+
/**
|
19508
|
+
* State of the simulated central.
|
19509
|
+
*/
|
19510
|
+
state: CentralState;
|
19389
19511
|
}
|
19390
19512
|
|
19391
19513
|
export interface SimulatePreconnectedPeripheralRequest {
|