Skip to content

Commit 78aae66

Browse files
committed
Roll protocol to r1518305
1 parent 418ab00 commit 78aae66

File tree

9 files changed

+403
-32
lines changed

9 files changed

+403
-32
lines changed

changelog.md

Lines changed: 85 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,91 @@
11

22

3+
## Roll protocol to r1518305 — _2025-09-20T04:30:57.000Z_
4+
###### Diff: [`418ab00...4373a07`](https://github.com/ChromeDevTools/devtools-protocol/compare/418ab00...4373a07)
5+
6+
```diff
7+
@@ domains/Network.pdl:1087 @@ domain Network
8+
# Disables network tracking, prevents network events from being sent to the client.
9+
command disable
10+
11+
- # Activates emulation of network conditions.
12+
- command emulateNetworkConditions
13+
+ experimental type NetworkConditions extends object
14+
+ properties
15+
+ # Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string
16+
+ # syntax (https://urlpattern.spec.whatwg.org/). If the pattern is empty, all requests are matched (including p2p
17+
+ # connections).
18+
+ string urlPattern
19+
+ # Minimum latency from request sent to response headers received (ms).
20+
+ number latency
21+
+ # Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
22+
+ number downloadThroughput
23+
+ # Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
24+
+ number uploadThroughput
25+
+ # Connection type if known.
26+
+ optional ConnectionType connectionType
27+
+ # WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
28+
+ optional number packetLoss
29+
+ # WebRTC packet queue length (packet). 0 removes any queue length limitations.
30+
+ optional integer packetQueueLength
31+
+ # WebRTC packetReordering feature.
32+
+ optional boolean packetReordering
33+
+
34+
+ # Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule
35+
+ # and overrideNetworkState commands, which can be used together to the same effect.
36+
+ deprecated command emulateNetworkConditions
37+
parameters
38+
# True to emulate internet disconnection.
39+
boolean offline
40+
@@ -1107,6 +1129,34 @@ domain Network
41+
# WebRTC packetReordering feature.
42+
experimental optional boolean packetReordering
43+
44+
+ # Activates emulation of network conditions for individual requests using URL match patterns.
45+
+ experimental command emulateNetworkConditionsByRule
46+
+ parameters
47+
+ # True to emulate internet disconnection.
48+
+ boolean offline
49+
+ # Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global
50+
+ # conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are
51+
+ # also applied for throttling of p2p connections.
52+
+ array of NetworkConditions matchedNetworkConditions
53+
+ returns
54+
+ # An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for
55+
+ # requests affected by a rule.
56+
+ array of string ruleIds
57+
+
58+
+ # Override the state of navigator.onLine and navigator.connection.
59+
+ experimental command overrideNetworkState
60+
+ parameters
61+
+ # True to emulate internet disconnection.
62+
+ boolean offline
63+
+ # Minimum latency from request sent to response headers received (ms).
64+
+ number latency
65+
+ # Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
66+
+ number downloadThroughput
67+
+ # Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
68+
+ number uploadThroughput
69+
+ # Connection type if known.
70+
+ optional ConnectionType connectionType
71+
+
72+
# Enables network tracking, network events will now be delivered to the client.
73+
command enable
74+
parameters
75+
@@ -1776,6 +1826,9 @@ domain Network
76+
optional ClientSecurityState clientSecurityState
77+
# Whether the site has partitioned cookies stored in a partition different than the current one.
78+
optional boolean siteHasCookieInOtherPartition
79+
+ # The network conditions id if this request was affected by network conditions configured via
80+
+ # emulateNetworkConditionsByRule.
81+
+ optional string appliedNetworkConditionsId
82+
83+
# Fired when additional information about a responseReceived event is available from the network
84+
# stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
85+
```
86+
387
## Roll protocol to r1517051 — _2025-09-18T04:31:09.000Z_
4-
###### Diff: [`86cf20a...a0d1f79`](https://github.com/ChromeDevTools/devtools-protocol/compare/86cf20a...a0d1f79)
88+
###### Diff: [`86cf20a...418ab00`](https://github.com/ChromeDevTools/devtools-protocol/compare/86cf20a...418ab00)
589

690
```diff
791
@@ domains/Audits.pdl:309 @@ experimental domain Audits
@@ -42033,26 +42117,4 @@ index d4102f5c..6285d9b6 100644
4203342117
+ window-management
4203442118
window-placement
4203542119
xr-spatial-tracking
42036-
```
42037-
42038-
## Roll protocol to r1090008 — _2023-01-07T04:27:59.000Z_
42039-
###### Diff: [`e97a9e4...aef3081`](https://github.com/ChromeDevTools/devtools-protocol/compare/e97a9e4...aef3081)
42040-
42041-
```diff
42042-
@@ browser_protocol.pdl:843 @@ experimental domain Audits
42043-
WellKnownHttpNotFound
42044-
WellKnownNoResponse
42045-
WellKnownInvalidResponse
42046-
+ WellKnownListEmpty
42047-
ConfigNotInWellKnown
42048-
WellKnownTooBig
42049-
ConfigHttpNotFound
42050-
@@ -857,6 +858,7 @@ experimental domain Audits
42051-
AccountsHttpNotFound
42052-
AccountsNoResponse
42053-
AccountsInvalidResponse
42054-
+ AccountsListEmpty
42055-
IdTokenHttpNotFound
42056-
IdTokenNoResponse
42057-
IdTokenInvalidResponse
4205842120
```

json/browser_protocol.json

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16537,6 +16537,57 @@
1653716537
"zstd"
1653816538
]
1653916539
},
16540+
{
16541+
"id": "NetworkConditions",
16542+
"experimental": true,
16543+
"type": "object",
16544+
"properties": [
16545+
{
16546+
"name": "urlPattern",
16547+
"description": "Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string\nsyntax (https://urlpattern.spec.whatwg.org/). If the pattern is empty, all requests are matched (including p2p\nconnections).",
16548+
"type": "string"
16549+
},
16550+
{
16551+
"name": "latency",
16552+
"description": "Minimum latency from request sent to response headers received (ms).",
16553+
"type": "number"
16554+
},
16555+
{
16556+
"name": "downloadThroughput",
16557+
"description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.",
16558+
"type": "number"
16559+
},
16560+
{
16561+
"name": "uploadThroughput",
16562+
"description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.",
16563+
"type": "number"
16564+
},
16565+
{
16566+
"name": "connectionType",
16567+
"description": "Connection type if known.",
16568+
"optional": true,
16569+
"$ref": "ConnectionType"
16570+
},
16571+
{
16572+
"name": "packetLoss",
16573+
"description": "WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.",
16574+
"optional": true,
16575+
"type": "number"
16576+
},
16577+
{
16578+
"name": "packetQueueLength",
16579+
"description": "WebRTC packet queue length (packet). 0 removes any queue length limitations.",
16580+
"optional": true,
16581+
"type": "integer"
16582+
},
16583+
{
16584+
"name": "packetReordering",
16585+
"description": "WebRTC packetReordering feature.",
16586+
"optional": true,
16587+
"type": "boolean"
16588+
}
16589+
]
16590+
},
1654016591
{
1654116592
"id": "DirectSocketDnsQueryType",
1654216593
"experimental": true,
@@ -17159,7 +17210,8 @@
1715917210
},
1716017211
{
1716117212
"name": "emulateNetworkConditions",
17162-
"description": "Activates emulation of network conditions.",
17213+
"description": "Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule\nand overrideNetworkState commands, which can be used together to the same effect.",
17214+
"deprecated": true,
1716317215
"parameters": [
1716417216
{
1716517217
"name": "offline",
@@ -17210,6 +17262,69 @@
1721017262
}
1721117263
]
1721217264
},
17265+
{
17266+
"name": "emulateNetworkConditionsByRule",
17267+
"description": "Activates emulation of network conditions for individual requests using URL match patterns.",
17268+
"experimental": true,
17269+
"parameters": [
17270+
{
17271+
"name": "offline",
17272+
"description": "True to emulate internet disconnection.",
17273+
"type": "boolean"
17274+
},
17275+
{
17276+
"name": "matchedNetworkConditions",
17277+
"description": "Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global\nconditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are\nalso applied for throttling of p2p connections.",
17278+
"type": "array",
17279+
"items": {
17280+
"$ref": "NetworkConditions"
17281+
}
17282+
}
17283+
],
17284+
"returns": [
17285+
{
17286+
"name": "ruleIds",
17287+
"description": "An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for\nrequests affected by a rule.",
17288+
"type": "array",
17289+
"items": {
17290+
"type": "string"
17291+
}
17292+
}
17293+
]
17294+
},
17295+
{
17296+
"name": "overrideNetworkState",
17297+
"description": "Override the state of navigator.onLine and navigator.connection.",
17298+
"experimental": true,
17299+
"parameters": [
17300+
{
17301+
"name": "offline",
17302+
"description": "True to emulate internet disconnection.",
17303+
"type": "boolean"
17304+
},
17305+
{
17306+
"name": "latency",
17307+
"description": "Minimum latency from request sent to response headers received (ms).",
17308+
"type": "number"
17309+
},
17310+
{
17311+
"name": "downloadThroughput",
17312+
"description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.",
17313+
"type": "number"
17314+
},
17315+
{
17316+
"name": "uploadThroughput",
17317+
"description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.",
17318+
"type": "number"
17319+
},
17320+
{
17321+
"name": "connectionType",
17322+
"description": "Connection type if known.",
17323+
"optional": true,
17324+
"$ref": "ConnectionType"
17325+
}
17326+
]
17327+
},
1721317328
{
1721417329
"name": "enable",
1721517330
"description": "Enables network tracking, network events will now be delivered to the client.",
@@ -18654,6 +18769,12 @@
1865418769
"description": "Whether the site has partitioned cookies stored in a partition different than the current one.",
1865518770
"optional": true,
1865618771
"type": "boolean"
18772+
},
18773+
{
18774+
"name": "appliedNetworkConditionsId",
18775+
"description": "The network conditions id if this request was affected by network conditions configured via\nemulateNetworkConditionsByRule.",
18776+
"optional": true,
18777+
"type": "string"
1865718778
}
1865818779
]
1865918780
},

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.1517051",
3+
"version": "0.0.1518305",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/Network.pdl

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,30 @@ domain Network
10871087
# Disables network tracking, prevents network events from being sent to the client.
10881088
command disable
10891089

1090-
# Activates emulation of network conditions.
1091-
command emulateNetworkConditions
1090+
experimental type NetworkConditions extends object
1091+
properties
1092+
# Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string
1093+
# syntax (https://urlpattern.spec.whatwg.org/). If the pattern is empty, all requests are matched (including p2p
1094+
# connections).
1095+
string urlPattern
1096+
# Minimum latency from request sent to response headers received (ms).
1097+
number latency
1098+
# Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
1099+
number downloadThroughput
1100+
# Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
1101+
number uploadThroughput
1102+
# Connection type if known.
1103+
optional ConnectionType connectionType
1104+
# WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
1105+
optional number packetLoss
1106+
# WebRTC packet queue length (packet). 0 removes any queue length limitations.
1107+
optional integer packetQueueLength
1108+
# WebRTC packetReordering feature.
1109+
optional boolean packetReordering
1110+
1111+
# Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule
1112+
# and overrideNetworkState commands, which can be used together to the same effect.
1113+
deprecated command emulateNetworkConditions
10921114
parameters
10931115
# True to emulate internet disconnection.
10941116
boolean offline
@@ -1107,6 +1129,34 @@ domain Network
11071129
# WebRTC packetReordering feature.
11081130
experimental optional boolean packetReordering
11091131

1132+
# Activates emulation of network conditions for individual requests using URL match patterns.
1133+
experimental command emulateNetworkConditionsByRule
1134+
parameters
1135+
# True to emulate internet disconnection.
1136+
boolean offline
1137+
# Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global
1138+
# conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are
1139+
# also applied for throttling of p2p connections.
1140+
array of NetworkConditions matchedNetworkConditions
1141+
returns
1142+
# An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for
1143+
# requests affected by a rule.
1144+
array of string ruleIds
1145+
1146+
# Override the state of navigator.onLine and navigator.connection.
1147+
experimental command overrideNetworkState
1148+
parameters
1149+
# True to emulate internet disconnection.
1150+
boolean offline
1151+
# Minimum latency from request sent to response headers received (ms).
1152+
number latency
1153+
# Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
1154+
number downloadThroughput
1155+
# Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
1156+
number uploadThroughput
1157+
# Connection type if known.
1158+
optional ConnectionType connectionType
1159+
11101160
# Enables network tracking, network events will now be delivered to the client.
11111161
command enable
11121162
parameters
@@ -1776,6 +1826,9 @@ domain Network
17761826
optional ClientSecurityState clientSecurityState
17771827
# Whether the site has partitioned cookies stored in a partition different than the current one.
17781828
optional boolean siteHasCookieInOtherPartition
1829+
# The network conditions id if this request was affected by network conditions configured via
1830+
# emulateNetworkConditionsByRule.
1831+
optional string appliedNetworkConditionsId
17791832

17801833
# Fired when additional information about a responseReceived event is available from the network
17811834
# stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for

0 commit comments

Comments
 (0)