devtools-protocol 0.0.1010518 → 0.0.1019158
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 +150 -10
- package/json/js_protocol.json +57 -7
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +55 -2
- package/pdl/js_protocol.pdl +53 -13
- package/types/protocol-mapping.d.ts +39 -1
- package/types/protocol-proxy-api.d.ts +36 -1
- package/types/protocol.d.ts +138 -11
@@ -1447,7 +1447,7 @@
|
|
1447
1447
|
},
|
1448
1448
|
{
|
1449
1449
|
"id": "AttributionReportingIssueDetails",
|
1450
|
-
"description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/
|
1450
|
+
"description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/attribution-reporting-api",
|
1451
1451
|
"type": "object",
|
1452
1452
|
"properties": [
|
1453
1453
|
{
|
@@ -1564,6 +1564,7 @@
|
|
1564
1564
|
"GeolocationInsecureOriginDeprecatedNotRemoved",
|
1565
1565
|
"GetUserMediaInsecureOrigin",
|
1566
1566
|
"HostCandidateAttributeGetter",
|
1567
|
+
"IdentityInCanMakePaymentEvent",
|
1567
1568
|
"InsecurePrivateNetworkSubresourceRequest",
|
1568
1569
|
"LegacyConstraintGoogIPv6",
|
1569
1570
|
"LocalCSSFileExtensionRejected",
|
@@ -1573,7 +1574,7 @@
|
|
1573
1574
|
"NotificationInsecureOrigin",
|
1574
1575
|
"NotificationPermissionRequestedIframe",
|
1575
1576
|
"ObsoleteWebRtcCipherSuite",
|
1576
|
-
"
|
1577
|
+
"OpenWebDatabaseInsecureContext",
|
1577
1578
|
"PictureSourceSrc",
|
1578
1579
|
"PrefixedCancelAnimationFrame",
|
1579
1580
|
"PrefixedRequestAnimationFrame",
|
@@ -2688,6 +2689,12 @@
|
|
2688
2689
|
"description": "Pseudo element type.",
|
2689
2690
|
"$ref": "DOM.PseudoType"
|
2690
2691
|
},
|
2692
|
+
{
|
2693
|
+
"name": "pseudoIdentifier",
|
2694
|
+
"description": "Pseudo element custom ident.",
|
2695
|
+
"optional": true,
|
2696
|
+
"type": "string"
|
2697
|
+
},
|
2691
2698
|
{
|
2692
2699
|
"name": "matches",
|
2693
2700
|
"description": "Matches of CSS rules applicable to the pseudo style.",
|
@@ -2951,6 +2958,16 @@
|
|
2951
2958
|
"items": {
|
2952
2959
|
"$ref": "CSSLayer"
|
2953
2960
|
}
|
2961
|
+
},
|
2962
|
+
{
|
2963
|
+
"name": "scopes",
|
2964
|
+
"description": "@scope CSS at-rule array.\nThe array enumerates @scope at-rules starting with the innermost one, going outwards.",
|
2965
|
+
"experimental": true,
|
2966
|
+
"optional": true,
|
2967
|
+
"type": "array",
|
2968
|
+
"items": {
|
2969
|
+
"$ref": "CSSScope"
|
2970
|
+
}
|
2954
2971
|
}
|
2955
2972
|
]
|
2956
2973
|
},
|
@@ -3305,6 +3322,31 @@
|
|
3305
3322
|
}
|
3306
3323
|
]
|
3307
3324
|
},
|
3325
|
+
{
|
3326
|
+
"id": "CSSScope",
|
3327
|
+
"description": "CSS Scope at-rule descriptor.",
|
3328
|
+
"experimental": true,
|
3329
|
+
"type": "object",
|
3330
|
+
"properties": [
|
3331
|
+
{
|
3332
|
+
"name": "text",
|
3333
|
+
"description": "Scope rule text.",
|
3334
|
+
"type": "string"
|
3335
|
+
},
|
3336
|
+
{
|
3337
|
+
"name": "range",
|
3338
|
+
"description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
|
3339
|
+
"optional": true,
|
3340
|
+
"$ref": "SourceRange"
|
3341
|
+
},
|
3342
|
+
{
|
3343
|
+
"name": "styleSheetId",
|
3344
|
+
"description": "Identifier of the stylesheet containing this object (if exists).",
|
3345
|
+
"optional": true,
|
3346
|
+
"$ref": "StyleSheetId"
|
3347
|
+
}
|
3348
|
+
]
|
3349
|
+
},
|
3308
3350
|
{
|
3309
3351
|
"id": "CSSLayer",
|
3310
3352
|
"description": "CSS Layer at-rule descriptor.",
|
@@ -3441,6 +3483,11 @@
|
|
3441
3483
|
"description": "The font-stretch.",
|
3442
3484
|
"type": "string"
|
3443
3485
|
},
|
3486
|
+
{
|
3487
|
+
"name": "fontDisplay",
|
3488
|
+
"description": "The font-display.",
|
3489
|
+
"type": "string"
|
3490
|
+
},
|
3444
3491
|
{
|
3445
3492
|
"name": "unicodeRange",
|
3446
3493
|
"description": "The unicode-range.",
|
@@ -3995,6 +4042,32 @@
|
|
3995
4042
|
}
|
3996
4043
|
]
|
3997
4044
|
},
|
4045
|
+
{
|
4046
|
+
"name": "setScopeText",
|
4047
|
+
"description": "Modifies the expression of a scope at-rule.",
|
4048
|
+
"experimental": true,
|
4049
|
+
"parameters": [
|
4050
|
+
{
|
4051
|
+
"name": "styleSheetId",
|
4052
|
+
"$ref": "StyleSheetId"
|
4053
|
+
},
|
4054
|
+
{
|
4055
|
+
"name": "range",
|
4056
|
+
"$ref": "SourceRange"
|
4057
|
+
},
|
4058
|
+
{
|
4059
|
+
"name": "text",
|
4060
|
+
"type": "string"
|
4061
|
+
}
|
4062
|
+
],
|
4063
|
+
"returns": [
|
4064
|
+
{
|
4065
|
+
"name": "scope",
|
4066
|
+
"description": "The resulting CSS Scope rule after modification.",
|
4067
|
+
"$ref": "CSSScope"
|
4068
|
+
}
|
4069
|
+
]
|
4070
|
+
},
|
3998
4071
|
{
|
3999
4072
|
"name": "setRuleSelector",
|
4000
4073
|
"description": "Modifies the rule selector.",
|
@@ -4732,6 +4805,12 @@
|
|
4732
4805
|
"optional": true,
|
4733
4806
|
"$ref": "PseudoType"
|
4734
4807
|
},
|
4808
|
+
{
|
4809
|
+
"name": "pseudoIdentifier",
|
4810
|
+
"description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
|
4811
|
+
"optional": true,
|
4812
|
+
"type": "string"
|
4813
|
+
},
|
4735
4814
|
{
|
4736
4815
|
"name": "shadowRootType",
|
4737
4816
|
"description": "Shadow root type.",
|
@@ -5620,6 +5699,21 @@
|
|
5620
5699
|
}
|
5621
5700
|
]
|
5622
5701
|
},
|
5702
|
+
{
|
5703
|
+
"name": "getTopLayerElements",
|
5704
|
+
"description": "Returns NodeIds of current top layer elements.\nTop layer is rendered closest to the user within a viewport, therefore its elements always\nappear on top of all other content.",
|
5705
|
+
"experimental": true,
|
5706
|
+
"returns": [
|
5707
|
+
{
|
5708
|
+
"name": "nodeIds",
|
5709
|
+
"description": "NodeIds of top layer elements",
|
5710
|
+
"type": "array",
|
5711
|
+
"items": {
|
5712
|
+
"$ref": "NodeId"
|
5713
|
+
}
|
5714
|
+
}
|
5715
|
+
]
|
5716
|
+
},
|
5623
5717
|
{
|
5624
5718
|
"name": "redo",
|
5625
5719
|
"description": "Re-does the last undone action.",
|
@@ -6161,6 +6255,11 @@
|
|
6161
6255
|
}
|
6162
6256
|
]
|
6163
6257
|
},
|
6258
|
+
{
|
6259
|
+
"name": "topLayerElementsUpdated",
|
6260
|
+
"description": "Called when top layer elements are changed.",
|
6261
|
+
"experimental": true
|
6262
|
+
},
|
6164
6263
|
{
|
6165
6264
|
"name": "pseudoElementRemoved",
|
6166
6265
|
"description": "Called when a pseudo element is removed from an element.",
|
@@ -7075,6 +7174,12 @@
|
|
7075
7174
|
"optional": true,
|
7076
7175
|
"$ref": "RareStringData"
|
7077
7176
|
},
|
7177
|
+
{
|
7178
|
+
"name": "pseudoIdentifier",
|
7179
|
+
"description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
|
7180
|
+
"optional": true,
|
7181
|
+
"$ref": "RareStringData"
|
7182
|
+
},
|
7078
7183
|
{
|
7079
7184
|
"name": "isClickable",
|
7080
7185
|
"description": "Whether this DOM node responds to mouse clicks. This includes nodes that have had click\nevent listeners attached via JavaScript as well as anchor tags that naturally navigate when\nclicked.",
|
@@ -12067,9 +12172,10 @@
|
|
12067
12172
|
"enum": [
|
12068
12173
|
"SameOrigin",
|
12069
12174
|
"SameOriginAllowPopups",
|
12175
|
+
"RestrictProperties",
|
12070
12176
|
"UnsafeNone",
|
12071
12177
|
"SameOriginPlusCoep",
|
12072
|
-
"
|
12178
|
+
"RestrictPropertiesPlusCoep"
|
12073
12179
|
]
|
12074
12180
|
},
|
12075
12181
|
{
|
@@ -14961,6 +15067,24 @@
|
|
14961
15067
|
}
|
14962
15068
|
]
|
14963
15069
|
},
|
15070
|
+
{
|
15071
|
+
"id": "AdScriptId",
|
15072
|
+
"description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
|
15073
|
+
"experimental": true,
|
15074
|
+
"type": "object",
|
15075
|
+
"properties": [
|
15076
|
+
{
|
15077
|
+
"name": "scriptId",
|
15078
|
+
"description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
|
15079
|
+
"$ref": "Runtime.ScriptId"
|
15080
|
+
},
|
15081
|
+
{
|
15082
|
+
"name": "debuggerId",
|
15083
|
+
"description": "Id of adScriptId's debugger.",
|
15084
|
+
"$ref": "Runtime.UniqueDebuggerId"
|
15085
|
+
}
|
15086
|
+
]
|
15087
|
+
},
|
14964
15088
|
{
|
14965
15089
|
"id": "SecureContextType",
|
14966
15090
|
"description": "Indicates whether the frame is a secure context and why it is the case.",
|
@@ -15039,6 +15163,7 @@
|
|
15039
15163
|
"encrypted-media",
|
15040
15164
|
"execution-while-out-of-viewport",
|
15041
15165
|
"execution-while-not-rendered",
|
15166
|
+
"federated-credentials",
|
15042
15167
|
"focus-without-user-activation",
|
15043
15168
|
"fullscreen",
|
15044
15169
|
"frobulate",
|
@@ -15080,7 +15205,8 @@
|
|
15080
15205
|
"enum": [
|
15081
15206
|
"Header",
|
15082
15207
|
"IframeAttribute",
|
15083
|
-
"InFencedFrameTree"
|
15208
|
+
"InFencedFrameTree",
|
15209
|
+
"InIsolatedApp"
|
15084
15210
|
]
|
15085
15211
|
},
|
15086
15212
|
{
|
@@ -17297,12 +17423,6 @@
|
|
17297
17423
|
"experimental": true,
|
17298
17424
|
"$ref": "FrameId"
|
17299
17425
|
},
|
17300
|
-
{
|
17301
|
-
"name": "backendNodeId",
|
17302
|
-
"description": "Input node id.",
|
17303
|
-
"experimental": true,
|
17304
|
-
"$ref": "DOM.BackendNodeId"
|
17305
|
-
},
|
17306
17426
|
{
|
17307
17427
|
"name": "mode",
|
17308
17428
|
"description": "Input mode.",
|
@@ -17311,6 +17431,13 @@
|
|
17311
17431
|
"selectSingle",
|
17312
17432
|
"selectMultiple"
|
17313
17433
|
]
|
17434
|
+
},
|
17435
|
+
{
|
17436
|
+
"name": "backendNodeId",
|
17437
|
+
"description": "Input node id. Only present for file choosers opened via an <input type=\"file\"> element.",
|
17438
|
+
"experimental": true,
|
17439
|
+
"optional": true,
|
17440
|
+
"$ref": "DOM.BackendNodeId"
|
17314
17441
|
}
|
17315
17442
|
]
|
17316
17443
|
},
|
@@ -17333,6 +17460,13 @@
|
|
17333
17460
|
"description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
|
17334
17461
|
"optional": true,
|
17335
17462
|
"$ref": "Runtime.StackTrace"
|
17463
|
+
},
|
17464
|
+
{
|
17465
|
+
"name": "adScriptId",
|
17466
|
+
"description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
|
17467
|
+
"experimental": true,
|
17468
|
+
"optional": true,
|
17469
|
+
"$ref": "AdScriptId"
|
17336
17470
|
}
|
17337
17471
|
]
|
17338
17472
|
},
|
@@ -20168,6 +20302,12 @@
|
|
20168
20302
|
"echoToConsole"
|
20169
20303
|
]
|
20170
20304
|
},
|
20305
|
+
{
|
20306
|
+
"name": "traceBufferSizeInKb",
|
20307
|
+
"description": "Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value\nof 200 MB would be used.",
|
20308
|
+
"optional": true,
|
20309
|
+
"type": "number"
|
20310
|
+
},
|
20171
20311
|
{
|
20172
20312
|
"name": "enableSampling",
|
20173
20313
|
"description": "Turns on JavaScript stack sampling.",
|
package/json/js_protocol.json
CHANGED
@@ -606,19 +606,29 @@
|
|
606
606
|
},
|
607
607
|
{
|
608
608
|
"name": "restartFrame",
|
609
|
-
"description": "Restarts particular call frame from the beginning.",
|
610
|
-
"deprecated": true,
|
609
|
+
"description": "Restarts particular call frame from the beginning. The old, deprecated\nbehavior of `restartFrame` is to stay paused and allow further CDP commands\nafter a restart was scheduled. This can cause problems with restarting, so\nwe now continue execution immediatly after it has been scheduled until we\nreach the beginning of the restarted frame.\n\nTo stay back-wards compatible, `restartFrame` now expects a `mode`\nparameter to be present. If the `mode` parameter is missing, `restartFrame`\nerrors out.\n\nThe various return values are deprecated and `callFrames` is always empty.\nUse the call frames from the `Debugger#paused` events instead, that fires\nonce V8 pauses at the beginning of the restarted function.",
|
611
610
|
"parameters": [
|
612
611
|
{
|
613
612
|
"name": "callFrameId",
|
614
613
|
"description": "Call frame identifier to evaluate on.",
|
615
614
|
"$ref": "CallFrameId"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"name": "mode",
|
618
|
+
"description": "The `mode` parameter must be present and set to 'StepInto', otherwise\n`restartFrame` will error out.",
|
619
|
+
"experimental": true,
|
620
|
+
"optional": true,
|
621
|
+
"type": "string",
|
622
|
+
"enum": [
|
623
|
+
"StepInto"
|
624
|
+
]
|
616
625
|
}
|
617
626
|
],
|
618
627
|
"returns": [
|
619
628
|
{
|
620
629
|
"name": "callFrames",
|
621
630
|
"description": "New stack trace.",
|
631
|
+
"deprecated": true,
|
622
632
|
"type": "array",
|
623
633
|
"items": {
|
624
634
|
"$ref": "CallFrame"
|
@@ -627,13 +637,14 @@
|
|
627
637
|
{
|
628
638
|
"name": "asyncStackTrace",
|
629
639
|
"description": "Async stack trace, if any.",
|
640
|
+
"deprecated": true,
|
630
641
|
"optional": true,
|
631
642
|
"$ref": "Runtime.StackTrace"
|
632
643
|
},
|
633
644
|
{
|
634
645
|
"name": "asyncStackTraceId",
|
635
646
|
"description": "Async stack trace, if any.",
|
636
|
-
"
|
647
|
+
"deprecated": true,
|
637
648
|
"optional": true,
|
638
649
|
"$ref": "Runtime.StackTraceId"
|
639
650
|
}
|
@@ -907,7 +918,7 @@
|
|
907
918
|
},
|
908
919
|
{
|
909
920
|
"name": "setScriptSource",
|
910
|
-
"description": "Edits JavaScript source live.",
|
921
|
+
"description": "Edits JavaScript source live.\n\nIn general, functions that are currently on the stack can not be edited with\na single exception: If the edited function is the top-most stack frame and\nthat is the only activation of that function on the stack. In this case\nthe live edit will be successful and a `Debugger.restartFrame` for the\ntop-most function is automatically triggered.",
|
911
922
|
"parameters": [
|
912
923
|
{
|
913
924
|
"name": "scriptId",
|
@@ -924,12 +935,20 @@
|
|
924
935
|
"description": "If true the change will not actually be applied. Dry run may be used to get result\ndescription without actually modifying the code.",
|
925
936
|
"optional": true,
|
926
937
|
"type": "boolean"
|
938
|
+
},
|
939
|
+
{
|
940
|
+
"name": "allowTopFrameEditing",
|
941
|
+
"description": "If true, then `scriptSource` is allowed to change the function on top of the stack\nas long as the top-most stack frame is the only activation of that function.",
|
942
|
+
"experimental": true,
|
943
|
+
"optional": true,
|
944
|
+
"type": "boolean"
|
927
945
|
}
|
928
946
|
],
|
929
947
|
"returns": [
|
930
948
|
{
|
931
949
|
"name": "callFrames",
|
932
950
|
"description": "New stack trace in case editing has happened while VM was stopped.",
|
951
|
+
"deprecated": true,
|
933
952
|
"optional": true,
|
934
953
|
"type": "array",
|
935
954
|
"items": {
|
@@ -939,25 +958,39 @@
|
|
939
958
|
{
|
940
959
|
"name": "stackChanged",
|
941
960
|
"description": "Whether current call stack was modified after applying the changes.",
|
961
|
+
"deprecated": true,
|
942
962
|
"optional": true,
|
943
963
|
"type": "boolean"
|
944
964
|
},
|
945
965
|
{
|
946
966
|
"name": "asyncStackTrace",
|
947
967
|
"description": "Async stack trace, if any.",
|
968
|
+
"deprecated": true,
|
948
969
|
"optional": true,
|
949
970
|
"$ref": "Runtime.StackTrace"
|
950
971
|
},
|
951
972
|
{
|
952
973
|
"name": "asyncStackTraceId",
|
953
974
|
"description": "Async stack trace, if any.",
|
954
|
-
"
|
975
|
+
"deprecated": true,
|
955
976
|
"optional": true,
|
956
977
|
"$ref": "Runtime.StackTraceId"
|
957
978
|
},
|
979
|
+
{
|
980
|
+
"name": "status",
|
981
|
+
"description": "Whether the operation was successful or not. Only `Ok` denotes a\nsuccessful live edit while the other enum variants denote why\nthe live edit failed.",
|
982
|
+
"experimental": true,
|
983
|
+
"type": "string",
|
984
|
+
"enum": [
|
985
|
+
"Ok",
|
986
|
+
"CompileError",
|
987
|
+
"BlockedByActiveGenerator",
|
988
|
+
"BlockedByActiveFunction"
|
989
|
+
]
|
990
|
+
},
|
958
991
|
{
|
959
992
|
"name": "exceptionDetails",
|
960
|
-
"description": "Exception details if any.",
|
993
|
+
"description": "Exception details if any. Only present when `status` is `CompileError`.",
|
961
994
|
"optional": true,
|
962
995
|
"$ref": "Runtime.ExceptionDetails"
|
963
996
|
}
|
@@ -1553,6 +1586,8 @@
|
|
1553
1586
|
},
|
1554
1587
|
{
|
1555
1588
|
"name": "treatGlobalObjectsAsRoots",
|
1589
|
+
"description": "Deprecated in favor of `exposeInternals`.",
|
1590
|
+
"deprecated": true,
|
1556
1591
|
"optional": true,
|
1557
1592
|
"type": "boolean"
|
1558
1593
|
},
|
@@ -1561,6 +1596,13 @@
|
|
1561
1596
|
"description": "If true, numerical values are included in the snapshot",
|
1562
1597
|
"optional": true,
|
1563
1598
|
"type": "boolean"
|
1599
|
+
},
|
1600
|
+
{
|
1601
|
+
"name": "exposeInternals",
|
1602
|
+
"description": "If true, exposes internals of the snapshot.",
|
1603
|
+
"experimental": true,
|
1604
|
+
"optional": true,
|
1605
|
+
"type": "boolean"
|
1564
1606
|
}
|
1565
1607
|
]
|
1566
1608
|
},
|
@@ -1575,7 +1617,8 @@
|
|
1575
1617
|
},
|
1576
1618
|
{
|
1577
1619
|
"name": "treatGlobalObjectsAsRoots",
|
1578
|
-
"description": "If true, a raw snapshot without artificial roots will be generated",
|
1620
|
+
"description": "If true, a raw snapshot without artificial roots will be generated.\nDeprecated in favor of `exposeInternals`.",
|
1621
|
+
"deprecated": true,
|
1579
1622
|
"optional": true,
|
1580
1623
|
"type": "boolean"
|
1581
1624
|
},
|
@@ -1584,6 +1627,13 @@
|
|
1584
1627
|
"description": "If true, numerical values are included in the snapshot",
|
1585
1628
|
"optional": true,
|
1586
1629
|
"type": "boolean"
|
1630
|
+
},
|
1631
|
+
{
|
1632
|
+
"name": "exposeInternals",
|
1633
|
+
"description": "If true, exposes internals of the snapshot.",
|
1634
|
+
"experimental": true,
|
1635
|
+
"optional": true,
|
1636
|
+
"type": "boolean"
|
1587
1637
|
}
|
1588
1638
|
]
|
1589
1639
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -758,6 +758,7 @@ experimental domain Audits
|
|
758
758
|
GeolocationInsecureOriginDeprecatedNotRemoved
|
759
759
|
GetUserMediaInsecureOrigin
|
760
760
|
HostCandidateAttributeGetter
|
761
|
+
IdentityInCanMakePaymentEvent
|
761
762
|
InsecurePrivateNetworkSubresourceRequest
|
762
763
|
LegacyConstraintGoogIPv6
|
763
764
|
LocalCSSFileExtensionRejected
|
@@ -767,6 +768,7 @@ experimental domain Audits
|
|
767
768
|
NotificationInsecureOrigin
|
768
769
|
NotificationPermissionRequestedIframe
|
769
770
|
ObsoleteWebRtcCipherSuite
|
771
|
+
OpenWebDatabaseInsecureContext
|
770
772
|
PictureSourceSrc
|
771
773
|
PrefixedCancelAnimationFrame
|
772
774
|
PrefixedRequestAnimationFrame
|
@@ -1330,6 +1332,8 @@ experimental domain CSS
|
|
1330
1332
|
properties
|
1331
1333
|
# Pseudo element type.
|
1332
1334
|
DOM.PseudoType pseudoType
|
1335
|
+
# Pseudo element custom ident.
|
1336
|
+
optional string pseudoIdentifier
|
1333
1337
|
# Matches of CSS rules applicable to the pseudo style.
|
1334
1338
|
array of RuleMatch matches
|
1335
1339
|
|
@@ -1440,6 +1444,9 @@ experimental domain CSS
|
|
1440
1444
|
# Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
1441
1445
|
# with the innermost layer and going outwards.
|
1442
1446
|
experimental optional array of CSSLayer layers
|
1447
|
+
# @scope CSS at-rule array.
|
1448
|
+
# The array enumerates @scope at-rules starting with the innermost one, going outwards.
|
1449
|
+
experimental optional array of CSSScope scopes
|
1443
1450
|
|
1444
1451
|
# CSS coverage information.
|
1445
1452
|
type RuleUsage extends object
|
@@ -1589,6 +1596,17 @@ experimental domain CSS
|
|
1589
1596
|
# Identifier of the stylesheet containing this object (if exists).
|
1590
1597
|
optional StyleSheetId styleSheetId
|
1591
1598
|
|
1599
|
+
# CSS Scope at-rule descriptor.
|
1600
|
+
experimental type CSSScope extends object
|
1601
|
+
properties
|
1602
|
+
# Scope rule text.
|
1603
|
+
string text
|
1604
|
+
# The associated rule header range in the enclosing stylesheet (if
|
1605
|
+
# available).
|
1606
|
+
optional SourceRange range
|
1607
|
+
# Identifier of the stylesheet containing this object (if exists).
|
1608
|
+
optional StyleSheetId styleSheetId
|
1609
|
+
|
1592
1610
|
# CSS Layer at-rule descriptor.
|
1593
1611
|
experimental type CSSLayer extends object
|
1594
1612
|
properties
|
@@ -1649,6 +1667,8 @@ experimental domain CSS
|
|
1649
1667
|
string fontWeight
|
1650
1668
|
# The font-stretch.
|
1651
1669
|
string fontStretch
|
1670
|
+
# The font-display.
|
1671
|
+
string fontDisplay
|
1652
1672
|
# The unicode-range.
|
1653
1673
|
string unicodeRange
|
1654
1674
|
# The src.
|
@@ -1889,6 +1909,16 @@ experimental domain CSS
|
|
1889
1909
|
# The resulting CSS Supports rule after modification.
|
1890
1910
|
CSSSupports supports
|
1891
1911
|
|
1912
|
+
# Modifies the expression of a scope at-rule.
|
1913
|
+
experimental command setScopeText
|
1914
|
+
parameters
|
1915
|
+
StyleSheetId styleSheetId
|
1916
|
+
SourceRange range
|
1917
|
+
string text
|
1918
|
+
returns
|
1919
|
+
# The resulting CSS Scope rule after modification.
|
1920
|
+
CSSScope scope
|
1921
|
+
|
1892
1922
|
# Modifies the rule selector.
|
1893
1923
|
command setRuleSelector
|
1894
1924
|
parameters
|
@@ -2248,6 +2278,9 @@ domain DOM
|
|
2248
2278
|
optional string value
|
2249
2279
|
# Pseudo element type for this node.
|
2250
2280
|
optional PseudoType pseudoType
|
2281
|
+
# Pseudo element identifier for this node. Only present if there is a
|
2282
|
+
# valid pseudoType.
|
2283
|
+
optional string pseudoIdentifier
|
2251
2284
|
# Shadow root type.
|
2252
2285
|
optional ShadowRootType shadowRootType
|
2253
2286
|
# Frame ID for frame owner elements.
|
@@ -2643,6 +2676,14 @@ domain DOM
|
|
2643
2676
|
# Query selector result.
|
2644
2677
|
array of NodeId nodeIds
|
2645
2678
|
|
2679
|
+
# Returns NodeIds of current top layer elements.
|
2680
|
+
# Top layer is rendered closest to the user within a viewport, therefore its elements always
|
2681
|
+
# appear on top of all other content.
|
2682
|
+
experimental command getTopLayerElements
|
2683
|
+
returns
|
2684
|
+
# NodeIds of top layer elements
|
2685
|
+
array of NodeId nodeIds
|
2686
|
+
|
2646
2687
|
# Re-does the last undone action.
|
2647
2688
|
experimental command redo
|
2648
2689
|
|
@@ -2903,6 +2944,9 @@ domain DOM
|
|
2903
2944
|
# The added pseudo element.
|
2904
2945
|
Node pseudoElement
|
2905
2946
|
|
2947
|
+
# Called when top layer elements are changed.
|
2948
|
+
experimental event topLayerElementsUpdated
|
2949
|
+
|
2906
2950
|
# Called when a pseudo element is removed from an element.
|
2907
2951
|
experimental event pseudoElementRemoved
|
2908
2952
|
parameters
|
@@ -3280,6 +3324,9 @@ experimental domain DOMSnapshot
|
|
3280
3324
|
optional RareIntegerData contentDocumentIndex
|
3281
3325
|
# Type of a pseudo element node.
|
3282
3326
|
optional RareStringData pseudoType
|
3327
|
+
# Pseudo element identifier for this node. Only present if there is a
|
3328
|
+
# valid pseudoType.
|
3329
|
+
optional RareStringData pseudoIdentifier
|
3283
3330
|
# Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
3284
3331
|
# event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
3285
3332
|
# clicked.
|
@@ -7036,6 +7083,7 @@ domain Page
|
|
7036
7083
|
encrypted-media
|
7037
7084
|
execution-while-out-of-viewport
|
7038
7085
|
execution-while-not-rendered
|
7086
|
+
federated-credentials
|
7039
7087
|
focus-without-user-activation
|
7040
7088
|
fullscreen
|
7041
7089
|
frobulate
|
@@ -7077,6 +7125,8 @@ domain Page
|
|
7077
7125
|
IframeAttribute
|
7078
7126
|
# Inside fenced frame.
|
7079
7127
|
InFencedFrameTree
|
7128
|
+
# Inside an Isolated Application.
|
7129
|
+
InIsolatedApp
|
7080
7130
|
|
7081
7131
|
experimental type PermissionsPolicyBlockLocator extends object
|
7082
7132
|
properties
|
@@ -7982,12 +8032,12 @@ domain Page
|
|
7982
8032
|
parameters
|
7983
8033
|
# Id of the frame containing input node.
|
7984
8034
|
experimental FrameId frameId
|
7985
|
-
# Input node id.
|
7986
|
-
experimental DOM.BackendNodeId backendNodeId
|
7987
8035
|
# Input mode.
|
7988
8036
|
enum mode
|
7989
8037
|
selectSingle
|
7990
8038
|
selectMultiple
|
8039
|
+
# Input node id. Only present for file choosers opened via an <input type="file"> element.
|
8040
|
+
experimental optional DOM.BackendNodeId backendNodeId
|
7991
8041
|
|
7992
8042
|
# Fired when frame has been attached to its parent.
|
7993
8043
|
event frameAttached
|
@@ -9493,6 +9543,9 @@ experimental domain Tracing
|
|
9493
9543
|
recordContinuously
|
9494
9544
|
recordAsMuchAsPossible
|
9495
9545
|
echoToConsole
|
9546
|
+
# Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
9547
|
+
# of 200 MB would be used.
|
9548
|
+
optional number traceBufferSizeInKb
|
9496
9549
|
# Turns on JavaScript stack sampling.
|
9497
9550
|
optional boolean enableSampling
|
9498
9551
|
# Turns on system tracing.
|
package/pdl/js_protocol.pdl
CHANGED
@@ -273,18 +273,35 @@ domain Debugger
|
|
273
273
|
parameters
|
274
274
|
BreakpointId breakpointId
|
275
275
|
|
276
|
-
# Restarts particular call frame from the beginning.
|
277
|
-
|
276
|
+
# Restarts particular call frame from the beginning. The old, deprecated
|
277
|
+
# behavior of `restartFrame` is to stay paused and allow further CDP commands
|
278
|
+
# after a restart was scheduled. This can cause problems with restarting, so
|
279
|
+
# we now continue execution immediatly after it has been scheduled until we
|
280
|
+
# reach the beginning of the restarted frame.
|
281
|
+
#
|
282
|
+
# To stay back-wards compatible, `restartFrame` now expects a `mode`
|
283
|
+
# parameter to be present. If the `mode` parameter is missing, `restartFrame`
|
284
|
+
# errors out.
|
285
|
+
#
|
286
|
+
# The various return values are deprecated and `callFrames` is always empty.
|
287
|
+
# Use the call frames from the `Debugger#paused` events instead, that fires
|
288
|
+
# once V8 pauses at the beginning of the restarted function.
|
289
|
+
command restartFrame
|
278
290
|
parameters
|
279
291
|
# Call frame identifier to evaluate on.
|
280
292
|
CallFrameId callFrameId
|
293
|
+
# The `mode` parameter must be present and set to 'StepInto', otherwise
|
294
|
+
# `restartFrame` will error out.
|
295
|
+
experimental optional enum mode
|
296
|
+
# Pause at the beginning of the restarted function
|
297
|
+
StepInto
|
281
298
|
returns
|
282
299
|
# New stack trace.
|
283
|
-
array of CallFrame callFrames
|
300
|
+
deprecated array of CallFrame callFrames
|
284
301
|
# Async stack trace, if any.
|
285
|
-
optional Runtime.StackTrace asyncStackTrace
|
302
|
+
deprecated optional Runtime.StackTrace asyncStackTrace
|
286
303
|
# Async stack trace, if any.
|
287
|
-
|
304
|
+
deprecated optional Runtime.StackTraceId asyncStackTraceId
|
288
305
|
|
289
306
|
# Resumes JavaScript execution.
|
290
307
|
command resume
|
@@ -424,6 +441,12 @@ domain Debugger
|
|
424
441
|
Runtime.CallArgument newValue
|
425
442
|
|
426
443
|
# Edits JavaScript source live.
|
444
|
+
#
|
445
|
+
# In general, functions that are currently on the stack can not be edited with
|
446
|
+
# a single exception: If the edited function is the top-most stack frame and
|
447
|
+
# that is the only activation of that function on the stack. In this case
|
448
|
+
# the live edit will be successful and a `Debugger.restartFrame` for the
|
449
|
+
# top-most function is automatically triggered.
|
427
450
|
command setScriptSource
|
428
451
|
parameters
|
429
452
|
# Id of the script to edit.
|
@@ -433,16 +456,27 @@ domain Debugger
|
|
433
456
|
# If true the change will not actually be applied. Dry run may be used to get result
|
434
457
|
# description without actually modifying the code.
|
435
458
|
optional boolean dryRun
|
459
|
+
# If true, then `scriptSource` is allowed to change the function on top of the stack
|
460
|
+
# as long as the top-most stack frame is the only activation of that function.
|
461
|
+
experimental optional boolean allowTopFrameEditing
|
436
462
|
returns
|
437
463
|
# New stack trace in case editing has happened while VM was stopped.
|
438
|
-
optional array of CallFrame callFrames
|
464
|
+
deprecated optional array of CallFrame callFrames
|
439
465
|
# Whether current call stack was modified after applying the changes.
|
440
|
-
optional boolean stackChanged
|
466
|
+
deprecated optional boolean stackChanged
|
441
467
|
# Async stack trace, if any.
|
442
|
-
optional Runtime.StackTrace asyncStackTrace
|
468
|
+
deprecated optional Runtime.StackTrace asyncStackTrace
|
443
469
|
# Async stack trace, if any.
|
444
|
-
|
445
|
-
#
|
470
|
+
deprecated optional Runtime.StackTraceId asyncStackTraceId
|
471
|
+
# Whether the operation was successful or not. Only `Ok` denotes a
|
472
|
+
# successful live edit while the other enum variants denote why
|
473
|
+
# the live edit failed.
|
474
|
+
experimental enum status
|
475
|
+
Ok
|
476
|
+
CompileError
|
477
|
+
BlockedByActiveGenerator
|
478
|
+
BlockedByActiveFunction
|
479
|
+
# Exception details if any. Only present when `status` is `CompileError`.
|
446
480
|
optional Runtime.ExceptionDetails exceptionDetails
|
447
481
|
|
448
482
|
# Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
@@ -713,18 +747,24 @@ experimental domain HeapProfiler
|
|
713
747
|
# If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken
|
714
748
|
# when the tracking is stopped.
|
715
749
|
optional boolean reportProgress
|
716
|
-
|
750
|
+
# Deprecated in favor of `exposeInternals`.
|
751
|
+
deprecated optional boolean treatGlobalObjectsAsRoots
|
717
752
|
# If true, numerical values are included in the snapshot
|
718
753
|
optional boolean captureNumericValue
|
754
|
+
# If true, exposes internals of the snapshot.
|
755
|
+
experimental optional boolean exposeInternals
|
719
756
|
|
720
757
|
command takeHeapSnapshot
|
721
758
|
parameters
|
722
759
|
# If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
|
723
760
|
optional boolean reportProgress
|
724
|
-
# If true, a raw snapshot without artificial roots will be generated
|
725
|
-
|
761
|
+
# If true, a raw snapshot without artificial roots will be generated.
|
762
|
+
# Deprecated in favor of `exposeInternals`.
|
763
|
+
deprecated optional boolean treatGlobalObjectsAsRoots
|
726
764
|
# If true, numerical values are included in the snapshot
|
727
765
|
optional boolean captureNumericValue
|
766
|
+
# If true, exposes internals of the snapshot.
|
767
|
+
experimental optional boolean exposeInternals
|
728
768
|
|
729
769
|
event addHeapSnapshotChunk
|
730
770
|
parameters
|
@@ -203,6 +203,10 @@ export namespace ProtocolMapping {
|
|
203
203
|
* Called when a pseudo element is added to an element.
|
204
204
|
*/
|
205
205
|
'DOM.pseudoElementAdded': [Protocol.DOM.PseudoElementAddedEvent];
|
206
|
+
/**
|
207
|
+
* Called when top layer elements are changed.
|
208
|
+
*/
|
209
|
+
'DOM.topLayerElementsUpdated': [];
|
206
210
|
/**
|
207
211
|
* Called when a pseudo element is removed from an element.
|
208
212
|
*/
|
@@ -795,7 +799,19 @@ export namespace ProtocolMapping {
|
|
795
799
|
returnType: void;
|
796
800
|
};
|
797
801
|
/**
|
798
|
-
* Restarts particular call frame from the beginning.
|
802
|
+
* Restarts particular call frame from the beginning. The old, deprecated
|
803
|
+
* behavior of `restartFrame` is to stay paused and allow further CDP commands
|
804
|
+
* after a restart was scheduled. This can cause problems with restarting, so
|
805
|
+
* we now continue execution immediatly after it has been scheduled until we
|
806
|
+
* reach the beginning of the restarted frame.
|
807
|
+
*
|
808
|
+
* To stay back-wards compatible, `restartFrame` now expects a `mode`
|
809
|
+
* parameter to be present. If the `mode` parameter is missing, `restartFrame`
|
810
|
+
* errors out.
|
811
|
+
*
|
812
|
+
* The various return values are deprecated and `callFrames` is always empty.
|
813
|
+
* Use the call frames from the `Debugger#paused` events instead, that fires
|
814
|
+
* once V8 pauses at the beginning of the restarted function.
|
799
815
|
*/
|
800
816
|
'Debugger.restartFrame': {
|
801
817
|
paramsType: [Protocol.Debugger.RestartFrameRequest];
|
@@ -898,6 +914,12 @@ export namespace ProtocolMapping {
|
|
898
914
|
};
|
899
915
|
/**
|
900
916
|
* Edits JavaScript source live.
|
917
|
+
*
|
918
|
+
* In general, functions that are currently on the stack can not be edited with
|
919
|
+
* a single exception: If the edited function is the top-most stack frame and
|
920
|
+
* that is the only activation of that function on the stack. In this case
|
921
|
+
* the live edit will be successful and a `Debugger.restartFrame` for the
|
922
|
+
* top-most function is automatically triggered.
|
901
923
|
*/
|
902
924
|
'Debugger.setScriptSource': {
|
903
925
|
paramsType: [Protocol.Debugger.SetScriptSourceRequest];
|
@@ -1714,6 +1736,13 @@ export namespace ProtocolMapping {
|
|
1714
1736
|
paramsType: [Protocol.CSS.SetSupportsTextRequest];
|
1715
1737
|
returnType: Protocol.CSS.SetSupportsTextResponse;
|
1716
1738
|
};
|
1739
|
+
/**
|
1740
|
+
* Modifies the expression of a scope at-rule.
|
1741
|
+
*/
|
1742
|
+
'CSS.setScopeText': {
|
1743
|
+
paramsType: [Protocol.CSS.SetScopeTextRequest];
|
1744
|
+
returnType: Protocol.CSS.SetScopeTextResponse;
|
1745
|
+
};
|
1717
1746
|
/**
|
1718
1747
|
* Modifies the rule selector.
|
1719
1748
|
*/
|
@@ -2054,6 +2083,15 @@ export namespace ProtocolMapping {
|
|
2054
2083
|
paramsType: [Protocol.DOM.QuerySelectorAllRequest];
|
2055
2084
|
returnType: Protocol.DOM.QuerySelectorAllResponse;
|
2056
2085
|
};
|
2086
|
+
/**
|
2087
|
+
* Returns NodeIds of current top layer elements.
|
2088
|
+
* Top layer is rendered closest to the user within a viewport, therefore its elements always
|
2089
|
+
* appear on top of all other content.
|
2090
|
+
*/
|
2091
|
+
'DOM.getTopLayerElements': {
|
2092
|
+
paramsType: [];
|
2093
|
+
returnType: Protocol.DOM.GetTopLayerElementsResponse;
|
2094
|
+
};
|
2057
2095
|
/**
|
2058
2096
|
* Re-does the last undone action.
|
2059
2097
|
*/
|
@@ -185,7 +185,19 @@ export namespace ProtocolProxyApi {
|
|
185
185
|
removeBreakpoint(params: Protocol.Debugger.RemoveBreakpointRequest): Promise<void>;
|
186
186
|
|
187
187
|
/**
|
188
|
-
* Restarts particular call frame from the beginning.
|
188
|
+
* Restarts particular call frame from the beginning. The old, deprecated
|
189
|
+
* behavior of `restartFrame` is to stay paused and allow further CDP commands
|
190
|
+
* after a restart was scheduled. This can cause problems with restarting, so
|
191
|
+
* we now continue execution immediatly after it has been scheduled until we
|
192
|
+
* reach the beginning of the restarted frame.
|
193
|
+
*
|
194
|
+
* To stay back-wards compatible, `restartFrame` now expects a `mode`
|
195
|
+
* parameter to be present. If the `mode` parameter is missing, `restartFrame`
|
196
|
+
* errors out.
|
197
|
+
*
|
198
|
+
* The various return values are deprecated and `callFrames` is always empty.
|
199
|
+
* Use the call frames from the `Debugger#paused` events instead, that fires
|
200
|
+
* once V8 pauses at the beginning of the restarted function.
|
189
201
|
*/
|
190
202
|
restartFrame(params: Protocol.Debugger.RestartFrameRequest): Promise<Protocol.Debugger.RestartFrameResponse>;
|
191
203
|
|
@@ -262,6 +274,12 @@ export namespace ProtocolProxyApi {
|
|
262
274
|
|
263
275
|
/**
|
264
276
|
* Edits JavaScript source live.
|
277
|
+
*
|
278
|
+
* In general, functions that are currently on the stack can not be edited with
|
279
|
+
* a single exception: If the edited function is the top-most stack frame and
|
280
|
+
* that is the only activation of that function on the stack. In this case
|
281
|
+
* the live edit will be successful and a `Debugger.restartFrame` for the
|
282
|
+
* top-most function is automatically triggered.
|
265
283
|
*/
|
266
284
|
setScriptSource(params: Protocol.Debugger.SetScriptSourceRequest): Promise<Protocol.Debugger.SetScriptSourceResponse>;
|
267
285
|
|
@@ -1021,6 +1039,11 @@ export namespace ProtocolProxyApi {
|
|
1021
1039
|
*/
|
1022
1040
|
setSupportsText(params: Protocol.CSS.SetSupportsTextRequest): Promise<Protocol.CSS.SetSupportsTextResponse>;
|
1023
1041
|
|
1042
|
+
/**
|
1043
|
+
* Modifies the expression of a scope at-rule.
|
1044
|
+
*/
|
1045
|
+
setScopeText(params: Protocol.CSS.SetScopeTextRequest): Promise<Protocol.CSS.SetScopeTextResponse>;
|
1046
|
+
|
1024
1047
|
/**
|
1025
1048
|
* Modifies the rule selector.
|
1026
1049
|
*/
|
@@ -1317,6 +1340,13 @@ export namespace ProtocolProxyApi {
|
|
1317
1340
|
*/
|
1318
1341
|
querySelectorAll(params: Protocol.DOM.QuerySelectorAllRequest): Promise<Protocol.DOM.QuerySelectorAllResponse>;
|
1319
1342
|
|
1343
|
+
/**
|
1344
|
+
* Returns NodeIds of current top layer elements.
|
1345
|
+
* Top layer is rendered closest to the user within a viewport, therefore its elements always
|
1346
|
+
* appear on top of all other content.
|
1347
|
+
*/
|
1348
|
+
getTopLayerElements(): Promise<Protocol.DOM.GetTopLayerElementsResponse>;
|
1349
|
+
|
1320
1350
|
/**
|
1321
1351
|
* Re-does the last undone action.
|
1322
1352
|
*/
|
@@ -1477,6 +1507,11 @@ export namespace ProtocolProxyApi {
|
|
1477
1507
|
*/
|
1478
1508
|
on(event: 'pseudoElementAdded', listener: (params: Protocol.DOM.PseudoElementAddedEvent) => void): void;
|
1479
1509
|
|
1510
|
+
/**
|
1511
|
+
* Called when top layer elements are changed.
|
1512
|
+
*/
|
1513
|
+
on(event: 'topLayerElementsUpdated', listener: () => void): void;
|
1514
|
+
|
1480
1515
|
/**
|
1481
1516
|
* Called when a pseudo element is removed from an element.
|
1482
1517
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -437,11 +437,20 @@ export namespace Protocol {
|
|
437
437
|
breakpointId: BreakpointId;
|
438
438
|
}
|
439
439
|
|
440
|
+
export const enum RestartFrameRequestMode {
|
441
|
+
StepInto = 'StepInto',
|
442
|
+
}
|
443
|
+
|
440
444
|
export interface RestartFrameRequest {
|
441
445
|
/**
|
442
446
|
* Call frame identifier to evaluate on.
|
443
447
|
*/
|
444
448
|
callFrameId: CallFrameId;
|
449
|
+
/**
|
450
|
+
* The `mode` parameter must be present and set to 'StepInto', otherwise
|
451
|
+
* `restartFrame` will error out. (RestartFrameRequestMode enum)
|
452
|
+
*/
|
453
|
+
mode?: ('StepInto');
|
445
454
|
}
|
446
455
|
|
447
456
|
export interface RestartFrameResponse {
|
@@ -647,6 +656,13 @@ export namespace Protocol {
|
|
647
656
|
newValue: Runtime.CallArgument;
|
648
657
|
}
|
649
658
|
|
659
|
+
export const enum SetScriptSourceResponseStatus {
|
660
|
+
Ok = 'Ok',
|
661
|
+
CompileError = 'CompileError',
|
662
|
+
BlockedByActiveGenerator = 'BlockedByActiveGenerator',
|
663
|
+
BlockedByActiveFunction = 'BlockedByActiveFunction',
|
664
|
+
}
|
665
|
+
|
650
666
|
export interface SetScriptSourceRequest {
|
651
667
|
/**
|
652
668
|
* Id of the script to edit.
|
@@ -661,6 +677,11 @@ export namespace Protocol {
|
|
661
677
|
* description without actually modifying the code.
|
662
678
|
*/
|
663
679
|
dryRun?: boolean;
|
680
|
+
/**
|
681
|
+
* If true, then `scriptSource` is allowed to change the function on top of the stack
|
682
|
+
* as long as the top-most stack frame is the only activation of that function.
|
683
|
+
*/
|
684
|
+
allowTopFrameEditing?: boolean;
|
664
685
|
}
|
665
686
|
|
666
687
|
export interface SetScriptSourceResponse {
|
@@ -681,7 +702,13 @@ export namespace Protocol {
|
|
681
702
|
*/
|
682
703
|
asyncStackTraceId?: Runtime.StackTraceId;
|
683
704
|
/**
|
684
|
-
*
|
705
|
+
* Whether the operation was successful or not. Only `Ok` denotes a
|
706
|
+
* successful live edit while the other enum variants denote why
|
707
|
+
* the live edit failed. (SetScriptSourceResponseStatus enum)
|
708
|
+
*/
|
709
|
+
status: ('Ok' | 'CompileError' | 'BlockedByActiveGenerator' | 'BlockedByActiveFunction');
|
710
|
+
/**
|
711
|
+
* Exception details if any. Only present when `status` is `CompileError`.
|
685
712
|
*/
|
686
713
|
exceptionDetails?: Runtime.ExceptionDetails;
|
687
714
|
}
|
@@ -1077,11 +1104,18 @@ export namespace Protocol {
|
|
1077
1104
|
* when the tracking is stopped.
|
1078
1105
|
*/
|
1079
1106
|
reportProgress?: boolean;
|
1107
|
+
/**
|
1108
|
+
* Deprecated in favor of `exposeInternals`.
|
1109
|
+
*/
|
1080
1110
|
treatGlobalObjectsAsRoots?: boolean;
|
1081
1111
|
/**
|
1082
1112
|
* If true, numerical values are included in the snapshot
|
1083
1113
|
*/
|
1084
1114
|
captureNumericValue?: boolean;
|
1115
|
+
/**
|
1116
|
+
* If true, exposes internals of the snapshot.
|
1117
|
+
*/
|
1118
|
+
exposeInternals?: boolean;
|
1085
1119
|
}
|
1086
1120
|
|
1087
1121
|
export interface TakeHeapSnapshotRequest {
|
@@ -1090,13 +1124,18 @@ export namespace Protocol {
|
|
1090
1124
|
*/
|
1091
1125
|
reportProgress?: boolean;
|
1092
1126
|
/**
|
1093
|
-
* If true, a raw snapshot without artificial roots will be generated
|
1127
|
+
* If true, a raw snapshot without artificial roots will be generated.
|
1128
|
+
* Deprecated in favor of `exposeInternals`.
|
1094
1129
|
*/
|
1095
1130
|
treatGlobalObjectsAsRoots?: boolean;
|
1096
1131
|
/**
|
1097
1132
|
* If true, numerical values are included in the snapshot
|
1098
1133
|
*/
|
1099
1134
|
captureNumericValue?: boolean;
|
1135
|
+
/**
|
1136
|
+
* If true, exposes internals of the snapshot.
|
1137
|
+
*/
|
1138
|
+
exposeInternals?: boolean;
|
1100
1139
|
}
|
1101
1140
|
|
1102
1141
|
export interface AddHeapSnapshotChunkEvent {
|
@@ -3334,7 +3373,7 @@ export namespace Protocol {
|
|
3334
3373
|
|
3335
3374
|
/**
|
3336
3375
|
* Details for issues around "Attribution Reporting API" usage.
|
3337
|
-
* Explainer: https://github.com/WICG/
|
3376
|
+
* Explainer: https://github.com/WICG/attribution-reporting-api
|
3338
3377
|
*/
|
3339
3378
|
export interface AttributionReportingIssueDetails {
|
3340
3379
|
violationType: AttributionReportingIssueType;
|
@@ -3378,7 +3417,7 @@ export namespace Protocol {
|
|
3378
3417
|
frameId?: Page.FrameId;
|
3379
3418
|
}
|
3380
3419
|
|
3381
|
-
export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | '
|
3420
|
+
export type DeprecationIssueType = ('AuthorizationCoveredByWildcard' | 'CanRequestURLHTTPContainingNewline' | 'ChromeLoadTimesConnectionInfo' | 'ChromeLoadTimesFirstPaintAfterLoadTime' | 'ChromeLoadTimesWasAlternateProtocolAvailable' | 'CookieWithTruncatingChar' | 'CrossOriginAccessBasedOnDocumentDomain' | 'CrossOriginWindowAlert' | 'CrossOriginWindowConfirm' | 'CSSSelectorInternalMediaControlsOverlayCastButton' | 'DeprecationExample' | 'DocumentDomainSettingWithoutOriginAgentClusterHeader' | 'EventPath' | 'GeolocationInsecureOrigin' | 'GeolocationInsecureOriginDeprecatedNotRemoved' | 'GetUserMediaInsecureOrigin' | 'HostCandidateAttributeGetter' | 'IdentityInCanMakePaymentEvent' | 'InsecurePrivateNetworkSubresourceRequest' | 'LegacyConstraintGoogIPv6' | 'LocalCSSFileExtensionRejected' | 'MediaSourceAbortRemove' | 'MediaSourceDurationTruncatingBuffered' | 'NoSysexWebMIDIWithoutPermission' | 'NotificationInsecureOrigin' | 'NotificationPermissionRequestedIframe' | 'ObsoleteWebRtcCipherSuite' | 'OpenWebDatabaseInsecureContext' | 'PictureSourceSrc' | 'PrefixedCancelAnimationFrame' | 'PrefixedRequestAnimationFrame' | 'PrefixedStorageInfo' | 'PrefixedVideoDisplayingFullscreen' | 'PrefixedVideoEnterFullscreen' | 'PrefixedVideoEnterFullScreen' | 'PrefixedVideoExitFullscreen' | 'PrefixedVideoExitFullScreen' | 'PrefixedVideoSupportsFullscreen' | 'RangeExpand' | 'RequestedSubresourceWithEmbeddedCredentials' | 'RTCConstraintEnableDtlsSrtpFalse' | 'RTCConstraintEnableDtlsSrtpTrue' | 'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics' | 'RTCPeerConnectionSdpSemanticsPlanB' | 'RtcpMuxPolicyNegotiate' | 'SharedArrayBufferConstructedWithoutIsolation' | 'TextToSpeech_DisallowedByAutoplay' | 'V8SharedArrayBufferConstructedInExtensionWithoutIsolation' | 'XHRJSONEncodingDetection' | 'XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload' | 'XRSupportsSession');
|
3382
3421
|
|
3383
3422
|
/**
|
3384
3423
|
* This issue tracks information needed to print a deprecation message.
|
@@ -4000,6 +4039,10 @@ export namespace Protocol {
|
|
4000
4039
|
* Pseudo element type.
|
4001
4040
|
*/
|
4002
4041
|
pseudoType: DOM.PseudoType;
|
4042
|
+
/**
|
4043
|
+
* Pseudo element custom ident.
|
4044
|
+
*/
|
4045
|
+
pseudoIdentifier?: string;
|
4003
4046
|
/**
|
4004
4047
|
* Matches of CSS rules applicable to the pseudo style.
|
4005
4048
|
*/
|
@@ -4194,6 +4237,11 @@ export namespace Protocol {
|
|
4194
4237
|
* with the innermost layer and going outwards.
|
4195
4238
|
*/
|
4196
4239
|
layers?: CSSLayer[];
|
4240
|
+
/**
|
4241
|
+
* @scope CSS at-rule array.
|
4242
|
+
* The array enumerates @scope at-rules starting with the innermost one, going outwards.
|
4243
|
+
*/
|
4244
|
+
scopes?: CSSScope[];
|
4197
4245
|
}
|
4198
4246
|
|
4199
4247
|
/**
|
@@ -4459,6 +4507,25 @@ export namespace Protocol {
|
|
4459
4507
|
styleSheetId?: StyleSheetId;
|
4460
4508
|
}
|
4461
4509
|
|
4510
|
+
/**
|
4511
|
+
* CSS Scope at-rule descriptor.
|
4512
|
+
*/
|
4513
|
+
export interface CSSScope {
|
4514
|
+
/**
|
4515
|
+
* Scope rule text.
|
4516
|
+
*/
|
4517
|
+
text: string;
|
4518
|
+
/**
|
4519
|
+
* The associated rule header range in the enclosing stylesheet (if
|
4520
|
+
* available).
|
4521
|
+
*/
|
4522
|
+
range?: SourceRange;
|
4523
|
+
/**
|
4524
|
+
* Identifier of the stylesheet containing this object (if exists).
|
4525
|
+
*/
|
4526
|
+
styleSheetId?: StyleSheetId;
|
4527
|
+
}
|
4528
|
+
|
4462
4529
|
/**
|
4463
4530
|
* CSS Layer at-rule descriptor.
|
4464
4531
|
*/
|
@@ -4566,6 +4633,10 @@ export namespace Protocol {
|
|
4566
4633
|
* The font-stretch.
|
4567
4634
|
*/
|
4568
4635
|
fontStretch: string;
|
4636
|
+
/**
|
4637
|
+
* The font-display.
|
4638
|
+
*/
|
4639
|
+
fontDisplay: string;
|
4569
4640
|
/**
|
4570
4641
|
* The unicode-range.
|
4571
4642
|
*/
|
@@ -4891,6 +4962,19 @@ export namespace Protocol {
|
|
4891
4962
|
supports: CSSSupports;
|
4892
4963
|
}
|
4893
4964
|
|
4965
|
+
export interface SetScopeTextRequest {
|
4966
|
+
styleSheetId: StyleSheetId;
|
4967
|
+
range: SourceRange;
|
4968
|
+
text: string;
|
4969
|
+
}
|
4970
|
+
|
4971
|
+
export interface SetScopeTextResponse {
|
4972
|
+
/**
|
4973
|
+
* The resulting CSS Scope rule after modification.
|
4974
|
+
*/
|
4975
|
+
scope: CSSScope;
|
4976
|
+
}
|
4977
|
+
|
4894
4978
|
export interface SetRuleSelectorRequest {
|
4895
4979
|
styleSheetId: StyleSheetId;
|
4896
4980
|
range: SourceRange;
|
@@ -5342,6 +5426,11 @@ export namespace Protocol {
|
|
5342
5426
|
* Pseudo element type for this node.
|
5343
5427
|
*/
|
5344
5428
|
pseudoType?: PseudoType;
|
5429
|
+
/**
|
5430
|
+
* Pseudo element identifier for this node. Only present if there is a
|
5431
|
+
* valid pseudoType.
|
5432
|
+
*/
|
5433
|
+
pseudoIdentifier?: string;
|
5345
5434
|
/**
|
5346
5435
|
* Shadow root type.
|
5347
5436
|
*/
|
@@ -5942,6 +6031,13 @@ export namespace Protocol {
|
|
5942
6031
|
nodeIds: NodeId[];
|
5943
6032
|
}
|
5944
6033
|
|
6034
|
+
export interface GetTopLayerElementsResponse {
|
6035
|
+
/**
|
6036
|
+
* NodeIds of top layer elements
|
6037
|
+
*/
|
6038
|
+
nodeIds: NodeId[];
|
6039
|
+
}
|
6040
|
+
|
5945
6041
|
export interface RemoveAttributeRequest {
|
5946
6042
|
/**
|
5947
6043
|
* Id of the element to remove attribute from.
|
@@ -6923,6 +7019,11 @@ export namespace Protocol {
|
|
6923
7019
|
* Type of a pseudo element node.
|
6924
7020
|
*/
|
6925
7021
|
pseudoType?: RareStringData;
|
7022
|
+
/**
|
7023
|
+
* Pseudo element identifier for this node. Only present if there is a
|
7024
|
+
* valid pseudoType.
|
7025
|
+
*/
|
7026
|
+
pseudoIdentifier?: RareStringData;
|
6926
7027
|
/**
|
6927
7028
|
* Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
6928
7029
|
* event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
@@ -10123,7 +10224,7 @@ export namespace Protocol {
|
|
10123
10224
|
privateNetworkRequestPolicy: PrivateNetworkRequestPolicy;
|
10124
10225
|
}
|
10125
10226
|
|
10126
|
-
export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'UnsafeNone' | 'SameOriginPlusCoep' | '
|
10227
|
+
export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'RestrictProperties' | 'UnsafeNone' | 'SameOriginPlusCoep' | 'RestrictPropertiesPlusCoep');
|
10127
10228
|
|
10128
10229
|
export interface CrossOriginOpenerPolicyStatus {
|
10129
10230
|
value: CrossOriginOpenerPolicyValue;
|
@@ -12070,6 +12171,22 @@ export namespace Protocol {
|
|
12070
12171
|
explanations?: AdFrameExplanation[];
|
12071
12172
|
}
|
12072
12173
|
|
12174
|
+
/**
|
12175
|
+
* Identifies the bottom-most script which caused the frame to be labelled
|
12176
|
+
* as an ad.
|
12177
|
+
*/
|
12178
|
+
export interface AdScriptId {
|
12179
|
+
/**
|
12180
|
+
* Script Id of the bottom-most script which caused the frame to be labelled
|
12181
|
+
* as an ad.
|
12182
|
+
*/
|
12183
|
+
scriptId: Runtime.ScriptId;
|
12184
|
+
/**
|
12185
|
+
* Id of adScriptId's debugger.
|
12186
|
+
*/
|
12187
|
+
debuggerId: Runtime.UniqueDebuggerId;
|
12188
|
+
}
|
12189
|
+
|
12073
12190
|
/**
|
12074
12191
|
* Indicates whether the frame is a secure context and why it is the case.
|
12075
12192
|
*/
|
@@ -12086,12 +12203,12 @@ export namespace Protocol {
|
|
12086
12203
|
* All Permissions Policy features. This enum should match the one defined
|
12087
12204
|
* in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
|
12088
12205
|
*/
|
12089
|
-
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'storage-access-api' | 'sync-xhr' | 'trust-token-redemption' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-placement' | 'xr-spatial-tracking');
|
12206
|
+
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'federated-credentials' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'storage-access-api' | 'sync-xhr' | 'trust-token-redemption' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-placement' | 'xr-spatial-tracking');
|
12090
12207
|
|
12091
12208
|
/**
|
12092
12209
|
* Reason for a permissions policy feature to be disabled.
|
12093
12210
|
*/
|
12094
|
-
export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute' | 'InFencedFrameTree');
|
12211
|
+
export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute' | 'InFencedFrameTree' | 'InIsolatedApp');
|
12095
12212
|
|
12096
12213
|
export interface PermissionsPolicyBlockLocator {
|
12097
12214
|
frameId: FrameId;
|
@@ -13355,14 +13472,14 @@ export namespace Protocol {
|
|
13355
13472
|
* Id of the frame containing input node.
|
13356
13473
|
*/
|
13357
13474
|
frameId: FrameId;
|
13358
|
-
/**
|
13359
|
-
* Input node id.
|
13360
|
-
*/
|
13361
|
-
backendNodeId: DOM.BackendNodeId;
|
13362
13475
|
/**
|
13363
13476
|
* Input mode. (FileChooserOpenedEventMode enum)
|
13364
13477
|
*/
|
13365
13478
|
mode: ('selectSingle' | 'selectMultiple');
|
13479
|
+
/**
|
13480
|
+
* Input node id. Only present for file choosers opened via an <input type="file"> element.
|
13481
|
+
*/
|
13482
|
+
backendNodeId?: DOM.BackendNodeId;
|
13366
13483
|
}
|
13367
13484
|
|
13368
13485
|
/**
|
@@ -13381,6 +13498,11 @@ export namespace Protocol {
|
|
13381
13498
|
* JavaScript stack trace of when frame was attached, only set if frame initiated from script.
|
13382
13499
|
*/
|
13383
13500
|
stack?: Runtime.StackTrace;
|
13501
|
+
/**
|
13502
|
+
* Identifies the bottom-most script which caused the frame to be labelled
|
13503
|
+
* as an ad. Only sent if frame is labelled as an ad and id is available.
|
13504
|
+
*/
|
13505
|
+
adScriptId?: AdScriptId;
|
13384
13506
|
}
|
13385
13507
|
|
13386
13508
|
/**
|
@@ -15157,6 +15279,11 @@ export namespace Protocol {
|
|
15157
15279
|
* Controls how the trace buffer stores data. (TraceConfigRecordMode enum)
|
15158
15280
|
*/
|
15159
15281
|
recordMode?: ('recordUntilFull' | 'recordContinuously' | 'recordAsMuchAsPossible' | 'echoToConsole');
|
15282
|
+
/**
|
15283
|
+
* Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
15284
|
+
* of 200 MB would be used.
|
15285
|
+
*/
|
15286
|
+
traceBufferSizeInKb?: number;
|
15160
15287
|
/**
|
15161
15288
|
* Turns on JavaScript stack sampling.
|
15162
15289
|
*/
|