devtools-protocol 0.0.1526665 → 0.0.1527314
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.
- package/json/browser_protocol.json +19 -2
- package/package.json +1 -1
- package/pdl/domains/Network.pdl +12 -3
- package/types/protocol.d.ts +19 -3
@@ -16596,6 +16596,23 @@
|
|
16596
16596
|
}
|
16597
16597
|
]
|
16598
16598
|
},
|
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
|
+
},
|
16599
16616
|
{
|
16600
16617
|
"id": "DirectSocketDnsQueryType",
|
16601
16618
|
"experimental": true,
|
@@ -17574,11 +17591,11 @@
|
|
17574
17591
|
"parameters": [
|
17575
17592
|
{
|
17576
17593
|
"name": "urlPatterns",
|
17577
|
-
"description": "
|
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`.",
|
17578
17595
|
"optional": true,
|
17579
17596
|
"type": "array",
|
17580
17597
|
"items": {
|
17581
|
-
"
|
17598
|
+
"$ref": "BlockPattern"
|
17582
17599
|
}
|
17583
17600
|
},
|
17584
17601
|
{
|
package/package.json
CHANGED
package/pdl/domains/Network.pdl
CHANGED
@@ -1267,12 +1267,21 @@ domain Network
|
|
1267
1267
|
# List of search matches.
|
1268
1268
|
array of Debugger.SearchMatch result
|
1269
1269
|
|
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
|
+
|
1270
1279
|
# Blocks URLs from loading.
|
1271
1280
|
experimental command setBlockedURLs
|
1272
1281
|
parameters
|
1273
|
-
#
|
1274
|
-
#
|
1275
|
-
optional array of
|
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
|
1276
1285
|
# URL patterns to block. Wildcards ('*') are allowed.
|
1277
1286
|
deprecated optional array of string urls
|
1278
1287
|
|
package/types/protocol.d.ts
CHANGED
@@ -13227,6 +13227,22 @@ export namespace Protocol {
|
|
13227
13227
|
packetReordering?: boolean;
|
13228
13228
|
}
|
13229
13229
|
|
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
|
+
|
13230
13246
|
/**
|
13231
13247
|
* @experimental
|
13232
13248
|
*/
|
@@ -13815,10 +13831,10 @@ export namespace Protocol {
|
|
13815
13831
|
|
13816
13832
|
export interface SetBlockedURLsRequest {
|
13817
13833
|
/**
|
13818
|
-
*
|
13819
|
-
*
|
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`.
|
13820
13836
|
*/
|
13821
|
-
urlPatterns?:
|
13837
|
+
urlPatterns?: BlockPattern[];
|
13822
13838
|
/**
|
13823
13839
|
* URL patterns to block. Wildcards ('*') are allowed.
|
13824
13840
|
* @deprecated
|