devtools-protocol 0.0.1011700 → 0.0.1022601
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/README.md +2 -3
- package/json/browser_protocol.json +157 -10
- package/json/js_protocol.json +57 -7
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +57 -2
- package/pdl/js_protocol.pdl +22 -5
- package/types/protocol-mapping.d.ts +39 -1
- package/types/protocol-proxy-api.d.ts +36 -1
- package/types/protocol.d.ts +142 -11
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# devtools-protocol
|
1
|
+
# devtools-protocol [](https://www.npmjs.com/package/devtools-protocol)
|
2
2
|
|
3
3
|
:warning:
|
4
4
|
This repository is related to Chrome DevTools Protocol, but does not track issues regarding its definition or implementation.
|
@@ -8,5 +8,4 @@ Use the [protocol viewer](https://chromedevtools.github.io/devtools-protocol/) f
|
|
8
8
|
|
9
9
|
TypeScript definitions for the protocol's types are available in ['types/protocol.d.ts'](https://github.com/ChromeDevTools/devtools-protocol/tree/master/types). Mappings from Commands and events to these types are available in either generated `DomainApi` style in [`types/protocol-proxy-api.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-proxy-api.d.ts) or in simple name-to-type-interface style in [`types/protocol-mapping.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-mapping.d.ts).
|
10
10
|
|
11
|
-
Also, this repo is published as the [`devtools-protocol`](https://www.npmjs.com/package/devtools-protocol)
|
12
|
-

|
11
|
+
Also, this repo is published as the [`devtools-protocol`](https://www.npmjs.com/package/devtools-protocol) npm module.
|
@@ -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.",
|
@@ -3775,6 +3822,13 @@
|
|
3775
3822
|
"items": {
|
3776
3823
|
"$ref": "CSSKeyframesRule"
|
3777
3824
|
}
|
3825
|
+
},
|
3826
|
+
{
|
3827
|
+
"name": "parentLayoutNodeId",
|
3828
|
+
"description": "Id of the first parent element that does not have display: contents.",
|
3829
|
+
"experimental": true,
|
3830
|
+
"optional": true,
|
3831
|
+
"$ref": "DOM.NodeId"
|
3778
3832
|
}
|
3779
3833
|
]
|
3780
3834
|
},
|
@@ -3995,6 +4049,32 @@
|
|
3995
4049
|
}
|
3996
4050
|
]
|
3997
4051
|
},
|
4052
|
+
{
|
4053
|
+
"name": "setScopeText",
|
4054
|
+
"description": "Modifies the expression of a scope at-rule.",
|
4055
|
+
"experimental": true,
|
4056
|
+
"parameters": [
|
4057
|
+
{
|
4058
|
+
"name": "styleSheetId",
|
4059
|
+
"$ref": "StyleSheetId"
|
4060
|
+
},
|
4061
|
+
{
|
4062
|
+
"name": "range",
|
4063
|
+
"$ref": "SourceRange"
|
4064
|
+
},
|
4065
|
+
{
|
4066
|
+
"name": "text",
|
4067
|
+
"type": "string"
|
4068
|
+
}
|
4069
|
+
],
|
4070
|
+
"returns": [
|
4071
|
+
{
|
4072
|
+
"name": "scope",
|
4073
|
+
"description": "The resulting CSS Scope rule after modification.",
|
4074
|
+
"$ref": "CSSScope"
|
4075
|
+
}
|
4076
|
+
]
|
4077
|
+
},
|
3998
4078
|
{
|
3999
4079
|
"name": "setRuleSelector",
|
4000
4080
|
"description": "Modifies the rule selector.",
|
@@ -4732,6 +4812,12 @@
|
|
4732
4812
|
"optional": true,
|
4733
4813
|
"$ref": "PseudoType"
|
4734
4814
|
},
|
4815
|
+
{
|
4816
|
+
"name": "pseudoIdentifier",
|
4817
|
+
"description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
|
4818
|
+
"optional": true,
|
4819
|
+
"type": "string"
|
4820
|
+
},
|
4735
4821
|
{
|
4736
4822
|
"name": "shadowRootType",
|
4737
4823
|
"description": "Shadow root type.",
|
@@ -5620,6 +5706,21 @@
|
|
5620
5706
|
}
|
5621
5707
|
]
|
5622
5708
|
},
|
5709
|
+
{
|
5710
|
+
"name": "getTopLayerElements",
|
5711
|
+
"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.",
|
5712
|
+
"experimental": true,
|
5713
|
+
"returns": [
|
5714
|
+
{
|
5715
|
+
"name": "nodeIds",
|
5716
|
+
"description": "NodeIds of top layer elements",
|
5717
|
+
"type": "array",
|
5718
|
+
"items": {
|
5719
|
+
"$ref": "NodeId"
|
5720
|
+
}
|
5721
|
+
}
|
5722
|
+
]
|
5723
|
+
},
|
5623
5724
|
{
|
5624
5725
|
"name": "redo",
|
5625
5726
|
"description": "Re-does the last undone action.",
|
@@ -6161,6 +6262,11 @@
|
|
6161
6262
|
}
|
6162
6263
|
]
|
6163
6264
|
},
|
6265
|
+
{
|
6266
|
+
"name": "topLayerElementsUpdated",
|
6267
|
+
"description": "Called when top layer elements are changed.",
|
6268
|
+
"experimental": true
|
6269
|
+
},
|
6164
6270
|
{
|
6165
6271
|
"name": "pseudoElementRemoved",
|
6166
6272
|
"description": "Called when a pseudo element is removed from an element.",
|
@@ -7075,6 +7181,12 @@
|
|
7075
7181
|
"optional": true,
|
7076
7182
|
"$ref": "RareStringData"
|
7077
7183
|
},
|
7184
|
+
{
|
7185
|
+
"name": "pseudoIdentifier",
|
7186
|
+
"description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
|
7187
|
+
"optional": true,
|
7188
|
+
"$ref": "RareStringData"
|
7189
|
+
},
|
7078
7190
|
{
|
7079
7191
|
"name": "isClickable",
|
7080
7192
|
"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 +12179,10 @@
|
|
12067
12179
|
"enum": [
|
12068
12180
|
"SameOrigin",
|
12069
12181
|
"SameOriginAllowPopups",
|
12182
|
+
"RestrictProperties",
|
12070
12183
|
"UnsafeNone",
|
12071
12184
|
"SameOriginPlusCoep",
|
12072
|
-
"
|
12185
|
+
"RestrictPropertiesPlusCoep"
|
12073
12186
|
]
|
12074
12187
|
},
|
12075
12188
|
{
|
@@ -14961,6 +15074,24 @@
|
|
14961
15074
|
}
|
14962
15075
|
]
|
14963
15076
|
},
|
15077
|
+
{
|
15078
|
+
"id": "AdScriptId",
|
15079
|
+
"description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
|
15080
|
+
"experimental": true,
|
15081
|
+
"type": "object",
|
15082
|
+
"properties": [
|
15083
|
+
{
|
15084
|
+
"name": "scriptId",
|
15085
|
+
"description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
|
15086
|
+
"$ref": "Runtime.ScriptId"
|
15087
|
+
},
|
15088
|
+
{
|
15089
|
+
"name": "debuggerId",
|
15090
|
+
"description": "Id of adScriptId's debugger.",
|
15091
|
+
"$ref": "Runtime.UniqueDebuggerId"
|
15092
|
+
}
|
15093
|
+
]
|
15094
|
+
},
|
14964
15095
|
{
|
14965
15096
|
"id": "SecureContextType",
|
14966
15097
|
"description": "Indicates whether the frame is a secure context and why it is the case.",
|
@@ -15039,6 +15170,7 @@
|
|
15039
15170
|
"encrypted-media",
|
15040
15171
|
"execution-while-out-of-viewport",
|
15041
15172
|
"execution-while-not-rendered",
|
15173
|
+
"federated-credentials",
|
15042
15174
|
"focus-without-user-activation",
|
15043
15175
|
"fullscreen",
|
15044
15176
|
"frobulate",
|
@@ -15080,7 +15212,8 @@
|
|
15080
15212
|
"enum": [
|
15081
15213
|
"Header",
|
15082
15214
|
"IframeAttribute",
|
15083
|
-
"InFencedFrameTree"
|
15215
|
+
"InFencedFrameTree",
|
15216
|
+
"InIsolatedApp"
|
15084
15217
|
]
|
15085
15218
|
},
|
15086
15219
|
{
|
@@ -17297,12 +17430,6 @@
|
|
17297
17430
|
"experimental": true,
|
17298
17431
|
"$ref": "FrameId"
|
17299
17432
|
},
|
17300
|
-
{
|
17301
|
-
"name": "backendNodeId",
|
17302
|
-
"description": "Input node id.",
|
17303
|
-
"experimental": true,
|
17304
|
-
"$ref": "DOM.BackendNodeId"
|
17305
|
-
},
|
17306
17433
|
{
|
17307
17434
|
"name": "mode",
|
17308
17435
|
"description": "Input mode.",
|
@@ -17311,6 +17438,13 @@
|
|
17311
17438
|
"selectSingle",
|
17312
17439
|
"selectMultiple"
|
17313
17440
|
]
|
17441
|
+
},
|
17442
|
+
{
|
17443
|
+
"name": "backendNodeId",
|
17444
|
+
"description": "Input node id. Only present for file choosers opened via an <input type=\"file\"> element.",
|
17445
|
+
"experimental": true,
|
17446
|
+
"optional": true,
|
17447
|
+
"$ref": "DOM.BackendNodeId"
|
17314
17448
|
}
|
17315
17449
|
]
|
17316
17450
|
},
|
@@ -17333,6 +17467,13 @@
|
|
17333
17467
|
"description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
|
17334
17468
|
"optional": true,
|
17335
17469
|
"$ref": "Runtime.StackTrace"
|
17470
|
+
},
|
17471
|
+
{
|
17472
|
+
"name": "adScriptId",
|
17473
|
+
"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.",
|
17474
|
+
"experimental": true,
|
17475
|
+
"optional": true,
|
17476
|
+
"$ref": "AdScriptId"
|
17336
17477
|
}
|
17337
17478
|
]
|
17338
17479
|
},
|
@@ -20168,6 +20309,12 @@
|
|
20168
20309
|
"echoToConsole"
|
20169
20310
|
]
|
20170
20311
|
},
|
20312
|
+
{
|
20313
|
+
"name": "traceBufferSizeInKb",
|
20314
|
+
"description": "Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value\nof 200 MB would be used.",
|
20315
|
+
"optional": true,
|
20316
|
+
"type": "number"
|
20317
|
+
},
|
20171
20318
|
{
|
20172
20319
|
"name": "enableSampling",
|
20173
20320
|
"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.
|
@@ -1791,6 +1811,8 @@ experimental domain CSS
|
|
1791
1811
|
optional array of InheritedPseudoElementMatches inheritedPseudoElements
|
1792
1812
|
# A list of CSS keyframed animations matching this node.
|
1793
1813
|
optional array of CSSKeyframesRule cssKeyframesRules
|
1814
|
+
# Id of the first parent element that does not have display: contents.
|
1815
|
+
experimental optional DOM.NodeId parentLayoutNodeId
|
1794
1816
|
|
1795
1817
|
# Returns all media queries parsed by the rendering engine.
|
1796
1818
|
command getMediaQueries
|
@@ -1889,6 +1911,16 @@ experimental domain CSS
|
|
1889
1911
|
# The resulting CSS Supports rule after modification.
|
1890
1912
|
CSSSupports supports
|
1891
1913
|
|
1914
|
+
# Modifies the expression of a scope at-rule.
|
1915
|
+
experimental command setScopeText
|
1916
|
+
parameters
|
1917
|
+
StyleSheetId styleSheetId
|
1918
|
+
SourceRange range
|
1919
|
+
string text
|
1920
|
+
returns
|
1921
|
+
# The resulting CSS Scope rule after modification.
|
1922
|
+
CSSScope scope
|
1923
|
+
|
1892
1924
|
# Modifies the rule selector.
|
1893
1925
|
command setRuleSelector
|
1894
1926
|
parameters
|
@@ -2248,6 +2280,9 @@ domain DOM
|
|
2248
2280
|
optional string value
|
2249
2281
|
# Pseudo element type for this node.
|
2250
2282
|
optional PseudoType pseudoType
|
2283
|
+
# Pseudo element identifier for this node. Only present if there is a
|
2284
|
+
# valid pseudoType.
|
2285
|
+
optional string pseudoIdentifier
|
2251
2286
|
# Shadow root type.
|
2252
2287
|
optional ShadowRootType shadowRootType
|
2253
2288
|
# Frame ID for frame owner elements.
|
@@ -2643,6 +2678,14 @@ domain DOM
|
|
2643
2678
|
# Query selector result.
|
2644
2679
|
array of NodeId nodeIds
|
2645
2680
|
|
2681
|
+
# Returns NodeIds of current top layer elements.
|
2682
|
+
# Top layer is rendered closest to the user within a viewport, therefore its elements always
|
2683
|
+
# appear on top of all other content.
|
2684
|
+
experimental command getTopLayerElements
|
2685
|
+
returns
|
2686
|
+
# NodeIds of top layer elements
|
2687
|
+
array of NodeId nodeIds
|
2688
|
+
|
2646
2689
|
# Re-does the last undone action.
|
2647
2690
|
experimental command redo
|
2648
2691
|
|
@@ -2903,6 +2946,9 @@ domain DOM
|
|
2903
2946
|
# The added pseudo element.
|
2904
2947
|
Node pseudoElement
|
2905
2948
|
|
2949
|
+
# Called when top layer elements are changed.
|
2950
|
+
experimental event topLayerElementsUpdated
|
2951
|
+
|
2906
2952
|
# Called when a pseudo element is removed from an element.
|
2907
2953
|
experimental event pseudoElementRemoved
|
2908
2954
|
parameters
|
@@ -3280,6 +3326,9 @@ experimental domain DOMSnapshot
|
|
3280
3326
|
optional RareIntegerData contentDocumentIndex
|
3281
3327
|
# Type of a pseudo element node.
|
3282
3328
|
optional RareStringData pseudoType
|
3329
|
+
# Pseudo element identifier for this node. Only present if there is a
|
3330
|
+
# valid pseudoType.
|
3331
|
+
optional RareStringData pseudoIdentifier
|
3283
3332
|
# Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
3284
3333
|
# event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
3285
3334
|
# clicked.
|
@@ -7036,6 +7085,7 @@ domain Page
|
|
7036
7085
|
encrypted-media
|
7037
7086
|
execution-while-out-of-viewport
|
7038
7087
|
execution-while-not-rendered
|
7088
|
+
federated-credentials
|
7039
7089
|
focus-without-user-activation
|
7040
7090
|
fullscreen
|
7041
7091
|
frobulate
|
@@ -7077,6 +7127,8 @@ domain Page
|
|
7077
7127
|
IframeAttribute
|
7078
7128
|
# Inside fenced frame.
|
7079
7129
|
InFencedFrameTree
|
7130
|
+
# Inside an Isolated Application.
|
7131
|
+
InIsolatedApp
|
7080
7132
|
|
7081
7133
|
experimental type PermissionsPolicyBlockLocator extends object
|
7082
7134
|
properties
|
@@ -7982,12 +8034,12 @@ domain Page
|
|
7982
8034
|
parameters
|
7983
8035
|
# Id of the frame containing input node.
|
7984
8036
|
experimental FrameId frameId
|
7985
|
-
# Input node id.
|
7986
|
-
experimental DOM.BackendNodeId backendNodeId
|
7987
8037
|
# Input mode.
|
7988
8038
|
enum mode
|
7989
8039
|
selectSingle
|
7990
8040
|
selectMultiple
|
8041
|
+
# Input node id. Only present for file choosers opened via an <input type="file"> element.
|
8042
|
+
experimental optional DOM.BackendNodeId backendNodeId
|
7991
8043
|
|
7992
8044
|
# Fired when frame has been attached to its parent.
|
7993
8045
|
event frameAttached
|
@@ -9493,6 +9545,9 @@ experimental domain Tracing
|
|
9493
9545
|
recordContinuously
|
9494
9546
|
recordAsMuchAsPossible
|
9495
9547
|
echoToConsole
|
9548
|
+
# Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
9549
|
+
# of 200 MB would be used.
|
9550
|
+
optional number traceBufferSizeInKb
|
9496
9551
|
# Turns on JavaScript stack sampling.
|
9497
9552
|
optional boolean enableSampling
|
9498
9553
|
# Turns on system tracing.
|
package/pdl/js_protocol.pdl
CHANGED
@@ -441,6 +441,12 @@ domain Debugger
|
|
441
441
|
Runtime.CallArgument newValue
|
442
442
|
|
443
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.
|
444
450
|
command setScriptSource
|
445
451
|
parameters
|
446
452
|
# Id of the script to edit.
|
@@ -450,16 +456,27 @@ domain Debugger
|
|
450
456
|
# If true the change will not actually be applied. Dry run may be used to get result
|
451
457
|
# description without actually modifying the code.
|
452
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
|
453
462
|
returns
|
454
463
|
# New stack trace in case editing has happened while VM was stopped.
|
455
|
-
optional array of CallFrame callFrames
|
464
|
+
deprecated optional array of CallFrame callFrames
|
456
465
|
# Whether current call stack was modified after applying the changes.
|
457
|
-
optional boolean stackChanged
|
466
|
+
deprecated optional boolean stackChanged
|
458
467
|
# Async stack trace, if any.
|
459
|
-
optional Runtime.StackTrace asyncStackTrace
|
468
|
+
deprecated optional Runtime.StackTrace asyncStackTrace
|
460
469
|
# Async stack trace, if any.
|
461
|
-
|
462
|
-
#
|
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`.
|
463
480
|
optional Runtime.ExceptionDetails exceptionDetails
|
464
481
|
|
465
482
|
# Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
@@ -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
|
*/
|
@@ -4783,6 +4854,10 @@ export namespace Protocol {
|
|
4783
4854
|
* A list of CSS keyframed animations matching this node.
|
4784
4855
|
*/
|
4785
4856
|
cssKeyframesRules?: CSSKeyframesRule[];
|
4857
|
+
/**
|
4858
|
+
* Id of the first parent element that does not have display: contents.
|
4859
|
+
*/
|
4860
|
+
parentLayoutNodeId?: DOM.NodeId;
|
4786
4861
|
}
|
4787
4862
|
|
4788
4863
|
export interface GetMediaQueriesResponse {
|
@@ -4891,6 +4966,19 @@ export namespace Protocol {
|
|
4891
4966
|
supports: CSSSupports;
|
4892
4967
|
}
|
4893
4968
|
|
4969
|
+
export interface SetScopeTextRequest {
|
4970
|
+
styleSheetId: StyleSheetId;
|
4971
|
+
range: SourceRange;
|
4972
|
+
text: string;
|
4973
|
+
}
|
4974
|
+
|
4975
|
+
export interface SetScopeTextResponse {
|
4976
|
+
/**
|
4977
|
+
* The resulting CSS Scope rule after modification.
|
4978
|
+
*/
|
4979
|
+
scope: CSSScope;
|
4980
|
+
}
|
4981
|
+
|
4894
4982
|
export interface SetRuleSelectorRequest {
|
4895
4983
|
styleSheetId: StyleSheetId;
|
4896
4984
|
range: SourceRange;
|
@@ -5342,6 +5430,11 @@ export namespace Protocol {
|
|
5342
5430
|
* Pseudo element type for this node.
|
5343
5431
|
*/
|
5344
5432
|
pseudoType?: PseudoType;
|
5433
|
+
/**
|
5434
|
+
* Pseudo element identifier for this node. Only present if there is a
|
5435
|
+
* valid pseudoType.
|
5436
|
+
*/
|
5437
|
+
pseudoIdentifier?: string;
|
5345
5438
|
/**
|
5346
5439
|
* Shadow root type.
|
5347
5440
|
*/
|
@@ -5942,6 +6035,13 @@ export namespace Protocol {
|
|
5942
6035
|
nodeIds: NodeId[];
|
5943
6036
|
}
|
5944
6037
|
|
6038
|
+
export interface GetTopLayerElementsResponse {
|
6039
|
+
/**
|
6040
|
+
* NodeIds of top layer elements
|
6041
|
+
*/
|
6042
|
+
nodeIds: NodeId[];
|
6043
|
+
}
|
6044
|
+
|
5945
6045
|
export interface RemoveAttributeRequest {
|
5946
6046
|
/**
|
5947
6047
|
* Id of the element to remove attribute from.
|
@@ -6923,6 +7023,11 @@ export namespace Protocol {
|
|
6923
7023
|
* Type of a pseudo element node.
|
6924
7024
|
*/
|
6925
7025
|
pseudoType?: RareStringData;
|
7026
|
+
/**
|
7027
|
+
* Pseudo element identifier for this node. Only present if there is a
|
7028
|
+
* valid pseudoType.
|
7029
|
+
*/
|
7030
|
+
pseudoIdentifier?: RareStringData;
|
6926
7031
|
/**
|
6927
7032
|
* Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
6928
7033
|
* event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
@@ -10123,7 +10228,7 @@ export namespace Protocol {
|
|
10123
10228
|
privateNetworkRequestPolicy: PrivateNetworkRequestPolicy;
|
10124
10229
|
}
|
10125
10230
|
|
10126
|
-
export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'UnsafeNone' | 'SameOriginPlusCoep' | '
|
10231
|
+
export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'RestrictProperties' | 'UnsafeNone' | 'SameOriginPlusCoep' | 'RestrictPropertiesPlusCoep');
|
10127
10232
|
|
10128
10233
|
export interface CrossOriginOpenerPolicyStatus {
|
10129
10234
|
value: CrossOriginOpenerPolicyValue;
|
@@ -12070,6 +12175,22 @@ export namespace Protocol {
|
|
12070
12175
|
explanations?: AdFrameExplanation[];
|
12071
12176
|
}
|
12072
12177
|
|
12178
|
+
/**
|
12179
|
+
* Identifies the bottom-most script which caused the frame to be labelled
|
12180
|
+
* as an ad.
|
12181
|
+
*/
|
12182
|
+
export interface AdScriptId {
|
12183
|
+
/**
|
12184
|
+
* Script Id of the bottom-most script which caused the frame to be labelled
|
12185
|
+
* as an ad.
|
12186
|
+
*/
|
12187
|
+
scriptId: Runtime.ScriptId;
|
12188
|
+
/**
|
12189
|
+
* Id of adScriptId's debugger.
|
12190
|
+
*/
|
12191
|
+
debuggerId: Runtime.UniqueDebuggerId;
|
12192
|
+
}
|
12193
|
+
|
12073
12194
|
/**
|
12074
12195
|
* Indicates whether the frame is a secure context and why it is the case.
|
12075
12196
|
*/
|
@@ -12086,12 +12207,12 @@ export namespace Protocol {
|
|
12086
12207
|
* All Permissions Policy features. This enum should match the one defined
|
12087
12208
|
* in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
|
12088
12209
|
*/
|
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');
|
12210
|
+
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
12211
|
|
12091
12212
|
/**
|
12092
12213
|
* Reason for a permissions policy feature to be disabled.
|
12093
12214
|
*/
|
12094
|
-
export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute' | 'InFencedFrameTree');
|
12215
|
+
export type PermissionsPolicyBlockReason = ('Header' | 'IframeAttribute' | 'InFencedFrameTree' | 'InIsolatedApp');
|
12095
12216
|
|
12096
12217
|
export interface PermissionsPolicyBlockLocator {
|
12097
12218
|
frameId: FrameId;
|
@@ -13355,14 +13476,14 @@ export namespace Protocol {
|
|
13355
13476
|
* Id of the frame containing input node.
|
13356
13477
|
*/
|
13357
13478
|
frameId: FrameId;
|
13358
|
-
/**
|
13359
|
-
* Input node id.
|
13360
|
-
*/
|
13361
|
-
backendNodeId: DOM.BackendNodeId;
|
13362
13479
|
/**
|
13363
13480
|
* Input mode. (FileChooserOpenedEventMode enum)
|
13364
13481
|
*/
|
13365
13482
|
mode: ('selectSingle' | 'selectMultiple');
|
13483
|
+
/**
|
13484
|
+
* Input node id. Only present for file choosers opened via an <input type="file"> element.
|
13485
|
+
*/
|
13486
|
+
backendNodeId?: DOM.BackendNodeId;
|
13366
13487
|
}
|
13367
13488
|
|
13368
13489
|
/**
|
@@ -13381,6 +13502,11 @@ export namespace Protocol {
|
|
13381
13502
|
* JavaScript stack trace of when frame was attached, only set if frame initiated from script.
|
13382
13503
|
*/
|
13383
13504
|
stack?: Runtime.StackTrace;
|
13505
|
+
/**
|
13506
|
+
* Identifies the bottom-most script which caused the frame to be labelled
|
13507
|
+
* as an ad. Only sent if frame is labelled as an ad and id is available.
|
13508
|
+
*/
|
13509
|
+
adScriptId?: AdScriptId;
|
13384
13510
|
}
|
13385
13511
|
|
13386
13512
|
/**
|
@@ -15157,6 +15283,11 @@ export namespace Protocol {
|
|
15157
15283
|
* Controls how the trace buffer stores data. (TraceConfigRecordMode enum)
|
15158
15284
|
*/
|
15159
15285
|
recordMode?: ('recordUntilFull' | 'recordContinuously' | 'recordAsMuchAsPossible' | 'echoToConsole');
|
15286
|
+
/**
|
15287
|
+
* Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
15288
|
+
* of 200 MB would be used.
|
15289
|
+
*/
|
15290
|
+
traceBufferSizeInKb?: number;
|
15160
15291
|
/**
|
15161
15292
|
* Turns on JavaScript stack sampling.
|
15162
15293
|
*/
|