Skip to content

Commit

Permalink
Roll protocol to r1140464
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed May 6, 2023
1 parent 8469893 commit 1e3d3e0
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 52 deletions.
124 changes: 95 additions & 29 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,101 @@


## Roll protocol to r1140464 — _2023-05-06T04:26:18.000Z_
###### Diff: [`8469893...425784a`](https://github.com/ChromeDevTools/devtools-protocol/compare/`8469893...425784a`)

```diff
@@ js_protocol.pdl:1014 @@ domain Runtime
# Unique script identifier.
type ScriptId extends string

- # Represents options for serialization. Overrides `generatePreview`, `returnByValue` and
- # `generateWebDriverValue`.
- type SerializationOptions extends object
- properties
- enum serialization
- # Whether the result should be deep-serialized. The result is put into
- # `deepSerializedValue` and `ObjectId` is provided.
- deep
- # Whether the result is expected to be a JSON object which should be sent by value.
- # The result is put either into `value` or into `unserializableValue`. Synonym of
- # `returnByValue: true`. Overrides `returnByValue`.
- json
- # Only remote object id is put in the result. Same bahaviour as if no
- # `serializationOptions`, `generatePreview`, `returnByValue` nor `generateWebDriverValue`
- # are provided.
- idOnly
-
- # Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.
- optional integer maxDepth
-
- # Represents deep serialized value.
+ # Represents the value serialiazed by the WebDriver BiDi specification
+ # https://goo.gle/browser-automation-deepserialization.
type DeepSerializedValue extends object
properties
enum type
@@ -1120,10 +1101,8 @@ domain Runtime
optional UnserializableValue unserializableValue
# String representation of the object.
optional string description
- # Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value.
- deprecated optional DeepSerializedValue webDriverValue
- # Deep serialized value.
- experimental optional DeepSerializedValue deepSerializedValue
+ # WebDriver BiDi representation of the value.
+ experimental optional DeepSerializedValue webDriverValue
# Unique object identifier (for non-primitive values).
optional RemoteObjectId objectId
# Preview containing abbreviated property values. Specified for `object` type values only.
@@ -1413,7 +1392,6 @@ domain Runtime
# execution. Overrides `setPauseOnException` state.
optional boolean silent
# Whether the result is expected to be a JSON object which should be sent by value.
- # Can be overriden by `serializationOptions`.
optional boolean returnByValue
# Whether preview should be generated for the result.
experimental optional boolean generatePreview
@@ -1437,15 +1415,10 @@ domain Runtime
# boundaries).
# This is mutually exclusive with `executionContextId`.
experimental optional string uniqueContextId
- # Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.
# Whether the result should contain `webDriverValue`, serialized according to
- # https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
- # resulting `objectId` is still provided.
- deprecated optional boolean generateWebDriverValue
- # Specifies the result serialization. If provided, overrides
- # `returnByValue` and `generateWebDriverValue`.
- experimental optional SerializationOptions serializationOptions
-
+ # https://goo.gle/browser-automation-deepserialization. This is mutually
+ # exclusive with `returnByValue`, but resulting `objectId` is still provided.
+ experimental optional boolean generateWebDriverValue
returns
# Call result.
RemoteObject result
@@ -1531,15 +1504,8 @@ domain Runtime
# boundaries).
# This is mutually exclusive with `contextId`.
experimental optional string uniqueContextId
- # Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.
- # Whether the result should contain `webDriverValue`, serialized
- # according to
- # https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
- # resulting `objectId` is still provided.
- deprecated optional boolean generateWebDriverValue
- # Specifies the result serialization. If provided, overrides
- # `returnByValue` and `generateWebDriverValue`.
- experimental optional SerializationOptions serializationOptions
+ # Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.
+ experimental optional boolean generateWebDriverValue
returns
# Evaluation result.
RemoteObject result
```

## Roll protocol to r1139932 — _2023-05-05T04:26:32.000Z_
###### Diff: [`3a37ac7...fcb5fc7`](https://github.com/ChromeDevTools/devtools-protocol/compare/`3a37ac7...fcb5fc7`)
###### Diff: [`3a37ac7...8469893`](https://github.com/ChromeDevTools/devtools-protocol/compare/`3a37ac7...8469893`)

```diff
@@ browser_protocol.pdl:658 @@ experimental domain Audits
Expand Down Expand Up @@ -10138,32 +10232,4 @@ index bd277eb..09c420e 100644
ch-rtt
ch-ua
ch-ua-arch
```

## Roll protocol to r883449 — _2021-05-17T13:16:08.000Z_
###### Diff: [`ea8402f...56b0f11`](https://github.com/ChromeDevTools/devtools-protocol/compare/`ea8402f...56b0f11`)

```diff
@@ browser_protocol.pdl:1965 @@ domain DOM
open
closed

- # Document compatibility mode.
- type CompatibilityMode extends string
- enum
- QuirksMode
- LimitedQuirksMode
- NoQuirksMode
-
# DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
# DOMNode is a base node mirror type.
type Node extends object
@@ -2036,7 +2029,6 @@ domain DOM
optional array of BackendNode distributedNodes
# Whether the node is SVG.
optional boolean isSVG
- optional CompatibilityMode compatibilityMode

# A structure holding an RGBA color.
type RGBA extends object
```
57 changes: 50 additions & 7 deletions json/js_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2161,9 +2161,31 @@
"description": "Unique script identifier.",
"type": "string"
},
{
"id": "SerializationOptions",
"description": "Represents options for serialization. Overrides `generatePreview`, `returnByValue` and\n`generateWebDriverValue`.",
"type": "object",
"properties": [
{
"name": "serialization",
"type": "string",
"enum": [
"deep",
"json",
"idOnly"
]
},
{
"name": "maxDepth",
"description": "Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.",
"optional": true,
"type": "integer"
}
]
},
{
"id": "DeepSerializedValue",
"description": "Represents the value serialiazed by the WebDriver BiDi specification\nhttps://goo.gle/browser-automation-deepserialization.",
"description": "Represents deep serialized value.",
"type": "object",
"properties": [
{
Expand Down Expand Up @@ -2296,7 +2318,14 @@
},
{
"name": "webDriverValue",
"description": "WebDriver BiDi representation of the value.",
"description": "Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value.",
"deprecated": true,
"optional": true,
"$ref": "DeepSerializedValue"
},
{
"name": "deepSerializedValue",
"description": "Deep serialized value.",
"experimental": true,
"optional": true,
"$ref": "DeepSerializedValue"
Expand Down Expand Up @@ -2913,7 +2942,7 @@
},
{
"name": "returnByValue",
"description": "Whether the result is expected to be a JSON object which should be sent by value.",
"description": "Whether the result is expected to be a JSON object which should be sent by value.\nCan be overriden by `serializationOptions`.",
"optional": true,
"type": "boolean"
},
Expand Down Expand Up @@ -2964,10 +2993,17 @@
},
{
"name": "generateWebDriverValue",
"description": "Whether the result should contain `webDriverValue`, serialized according to\nhttps://goo.gle/browser-automation-deepserialization. This is mutually\nexclusive with `returnByValue`, but resulting `objectId` is still provided.",
"experimental": true,
"description": "Deprecated. Use `serializationOptions: {serialization:\"deep\"}` instead.\nWhether the result should contain `webDriverValue`, serialized according to\nhttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but\nresulting `objectId` is still provided.",
"deprecated": true,
"optional": true,
"type": "boolean"
},
{
"name": "serializationOptions",
"description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
"experimental": true,
"optional": true,
"$ref": "SerializationOptions"
}
],
"returns": [
Expand Down Expand Up @@ -3139,10 +3175,17 @@
},
{
"name": "generateWebDriverValue",
"description": "Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.",
"experimental": true,
"description": "Deprecated. Use `serializationOptions: {serialization:\"deep\"}` instead.\nWhether the result should contain `webDriverValue`, serialized\naccording to\nhttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but\nresulting `objectId` is still provided.",
"deprecated": true,
"optional": true,
"type": "boolean"
},
{
"name": "serializationOptions",
"description": "Specifies the result serialization. If provided, overrides\n`returnByValue` and `generateWebDriverValue`.",
"experimental": true,
"optional": true,
"$ref": "SerializationOptions"
}
],
"returns": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1139932",
"version": "0.0.1140464",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
52 changes: 43 additions & 9 deletions pdl/js_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,27 @@ domain Runtime
# Unique script identifier.
type ScriptId extends string

# Represents the value serialiazed by the WebDriver BiDi specification
# https://goo.gle/browser-automation-deepserialization.
# Represents options for serialization. Overrides `generatePreview`, `returnByValue` and
# `generateWebDriverValue`.
type SerializationOptions extends object
properties
enum serialization
# Whether the result should be deep-serialized. The result is put into
# `deepSerializedValue` and `ObjectId` is provided.
deep
# Whether the result is expected to be a JSON object which should be sent by value.
# The result is put either into `value` or into `unserializableValue`. Synonym of
# `returnByValue: true`. Overrides `returnByValue`.
json
# Only remote object id is put in the result. Same bahaviour as if no
# `serializationOptions`, `generatePreview`, `returnByValue` nor `generateWebDriverValue`
# are provided.
idOnly

# Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.
optional integer maxDepth

# Represents deep serialized value.
type DeepSerializedValue extends object
properties
enum type
Expand Down Expand Up @@ -1101,8 +1120,10 @@ domain Runtime
optional UnserializableValue unserializableValue
# String representation of the object.
optional string description
# WebDriver BiDi representation of the value.
experimental optional DeepSerializedValue webDriverValue
# Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value.
deprecated optional DeepSerializedValue webDriverValue
# Deep serialized value.
experimental optional DeepSerializedValue deepSerializedValue
# Unique object identifier (for non-primitive values).
optional RemoteObjectId objectId
# Preview containing abbreviated property values. Specified for `object` type values only.
Expand Down Expand Up @@ -1392,6 +1413,7 @@ domain Runtime
# execution. Overrides `setPauseOnException` state.
optional boolean silent
# Whether the result is expected to be a JSON object which should be sent by value.
# Can be overriden by `serializationOptions`.
optional boolean returnByValue
# Whether preview should be generated for the result.
experimental optional boolean generatePreview
Expand All @@ -1415,10 +1437,15 @@ domain Runtime
# boundaries).
# This is mutually exclusive with `executionContextId`.
experimental optional string uniqueContextId
# Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.
# Whether the result should contain `webDriverValue`, serialized according to
# https://goo.gle/browser-automation-deepserialization. This is mutually
# exclusive with `returnByValue`, but resulting `objectId` is still provided.
experimental optional boolean generateWebDriverValue
# https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
# resulting `objectId` is still provided.
deprecated optional boolean generateWebDriverValue
# Specifies the result serialization. If provided, overrides
# `returnByValue` and `generateWebDriverValue`.
experimental optional SerializationOptions serializationOptions

returns
# Call result.
RemoteObject result
Expand Down Expand Up @@ -1504,8 +1531,15 @@ domain Runtime
# boundaries).
# This is mutually exclusive with `contextId`.
experimental optional string uniqueContextId
# Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.
experimental optional boolean generateWebDriverValue
# Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.
# Whether the result should contain `webDriverValue`, serialized
# according to
# https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
# resulting `objectId` is still provided.
deprecated optional boolean generateWebDriverValue
# Specifies the result serialization. If provided, overrides
# `returnByValue` and `generateWebDriverValue`.
experimental optional SerializationOptions serializationOptions
returns
# Evaluation result.
RemoteObject result
Expand Down
Loading

0 comments on commit 1e3d3e0

Please sign in to comment.