devtools-protocol 0.0.1503754 → 0.0.1505444
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 +64 -7
- package/package.json +1 -1
- package/pdl/domains/CSS.pdl +10 -0
- package/pdl/domains/Media.pdl +9 -4
- package/pdl/domains/Network.pdl +19 -0
- package/types/protocol-mapping.d.ts +12 -3
- package/types/protocol-proxy-api.d.ts +10 -3
- package/types/protocol-tests-proxy-api.d.ts +12 -5
- package/types/protocol.d.ts +41 -4
@@ -4487,6 +4487,18 @@
|
|
4487
4487
|
}
|
4488
4488
|
]
|
4489
4489
|
},
|
4490
|
+
{
|
4491
|
+
"id": "ComputedStyleExtraFields",
|
4492
|
+
"experimental": true,
|
4493
|
+
"type": "object",
|
4494
|
+
"properties": [
|
4495
|
+
{
|
4496
|
+
"name": "isAppearanceBase",
|
4497
|
+
"description": "Returns whether or not this node is being rendered with base appearance,\nwhich happens when it has its appearance property set to base/base-select\nor it is in the subtree of an element being rendered with base appearance.",
|
4498
|
+
"type": "boolean"
|
4499
|
+
}
|
4500
|
+
]
|
4501
|
+
},
|
4490
4502
|
{
|
4491
4503
|
"id": "CSSStyle",
|
4492
4504
|
"description": "CSS style representation.",
|
@@ -5489,6 +5501,12 @@
|
|
5489
5501
|
"items": {
|
5490
5502
|
"$ref": "CSSComputedStyleProperty"
|
5491
5503
|
}
|
5504
|
+
},
|
5505
|
+
{
|
5506
|
+
"name": "extraFields",
|
5507
|
+
"description": "A list of non-standard \"extra fields\" which blink stores alongside each\ncomputed style.",
|
5508
|
+
"experimental": true,
|
5509
|
+
"$ref": "ComputedStyleExtraFields"
|
5492
5510
|
}
|
5493
5511
|
]
|
5494
5512
|
},
|
@@ -14435,6 +14453,21 @@
|
|
14435
14453
|
"type": "object"
|
14436
14454
|
}
|
14437
14455
|
]
|
14456
|
+
},
|
14457
|
+
{
|
14458
|
+
"id": "Player",
|
14459
|
+
"type": "object",
|
14460
|
+
"properties": [
|
14461
|
+
{
|
14462
|
+
"name": "playerId",
|
14463
|
+
"$ref": "PlayerId"
|
14464
|
+
},
|
14465
|
+
{
|
14466
|
+
"name": "domNodeId",
|
14467
|
+
"optional": true,
|
14468
|
+
"$ref": "DOM.BackendNodeId"
|
14469
|
+
}
|
14470
|
+
]
|
14438
14471
|
}
|
14439
14472
|
],
|
14440
14473
|
"events": [
|
@@ -14507,15 +14540,12 @@
|
|
14507
14540
|
]
|
14508
14541
|
},
|
14509
14542
|
{
|
14510
|
-
"name": "
|
14511
|
-
"description": "Called whenever a player is created, or when a new agent joins and receives\na list of active players. If an agent is restored, it will receive
|
14543
|
+
"name": "playerCreated",
|
14544
|
+
"description": "Called whenever a player is created, or when a new agent joins and receives\na list of active players. If an agent is restored, it will receive one\nevent for each active player.",
|
14512
14545
|
"parameters": [
|
14513
14546
|
{
|
14514
|
-
"name": "
|
14515
|
-
"
|
14516
|
-
"items": {
|
14517
|
-
"$ref": "PlayerId"
|
14518
|
-
}
|
14547
|
+
"name": "player",
|
14548
|
+
"$ref": "Player"
|
14519
14549
|
}
|
14520
14550
|
]
|
14521
14551
|
}
|
@@ -15301,6 +15331,21 @@
|
|
15301
15331
|
"sri-message-signature-mismatch"
|
15302
15332
|
]
|
15303
15333
|
},
|
15334
|
+
{
|
15335
|
+
"id": "IpProxyStatus",
|
15336
|
+
"description": "Sets Controls for IP Proxy of requests.\nPage reload is required before the new behavior will be observed.",
|
15337
|
+
"experimental": true,
|
15338
|
+
"type": "string",
|
15339
|
+
"enum": [
|
15340
|
+
"Available",
|
15341
|
+
"FeatureNotEnabled",
|
15342
|
+
"MaskedDomainListNotEnabled",
|
15343
|
+
"MaskedDomainListNotPopulated",
|
15344
|
+
"AuthTokensUnavailable",
|
15345
|
+
"Unavailable",
|
15346
|
+
"BypassedByDevTools"
|
15347
|
+
]
|
15348
|
+
},
|
15304
15349
|
{
|
15305
15350
|
"id": "CorsError",
|
15306
15351
|
"description": "The reason why request was blocked.",
|
@@ -16867,6 +16912,18 @@
|
|
16867
16912
|
}
|
16868
16913
|
],
|
16869
16914
|
"commands": [
|
16915
|
+
{
|
16916
|
+
"name": "getIPProtectionProxyStatus",
|
16917
|
+
"description": "Returns enum representing if IP Proxy of requests is available\nor reason it is not active.",
|
16918
|
+
"experimental": true,
|
16919
|
+
"returns": [
|
16920
|
+
{
|
16921
|
+
"name": "status",
|
16922
|
+
"description": "Whether IP proxy is available",
|
16923
|
+
"$ref": "IpProxyStatus"
|
16924
|
+
}
|
16925
|
+
]
|
16926
|
+
},
|
16870
16927
|
{
|
16871
16928
|
"name": "setAcceptedEncodings",
|
16872
16929
|
"description": "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.",
|
package/package.json
CHANGED
package/pdl/domains/CSS.pdl
CHANGED
@@ -239,6 +239,13 @@ experimental domain CSS
|
|
239
239
|
# Computed style property value.
|
240
240
|
string value
|
241
241
|
|
242
|
+
experimental type ComputedStyleExtraFields extends object
|
243
|
+
properties
|
244
|
+
# Returns whether or not this node is being rendered with base appearance,
|
245
|
+
# which happens when it has its appearance property set to base/base-select
|
246
|
+
# or it is in the subtree of an element being rendered with base appearance.
|
247
|
+
boolean isAppearanceBase
|
248
|
+
|
242
249
|
# CSS style representation.
|
243
250
|
type CSSStyle extends object
|
244
251
|
properties
|
@@ -674,6 +681,9 @@ experimental domain CSS
|
|
674
681
|
returns
|
675
682
|
# Computed style for the specified DOM node.
|
676
683
|
array of CSSComputedStyleProperty computedStyle
|
684
|
+
# A list of non-standard "extra fields" which blink stores alongside each
|
685
|
+
# computed style.
|
686
|
+
experimental ComputedStyleExtraFields extraFields
|
677
687
|
|
678
688
|
# Resolve the specified values in the context of the provided element.
|
679
689
|
# For example, a value of '1em' is evaluated according to the computed
|
package/pdl/domains/Media.pdl
CHANGED
@@ -66,6 +66,11 @@ experimental domain Media
|
|
66
66
|
# Extra data attached to an error, such as an HRESULT, Video Codec, etc.
|
67
67
|
object data
|
68
68
|
|
69
|
+
type Player extends object
|
70
|
+
properties
|
71
|
+
PlayerId playerId
|
72
|
+
optional DOM.BackendNodeId domNodeId
|
73
|
+
|
69
74
|
# This can be called multiple times, and can be used to set / override /
|
70
75
|
# remove player properties. A null propValue indicates removal.
|
71
76
|
event playerPropertiesChanged
|
@@ -93,11 +98,11 @@ experimental domain Media
|
|
93
98
|
array of PlayerError errors
|
94
99
|
|
95
100
|
# Called whenever a player is created, or when a new agent joins and receives
|
96
|
-
# a list of active players. If an agent is restored, it will receive
|
97
|
-
#
|
98
|
-
event
|
101
|
+
# a list of active players. If an agent is restored, it will receive one
|
102
|
+
# event for each active player.
|
103
|
+
event playerCreated
|
99
104
|
parameters
|
100
|
-
|
105
|
+
Player player
|
101
106
|
|
102
107
|
# Enables the Media domain
|
103
108
|
command enable
|
package/pdl/domains/Network.pdl
CHANGED
@@ -296,6 +296,25 @@ domain Network
|
|
296
296
|
corp-not-same-site
|
297
297
|
sri-message-signature-mismatch
|
298
298
|
|
299
|
+
# Sets Controls for IP Proxy of requests.
|
300
|
+
# Page reload is required before the new behavior will be observed.
|
301
|
+
experimental type IpProxyStatus extends string
|
302
|
+
enum
|
303
|
+
Available
|
304
|
+
FeatureNotEnabled
|
305
|
+
MaskedDomainListNotEnabled
|
306
|
+
MaskedDomainListNotPopulated
|
307
|
+
AuthTokensUnavailable
|
308
|
+
Unavailable
|
309
|
+
BypassedByDevTools
|
310
|
+
|
311
|
+
# Returns enum representing if IP Proxy of requests is available
|
312
|
+
# or reason it is not active.
|
313
|
+
experimental command getIPProtectionProxyStatus
|
314
|
+
returns
|
315
|
+
# Whether IP proxy is available
|
316
|
+
IpProxyStatus status
|
317
|
+
|
299
318
|
# The reason why request was blocked.
|
300
319
|
type CorsError extends string
|
301
320
|
enum
|
@@ -356,10 +356,10 @@ export namespace ProtocolMapping {
|
|
356
356
|
'Media.playerErrorsRaised': [Protocol.Media.PlayerErrorsRaisedEvent];
|
357
357
|
/**
|
358
358
|
* Called whenever a player is created, or when a new agent joins and receives
|
359
|
-
* a list of active players. If an agent is restored, it will receive
|
360
|
-
*
|
359
|
+
* a list of active players. If an agent is restored, it will receive one
|
360
|
+
* event for each active player.
|
361
361
|
*/
|
362
|
-
'Media.
|
362
|
+
'Media.playerCreated': [Protocol.Media.PlayerCreatedEvent];
|
363
363
|
/**
|
364
364
|
* Fired when data chunk was received over the network.
|
365
365
|
*/
|
@@ -4056,6 +4056,15 @@ export namespace ProtocolMapping {
|
|
4056
4056
|
paramsType: [];
|
4057
4057
|
returnType: Protocol.Memory.GetSamplingProfileResponse;
|
4058
4058
|
};
|
4059
|
+
/**
|
4060
|
+
* Returns enum representing if IP Proxy of requests is available
|
4061
|
+
* or reason it is not active.
|
4062
|
+
* @experimental
|
4063
|
+
*/
|
4064
|
+
'Network.getIPProtectionProxyStatus': {
|
4065
|
+
paramsType: [];
|
4066
|
+
returnType: Protocol.Network.GetIPProtectionProxyStatusResponse;
|
4067
|
+
};
|
4059
4068
|
/**
|
4060
4069
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
4061
4070
|
* @experimental
|
@@ -2875,10 +2875,10 @@ export namespace ProtocolProxyApi {
|
|
2875
2875
|
|
2876
2876
|
/**
|
2877
2877
|
* Called whenever a player is created, or when a new agent joins and receives
|
2878
|
-
* a list of active players. If an agent is restored, it will receive
|
2879
|
-
*
|
2878
|
+
* a list of active players. If an agent is restored, it will receive one
|
2879
|
+
* event for each active player.
|
2880
2880
|
*/
|
2881
|
-
on(event: '
|
2881
|
+
on(event: 'playerCreated', listener: (params: Protocol.Media.PlayerCreatedEvent) => void): void;
|
2882
2882
|
|
2883
2883
|
}
|
2884
2884
|
|
@@ -2945,6 +2945,13 @@ export namespace ProtocolProxyApi {
|
|
2945
2945
|
}
|
2946
2946
|
|
2947
2947
|
export interface NetworkApi {
|
2948
|
+
/**
|
2949
|
+
* Returns enum representing if IP Proxy of requests is available
|
2950
|
+
* or reason it is not active.
|
2951
|
+
* @experimental
|
2952
|
+
*/
|
2953
|
+
getIPProtectionProxyStatus(): Promise<Protocol.Network.GetIPProtectionProxyStatusResponse>;
|
2954
|
+
|
2948
2955
|
/**
|
2949
2956
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
2950
2957
|
* @experimental
|
@@ -3039,12 +3039,12 @@ export namespace ProtocolTestsProxyApi {
|
|
3039
3039
|
|
3040
3040
|
/**
|
3041
3041
|
* Called whenever a player is created, or when a new agent joins and receives
|
3042
|
-
* a list of active players. If an agent is restored, it will receive
|
3043
|
-
*
|
3042
|
+
* a list of active players. If an agent is restored, it will receive one
|
3043
|
+
* event for each active player.
|
3044
3044
|
*/
|
3045
|
-
|
3046
|
-
|
3047
|
-
|
3045
|
+
onPlayerCreated(listener: (event: { params: Protocol.Media.PlayerCreatedEvent }) => void): void;
|
3046
|
+
offPlayerCreated(listener: (event: { params: Protocol.Media.PlayerCreatedEvent }) => void): void;
|
3047
|
+
oncePlayerCreated(eventMatcher?: (event: { params: Protocol.Media.PlayerCreatedEvent }) => boolean): Promise<{ params: Protocol.Media.PlayerCreatedEvent }>;
|
3048
3048
|
|
3049
3049
|
}
|
3050
3050
|
|
@@ -3111,6 +3111,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3111
3111
|
}
|
3112
3112
|
|
3113
3113
|
export interface NetworkApi {
|
3114
|
+
/**
|
3115
|
+
* Returns enum representing if IP Proxy of requests is available
|
3116
|
+
* or reason it is not active.
|
3117
|
+
* @experimental
|
3118
|
+
*/
|
3119
|
+
getIPProtectionProxyStatus(): Promise<{id: number, result: Protocol.Network.GetIPProtectionProxyStatusResponse, sessionId: string}>;
|
3120
|
+
|
3114
3121
|
/**
|
3115
3122
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
3116
3123
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
@@ -5282,6 +5282,18 @@ export namespace Protocol {
|
|
5282
5282
|
value: string;
|
5283
5283
|
}
|
5284
5284
|
|
5285
|
+
/**
|
5286
|
+
* @experimental
|
5287
|
+
*/
|
5288
|
+
export interface ComputedStyleExtraFields {
|
5289
|
+
/**
|
5290
|
+
* Returns whether or not this node is being rendered with base appearance,
|
5291
|
+
* which happens when it has its appearance property set to base/base-select
|
5292
|
+
* or it is in the subtree of an element being rendered with base appearance.
|
5293
|
+
*/
|
5294
|
+
isAppearanceBase: boolean;
|
5295
|
+
}
|
5296
|
+
|
5285
5297
|
/**
|
5286
5298
|
* CSS style representation.
|
5287
5299
|
*/
|
@@ -6023,6 +6035,12 @@ export namespace Protocol {
|
|
6023
6035
|
* Computed style for the specified DOM node.
|
6024
6036
|
*/
|
6025
6037
|
computedStyle: CSSComputedStyleProperty[];
|
6038
|
+
/**
|
6039
|
+
* A list of non-standard "extra fields" which blink stores alongside each
|
6040
|
+
* computed style.
|
6041
|
+
* @experimental
|
6042
|
+
*/
|
6043
|
+
extraFields: ComputedStyleExtraFields;
|
6026
6044
|
}
|
6027
6045
|
|
6028
6046
|
export interface ResolveValuesRequest {
|
@@ -11762,6 +11780,11 @@ export namespace Protocol {
|
|
11762
11780
|
data: any;
|
11763
11781
|
}
|
11764
11782
|
|
11783
|
+
export interface Player {
|
11784
|
+
playerId: PlayerId;
|
11785
|
+
domNodeId?: DOM.BackendNodeId;
|
11786
|
+
}
|
11787
|
+
|
11765
11788
|
/**
|
11766
11789
|
* This can be called multiple times, and can be used to set / override /
|
11767
11790
|
* remove player properties. A null propValue indicates removal.
|
@@ -11798,11 +11821,11 @@ export namespace Protocol {
|
|
11798
11821
|
|
11799
11822
|
/**
|
11800
11823
|
* Called whenever a player is created, or when a new agent joins and receives
|
11801
|
-
* a list of active players. If an agent is restored, it will receive
|
11802
|
-
*
|
11824
|
+
* a list of active players. If an agent is restored, it will receive one
|
11825
|
+
* event for each active player.
|
11803
11826
|
*/
|
11804
|
-
export interface
|
11805
|
-
|
11827
|
+
export interface PlayerCreatedEvent {
|
11828
|
+
player: Player;
|
11806
11829
|
}
|
11807
11830
|
}
|
11808
11831
|
|
@@ -12312,6 +12335,13 @@ export namespace Protocol {
|
|
12312
12335
|
*/
|
12313
12336
|
export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'integrity' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip' | 'corp-not-same-site' | 'sri-message-signature-mismatch');
|
12314
12337
|
|
12338
|
+
/**
|
12339
|
+
* Sets Controls for IP Proxy of requests.
|
12340
|
+
* Page reload is required before the new behavior will be observed.
|
12341
|
+
* @experimental
|
12342
|
+
*/
|
12343
|
+
export type IpProxyStatus = ('Available' | 'FeatureNotEnabled' | 'MaskedDomainListNotEnabled' | 'MaskedDomainListNotPopulated' | 'AuthTokensUnavailable' | 'Unavailable' | 'BypassedByDevTools');
|
12344
|
+
|
12315
12345
|
/**
|
12316
12346
|
* The reason why request was blocked.
|
12317
12347
|
*/
|
@@ -13345,6 +13375,13 @@ export namespace Protocol {
|
|
13345
13375
|
includeCredentials: boolean;
|
13346
13376
|
}
|
13347
13377
|
|
13378
|
+
export interface GetIPProtectionProxyStatusResponse {
|
13379
|
+
/**
|
13380
|
+
* Whether IP proxy is available
|
13381
|
+
*/
|
13382
|
+
status: IpProxyStatus;
|
13383
|
+
}
|
13384
|
+
|
13348
13385
|
export interface SetAcceptedEncodingsRequest {
|
13349
13386
|
/**
|
13350
13387
|
* List of accepted content encodings.
|