devtools-protocol 0.0.1425554 → 0.0.1427544
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 +127 -2
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +51 -0
- package/types/protocol.d.ts +87 -2
@@ -4658,6 +4658,119 @@
|
|
4658
4658
|
}
|
4659
4659
|
]
|
4660
4660
|
},
|
4661
|
+
{
|
4662
|
+
"id": "CSSFunctionParameter",
|
4663
|
+
"description": "CSS function argument representation.",
|
4664
|
+
"type": "object",
|
4665
|
+
"properties": [
|
4666
|
+
{
|
4667
|
+
"name": "name",
|
4668
|
+
"description": "The parameter name.",
|
4669
|
+
"type": "string"
|
4670
|
+
},
|
4671
|
+
{
|
4672
|
+
"name": "type",
|
4673
|
+
"description": "The parameter type.",
|
4674
|
+
"type": "string"
|
4675
|
+
}
|
4676
|
+
]
|
4677
|
+
},
|
4678
|
+
{
|
4679
|
+
"id": "CSSFunctionConditionNode",
|
4680
|
+
"description": "CSS function conditional block representation.",
|
4681
|
+
"type": "object",
|
4682
|
+
"properties": [
|
4683
|
+
{
|
4684
|
+
"name": "media",
|
4685
|
+
"description": "Media query for this conditional block. Only one type of condition should be set.",
|
4686
|
+
"optional": true,
|
4687
|
+
"$ref": "CSSMedia"
|
4688
|
+
},
|
4689
|
+
{
|
4690
|
+
"name": "containerQueries",
|
4691
|
+
"description": "Container query for this conditional block. Only one type of condition should be set.",
|
4692
|
+
"optional": true,
|
4693
|
+
"$ref": "CSSContainerQuery"
|
4694
|
+
},
|
4695
|
+
{
|
4696
|
+
"name": "supports",
|
4697
|
+
"description": "@supports CSS at-rule condition. Only one type of condition should be set.",
|
4698
|
+
"optional": true,
|
4699
|
+
"$ref": "CSSSupports"
|
4700
|
+
},
|
4701
|
+
{
|
4702
|
+
"name": "children",
|
4703
|
+
"description": "Block body.",
|
4704
|
+
"type": "array",
|
4705
|
+
"items": {
|
4706
|
+
"$ref": "CSSFunctionNode"
|
4707
|
+
}
|
4708
|
+
},
|
4709
|
+
{
|
4710
|
+
"name": "conditionText",
|
4711
|
+
"description": "The condition text.",
|
4712
|
+
"type": "string"
|
4713
|
+
}
|
4714
|
+
]
|
4715
|
+
},
|
4716
|
+
{
|
4717
|
+
"id": "CSSFunctionNode",
|
4718
|
+
"description": "Section of the body of a CSS function rule.",
|
4719
|
+
"type": "object",
|
4720
|
+
"properties": [
|
4721
|
+
{
|
4722
|
+
"name": "condition",
|
4723
|
+
"description": "A conditional block. If set, style should not be set.",
|
4724
|
+
"optional": true,
|
4725
|
+
"$ref": "CSSFunctionConditionNode"
|
4726
|
+
},
|
4727
|
+
{
|
4728
|
+
"name": "style",
|
4729
|
+
"description": "Values set by this node. If set, condition should not be set.",
|
4730
|
+
"optional": true,
|
4731
|
+
"$ref": "CSSStyle"
|
4732
|
+
}
|
4733
|
+
]
|
4734
|
+
},
|
4735
|
+
{
|
4736
|
+
"id": "CSSFunctionRule",
|
4737
|
+
"description": "CSS function at-rule representation.",
|
4738
|
+
"type": "object",
|
4739
|
+
"properties": [
|
4740
|
+
{
|
4741
|
+
"name": "name",
|
4742
|
+
"description": "Name of the function.",
|
4743
|
+
"$ref": "Value"
|
4744
|
+
},
|
4745
|
+
{
|
4746
|
+
"name": "styleSheetId",
|
4747
|
+
"description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
|
4748
|
+
"optional": true,
|
4749
|
+
"$ref": "StyleSheetId"
|
4750
|
+
},
|
4751
|
+
{
|
4752
|
+
"name": "origin",
|
4753
|
+
"description": "Parent stylesheet's origin.",
|
4754
|
+
"$ref": "StyleSheetOrigin"
|
4755
|
+
},
|
4756
|
+
{
|
4757
|
+
"name": "parameters",
|
4758
|
+
"description": "List of parameters.",
|
4759
|
+
"type": "array",
|
4760
|
+
"items": {
|
4761
|
+
"$ref": "CSSFunctionParameter"
|
4762
|
+
}
|
4763
|
+
},
|
4764
|
+
{
|
4765
|
+
"name": "children",
|
4766
|
+
"description": "Function body.",
|
4767
|
+
"type": "array",
|
4768
|
+
"items": {
|
4769
|
+
"$ref": "CSSFunctionNode"
|
4770
|
+
}
|
4771
|
+
}
|
4772
|
+
]
|
4773
|
+
},
|
4661
4774
|
{
|
4662
4775
|
"id": "CSSKeyframeRule",
|
4663
4776
|
"description": "CSS keyframe rule representation.",
|
@@ -5129,6 +5242,16 @@
|
|
5129
5242
|
"experimental": true,
|
5130
5243
|
"optional": true,
|
5131
5244
|
"$ref": "DOM.NodeId"
|
5245
|
+
},
|
5246
|
+
{
|
5247
|
+
"name": "cssFunctionRules",
|
5248
|
+
"description": "A list of CSS at-function rules referenced by styles of this node.",
|
5249
|
+
"experimental": true,
|
5250
|
+
"optional": true,
|
5251
|
+
"type": "array",
|
5252
|
+
"items": {
|
5253
|
+
"$ref": "CSSFunctionRule"
|
5254
|
+
}
|
5132
5255
|
}
|
5133
5256
|
]
|
5134
5257
|
},
|
@@ -13171,7 +13294,8 @@
|
|
13171
13294
|
"PreflightMissingPrivateNetworkAccessId",
|
13172
13295
|
"PreflightMissingPrivateNetworkAccessName",
|
13173
13296
|
"PrivateNetworkAccessPermissionUnavailable",
|
13174
|
-
"PrivateNetworkAccessPermissionDenied"
|
13297
|
+
"PrivateNetworkAccessPermissionDenied",
|
13298
|
+
"LocalNetworkAccessPermissionDenied"
|
13175
13299
|
]
|
13176
13300
|
},
|
13177
13301
|
{
|
@@ -14255,7 +14379,8 @@
|
|
14255
14379
|
"BlockFromInsecureToMorePrivate",
|
14256
14380
|
"WarnFromInsecureToMorePrivate",
|
14257
14381
|
"PreflightBlock",
|
14258
|
-
"PreflightWarn"
|
14382
|
+
"PreflightWarn",
|
14383
|
+
"PermissionBlock"
|
14259
14384
|
]
|
14260
14385
|
},
|
14261
14386
|
{
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2252,6 +2252,51 @@ experimental domain CSS
|
|
2252
2252
|
# Associated style declaration.
|
2253
2253
|
CSSStyle style
|
2254
2254
|
|
2255
|
+
# CSS function argument representation.
|
2256
|
+
type CSSFunctionParameter extends object
|
2257
|
+
properties
|
2258
|
+
# The parameter name.
|
2259
|
+
string name
|
2260
|
+
# The parameter type.
|
2261
|
+
string type
|
2262
|
+
|
2263
|
+
# CSS function conditional block representation.
|
2264
|
+
type CSSFunctionConditionNode extends object
|
2265
|
+
properties
|
2266
|
+
# Media query for this conditional block. Only one type of condition should be set.
|
2267
|
+
optional CSSMedia media
|
2268
|
+
# Container query for this conditional block. Only one type of condition should be set.
|
2269
|
+
optional CSSContainerQuery containerQueries
|
2270
|
+
# @supports CSS at-rule condition. Only one type of condition should be set.
|
2271
|
+
optional CSSSupports supports
|
2272
|
+
# Block body.
|
2273
|
+
array of CSSFunctionNode children
|
2274
|
+
# The condition text.
|
2275
|
+
string conditionText
|
2276
|
+
|
2277
|
+
# Section of the body of a CSS function rule.
|
2278
|
+
type CSSFunctionNode extends object
|
2279
|
+
properties
|
2280
|
+
# A conditional block. If set, style should not be set.
|
2281
|
+
optional CSSFunctionConditionNode condition
|
2282
|
+
# Values set by this node. If set, condition should not be set.
|
2283
|
+
optional CSSStyle style
|
2284
|
+
|
2285
|
+
# CSS function at-rule representation.
|
2286
|
+
type CSSFunctionRule extends object
|
2287
|
+
properties
|
2288
|
+
# Name of the function.
|
2289
|
+
Value name
|
2290
|
+
# The css style sheet identifier (absent for user agent stylesheet and user-specified
|
2291
|
+
# stylesheet rules) this rule came from.
|
2292
|
+
optional StyleSheetId styleSheetId
|
2293
|
+
# Parent stylesheet's origin.
|
2294
|
+
StyleSheetOrigin origin
|
2295
|
+
# List of parameters.
|
2296
|
+
array of CSSFunctionParameter parameters
|
2297
|
+
# Function body.
|
2298
|
+
array of CSSFunctionNode children
|
2299
|
+
|
2255
2300
|
# CSS keyframe rule representation.
|
2256
2301
|
type CSSKeyframeRule extends object
|
2257
2302
|
properties
|
@@ -2449,6 +2494,8 @@ experimental domain CSS
|
|
2449
2494
|
optional CSSFontPaletteValuesRule cssFontPaletteValuesRule
|
2450
2495
|
# Id of the first parent element that does not have display: contents.
|
2451
2496
|
experimental optional DOM.NodeId parentLayoutNodeId
|
2497
|
+
# A list of CSS at-function rules referenced by styles of this node.
|
2498
|
+
experimental optional array of CSSFunctionRule cssFunctionRules
|
2452
2499
|
|
2453
2500
|
# Returns all media queries parsed by the rendering engine.
|
2454
2501
|
command getMediaQueries
|
@@ -6145,6 +6192,9 @@ domain Network
|
|
6145
6192
|
# Request was a private network request and is denied by user permission.
|
6146
6193
|
# https://github.com/WICG/private-network-access/blob/main/permission_prompt/explainer.md
|
6147
6194
|
PrivateNetworkAccessPermissionDenied
|
6195
|
+
# Request was a local network request and is denied by user permission.
|
6196
|
+
# https://github.com/explainers-by-googlers/local-network-access
|
6197
|
+
LocalNetworkAccessPermissionDenied
|
6148
6198
|
|
6149
6199
|
type CorsErrorStatus extends object
|
6150
6200
|
properties
|
@@ -7336,6 +7386,7 @@ domain Network
|
|
7336
7386
|
WarnFromInsecureToMorePrivate
|
7337
7387
|
PreflightBlock
|
7338
7388
|
PreflightWarn
|
7389
|
+
PermissionBlock
|
7339
7390
|
|
7340
7391
|
experimental type IPAddressSpace extends string
|
7341
7392
|
enum
|
package/types/protocol.d.ts
CHANGED
@@ -5436,6 +5436,87 @@ export namespace Protocol {
|
|
5436
5436
|
style: CSSStyle;
|
5437
5437
|
}
|
5438
5438
|
|
5439
|
+
/**
|
5440
|
+
* CSS function argument representation.
|
5441
|
+
*/
|
5442
|
+
export interface CSSFunctionParameter {
|
5443
|
+
/**
|
5444
|
+
* The parameter name.
|
5445
|
+
*/
|
5446
|
+
name: string;
|
5447
|
+
/**
|
5448
|
+
* The parameter type.
|
5449
|
+
*/
|
5450
|
+
type: string;
|
5451
|
+
}
|
5452
|
+
|
5453
|
+
/**
|
5454
|
+
* CSS function conditional block representation.
|
5455
|
+
*/
|
5456
|
+
export interface CSSFunctionConditionNode {
|
5457
|
+
/**
|
5458
|
+
* Media query for this conditional block. Only one type of condition should be set.
|
5459
|
+
*/
|
5460
|
+
media?: CSSMedia;
|
5461
|
+
/**
|
5462
|
+
* Container query for this conditional block. Only one type of condition should be set.
|
5463
|
+
*/
|
5464
|
+
containerQueries?: CSSContainerQuery;
|
5465
|
+
/**
|
5466
|
+
* @supports CSS at-rule condition. Only one type of condition should be set.
|
5467
|
+
*/
|
5468
|
+
supports?: CSSSupports;
|
5469
|
+
/**
|
5470
|
+
* Block body.
|
5471
|
+
*/
|
5472
|
+
children: CSSFunctionNode[];
|
5473
|
+
/**
|
5474
|
+
* The condition text.
|
5475
|
+
*/
|
5476
|
+
conditionText: string;
|
5477
|
+
}
|
5478
|
+
|
5479
|
+
/**
|
5480
|
+
* Section of the body of a CSS function rule.
|
5481
|
+
*/
|
5482
|
+
export interface CSSFunctionNode {
|
5483
|
+
/**
|
5484
|
+
* A conditional block. If set, style should not be set.
|
5485
|
+
*/
|
5486
|
+
condition?: CSSFunctionConditionNode;
|
5487
|
+
/**
|
5488
|
+
* Values set by this node. If set, condition should not be set.
|
5489
|
+
*/
|
5490
|
+
style?: CSSStyle;
|
5491
|
+
}
|
5492
|
+
|
5493
|
+
/**
|
5494
|
+
* CSS function at-rule representation.
|
5495
|
+
*/
|
5496
|
+
export interface CSSFunctionRule {
|
5497
|
+
/**
|
5498
|
+
* Name of the function.
|
5499
|
+
*/
|
5500
|
+
name: Value;
|
5501
|
+
/**
|
5502
|
+
* The css style sheet identifier (absent for user agent stylesheet and user-specified
|
5503
|
+
* stylesheet rules) this rule came from.
|
5504
|
+
*/
|
5505
|
+
styleSheetId?: StyleSheetId;
|
5506
|
+
/**
|
5507
|
+
* Parent stylesheet's origin.
|
5508
|
+
*/
|
5509
|
+
origin: StyleSheetOrigin;
|
5510
|
+
/**
|
5511
|
+
* List of parameters.
|
5512
|
+
*/
|
5513
|
+
parameters: CSSFunctionParameter[];
|
5514
|
+
/**
|
5515
|
+
* Function body.
|
5516
|
+
*/
|
5517
|
+
children: CSSFunctionNode[];
|
5518
|
+
}
|
5519
|
+
|
5439
5520
|
/**
|
5440
5521
|
* CSS keyframe rule representation.
|
5441
5522
|
*/
|
@@ -5728,6 +5809,10 @@ export namespace Protocol {
|
|
5728
5809
|
* Id of the first parent element that does not have display: contents.
|
5729
5810
|
*/
|
5730
5811
|
parentLayoutNodeId?: DOM.NodeId;
|
5812
|
+
/**
|
5813
|
+
* A list of CSS at-function rules referenced by styles of this node.
|
5814
|
+
*/
|
5815
|
+
cssFunctionRules?: CSSFunctionRule[];
|
5731
5816
|
}
|
5732
5817
|
|
5733
5818
|
export interface GetMediaQueriesResponse {
|
@@ -10776,7 +10861,7 @@ export namespace Protocol {
|
|
10776
10861
|
/**
|
10777
10862
|
* The reason why request was blocked.
|
10778
10863
|
*/
|
10779
|
-
export type CorsError = ('DisallowedByMode' | 'InvalidResponse' | 'WildcardOriginNotAllowed' | 'MissingAllowOriginHeader' | 'MultipleAllowOriginValues' | 'InvalidAllowOriginValue' | 'AllowOriginMismatch' | 'InvalidAllowCredentials' | 'CorsDisabledScheme' | 'PreflightInvalidStatus' | 'PreflightDisallowedRedirect' | 'PreflightWildcardOriginNotAllowed' | 'PreflightMissingAllowOriginHeader' | 'PreflightMultipleAllowOriginValues' | 'PreflightInvalidAllowOriginValue' | 'PreflightAllowOriginMismatch' | 'PreflightInvalidAllowCredentials' | 'PreflightMissingAllowExternal' | 'PreflightInvalidAllowExternal' | 'PreflightMissingAllowPrivateNetwork' | 'PreflightInvalidAllowPrivateNetwork' | 'InvalidAllowMethodsPreflightResponse' | 'InvalidAllowHeadersPreflightResponse' | 'MethodDisallowedByPreflightResponse' | 'HeaderDisallowedByPreflightResponse' | 'RedirectContainsCredentials' | 'InsecurePrivateNetwork' | 'InvalidPrivateNetworkAccess' | 'UnexpectedPrivateNetworkAccess' | 'NoCorsRedirectModeNotFollow' | 'PreflightMissingPrivateNetworkAccessId' | 'PreflightMissingPrivateNetworkAccessName' | 'PrivateNetworkAccessPermissionUnavailable' | 'PrivateNetworkAccessPermissionDenied');
|
10864
|
+
export type CorsError = ('DisallowedByMode' | 'InvalidResponse' | 'WildcardOriginNotAllowed' | 'MissingAllowOriginHeader' | 'MultipleAllowOriginValues' | 'InvalidAllowOriginValue' | 'AllowOriginMismatch' | 'InvalidAllowCredentials' | 'CorsDisabledScheme' | 'PreflightInvalidStatus' | 'PreflightDisallowedRedirect' | 'PreflightWildcardOriginNotAllowed' | 'PreflightMissingAllowOriginHeader' | 'PreflightMultipleAllowOriginValues' | 'PreflightInvalidAllowOriginValue' | 'PreflightAllowOriginMismatch' | 'PreflightInvalidAllowCredentials' | 'PreflightMissingAllowExternal' | 'PreflightInvalidAllowExternal' | 'PreflightMissingAllowPrivateNetwork' | 'PreflightInvalidAllowPrivateNetwork' | 'InvalidAllowMethodsPreflightResponse' | 'InvalidAllowHeadersPreflightResponse' | 'MethodDisallowedByPreflightResponse' | 'HeaderDisallowedByPreflightResponse' | 'RedirectContainsCredentials' | 'InsecurePrivateNetwork' | 'InvalidPrivateNetworkAccess' | 'UnexpectedPrivateNetworkAccess' | 'NoCorsRedirectModeNotFollow' | 'PreflightMissingPrivateNetworkAccessId' | 'PreflightMissingPrivateNetworkAccessName' | 'PrivateNetworkAccessPermissionUnavailable' | 'PrivateNetworkAccessPermissionDenied' | 'LocalNetworkAccessPermissionDenied');
|
10780
10865
|
|
10781
10866
|
export interface CorsErrorStatus {
|
10782
10867
|
corsError: CorsError;
|
@@ -11510,7 +11595,7 @@ export namespace Protocol {
|
|
11510
11595
|
*/
|
11511
11596
|
export type ContentEncoding = ('deflate' | 'gzip' | 'br' | 'zstd');
|
11512
11597
|
|
11513
|
-
export type PrivateNetworkRequestPolicy = ('Allow' | 'BlockFromInsecureToMorePrivate' | 'WarnFromInsecureToMorePrivate' | 'PreflightBlock' | 'PreflightWarn');
|
11598
|
+
export type PrivateNetworkRequestPolicy = ('Allow' | 'BlockFromInsecureToMorePrivate' | 'WarnFromInsecureToMorePrivate' | 'PreflightBlock' | 'PreflightWarn' | 'PermissionBlock');
|
11514
11599
|
|
11515
11600
|
export type IPAddressSpace = ('Local' | 'Private' | 'Public' | 'Unknown');
|
11516
11601
|
|