devtools-protocol 0.0.1526016 → 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.
@@ -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,
|
@@ -17272,7 +17289,7 @@
|
|
17272
17289
|
},
|
17273
17290
|
{
|
17274
17291
|
"name": "emulateNetworkConditionsByRule",
|
17275
|
-
"description": "Activates emulation of network conditions for individual requests using URL match patterns.",
|
17292
|
+
"description": "Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated\nNetwork.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to\nexplicitly modify `navigator` behavior.",
|
17276
17293
|
"experimental": true,
|
17277
17294
|
"parameters": [
|
17278
17295
|
{
|
@@ -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
@@ -1129,7 +1129,9 @@ domain Network
|
|
1129
1129
|
# WebRTC packetReordering feature.
|
1130
1130
|
experimental optional boolean packetReordering
|
1131
1131
|
|
1132
|
-
# Activates emulation of network conditions for individual requests using URL match patterns.
|
1132
|
+
# Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
|
1133
|
+
# Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to
|
1134
|
+
# explicitly modify `navigator` behavior.
|
1133
1135
|
experimental command emulateNetworkConditionsByRule
|
1134
1136
|
parameters
|
1135
1137
|
# True to emulate internet disconnection.
|
@@ -1265,12 +1267,21 @@ domain Network
|
|
1265
1267
|
# List of search matches.
|
1266
1268
|
array of Debugger.SearchMatch result
|
1267
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
|
+
|
1268
1279
|
# Blocks URLs from loading.
|
1269
1280
|
experimental command setBlockedURLs
|
1270
1281
|
parameters
|
1271
|
-
#
|
1272
|
-
#
|
1273
|
-
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
|
1274
1285
|
# URL patterns to block. Wildcards ('*') are allowed.
|
1275
1286
|
deprecated optional array of string urls
|
1276
1287
|
|
@@ -4175,7 +4175,9 @@ export namespace ProtocolMapping {
|
|
4175
4175
|
returnType: void;
|
4176
4176
|
};
|
4177
4177
|
/**
|
4178
|
-
* Activates emulation of network conditions for individual requests using URL match patterns.
|
4178
|
+
* Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
|
4179
|
+
* Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to
|
4180
|
+
* explicitly modify `navigator` behavior.
|
4179
4181
|
* @experimental
|
4180
4182
|
*/
|
4181
4183
|
'Network.emulateNetworkConditionsByRule': {
|
@@ -3039,7 +3039,9 @@ export namespace ProtocolProxyApi {
|
|
3039
3039
|
emulateNetworkConditions(params: Protocol.Network.EmulateNetworkConditionsRequest): Promise<void>;
|
3040
3040
|
|
3041
3041
|
/**
|
3042
|
-
* Activates emulation of network conditions for individual requests using URL match patterns.
|
3042
|
+
* Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
|
3043
|
+
* Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to
|
3044
|
+
* explicitly modify `navigator` behavior.
|
3043
3045
|
* @experimental
|
3044
3046
|
*/
|
3045
3047
|
emulateNetworkConditionsByRule(params: Protocol.Network.EmulateNetworkConditionsByRuleRequest): Promise<Protocol.Network.EmulateNetworkConditionsByRuleResponse>;
|
@@ -3207,7 +3207,9 @@ export namespace ProtocolTestsProxyApi {
|
|
3207
3207
|
emulateNetworkConditions(params: Protocol.Network.EmulateNetworkConditionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3208
3208
|
|
3209
3209
|
/**
|
3210
|
-
* Activates emulation of network conditions for individual requests using URL match patterns.
|
3210
|
+
* Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
|
3211
|
+
* Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to
|
3212
|
+
* explicitly modify `navigator` behavior.
|
3211
3213
|
* @experimental
|
3212
3214
|
*/
|
3213
3215
|
emulateNetworkConditionsByRule(params: Protocol.Network.EmulateNetworkConditionsByRuleRequest): Promise<{id: number, result: Protocol.Network.EmulateNetworkConditionsByRuleResponse, sessionId: string}>;
|
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
|