Skip to content

Commit d2f3487

Browse files
committed
Roll protocol to r1392711
1 parent 4f13107 commit d2f3487

File tree

8 files changed

+194
-79
lines changed

8 files changed

+194
-79
lines changed

changelog.md

Lines changed: 55 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,61 @@
11

22

3+
## Roll protocol to r1392711 — _2024-12-06T04:30:32.000Z_
4+
###### Diff: [`4f13107...c9782bf`](https://github.com/ChromeDevTools/devtools-protocol/compare/4f13107...c9782bf)
5+
6+
```diff
7+
@@ browser_protocol.pdl:2264 @@ experimental domain CSS
8+
# Computed style for the specified DOM node.
9+
array of CSSComputedStyleProperty computedStyle
10+
11+
+ # Resolve the specified values in the context of the provided element.
12+
+ # For example, a value of '1em' is evaluated according to the computed
13+
+ # 'font-size' of the element and a value 'calc(1px + 2px)' will be
14+
+ # resolved to '3px'.
15+
+ command resolveValues
16+
+ parameters
17+
+ # Substitution functions (var()/env()/attr()) and cascade-dependent
18+
+ # keywords (revert/revert-layer) do not work.
19+
+ array of string values
20+
+ # Id of the node in whose context the expression is evaluated
21+
+ DOM.NodeId nodeId
22+
+ # Only longhands and custom property names are accepted.
23+
+ optional string propertyName
24+
+ # Pseudo element type, only works for pseudo elements that generate
25+
+ # elements in the tree, such as ::before and ::after.
26+
+ experimental optional DOM.PseudoType pseudoType
27+
+ # Pseudo element custom ident.
28+
+ experimental optional string pseudoIdentifier
29+
+ returns
30+
+ array of string results
31+
+
32+
# Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
33+
# attributes) for a DOM node identified by `nodeId`.
34+
command getInlineStylesForNode
35+
@@ -7293,6 +7314,9 @@ domain Network
36+
# are represented by the invalid cookie line string instead of a proper cookie.
37+
array of BlockedSetCookieWithReason blockedCookies
38+
# Raw response headers as they were received over the wire.
39+
+ # Duplicate headers in the response are represented as a single key with their values
40+
+ # concatentated using `\n` as the separator.
41+
+ # See also `headersText` that contains verbatim text for HTTP/1.*.
42+
Headers headers
43+
# The IP address space of the resource. The address space can only be determined once the transport
44+
# established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
45+
@@ -7321,6 +7345,9 @@ domain Network
46+
# Request identifier. Used to match this information to another responseReceived event.
47+
RequestId requestId
48+
# Raw response headers as they were received over the wire.
49+
+ # Duplicate headers in the response are represented as a single key with their values
50+
+ # concatentated using `\n` as the separator.
51+
+ # See also `headersText` that contains verbatim text for HTTP/1.*.
52+
Headers headers
53+
54+
# Fired exactly once for each Trust Token operation. Depending on
55+
```
56+
357
## Roll protocol to r1392070 — _2024-12-05T04:30:37.000Z_
4-
###### Diff: [`49fd69e...c3149f3`](https://github.com/ChromeDevTools/devtools-protocol/compare/49fd69e...c3149f3)
58+
###### Diff: [`49fd69e...4f13107`](https://github.com/ChromeDevTools/devtools-protocol/compare/49fd69e...4f13107)
559

660
```diff
761
@@ browser_protocol.pdl:12424 @@ experimental domain Preload
@@ -12222,79 +12276,4 @@ index 18cf0c7..8e43695 100644
1222212276
optional Runtime.ExceptionDetails exceptionDetails
1222312277

1222412278
# Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
12225-
```
12226-
12227-
## Roll protocol to r1011700 — _2022-06-07T22:15:32.000Z_
12228-
###### Diff: [`1ed415a...44cc592`](https://github.com/ChromeDevTools/devtools-protocol/compare/1ed415a...44cc592)
12229-
12230-
```diff
12231-
@@ js_protocol.pdl:273 @@ domain Debugger
12232-
parameters
12233-
BreakpointId breakpointId
12234-
12235-
- # Restarts particular call frame from the beginning.
12236-
- deprecated command restartFrame
12237-
+ # Restarts particular call frame from the beginning. The old, deprecated
12238-
+ # behavior of `restartFrame` is to stay paused and allow further CDP commands
12239-
+ # after a restart was scheduled. This can cause problems with restarting, so
12240-
+ # we now continue execution immediatly after it has been scheduled until we
12241-
+ # reach the beginning of the restarted frame.
12242-
+ #
12243-
+ # To stay back-wards compatible, `restartFrame` now expects a `mode`
12244-
+ # parameter to be present. If the `mode` parameter is missing, `restartFrame`
12245-
+ # errors out.
12246-
+ #
12247-
+ # The various return values are deprecated and `callFrames` is always empty.
12248-
+ # Use the call frames from the `Debugger#paused` events instead, that fires
12249-
+ # once V8 pauses at the beginning of the restarted function.
12250-
+ command restartFrame
12251-
parameters
12252-
# Call frame identifier to evaluate on.
12253-
CallFrameId callFrameId
12254-
+ # The `mode` parameter must be present and set to 'StepInto', otherwise
12255-
+ # `restartFrame` will error out.
12256-
+ experimental optional enum mode
12257-
+ # Pause at the beginning of the restarted function
12258-
+ StepInto
12259-
returns
12260-
# New stack trace.
12261-
- array of CallFrame callFrames
12262-
+ deprecated array of CallFrame callFrames
12263-
# Async stack trace, if any.
12264-
- optional Runtime.StackTrace asyncStackTrace
12265-
+ deprecated optional Runtime.StackTrace asyncStackTrace
12266-
# Async stack trace, if any.
12267-
- experimental optional Runtime.StackTraceId asyncStackTraceId
12268-
+ deprecated optional Runtime.StackTraceId asyncStackTraceId
12269-
12270-
# Resumes JavaScript execution.
12271-
command resume
12272-
@@ -713,18 +730,24 @@ experimental domain HeapProfiler
12273-
# If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken
12274-
# when the tracking is stopped.
12275-
optional boolean reportProgress
12276-
- optional boolean treatGlobalObjectsAsRoots
12277-
+ # Deprecated in favor of `exposeInternals`.
12278-
+ deprecated optional boolean treatGlobalObjectsAsRoots
12279-
# If true, numerical values are included in the snapshot
12280-
optional boolean captureNumericValue
12281-
+ # If true, exposes internals of the snapshot.
12282-
+ experimental optional boolean exposeInternals
12283-
12284-
command takeHeapSnapshot
12285-
parameters
12286-
# If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
12287-
optional boolean reportProgress
12288-
- # If true, a raw snapshot without artificial roots will be generated
12289-
- optional boolean treatGlobalObjectsAsRoots
12290-
+ # If true, a raw snapshot without artificial roots will be generated.
12291-
+ # Deprecated in favor of `exposeInternals`.
12292-
+ deprecated optional boolean treatGlobalObjectsAsRoots
12293-
# If true, numerical values are included in the snapshot
12294-
optional boolean captureNumericValue
12295-
+ # If true, exposes internals of the snapshot.
12296-
+ experimental optional boolean exposeInternals
12297-
12298-
event addHeapSnapshotChunk
12299-
parameters
1230012279
```

json/browser_protocol.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4697,6 +4697,54 @@
46974697
}
46984698
]
46994699
},
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+
},
47004748
{
47014749
"name": "getInlineStylesForNode",
47024750
"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 @@
1577215820
},
1577315821
{
1577415822
"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.*.",
1577615824
"$ref": "Headers"
1577715825
},
1577815826
{
@@ -15827,7 +15875,7 @@
1582715875
},
1582815876
{
1582915877
"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.*.",
1583115879
"$ref": "Headers"
1583215880
}
1583315881
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1392070",
3+
"version": "0.0.1392711",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,27 @@ experimental domain CSS
22642264
# Computed style for the specified DOM node.
22652265
array of CSSComputedStyleProperty computedStyle
22662266

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+
22672288
# Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
22682289
# attributes) for a DOM node identified by `nodeId`.
22692290
command getInlineStylesForNode
@@ -7293,6 +7314,9 @@ domain Network
72937314
# are represented by the invalid cookie line string instead of a proper cookie.
72947315
array of BlockedSetCookieWithReason blockedCookies
72957316
# 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.*.
72967320
Headers headers
72977321
# The IP address space of the resource. The address space can only be determined once the transport
72987322
# established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
@@ -7321,6 +7345,9 @@ domain Network
73217345
# Request identifier. Used to match this information to another responseReceived event.
73227346
RequestId requestId
73237347
# 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.*.
73247351
Headers headers
73257352

73267353
# Fired exactly once for each Trust Token operation. Depending on

types/protocol-mapping.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,16 @@ export namespace ProtocolMapping {
18181818
paramsType: [Protocol.CSS.GetComputedStyleForNodeRequest];
18191819
returnType: Protocol.CSS.GetComputedStyleForNodeResponse;
18201820
};
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+
};
18211831
/**
18221832
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
18231833
* attributes) for a DOM node identified by `nodeId`.

types/protocol-proxy-api.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,14 @@ export namespace ProtocolProxyApi {
10611061
*/
10621062
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<Protocol.CSS.GetComputedStyleForNodeResponse>;
10631063

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+
10641072
/**
10651073
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
10661074
* attributes) for a DOM node identified by `nodeId`.

types/protocol-tests-proxy-api.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,14 @@ export namespace ProtocolTestsProxyApi {
11291129
*/
11301130
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetComputedStyleForNodeResponse, sessionId: string}>;
11311131

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+
11321140
/**
11331141
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
11341142
* attributes) for a DOM node identified by `nodeId`.

types/protocol.d.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5476,6 +5476,35 @@ export namespace Protocol {
54765476
computedStyle: CSSComputedStyleProperty[];
54775477
}
54785478

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+
54795508
export interface GetInlineStylesForNodeRequest {
54805509
nodeId: DOM.NodeId;
54815510
}
@@ -12511,6 +12540,9 @@ export namespace Protocol {
1251112540
blockedCookies: BlockedSetCookieWithReason[];
1251212541
/**
1251312542
* 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.*.
1251412546
*/
1251512547
headers: Headers;
1251612548
/**
@@ -12557,6 +12589,9 @@ export namespace Protocol {
1255712589
requestId: RequestId;
1255812590
/**
1255912591
* 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.*.
1256012595
*/
1256112596
headers: Headers;
1256212597
}

0 commit comments

Comments
 (0)