Skip to content

Commit 7c74e7d

Browse files
committed
Roll protocol to r1527314
1 parent 9f2ed89 commit 7c74e7d

File tree

6 files changed

+84
-26
lines changed

6 files changed

+84
-26
lines changed

changelog.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
11

22

3+
## Roll protocol to r1527314 — _2025-10-09T04:31:34.000Z_
4+
###### Diff: [`9f2ed89...f3fdb42`](https://github.com/ChromeDevTools/devtools-protocol/compare/9f2ed89...f3fdb42)
5+
6+
```diff
7+
@@ domains/Network.pdl:1267 @@ domain Network
8+
# List of search matches.
9+
array of Debugger.SearchMatch result
10+
11+
+ experimental type BlockPattern extends object
12+
+ properties
13+
+ # URL pattern to match. Patterns use the URLPattern constructor string syntax
14+
+ # (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
15+
+ string urlPattern
16+
+ # Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later
17+
+ # `BlockPattern`.
18+
+ boolean block
19+
+
20+
# Blocks URLs from loading.
21+
experimental command setBlockedURLs
22+
parameters
23+
- # URL patterns to block. Patterns use the URLPattern constructor string syntax
24+
- # (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
25+
- optional array of string urlPatterns
26+
+ # Patterns to match in the order in which they are given. These patterns
27+
+ # also take precedence over any wildcard patterns defined in `urls`.
28+
+ optional array of BlockPattern urlPatterns
29+
# URL patterns to block. Wildcards ('*') are allowed.
30+
deprecated optional array of string urls
31+
```
32+
333
## Roll protocol to r1526665 — _2025-10-08T04:31:07.000Z_
4-
###### Diff: [`0d43ecd...4c1c3f3`](https://github.com/ChromeDevTools/devtools-protocol/compare/0d43ecd...4c1c3f3)
34+
###### Diff: [`0d43ecd...9f2ed89`](https://github.com/ChromeDevTools/devtools-protocol/compare/0d43ecd...9f2ed89)
535

636
```diff
737
@@ domains/Network.pdl:1129 @@ domain Network
@@ -42082,18 +42112,4 @@ index d4102f5c..6285d9b6 100644
4208242112

4208342113
# Fired when a prerender attempt is completed.
4208442114
experimental event prerenderAttemptCompleted
42085-
```
42086-
42087-
## Roll protocol to r1099089 — _2023-01-31T04:27:53.000Z_
42088-
###### Diff: [`58bc3b6...2a08589`](https://github.com/ChromeDevTools/devtools-protocol/compare/58bc3b6...2a08589)
42089-
42090-
```diff
42091-
@@ browser_protocol.pdl:749 @@ experimental domain Audits
42092-
FormAutocompleteAttributeEmptyError
42093-
FormEmptyIdAndNameAttributesForInputError
42094-
FormAriaLabelledByToNonExistingId
42095-
+ FormInputAssignedAutocompleteValueToIdOrNameAttributeError
42096-
42097-
# Depending on the concrete errorType, different properties are set.
42098-
type GenericIssueDetails extends object
4209942115
```

json/browser_protocol.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16596,6 +16596,23 @@
1659616596
}
1659716597
]
1659816598
},
16599+
{
16600+
"id": "BlockPattern",
16601+
"experimental": true,
16602+
"type": "object",
16603+
"properties": [
16604+
{
16605+
"name": "urlPattern",
16606+
"description": "URL pattern to match. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.",
16607+
"type": "string"
16608+
},
16609+
{
16610+
"name": "block",
16611+
"description": "Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later\n`BlockPattern`.",
16612+
"type": "boolean"
16613+
}
16614+
]
16615+
},
1659916616
{
1660016617
"id": "DirectSocketDnsQueryType",
1660116618
"experimental": true,
@@ -17574,11 +17591,11 @@
1757417591
"parameters": [
1757517592
{
1757617593
"name": "urlPatterns",
17577-
"description": "URL patterns to block. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.",
17594+
"description": "Patterns to match in the order in which they are given. These patterns\nalso take precedence over any wildcard patterns defined in `urls`.",
1757817595
"optional": true,
1757917596
"type": "array",
1758017597
"items": {
17581-
"type": "string"
17598+
"$ref": "BlockPattern"
1758217599
}
1758317600
},
1758417601
{

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.1526665",
3+
"version": "0.0.1527314",
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: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,12 +1267,21 @@ domain Network
12671267
# List of search matches.
12681268
array of Debugger.SearchMatch result
12691269

1270+
experimental type BlockPattern extends object
1271+
properties
1272+
# URL pattern to match. Patterns use the URLPattern constructor string syntax
1273+
# (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
1274+
string urlPattern
1275+
# Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later
1276+
# `BlockPattern`.
1277+
boolean block
1278+
12701279
# Blocks URLs from loading.
12711280
experimental command setBlockedURLs
12721281
parameters
1273-
# URL patterns to block. Patterns use the URLPattern constructor string syntax
1274-
# (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
1275-
optional array of string urlPatterns
1282+
# Patterns to match in the order in which they are given. These patterns
1283+
# also take precedence over any wildcard patterns defined in `urls`.
1284+
optional array of BlockPattern urlPatterns
12761285
# URL patterns to block. Wildcards ('*') are allowed.
12771286
deprecated optional array of string urls
12781287

types/protocol.d.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13227,6 +13227,22 @@ export namespace Protocol {
1322713227
packetReordering?: boolean;
1322813228
}
1322913229

13230+
/**
13231+
* @experimental
13232+
*/
13233+
export interface BlockPattern {
13234+
/**
13235+
* URL pattern to match. Patterns use the URLPattern constructor string syntax
13236+
* (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*\/*.css`.
13237+
*/
13238+
urlPattern: string;
13239+
/**
13240+
* Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later
13241+
* `BlockPattern`.
13242+
*/
13243+
block: boolean;
13244+
}
13245+
1323013246
/**
1323113247
* @experimental
1323213248
*/
@@ -13815,10 +13831,10 @@ export namespace Protocol {
1381513831

1381613832
export interface SetBlockedURLsRequest {
1381713833
/**
13818-
* URL patterns to block. Patterns use the URLPattern constructor string syntax
13819-
* (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*\/*.css`.
13834+
* Patterns to match in the order in which they are given. These patterns
13835+
* also take precedence over any wildcard patterns defined in `urls`.
1382013836
*/
13821-
urlPatterns?: string[];
13837+
urlPatterns?: BlockPattern[];
1382213838
/**
1382313839
* URL patterns to block. Wildcards ('*') are allowed.
1382413840
* @deprecated

0 commit comments

Comments
 (0)