devtools-protocol 0.0.1391447 → 0.0.1392711
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.
@@ -4697,6 +4697,54 @@
|
|
4697
4697
|
}
|
4698
4698
|
]
|
4699
4699
|
},
|
4700
|
+
{
|
4701
|
+
"name": "resolveValues",
|
4702
|
+
"description": "Resolve the specified values in the context of the provided element.\nFor example, a value of '1em' is evaluated according to the computed\n'font-size' of the element and a value 'calc(1px + 2px)' will be\nresolved to '3px'.",
|
4703
|
+
"parameters": [
|
4704
|
+
{
|
4705
|
+
"name": "values",
|
4706
|
+
"description": "Substitution functions (var()/env()/attr()) and cascade-dependent\nkeywords (revert/revert-layer) do not work.",
|
4707
|
+
"type": "array",
|
4708
|
+
"items": {
|
4709
|
+
"type": "string"
|
4710
|
+
}
|
4711
|
+
},
|
4712
|
+
{
|
4713
|
+
"name": "nodeId",
|
4714
|
+
"description": "Id of the node in whose context the expression is evaluated",
|
4715
|
+
"$ref": "DOM.NodeId"
|
4716
|
+
},
|
4717
|
+
{
|
4718
|
+
"name": "propertyName",
|
4719
|
+
"description": "Only longhands and custom property names are accepted.",
|
4720
|
+
"optional": true,
|
4721
|
+
"type": "string"
|
4722
|
+
},
|
4723
|
+
{
|
4724
|
+
"name": "pseudoType",
|
4725
|
+
"description": "Pseudo element type, only works for pseudo elements that generate\nelements in the tree, such as ::before and ::after.",
|
4726
|
+
"experimental": true,
|
4727
|
+
"optional": true,
|
4728
|
+
"$ref": "DOM.PseudoType"
|
4729
|
+
},
|
4730
|
+
{
|
4731
|
+
"name": "pseudoIdentifier",
|
4732
|
+
"description": "Pseudo element custom ident.",
|
4733
|
+
"experimental": true,
|
4734
|
+
"optional": true,
|
4735
|
+
"type": "string"
|
4736
|
+
}
|
4737
|
+
],
|
4738
|
+
"returns": [
|
4739
|
+
{
|
4740
|
+
"name": "results",
|
4741
|
+
"type": "array",
|
4742
|
+
"items": {
|
4743
|
+
"type": "string"
|
4744
|
+
}
|
4745
|
+
}
|
4746
|
+
]
|
4747
|
+
},
|
4700
4748
|
{
|
4701
4749
|
"name": "getInlineStylesForNode",
|
4702
4750
|
"description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.",
|
@@ -15772,7 +15820,7 @@
|
|
15772
15820
|
},
|
15773
15821
|
{
|
15774
15822
|
"name": "headers",
|
15775
|
-
"description": "Raw response headers as they were received over the wire
|
15823
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15776
15824
|
"$ref": "Headers"
|
15777
15825
|
},
|
15778
15826
|
{
|
@@ -15827,7 +15875,7 @@
|
|
15827
15875
|
},
|
15828
15876
|
{
|
15829
15877
|
"name": "headers",
|
15830
|
-
"description": "Raw response headers as they were received over the wire
|
15878
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15831
15879
|
"$ref": "Headers"
|
15832
15880
|
}
|
15833
15881
|
]
|
@@ -26354,6 +26402,11 @@
|
|
26354
26402
|
}
|
26355
26403
|
]
|
26356
26404
|
},
|
26405
|
+
{
|
26406
|
+
"id": "PreloadPipelineId",
|
26407
|
+
"description": "Chrome manages different types of preloads together using a\nconcept of preloading pipeline. For example, if a site uses a\nSpeculationRules for prerender, Chrome first starts a prefetch and\nthen upgrades it to prerender.\n\nCDP events for them are emitted separately but they share\n`PreloadPipelineId`.",
|
26408
|
+
"type": "string"
|
26409
|
+
},
|
26357
26410
|
{
|
26358
26411
|
"id": "PrerenderFinalStatus",
|
26359
26412
|
"description": "List of FinalStatus reasons for Prerender2.",
|
@@ -26568,6 +26621,10 @@
|
|
26568
26621
|
"name": "key",
|
26569
26622
|
"$ref": "PreloadingAttemptKey"
|
26570
26623
|
},
|
26624
|
+
{
|
26625
|
+
"name": "pipelineId",
|
26626
|
+
"$ref": "PreloadPipelineId"
|
26627
|
+
},
|
26571
26628
|
{
|
26572
26629
|
"name": "initiatingFrameId",
|
26573
26630
|
"description": "The frame id of the frame initiating prefetch.",
|
@@ -26599,6 +26656,10 @@
|
|
26599
26656
|
"name": "key",
|
26600
26657
|
"$ref": "PreloadingAttemptKey"
|
26601
26658
|
},
|
26659
|
+
{
|
26660
|
+
"name": "pipelineId",
|
26661
|
+
"$ref": "PreloadPipelineId"
|
26662
|
+
},
|
26602
26663
|
{
|
26603
26664
|
"name": "status",
|
26604
26665
|
"$ref": "PreloadingStatus"
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2264,6 +2264,27 @@ experimental domain CSS
|
|
2264
2264
|
# Computed style for the specified DOM node.
|
2265
2265
|
array of CSSComputedStyleProperty computedStyle
|
2266
2266
|
|
2267
|
+
# Resolve the specified values in the context of the provided element.
|
2268
|
+
# For example, a value of '1em' is evaluated according to the computed
|
2269
|
+
# 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
2270
|
+
# resolved to '3px'.
|
2271
|
+
command resolveValues
|
2272
|
+
parameters
|
2273
|
+
# Substitution functions (var()/env()/attr()) and cascade-dependent
|
2274
|
+
# keywords (revert/revert-layer) do not work.
|
2275
|
+
array of string values
|
2276
|
+
# Id of the node in whose context the expression is evaluated
|
2277
|
+
DOM.NodeId nodeId
|
2278
|
+
# Only longhands and custom property names are accepted.
|
2279
|
+
optional string propertyName
|
2280
|
+
# Pseudo element type, only works for pseudo elements that generate
|
2281
|
+
# elements in the tree, such as ::before and ::after.
|
2282
|
+
experimental optional DOM.PseudoType pseudoType
|
2283
|
+
# Pseudo element custom ident.
|
2284
|
+
experimental optional string pseudoIdentifier
|
2285
|
+
returns
|
2286
|
+
array of string results
|
2287
|
+
|
2267
2288
|
# Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
2268
2289
|
# attributes) for a DOM node identified by `nodeId`.
|
2269
2290
|
command getInlineStylesForNode
|
@@ -7293,6 +7314,9 @@ domain Network
|
|
7293
7314
|
# are represented by the invalid cookie line string instead of a proper cookie.
|
7294
7315
|
array of BlockedSetCookieWithReason blockedCookies
|
7295
7316
|
# Raw response headers as they were received over the wire.
|
7317
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7318
|
+
# concatentated using `\n` as the separator.
|
7319
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7296
7320
|
Headers headers
|
7297
7321
|
# The IP address space of the resource. The address space can only be determined once the transport
|
7298
7322
|
# established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
|
@@ -7321,6 +7345,9 @@ domain Network
|
|
7321
7345
|
# Request identifier. Used to match this information to another responseReceived event.
|
7322
7346
|
RequestId requestId
|
7323
7347
|
# Raw response headers as they were received over the wire.
|
7348
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7349
|
+
# concatentated using `\n` as the separator.
|
7350
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7324
7351
|
Headers headers
|
7325
7352
|
|
7326
7353
|
# Fired exactly once for each Trust Token operation. Depending on
|
@@ -12424,6 +12451,15 @@ experimental domain Preload
|
|
12424
12451
|
array of RuleSetId ruleSetIds
|
12425
12452
|
array of DOM.BackendNodeId nodeIds
|
12426
12453
|
|
12454
|
+
# Chrome manages different types of preloads together using a
|
12455
|
+
# concept of preloading pipeline. For example, if a site uses a
|
12456
|
+
# SpeculationRules for prerender, Chrome first starts a prefetch and
|
12457
|
+
# then upgrades it to prerender.
|
12458
|
+
#
|
12459
|
+
# CDP events for them are emitted separately but they share
|
12460
|
+
# `PreloadPipelineId`.
|
12461
|
+
type PreloadPipelineId extends string
|
12462
|
+
|
12427
12463
|
command enable
|
12428
12464
|
|
12429
12465
|
command disable
|
@@ -12580,6 +12616,7 @@ experimental domain Preload
|
|
12580
12616
|
event prefetchStatusUpdated
|
12581
12617
|
parameters
|
12582
12618
|
PreloadingAttemptKey key
|
12619
|
+
PreloadPipelineId pipelineId
|
12583
12620
|
# The frame id of the frame initiating prefetch.
|
12584
12621
|
Page.FrameId initiatingFrameId
|
12585
12622
|
string prefetchUrl
|
@@ -12598,6 +12635,7 @@ experimental domain Preload
|
|
12598
12635
|
event prerenderStatusUpdated
|
12599
12636
|
parameters
|
12600
12637
|
PreloadingAttemptKey key
|
12638
|
+
PreloadPipelineId pipelineId
|
12601
12639
|
PreloadingStatus status
|
12602
12640
|
optional PrerenderFinalStatus prerenderStatus
|
12603
12641
|
# This is used to give users more information about the name of Mojo interface
|
@@ -1818,6 +1818,16 @@ export namespace ProtocolMapping {
|
|
1818
1818
|
paramsType: [Protocol.CSS.GetComputedStyleForNodeRequest];
|
1819
1819
|
returnType: Protocol.CSS.GetComputedStyleForNodeResponse;
|
1820
1820
|
};
|
1821
|
+
/**
|
1822
|
+
* Resolve the specified values in the context of the provided element.
|
1823
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1824
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1825
|
+
* resolved to '3px'.
|
1826
|
+
*/
|
1827
|
+
'CSS.resolveValues': {
|
1828
|
+
paramsType: [Protocol.CSS.ResolveValuesRequest];
|
1829
|
+
returnType: Protocol.CSS.ResolveValuesResponse;
|
1830
|
+
};
|
1821
1831
|
/**
|
1822
1832
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1823
1833
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1061,6 +1061,14 @@ export namespace ProtocolProxyApi {
|
|
1061
1061
|
*/
|
1062
1062
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<Protocol.CSS.GetComputedStyleForNodeResponse>;
|
1063
1063
|
|
1064
|
+
/**
|
1065
|
+
* Resolve the specified values in the context of the provided element.
|
1066
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1067
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1068
|
+
* resolved to '3px'.
|
1069
|
+
*/
|
1070
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<Protocol.CSS.ResolveValuesResponse>;
|
1071
|
+
|
1064
1072
|
/**
|
1065
1073
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1066
1074
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1129,6 +1129,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1129
1129
|
*/
|
1130
1130
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetComputedStyleForNodeResponse, sessionId: string}>;
|
1131
1131
|
|
1132
|
+
/**
|
1133
|
+
* Resolve the specified values in the context of the provided element.
|
1134
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1135
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1136
|
+
* resolved to '3px'.
|
1137
|
+
*/
|
1138
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>;
|
1139
|
+
|
1132
1140
|
/**
|
1133
1141
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1134
1142
|
* attributes) for a DOM node identified by `nodeId`.
|
package/types/protocol.d.ts
CHANGED
@@ -5476,6 +5476,35 @@ export namespace Protocol {
|
|
5476
5476
|
computedStyle: CSSComputedStyleProperty[];
|
5477
5477
|
}
|
5478
5478
|
|
5479
|
+
export interface ResolveValuesRequest {
|
5480
|
+
/**
|
5481
|
+
* Substitution functions (var()/env()/attr()) and cascade-dependent
|
5482
|
+
* keywords (revert/revert-layer) do not work.
|
5483
|
+
*/
|
5484
|
+
values: string[];
|
5485
|
+
/**
|
5486
|
+
* Id of the node in whose context the expression is evaluated
|
5487
|
+
*/
|
5488
|
+
nodeId: DOM.NodeId;
|
5489
|
+
/**
|
5490
|
+
* Only longhands and custom property names are accepted.
|
5491
|
+
*/
|
5492
|
+
propertyName?: string;
|
5493
|
+
/**
|
5494
|
+
* Pseudo element type, only works for pseudo elements that generate
|
5495
|
+
* elements in the tree, such as ::before and ::after.
|
5496
|
+
*/
|
5497
|
+
pseudoType?: DOM.PseudoType;
|
5498
|
+
/**
|
5499
|
+
* Pseudo element custom ident.
|
5500
|
+
*/
|
5501
|
+
pseudoIdentifier?: string;
|
5502
|
+
}
|
5503
|
+
|
5504
|
+
export interface ResolveValuesResponse {
|
5505
|
+
results: string[];
|
5506
|
+
}
|
5507
|
+
|
5479
5508
|
export interface GetInlineStylesForNodeRequest {
|
5480
5509
|
nodeId: DOM.NodeId;
|
5481
5510
|
}
|
@@ -12511,6 +12540,9 @@ export namespace Protocol {
|
|
12511
12540
|
blockedCookies: BlockedSetCookieWithReason[];
|
12512
12541
|
/**
|
12513
12542
|
* Raw response headers as they were received over the wire.
|
12543
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12544
|
+
* concatentated using `\n` as the separator.
|
12545
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12514
12546
|
*/
|
12515
12547
|
headers: Headers;
|
12516
12548
|
/**
|
@@ -12557,6 +12589,9 @@ export namespace Protocol {
|
|
12557
12589
|
requestId: RequestId;
|
12558
12590
|
/**
|
12559
12591
|
* Raw response headers as they were received over the wire.
|
12592
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12593
|
+
* concatentated using `\n` as the separator.
|
12594
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12560
12595
|
*/
|
12561
12596
|
headers: Headers;
|
12562
12597
|
}
|
@@ -18697,6 +18732,17 @@ export namespace Protocol {
|
|
18697
18732
|
nodeIds: DOM.BackendNodeId[];
|
18698
18733
|
}
|
18699
18734
|
|
18735
|
+
/**
|
18736
|
+
* Chrome manages different types of preloads together using a
|
18737
|
+
* concept of preloading pipeline. For example, if a site uses a
|
18738
|
+
* SpeculationRules for prerender, Chrome first starts a prefetch and
|
18739
|
+
* then upgrades it to prerender.
|
18740
|
+
*
|
18741
|
+
* CDP events for them are emitted separately but they share
|
18742
|
+
* `PreloadPipelineId`.
|
18743
|
+
*/
|
18744
|
+
export type PreloadPipelineId = string;
|
18745
|
+
|
18700
18746
|
/**
|
18701
18747
|
* List of FinalStatus reasons for Prerender2.
|
18702
18748
|
*/
|
@@ -18750,6 +18796,7 @@ export namespace Protocol {
|
|
18750
18796
|
*/
|
18751
18797
|
export interface PrefetchStatusUpdatedEvent {
|
18752
18798
|
key: PreloadingAttemptKey;
|
18799
|
+
pipelineId: PreloadPipelineId;
|
18753
18800
|
/**
|
18754
18801
|
* The frame id of the frame initiating prefetch.
|
18755
18802
|
*/
|
@@ -18765,6 +18812,7 @@ export namespace Protocol {
|
|
18765
18812
|
*/
|
18766
18813
|
export interface PrerenderStatusUpdatedEvent {
|
18767
18814
|
key: PreloadingAttemptKey;
|
18815
|
+
pipelineId: PreloadPipelineId;
|
18768
18816
|
status: PreloadingStatus;
|
18769
18817
|
prerenderStatus?: PrerenderFinalStatus;
|
18770
18818
|
/**
|