devtools-protocol 0.0.1550230 → 0.0.1551306

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.
@@ -3881,12 +3881,50 @@ export namespace Protocol {
3881
3881
  sourceCodeLocation?: SourceCodeLocation;
3882
3882
  }
3883
3883
 
3884
+ export type PermissionElementIssueType = ('InvalidType' | 'FencedFrameDisallowed' | 'CspFrameAncestorsMissing' | 'PermissionsPolicyBlocked' | 'PaddingRightUnsupported' | 'PaddingBottomUnsupported' | 'InsetBoxShadowUnsupported' | 'RequestInProgress' | 'UntrustedEvent' | 'RegistrationFailed' | 'TypeNotSupported' | 'InvalidTypeActivation' | 'SecurityChecksFailed' | 'ActivationDisabled' | 'GeolocationDeprecated' | 'InvalidDisplayStyle' | 'NonOpaqueColor' | 'LowContrast' | 'FontSizeTooSmall' | 'FontSizeTooLarge' | 'InvalidSizeValue');
3885
+
3886
+ /**
3887
+ * This issue warns about improper usage of the <permission> element.
3888
+ */
3889
+ export interface PermissionElementIssueDetails {
3890
+ issueType: PermissionElementIssueType;
3891
+ /**
3892
+ * The value of the type attribute.
3893
+ */
3894
+ type?: string;
3895
+ /**
3896
+ * The node ID of the <permission> element.
3897
+ */
3898
+ nodeId?: DOM.BackendNodeId;
3899
+ /**
3900
+ * True if the issue is a warning, false if it is an error.
3901
+ */
3902
+ isWarning?: boolean;
3903
+ /**
3904
+ * Fields for message construction:
3905
+ * Used for messages that reference a specific permission name
3906
+ */
3907
+ permissionName?: string;
3908
+ /**
3909
+ * Used for messages about occlusion
3910
+ */
3911
+ occluderNodeInfo?: string;
3912
+ /**
3913
+ * Used for messages about occluder's parent
3914
+ */
3915
+ occluderParentNodeInfo?: string;
3916
+ /**
3917
+ * Used for messages about activation disabled reason
3918
+ */
3919
+ disableReason?: string;
3920
+ }
3921
+
3884
3922
  /**
3885
3923
  * A unique identifier for the type of issue. Each type may use one of the
3886
3924
  * optional fields in InspectorIssueDetails to convey more specific
3887
3925
  * information about the kind of issue.
3888
3926
  */
3889
- export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'UserReidentificationIssue');
3927
+ export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'PartitioningBlobURLIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue' | 'SharedDictionaryIssue' | 'ElementAccessibilityIssue' | 'SRIMessageSignatureIssue' | 'UnencodedDigestIssue' | 'UserReidentificationIssue' | 'PermissionElementIssue');
3890
3928
 
3891
3929
  /**
3892
3930
  * This struct holds a list of optional fields with additional information
@@ -3923,6 +3961,7 @@ export namespace Protocol {
3923
3961
  sriMessageSignatureIssueDetails?: SRIMessageSignatureIssueDetails;
3924
3962
  unencodedDigestIssueDetails?: UnencodedDigestIssueDetails;
3925
3963
  userReidentificationIssueDetails?: UserReidentificationIssueDetails;
3964
+ permissionElementIssueDetails?: PermissionElementIssueDetails;
3926
3965
  }
3927
3966
 
3928
3967
  /**
@@ -4927,8 +4966,6 @@ export namespace Protocol {
4927
4966
  */
4928
4967
  export namespace CSS {
4929
4968
 
4930
- export type StyleSheetId = string;
4931
-
4932
4969
  /**
4933
4970
  * Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent
4934
4971
  * stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via
@@ -5081,7 +5118,7 @@ export namespace Protocol {
5081
5118
  /**
5082
5119
  * The stylesheet identifier.
5083
5120
  */
5084
- styleSheetId: StyleSheetId;
5121
+ styleSheetId: DOM.StyleSheetId;
5085
5122
  /**
5086
5123
  * Owner frame identifier.
5087
5124
  */
@@ -5168,7 +5205,7 @@ export namespace Protocol {
5168
5205
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5169
5206
  * stylesheet rules) this rule came from.
5170
5207
  */
5171
- styleSheetId?: StyleSheetId;
5208
+ styleSheetId?: DOM.StyleSheetId;
5172
5209
  /**
5173
5210
  * Rule selector data.
5174
5211
  */
@@ -5248,7 +5285,7 @@ export namespace Protocol {
5248
5285
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5249
5286
  * stylesheet rules) this rule came from.
5250
5287
  */
5251
- styleSheetId: StyleSheetId;
5288
+ styleSheetId: DOM.StyleSheetId;
5252
5289
  /**
5253
5290
  * Offset of the start of the rule (including selector) from the beginning of the stylesheet.
5254
5291
  */
@@ -5331,7 +5368,7 @@ export namespace Protocol {
5331
5368
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5332
5369
  * stylesheet rules) this rule came from.
5333
5370
  */
5334
- styleSheetId?: StyleSheetId;
5371
+ styleSheetId?: DOM.StyleSheetId;
5335
5372
  /**
5336
5373
  * CSS properties in the style.
5337
5374
  */
@@ -5428,7 +5465,7 @@ export namespace Protocol {
5428
5465
  /**
5429
5466
  * Identifier of the stylesheet containing this object (if exists).
5430
5467
  */
5431
- styleSheetId?: StyleSheetId;
5468
+ styleSheetId?: DOM.StyleSheetId;
5432
5469
  /**
5433
5470
  * Array of media queries.
5434
5471
  */
@@ -5492,7 +5529,7 @@ export namespace Protocol {
5492
5529
  /**
5493
5530
  * Identifier of the stylesheet containing this object (if exists).
5494
5531
  */
5495
- styleSheetId?: StyleSheetId;
5532
+ styleSheetId?: DOM.StyleSheetId;
5496
5533
  /**
5497
5534
  * Optional name for the container.
5498
5535
  */
@@ -5536,7 +5573,7 @@ export namespace Protocol {
5536
5573
  /**
5537
5574
  * Identifier of the stylesheet containing this object (if exists).
5538
5575
  */
5539
- styleSheetId?: StyleSheetId;
5576
+ styleSheetId?: DOM.StyleSheetId;
5540
5577
  }
5541
5578
 
5542
5579
  /**
@@ -5556,7 +5593,7 @@ export namespace Protocol {
5556
5593
  /**
5557
5594
  * Identifier of the stylesheet containing this object (if exists).
5558
5595
  */
5559
- styleSheetId?: StyleSheetId;
5596
+ styleSheetId?: DOM.StyleSheetId;
5560
5597
  }
5561
5598
 
5562
5599
  /**
@@ -5576,7 +5613,7 @@ export namespace Protocol {
5576
5613
  /**
5577
5614
  * Identifier of the stylesheet containing this object (if exists).
5578
5615
  */
5579
- styleSheetId?: StyleSheetId;
5616
+ styleSheetId?: DOM.StyleSheetId;
5580
5617
  }
5581
5618
 
5582
5619
  /**
@@ -5592,7 +5629,7 @@ export namespace Protocol {
5592
5629
  /**
5593
5630
  * Identifier of the stylesheet containing this object (if exists).
5594
5631
  */
5595
- styleSheetId?: StyleSheetId;
5632
+ styleSheetId?: DOM.StyleSheetId;
5596
5633
  }
5597
5634
 
5598
5635
  /**
@@ -5718,7 +5755,7 @@ export namespace Protocol {
5718
5755
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5719
5756
  * stylesheet rules) this rule came from.
5720
5757
  */
5721
- styleSheetId?: StyleSheetId;
5758
+ styleSheetId?: DOM.StyleSheetId;
5722
5759
  /**
5723
5760
  * Parent stylesheet's origin.
5724
5761
  */
@@ -5741,7 +5778,7 @@ export namespace Protocol {
5741
5778
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5742
5779
  * stylesheet rules) this rule came from.
5743
5780
  */
5744
- styleSheetId?: StyleSheetId;
5781
+ styleSheetId?: DOM.StyleSheetId;
5745
5782
  /**
5746
5783
  * Parent stylesheet's origin.
5747
5784
  */
@@ -5812,7 +5849,7 @@ export namespace Protocol {
5812
5849
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5813
5850
  * stylesheet rules) this rule came from.
5814
5851
  */
5815
- styleSheetId?: StyleSheetId;
5852
+ styleSheetId?: DOM.StyleSheetId;
5816
5853
  /**
5817
5854
  * Parent stylesheet's origin.
5818
5855
  */
@@ -5831,7 +5868,7 @@ export namespace Protocol {
5831
5868
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5832
5869
  * stylesheet rules) this rule came from.
5833
5870
  */
5834
- styleSheetId?: StyleSheetId;
5871
+ styleSheetId?: DOM.StyleSheetId;
5835
5872
  /**
5836
5873
  * Parent stylesheet's origin.
5837
5874
  */
@@ -5912,7 +5949,7 @@ export namespace Protocol {
5912
5949
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5913
5950
  * stylesheet rules) this rule came from.
5914
5951
  */
5915
- styleSheetId?: StyleSheetId;
5952
+ styleSheetId?: DOM.StyleSheetId;
5916
5953
  /**
5917
5954
  * Parent stylesheet's origin.
5918
5955
  */
@@ -5935,7 +5972,7 @@ export namespace Protocol {
5935
5972
  * The css style sheet identifier (absent for user agent stylesheet and user-specified
5936
5973
  * stylesheet rules) this rule came from.
5937
5974
  */
5938
- styleSheetId?: StyleSheetId;
5975
+ styleSheetId?: DOM.StyleSheetId;
5939
5976
  /**
5940
5977
  * Parent stylesheet's origin.
5941
5978
  */
@@ -5957,7 +5994,7 @@ export namespace Protocol {
5957
5994
  /**
5958
5995
  * The css style sheet identifier.
5959
5996
  */
5960
- styleSheetId: StyleSheetId;
5997
+ styleSheetId: DOM.StyleSheetId;
5961
5998
  /**
5962
5999
  * The range of the style text in the enclosing stylesheet.
5963
6000
  */
@@ -5972,7 +6009,7 @@ export namespace Protocol {
5972
6009
  /**
5973
6010
  * The css style sheet identifier where a new rule should be inserted.
5974
6011
  */
5975
- styleSheetId: StyleSheetId;
6012
+ styleSheetId: DOM.StyleSheetId;
5976
6013
  /**
5977
6014
  * The text of a new rule.
5978
6015
  */
@@ -5998,7 +6035,7 @@ export namespace Protocol {
5998
6035
  }
5999
6036
 
6000
6037
  export interface CollectClassNamesRequest {
6001
- styleSheetId: StyleSheetId;
6038
+ styleSheetId: DOM.StyleSheetId;
6002
6039
  }
6003
6040
 
6004
6041
  export interface CollectClassNamesResponse {
@@ -6026,7 +6063,7 @@ export namespace Protocol {
6026
6063
  /**
6027
6064
  * Identifier of the created "via-inspector" stylesheet.
6028
6065
  */
6029
- styleSheetId: StyleSheetId;
6066
+ styleSheetId: DOM.StyleSheetId;
6030
6067
  }
6031
6068
 
6032
6069
  export interface ForcePseudoStateRequest {
@@ -6253,7 +6290,7 @@ export namespace Protocol {
6253
6290
  }
6254
6291
 
6255
6292
  export interface GetStyleSheetTextRequest {
6256
- styleSheetId: StyleSheetId;
6293
+ styleSheetId: DOM.StyleSheetId;
6257
6294
  }
6258
6295
 
6259
6296
  export interface GetStyleSheetTextResponse {
@@ -6272,7 +6309,7 @@ export namespace Protocol {
6272
6309
  }
6273
6310
 
6274
6311
  export interface GetLocationForSelectorRequest {
6275
- styleSheetId: StyleSheetId;
6312
+ styleSheetId: DOM.StyleSheetId;
6276
6313
  selectorText: string;
6277
6314
  }
6278
6315
 
@@ -6305,7 +6342,7 @@ export namespace Protocol {
6305
6342
  }
6306
6343
 
6307
6344
  export interface SetPropertyRulePropertyNameRequest {
6308
- styleSheetId: StyleSheetId;
6345
+ styleSheetId: DOM.StyleSheetId;
6309
6346
  range: SourceRange;
6310
6347
  propertyName: string;
6311
6348
  }
@@ -6318,7 +6355,7 @@ export namespace Protocol {
6318
6355
  }
6319
6356
 
6320
6357
  export interface SetKeyframeKeyRequest {
6321
- styleSheetId: StyleSheetId;
6358
+ styleSheetId: DOM.StyleSheetId;
6322
6359
  range: SourceRange;
6323
6360
  keyText: string;
6324
6361
  }
@@ -6331,7 +6368,7 @@ export namespace Protocol {
6331
6368
  }
6332
6369
 
6333
6370
  export interface SetMediaTextRequest {
6334
- styleSheetId: StyleSheetId;
6371
+ styleSheetId: DOM.StyleSheetId;
6335
6372
  range: SourceRange;
6336
6373
  text: string;
6337
6374
  }
@@ -6344,7 +6381,7 @@ export namespace Protocol {
6344
6381
  }
6345
6382
 
6346
6383
  export interface SetContainerQueryTextRequest {
6347
- styleSheetId: StyleSheetId;
6384
+ styleSheetId: DOM.StyleSheetId;
6348
6385
  range: SourceRange;
6349
6386
  text: string;
6350
6387
  }
@@ -6357,7 +6394,7 @@ export namespace Protocol {
6357
6394
  }
6358
6395
 
6359
6396
  export interface SetSupportsTextRequest {
6360
- styleSheetId: StyleSheetId;
6397
+ styleSheetId: DOM.StyleSheetId;
6361
6398
  range: SourceRange;
6362
6399
  text: string;
6363
6400
  }
@@ -6370,7 +6407,7 @@ export namespace Protocol {
6370
6407
  }
6371
6408
 
6372
6409
  export interface SetScopeTextRequest {
6373
- styleSheetId: StyleSheetId;
6410
+ styleSheetId: DOM.StyleSheetId;
6374
6411
  range: SourceRange;
6375
6412
  text: string;
6376
6413
  }
@@ -6383,7 +6420,7 @@ export namespace Protocol {
6383
6420
  }
6384
6421
 
6385
6422
  export interface SetRuleSelectorRequest {
6386
- styleSheetId: StyleSheetId;
6423
+ styleSheetId: DOM.StyleSheetId;
6387
6424
  range: SourceRange;
6388
6425
  selector: string;
6389
6426
  }
@@ -6396,7 +6433,7 @@ export namespace Protocol {
6396
6433
  }
6397
6434
 
6398
6435
  export interface SetStyleSheetTextRequest {
6399
- styleSheetId: StyleSheetId;
6436
+ styleSheetId: DOM.StyleSheetId;
6400
6437
  text: string;
6401
6438
  }
6402
6439
 
@@ -6469,7 +6506,7 @@ export namespace Protocol {
6469
6506
  * Fired whenever a stylesheet is changed as a result of the client operation.
6470
6507
  */
6471
6508
  export interface StyleSheetChangedEvent {
6472
- styleSheetId: StyleSheetId;
6509
+ styleSheetId: DOM.StyleSheetId;
6473
6510
  }
6474
6511
 
6475
6512
  /**
@@ -6479,7 +6516,7 @@ export namespace Protocol {
6479
6516
  /**
6480
6517
  * Identifier of the removed stylesheet.
6481
6518
  */
6482
- styleSheetId: StyleSheetId;
6519
+ styleSheetId: DOM.StyleSheetId;
6483
6520
  }
6484
6521
 
6485
6522
  /**
@@ -6758,6 +6795,11 @@ export namespace Protocol {
6758
6795
  */
6759
6796
  export type BackendNodeId = integer;
6760
6797
 
6798
+ /**
6799
+ * Unique identifier for a CSS stylesheet.
6800
+ */
6801
+ export type StyleSheetId = string;
6802
+
6761
6803
  /**
6762
6804
  * Backend node with a friendly name.
6763
6805
  */
@@ -6940,6 +6982,10 @@ export namespace Protocol {
6940
6982
  * @experimental
6941
6983
  */
6942
6984
  affectedByStartingStyles?: boolean;
6985
+ /**
6986
+ * @experimental
6987
+ */
6988
+ adoptedStyleSheets?: StyleSheetId[];
6943
6989
  }
6944
6990
 
6945
6991
  /**
@@ -7859,6 +7905,22 @@ export namespace Protocol {
7859
7905
  value: string;
7860
7906
  }
7861
7907
 
7908
+ /**
7909
+ * Fired when `Element`'s adoptedStyleSheets are modified.
7910
+ * @experimental
7911
+ */
7912
+ export interface AdoptedStyleSheetsModifiedEvent {
7913
+ /**
7914
+ * Id of the node that has changed.
7915
+ */
7916
+ nodeId: NodeId;
7917
+ /**
7918
+ * New adoptedStyleSheets array.
7919
+ * @experimental
7920
+ */
7921
+ adoptedStyleSheets: StyleSheetId[];
7922
+ }
7923
+
7862
7924
  /**
7863
7925
  * Fired when `Element`'s attribute is removed.
7864
7926
  */
@@ -20365,6 +20427,20 @@ export namespace Protocol {
20365
20427
  locations: RemoteLocation[];
20366
20428
  }
20367
20429
 
20430
+ export interface GetDevToolsTargetRequest {
20431
+ /**
20432
+ * Page or tab target ID.
20433
+ */
20434
+ targetId: TargetID;
20435
+ }
20436
+
20437
+ export interface GetDevToolsTargetResponse {
20438
+ /**
20439
+ * The targetId of DevTools page target if exists.
20440
+ */
20441
+ targetId?: TargetID;
20442
+ }
20443
+
20368
20444
  export interface OpenDevToolsRequest {
20369
20445
  /**
20370
20446
  * This can be the page or tab target ID.