devtools-protocol 0.0.1550230 → 0.0.1555890

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.
@@ -2137,6 +2137,86 @@
2137
2137
  }
2138
2138
  ]
2139
2139
  },
2140
+ {
2141
+ "id": "PermissionElementIssueType",
2142
+ "type": "string",
2143
+ "enum": [
2144
+ "InvalidType",
2145
+ "FencedFrameDisallowed",
2146
+ "CspFrameAncestorsMissing",
2147
+ "PermissionsPolicyBlocked",
2148
+ "PaddingRightUnsupported",
2149
+ "PaddingBottomUnsupported",
2150
+ "InsetBoxShadowUnsupported",
2151
+ "RequestInProgress",
2152
+ "UntrustedEvent",
2153
+ "RegistrationFailed",
2154
+ "TypeNotSupported",
2155
+ "InvalidTypeActivation",
2156
+ "SecurityChecksFailed",
2157
+ "ActivationDisabled",
2158
+ "GeolocationDeprecated",
2159
+ "InvalidDisplayStyle",
2160
+ "NonOpaqueColor",
2161
+ "LowContrast",
2162
+ "FontSizeTooSmall",
2163
+ "FontSizeTooLarge",
2164
+ "InvalidSizeValue"
2165
+ ]
2166
+ },
2167
+ {
2168
+ "id": "PermissionElementIssueDetails",
2169
+ "description": "This issue warns about improper usage of the <permission> element.",
2170
+ "type": "object",
2171
+ "properties": [
2172
+ {
2173
+ "name": "issueType",
2174
+ "$ref": "PermissionElementIssueType"
2175
+ },
2176
+ {
2177
+ "name": "type",
2178
+ "description": "The value of the type attribute.",
2179
+ "optional": true,
2180
+ "type": "string"
2181
+ },
2182
+ {
2183
+ "name": "nodeId",
2184
+ "description": "The node ID of the <permission> element.",
2185
+ "optional": true,
2186
+ "$ref": "DOM.BackendNodeId"
2187
+ },
2188
+ {
2189
+ "name": "isWarning",
2190
+ "description": "True if the issue is a warning, false if it is an error.",
2191
+ "optional": true,
2192
+ "type": "boolean"
2193
+ },
2194
+ {
2195
+ "name": "permissionName",
2196
+ "description": "Fields for message construction:\nUsed for messages that reference a specific permission name",
2197
+ "optional": true,
2198
+ "type": "string"
2199
+ },
2200
+ {
2201
+ "name": "occluderNodeInfo",
2202
+ "description": "Used for messages about occlusion",
2203
+ "optional": true,
2204
+ "type": "string"
2205
+ },
2206
+ {
2207
+ "name": "occluderParentNodeInfo",
2208
+ "description": "Used for messages about occluder's parent",
2209
+ "optional": true,
2210
+ "type": "string"
2211
+ },
2212
+ {
2213
+ "name": "disableReason",
2214
+ "description": "Used for messages about activation disabled reason",
2215
+ "optional": true,
2216
+ "type": "string"
2217
+ }
2218
+ ]
2219
+ },
2140
2220
  {
2141
2221
  "id": "InspectorIssueCode",
2142
2222
  "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
@@ -2167,7 +2247,8 @@
2167
2247
  "ElementAccessibilityIssue",
2168
2248
  "SRIMessageSignatureIssue",
2169
2249
  "UnencodedDigestIssue",
2170
- "UserReidentificationIssue"
2250
+ "UserReidentificationIssue",
2251
+ "PermissionElementIssue"
2171
2252
  ]
2172
2253
  },
2173
2254
  {
@@ -2305,6 +2386,11 @@
2305
2386
  "name": "userReidentificationIssueDetails",
2306
2387
  "optional": true,
2307
2388
  "$ref": "UserReidentificationIssueDetails"
2389
+ },
2390
+ {
2391
+ "name": "permissionElementIssueDetails",
2392
+ "optional": true,
2393
+ "$ref": "PermissionElementIssueDetails"
2308
2394
  }
2309
2395
  ]
2310
2396
  },
@@ -4001,10 +4087,6 @@
4001
4087
  "Page"
4002
4088
  ],
4003
4089
  "types": [
4004
- {
4005
- "id": "StyleSheetId",
4006
- "type": "string"
4007
- },
4008
4090
  {
4009
4091
  "id": "StyleSheetOrigin",
4010
4092
  "description": "Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent\nstylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via\ninspector\" rules), \"regular\" for regular stylesheets.",
@@ -4214,7 +4296,7 @@
4214
4296
  {
4215
4297
  "name": "styleSheetId",
4216
4298
  "description": "The stylesheet identifier.",
4217
- "$ref": "StyleSheetId"
4299
+ "$ref": "DOM.StyleSheetId"
4218
4300
  },
4219
4301
  {
4220
4302
  "name": "frameId",
@@ -4317,7 +4399,7 @@
4317
4399
  "name": "styleSheetId",
4318
4400
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
4319
4401
  "optional": true,
4320
- "$ref": "StyleSheetId"
4402
+ "$ref": "DOM.StyleSheetId"
4321
4403
  },
4322
4404
  {
4323
4405
  "name": "selectorList",
@@ -4445,7 +4527,7 @@
4445
4527
  {
4446
4528
  "name": "styleSheetId",
4447
4529
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
4448
- "$ref": "StyleSheetId"
4530
+ "$ref": "DOM.StyleSheetId"
4449
4531
  },
4450
4532
  {
4451
4533
  "name": "startOffset",
@@ -4550,7 +4632,7 @@
4550
4632
  "name": "styleSheetId",
4551
4633
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
4552
4634
  "optional": true,
4553
- "$ref": "StyleSheetId"
4635
+ "$ref": "DOM.StyleSheetId"
4554
4636
  },
4555
4637
  {
4556
4638
  "name": "cssProperties",
@@ -4682,7 +4764,7 @@
4682
4764
  "name": "styleSheetId",
4683
4765
  "description": "Identifier of the stylesheet containing this object (if exists).",
4684
4766
  "optional": true,
4685
- "$ref": "StyleSheetId"
4767
+ "$ref": "DOM.StyleSheetId"
4686
4768
  },
4687
4769
  {
4688
4770
  "name": "mediaList",
@@ -4770,7 +4852,7 @@
4770
4852
  "name": "styleSheetId",
4771
4853
  "description": "Identifier of the stylesheet containing this object (if exists).",
4772
4854
  "optional": true,
4773
- "$ref": "StyleSheetId"
4855
+ "$ref": "DOM.StyleSheetId"
4774
4856
  },
4775
4857
  {
4776
4858
  "name": "name",
@@ -4830,7 +4912,7 @@
4830
4912
  "name": "styleSheetId",
4831
4913
  "description": "Identifier of the stylesheet containing this object (if exists).",
4832
4914
  "optional": true,
4833
- "$ref": "StyleSheetId"
4915
+ "$ref": "DOM.StyleSheetId"
4834
4916
  }
4835
4917
  ]
4836
4918
  },
@@ -4855,7 +4937,7 @@
4855
4937
  "name": "styleSheetId",
4856
4938
  "description": "Identifier of the stylesheet containing this object (if exists).",
4857
4939
  "optional": true,
4858
- "$ref": "StyleSheetId"
4940
+ "$ref": "DOM.StyleSheetId"
4859
4941
  }
4860
4942
  ]
4861
4943
  },
@@ -4880,7 +4962,7 @@
4880
4962
  "name": "styleSheetId",
4881
4963
  "description": "Identifier of the stylesheet containing this object (if exists).",
4882
4964
  "optional": true,
4883
- "$ref": "StyleSheetId"
4965
+ "$ref": "DOM.StyleSheetId"
4884
4966
  }
4885
4967
  ]
4886
4968
  },
@@ -4900,7 +4982,7 @@
4900
4982
  "name": "styleSheetId",
4901
4983
  "description": "Identifier of the stylesheet containing this object (if exists).",
4902
4984
  "optional": true,
4903
- "$ref": "StyleSheetId"
4985
+ "$ref": "DOM.StyleSheetId"
4904
4986
  }
4905
4987
  ]
4906
4988
  },
@@ -5060,7 +5142,7 @@
5060
5142
  "name": "styleSheetId",
5061
5143
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5062
5144
  "optional": true,
5063
- "$ref": "StyleSheetId"
5145
+ "$ref": "DOM.StyleSheetId"
5064
5146
  },
5065
5147
  {
5066
5148
  "name": "origin",
@@ -5088,7 +5170,7 @@
5088
5170
  "name": "styleSheetId",
5089
5171
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5090
5172
  "optional": true,
5091
- "$ref": "StyleSheetId"
5173
+ "$ref": "DOM.StyleSheetId"
5092
5174
  },
5093
5175
  {
5094
5176
  "name": "origin",
@@ -5189,7 +5271,7 @@
5189
5271
  "name": "styleSheetId",
5190
5272
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5191
5273
  "optional": true,
5192
- "$ref": "StyleSheetId"
5274
+ "$ref": "DOM.StyleSheetId"
5193
5275
  },
5194
5276
  {
5195
5277
  "name": "origin",
@@ -5212,7 +5294,7 @@
5212
5294
  "name": "styleSheetId",
5213
5295
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5214
5296
  "optional": true,
5215
- "$ref": "StyleSheetId"
5297
+ "$ref": "DOM.StyleSheetId"
5216
5298
  },
5217
5299
  {
5218
5300
  "name": "origin",
@@ -5319,7 +5401,7 @@
5319
5401
  "name": "styleSheetId",
5320
5402
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5321
5403
  "optional": true,
5322
- "$ref": "StyleSheetId"
5404
+ "$ref": "DOM.StyleSheetId"
5323
5405
  },
5324
5406
  {
5325
5407
  "name": "origin",
@@ -5353,7 +5435,7 @@
5353
5435
  "name": "styleSheetId",
5354
5436
  "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5355
5437
  "optional": true,
5356
- "$ref": "StyleSheetId"
5438
+ "$ref": "DOM.StyleSheetId"
5357
5439
  },
5358
5440
  {
5359
5441
  "name": "origin",
@@ -5380,7 +5462,7 @@
5380
5462
  {
5381
5463
  "name": "styleSheetId",
5382
5464
  "description": "The css style sheet identifier.",
5383
- "$ref": "StyleSheetId"
5465
+ "$ref": "DOM.StyleSheetId"
5384
5466
  },
5385
5467
  {
5386
5468
  "name": "range",
@@ -5403,7 +5485,7 @@
5403
5485
  {
5404
5486
  "name": "styleSheetId",
5405
5487
  "description": "The css style sheet identifier where a new rule should be inserted.",
5406
- "$ref": "StyleSheetId"
5488
+ "$ref": "DOM.StyleSheetId"
5407
5489
  },
5408
5490
  {
5409
5491
  "name": "ruleText",
@@ -5437,7 +5519,7 @@
5437
5519
  "parameters": [
5438
5520
  {
5439
5521
  "name": "styleSheetId",
5440
- "$ref": "StyleSheetId"
5522
+ "$ref": "DOM.StyleSheetId"
5441
5523
  }
5442
5524
  ],
5443
5525
  "returns": [
@@ -5471,7 +5553,7 @@
5471
5553
  {
5472
5554
  "name": "styleSheetId",
5473
5555
  "description": "Identifier of the created \"via-inspector\" stylesheet.",
5474
- "$ref": "StyleSheetId"
5556
+ "$ref": "DOM.StyleSheetId"
5475
5557
  }
5476
5558
  ]
5477
5559
  },
@@ -5886,7 +5968,7 @@
5886
5968
  "parameters": [
5887
5969
  {
5888
5970
  "name": "styleSheetId",
5889
- "$ref": "StyleSheetId"
5971
+ "$ref": "DOM.StyleSheetId"
5890
5972
  }
5891
5973
  ],
5892
5974
  "returns": [
@@ -5921,7 +6003,7 @@
5921
6003
  "parameters": [
5922
6004
  {
5923
6005
  "name": "styleSheetId",
5924
- "$ref": "StyleSheetId"
6006
+ "$ref": "DOM.StyleSheetId"
5925
6007
  },
5926
6008
  {
5927
6009
  "name": "selectorText",
@@ -6004,7 +6086,7 @@
6004
6086
  "parameters": [
6005
6087
  {
6006
6088
  "name": "styleSheetId",
6007
- "$ref": "StyleSheetId"
6089
+ "$ref": "DOM.StyleSheetId"
6008
6090
  },
6009
6091
  {
6010
6092
  "name": "range",
@@ -6029,7 +6111,7 @@
6029
6111
  "parameters": [
6030
6112
  {
6031
6113
  "name": "styleSheetId",
6032
- "$ref": "StyleSheetId"
6114
+ "$ref": "DOM.StyleSheetId"
6033
6115
  },
6034
6116
  {
6035
6117
  "name": "range",
@@ -6054,7 +6136,7 @@
6054
6136
  "parameters": [
6055
6137
  {
6056
6138
  "name": "styleSheetId",
6057
- "$ref": "StyleSheetId"
6139
+ "$ref": "DOM.StyleSheetId"
6058
6140
  },
6059
6141
  {
6060
6142
  "name": "range",
@@ -6080,7 +6162,7 @@
6080
6162
  "parameters": [
6081
6163
  {
6082
6164
  "name": "styleSheetId",
6083
- "$ref": "StyleSheetId"
6165
+ "$ref": "DOM.StyleSheetId"
6084
6166
  },
6085
6167
  {
6086
6168
  "name": "range",
@@ -6106,7 +6188,7 @@
6106
6188
  "parameters": [
6107
6189
  {
6108
6190
  "name": "styleSheetId",
6109
- "$ref": "StyleSheetId"
6191
+ "$ref": "DOM.StyleSheetId"
6110
6192
  },
6111
6193
  {
6112
6194
  "name": "range",
@@ -6132,7 +6214,7 @@
6132
6214
  "parameters": [
6133
6215
  {
6134
6216
  "name": "styleSheetId",
6135
- "$ref": "StyleSheetId"
6217
+ "$ref": "DOM.StyleSheetId"
6136
6218
  },
6137
6219
  {
6138
6220
  "name": "range",
@@ -6157,7 +6239,7 @@
6157
6239
  "parameters": [
6158
6240
  {
6159
6241
  "name": "styleSheetId",
6160
- "$ref": "StyleSheetId"
6242
+ "$ref": "DOM.StyleSheetId"
6161
6243
  },
6162
6244
  {
6163
6245
  "name": "range",
@@ -6182,7 +6264,7 @@
6182
6264
  "parameters": [
6183
6265
  {
6184
6266
  "name": "styleSheetId",
6185
- "$ref": "StyleSheetId"
6267
+ "$ref": "DOM.StyleSheetId"
6186
6268
  },
6187
6269
  {
6188
6270
  "name": "text",
@@ -6310,7 +6392,7 @@
6310
6392
  "parameters": [
6311
6393
  {
6312
6394
  "name": "styleSheetId",
6313
- "$ref": "StyleSheetId"
6395
+ "$ref": "DOM.StyleSheetId"
6314
6396
  }
6315
6397
  ]
6316
6398
  },
@@ -6321,7 +6403,7 @@
6321
6403
  {
6322
6404
  "name": "styleSheetId",
6323
6405
  "description": "Identifier of the removed stylesheet.",
6324
- "$ref": "StyleSheetId"
6406
+ "$ref": "DOM.StyleSheetId"
6325
6407
  }
6326
6408
  ]
6327
6409
  },
@@ -6741,6 +6823,11 @@
6741
6823
  "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the\nfront-end.",
6742
6824
  "type": "integer"
6743
6825
  },
6826
+ {
6827
+ "id": "StyleSheetId",
6828
+ "description": "Unique identifier for a CSS stylesheet.",
6829
+ "type": "string"
6830
+ },
6744
6831
  {
6745
6832
  "id": "BackendNode",
6746
6833
  "description": "Backend node with a friendly name.",
@@ -6806,8 +6893,7 @@
6806
6893
  "details-content",
6807
6894
  "picker",
6808
6895
  "permission-icon",
6809
- "overscroll-area-parent",
6810
- "overscroll-client-area"
6896
+ "overscroll-area-parent"
6811
6897
  ]
6812
6898
  },
6813
6899
  {
@@ -7069,6 +7155,15 @@
7069
7155
  "experimental": true,
7070
7156
  "optional": true,
7071
7157
  "type": "boolean"
7158
+ },
7159
+ {
7160
+ "name": "adoptedStyleSheets",
7161
+ "experimental": true,
7162
+ "optional": true,
7163
+ "type": "array",
7164
+ "items": {
7165
+ "$ref": "StyleSheetId"
7166
+ }
7072
7167
  }
7073
7168
  ]
7074
7169
  },
@@ -8439,6 +8534,27 @@
8439
8534
  }
8440
8535
  ]
8441
8536
  },
8537
+ {
8538
+ "name": "adoptedStyleSheetsModified",
8539
+ "description": "Fired when `Element`'s adoptedStyleSheets are modified.",
8540
+ "experimental": true,
8541
+ "parameters": [
8542
+ {
8543
+ "name": "nodeId",
8544
+ "description": "Id of the node that has changed.",
8545
+ "$ref": "NodeId"
8546
+ },
8547
+ {
8548
+ "name": "adoptedStyleSheets",
8549
+ "description": "New adoptedStyleSheets array.",
8550
+ "experimental": true,
8551
+ "type": "array",
8552
+ "items": {
8553
+ "$ref": "StyleSheetId"
8554
+ }
8555
+ }
8556
+ ]
8557
+ },
8442
8558
  {
8443
8559
  "name": "attributeRemoved",
8444
8560
  "description": "Fired when `Element`'s attribute is removed.",
@@ -28194,6 +28310,26 @@
28194
28310
  }
28195
28311
  ]
28196
28312
  },
28313
+ {
28314
+ "name": "getDevToolsTarget",
28315
+ "description": "Gets the targetId of the DevTools page target opened for the given target\n(if any).",
28316
+ "experimental": true,
28317
+ "parameters": [
28318
+ {
28319
+ "name": "targetId",
28320
+ "description": "Page or tab target ID.",
28321
+ "$ref": "TargetID"
28322
+ }
28323
+ ],
28324
+ "returns": [
28325
+ {
28326
+ "name": "targetId",
28327
+ "description": "The targetId of DevTools page target if exists.",
28328
+ "optional": true,
28329
+ "$ref": "TargetID"
28330
+ }
28331
+ ]
28332
+ },
28197
28333
  {
28198
28334
  "name": "openDevTools",
28199
28335
  "description": "Opens a DevTools window for the target.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1550230",
3
+ "version": "0.0.1555890",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -632,6 +632,51 @@ experimental domain Audits
632
632
  # Applies to NoisedCanvasReadback issue type.
633
633
  optional SourceCodeLocation sourceCodeLocation
634
634
 
635
+ type PermissionElementIssueType extends string
636
+ enum
637
+ InvalidType
638
+ FencedFrameDisallowed
639
+ CspFrameAncestorsMissing
640
+ PermissionsPolicyBlocked
641
+ PaddingRightUnsupported
642
+ PaddingBottomUnsupported
643
+ InsetBoxShadowUnsupported
644
+ RequestInProgress
645
+ UntrustedEvent
646
+ RegistrationFailed
647
+ TypeNotSupported
648
+ InvalidTypeActivation
649
+ SecurityChecksFailed
650
+ ActivationDisabled
651
+ GeolocationDeprecated
652
+ InvalidDisplayStyle
653
+ NonOpaqueColor
654
+ LowContrast
655
+ FontSizeTooSmall
656
+ FontSizeTooLarge
657
+ InvalidSizeValue
658
+
659
+ # This issue warns about improper usage of the <permission> element.
660
+ type PermissionElementIssueDetails extends object
661
+ properties
662
+ PermissionElementIssueType issueType
663
+ # The value of the type attribute.
664
+ optional string type
665
+ # The node ID of the <permission> element.
666
+ optional DOM.BackendNodeId nodeId
667
+ # True if the issue is a warning, false if it is an error.
668
+ optional boolean isWarning
669
+
670
+ # Fields for message construction:
671
+ # Used for messages that reference a specific permission name
672
+ optional string permissionName
673
+ # Used for messages about occlusion
674
+ optional string occluderNodeInfo
675
+ # Used for messages about occluder's parent
676
+ optional string occluderParentNodeInfo
677
+ # Used for messages about activation disabled reason
678
+ optional string disableReason
679
+
635
680
  # A unique identifier for the type of issue. Each type may use one of the
636
681
  # optional fields in InspectorIssueDetails to convey more specific
637
682
  # information about the kind of issue.
@@ -664,6 +709,7 @@ experimental domain Audits
664
709
  SRIMessageSignatureIssue
665
710
  UnencodedDigestIssue
666
711
  UserReidentificationIssue
712
+ PermissionElementIssue
667
713
 
668
714
  # This struct holds a list of optional fields with additional information
669
715
  # specific to the kind of issue. When adding a new issue code, please also
@@ -696,6 +742,7 @@ experimental domain Audits
696
742
  optional SRIMessageSignatureIssueDetails sriMessageSignatureIssueDetails
697
743
  optional UnencodedDigestIssueDetails unencodedDigestIssueDetails
698
744
  optional UserReidentificationIssueDetails userReidentificationIssueDetails
745
+ optional PermissionElementIssueDetails permissionElementIssueDetails
699
746
 
700
747
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
701
748
  # exceptions, CDP message, console messages, etc.) to reference an issue.