devtools-protocol 0.0.1491235 → 0.0.1495237
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 +44 -2
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +21 -3
- package/types/protocol-mapping.d.ts +3 -3
- package/types/protocol-proxy-api.d.ts +352 -3
- package/types/protocol-tests-proxy-api.d.ts +394 -45
- package/types/protocol.d.ts +861 -92
@@ -178,6 +178,9 @@ export namespace ProtocolTestsProxyApi {
|
|
178
178
|
*/
|
179
179
|
getScriptSource(params: Protocol.Debugger.GetScriptSourceRequest): Promise<{id: number, result: Protocol.Debugger.GetScriptSourceResponse, sessionId: string}>;
|
180
180
|
|
181
|
+
/**
|
182
|
+
* @experimental
|
183
|
+
*/
|
181
184
|
disassembleWasmModule(params: Protocol.Debugger.DisassembleWasmModuleRequest): Promise<{id: number, result: Protocol.Debugger.DisassembleWasmModuleResponse, sessionId: string}>;
|
182
185
|
|
183
186
|
/**
|
@@ -185,16 +188,19 @@ export namespace ProtocolTestsProxyApi {
|
|
185
188
|
* stream. If disassembly is complete, this API will invalidate the streamId
|
186
189
|
* and return an empty chunk. Any subsequent calls for the now invalid stream
|
187
190
|
* will return errors.
|
191
|
+
* @experimental
|
188
192
|
*/
|
189
193
|
nextWasmDisassemblyChunk(params: Protocol.Debugger.NextWasmDisassemblyChunkRequest): Promise<{id: number, result: Protocol.Debugger.NextWasmDisassemblyChunkResponse, sessionId: string}>;
|
190
194
|
|
191
195
|
/**
|
192
196
|
* This command is deprecated. Use getScriptSource instead.
|
197
|
+
* @deprecated
|
193
198
|
*/
|
194
199
|
getWasmBytecode(params: Protocol.Debugger.GetWasmBytecodeRequest): Promise<{id: number, result: Protocol.Debugger.GetWasmBytecodeResponse, sessionId: string}>;
|
195
200
|
|
196
201
|
/**
|
197
202
|
* Returns stack trace with given `stackTraceId`.
|
203
|
+
* @experimental
|
198
204
|
*/
|
199
205
|
getStackTrace(params: Protocol.Debugger.GetStackTraceRequest): Promise<{id: number, result: Protocol.Debugger.GetStackTraceResponse, sessionId: string}>;
|
200
206
|
|
@@ -203,6 +209,10 @@ export namespace ProtocolTestsProxyApi {
|
|
203
209
|
*/
|
204
210
|
pause(): Promise<{id: number, result: void, sessionId: string}>;
|
205
211
|
|
212
|
+
/**
|
213
|
+
* @deprecated
|
214
|
+
* @experimental
|
215
|
+
*/
|
206
216
|
pauseOnAsyncCall(params: Protocol.Debugger.PauseOnAsyncCallRequest): Promise<{id: number, result: void, sessionId: string}>;
|
207
217
|
|
208
218
|
/**
|
@@ -246,6 +256,7 @@ export namespace ProtocolTestsProxyApi {
|
|
246
256
|
* Replace previous blackbox execution contexts with passed ones. Forces backend to skip
|
247
257
|
* stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by
|
248
258
|
* performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
259
|
+
* @experimental
|
249
260
|
*/
|
250
261
|
setBlackboxExecutionContexts(params: Protocol.Debugger.SetBlackboxExecutionContextsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
251
262
|
|
@@ -253,6 +264,7 @@ export namespace ProtocolTestsProxyApi {
|
|
253
264
|
* Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in
|
254
265
|
* scripts with url matching one of the patterns. VM will try to leave blackboxed script by
|
255
266
|
* performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
267
|
+
* @experimental
|
256
268
|
*/
|
257
269
|
setBlackboxPatterns(params: Protocol.Debugger.SetBlackboxPatternsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
258
270
|
|
@@ -261,6 +273,7 @@ export namespace ProtocolTestsProxyApi {
|
|
261
273
|
* scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
262
274
|
* Positions array contains positions where blackbox state is changed. First interval isn't
|
263
275
|
* blackboxed. Array should be sorted.
|
276
|
+
* @experimental
|
264
277
|
*/
|
265
278
|
setBlackboxedRanges(params: Protocol.Debugger.SetBlackboxedRangesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
266
279
|
|
@@ -286,6 +299,7 @@ export namespace ProtocolTestsProxyApi {
|
|
286
299
|
* Sets JavaScript breakpoint before each call to the given function.
|
287
300
|
* If another function was created from the same source as a given one,
|
288
301
|
* calling it will also trigger the breakpoint.
|
302
|
+
* @experimental
|
289
303
|
*/
|
290
304
|
setBreakpointOnFunctionCall(params: Protocol.Debugger.SetBreakpointOnFunctionCallRequest): Promise<{id: number, result: Protocol.Debugger.SetBreakpointOnFunctionCallResponse, sessionId: string}>;
|
291
305
|
|
@@ -302,6 +316,7 @@ export namespace ProtocolTestsProxyApi {
|
|
302
316
|
|
303
317
|
/**
|
304
318
|
* Changes return value in top frame. Available only at return break position.
|
319
|
+
* @experimental
|
305
320
|
*/
|
306
321
|
setReturnValue(params: Protocol.Debugger.SetReturnValueRequest): Promise<{id: number, result: void, sessionId: string}>;
|
307
322
|
|
@@ -345,6 +360,7 @@ export namespace ProtocolTestsProxyApi {
|
|
345
360
|
/**
|
346
361
|
* Fired when breakpoint is resolved to an actual script and location.
|
347
362
|
* Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
363
|
+
* @deprecated
|
348
364
|
*/
|
349
365
|
onBreakpointResolved(listener: (event: { params: Protocol.Debugger.BreakpointResolvedEvent }) => void): void;
|
350
366
|
offBreakpointResolved(listener: (event: { params: Protocol.Debugger.BreakpointResolvedEvent }) => void): void;
|
@@ -360,9 +376,9 @@ export namespace ProtocolTestsProxyApi {
|
|
360
376
|
/**
|
361
377
|
* Fired when the virtual machine resumed execution.
|
362
378
|
*/
|
363
|
-
onResumed(listener: (
|
364
|
-
offResumed(listener: (
|
365
|
-
onceResumed(eventMatcher?: (
|
379
|
+
onResumed(listener: () => void): void;
|
380
|
+
offResumed(listener: () => void): void;
|
381
|
+
onceResumed(eventMatcher?: () => boolean): Promise<void>;
|
366
382
|
|
367
383
|
/**
|
368
384
|
* Fired when virtual machine fails to parse the script.
|
@@ -434,9 +450,9 @@ export namespace ProtocolTestsProxyApi {
|
|
434
450
|
offReportHeapSnapshotProgress(listener: (event: { params: Protocol.HeapProfiler.ReportHeapSnapshotProgressEvent }) => void): void;
|
435
451
|
onceReportHeapSnapshotProgress(eventMatcher?: (event: { params: Protocol.HeapProfiler.ReportHeapSnapshotProgressEvent }) => boolean): Promise<{ params: Protocol.HeapProfiler.ReportHeapSnapshotProgressEvent }>;
|
436
452
|
|
437
|
-
onResetProfiles(listener: (
|
438
|
-
offResetProfiles(listener: (
|
439
|
-
onceResetProfiles(eventMatcher?: (
|
453
|
+
onResetProfiles(listener: () => void): void;
|
454
|
+
offResetProfiles(listener: () => void): void;
|
455
|
+
onceResetProfiles(eventMatcher?: () => boolean): Promise<void>;
|
440
456
|
|
441
457
|
}
|
442
458
|
|
@@ -495,6 +511,7 @@ export namespace ProtocolTestsProxyApi {
|
|
495
511
|
* `takePreciseCoverage` for the current isolate. May only be sent if precise code
|
496
512
|
* coverage has been started. This event can be trigged by the embedder to, for example,
|
497
513
|
* trigger collection of coverage data immediately at a certain point in time.
|
514
|
+
* @experimental
|
498
515
|
*/
|
499
516
|
onPreciseCoverageDeltaUpdate(listener: (event: { params: Protocol.Profiler.PreciseCoverageDeltaUpdateEvent }) => void): void;
|
500
517
|
offPreciseCoverageDeltaUpdate(listener: (event: { params: Protocol.Profiler.PreciseCoverageDeltaUpdateEvent }) => void): void;
|
@@ -543,12 +560,14 @@ export namespace ProtocolTestsProxyApi {
|
|
543
560
|
|
544
561
|
/**
|
545
562
|
* Returns the isolate id.
|
563
|
+
* @experimental
|
546
564
|
*/
|
547
565
|
getIsolateId(): Promise<{id: number, result: Protocol.Runtime.GetIsolateIdResponse, sessionId: string}>;
|
548
566
|
|
549
567
|
/**
|
550
568
|
* Returns the JavaScript heap usage.
|
551
569
|
* It is the total usage of the corresponding isolate not scoped to a particular Runtime.
|
570
|
+
* @experimental
|
552
571
|
*/
|
553
572
|
getHeapUsage(): Promise<{id: number, result: Protocol.Runtime.GetHeapUsageResponse, sessionId: string}>;
|
554
573
|
|
@@ -590,13 +609,20 @@ export namespace ProtocolTestsProxyApi {
|
|
590
609
|
*/
|
591
610
|
setAsyncCallStackDepth(params: Protocol.Runtime.SetAsyncCallStackDepthRequest): Promise<{id: number, result: void, sessionId: string}>;
|
592
611
|
|
612
|
+
/**
|
613
|
+
* @experimental
|
614
|
+
*/
|
593
615
|
setCustomObjectFormatterEnabled(params: Protocol.Runtime.SetCustomObjectFormatterEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
594
616
|
|
617
|
+
/**
|
618
|
+
* @experimental
|
619
|
+
*/
|
595
620
|
setMaxCallStackSizeToCapture(params: Protocol.Runtime.SetMaxCallStackSizeToCaptureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
596
621
|
|
597
622
|
/**
|
598
623
|
* Terminate current or next JavaScript execution.
|
599
624
|
* Will cancel the termination when the outer-most script execution ends.
|
625
|
+
* @experimental
|
600
626
|
*/
|
601
627
|
terminateExecution(): Promise<{id: number, result: void, sessionId: string}>;
|
602
628
|
|
@@ -622,11 +648,13 @@ export namespace ProtocolTestsProxyApi {
|
|
622
648
|
* Note that the stackTrace portion of the resulting exceptionDetails will
|
623
649
|
* only be populated if the Runtime domain was enabled at the time when the
|
624
650
|
* Error was thrown.
|
651
|
+
* @experimental
|
625
652
|
*/
|
626
653
|
getExceptionDetails(params: Protocol.Runtime.GetExceptionDetailsRequest): Promise<{id: number, result: Protocol.Runtime.GetExceptionDetailsResponse, sessionId: string}>;
|
627
654
|
|
628
655
|
/**
|
629
656
|
* Notification is issued every time when binding is called.
|
657
|
+
* @experimental
|
630
658
|
*/
|
631
659
|
onBindingCalled(listener: (event: { params: Protocol.Runtime.BindingCalledEvent }) => void): void;
|
632
660
|
offBindingCalled(listener: (event: { params: Protocol.Runtime.BindingCalledEvent }) => void): void;
|
@@ -670,9 +698,9 @@ export namespace ProtocolTestsProxyApi {
|
|
670
698
|
/**
|
671
699
|
* Issued when all executionContexts were cleared in browser
|
672
700
|
*/
|
673
|
-
onExecutionContextsCleared(listener: (
|
674
|
-
offExecutionContextsCleared(listener: (
|
675
|
-
onceExecutionContextsCleared(eventMatcher?: (
|
701
|
+
onExecutionContextsCleared(listener: () => void): void;
|
702
|
+
offExecutionContextsCleared(listener: () => void): void;
|
703
|
+
onceExecutionContextsCleared(eventMatcher?: () => boolean): Promise<void>;
|
676
704
|
|
677
705
|
/**
|
678
706
|
* Issued when object should be inspected (for example, as a result of inspect() command line API
|
@@ -706,29 +734,34 @@ export namespace ProtocolTestsProxyApi {
|
|
706
734
|
|
707
735
|
/**
|
708
736
|
* Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
|
737
|
+
* @experimental
|
709
738
|
*/
|
710
739
|
getPartialAXTree(params: Protocol.Accessibility.GetPartialAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.GetPartialAXTreeResponse, sessionId: string}>;
|
711
740
|
|
712
741
|
/**
|
713
742
|
* Fetches the entire accessibility tree for the root Document
|
743
|
+
* @experimental
|
714
744
|
*/
|
715
745
|
getFullAXTree(params: Protocol.Accessibility.GetFullAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.GetFullAXTreeResponse, sessionId: string}>;
|
716
746
|
|
717
747
|
/**
|
718
748
|
* Fetches the root node.
|
719
749
|
* Requires `enable()` to have been called previously.
|
750
|
+
* @experimental
|
720
751
|
*/
|
721
752
|
getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest): Promise<{id: number, result: Protocol.Accessibility.GetRootAXNodeResponse, sessionId: string}>;
|
722
753
|
|
723
754
|
/**
|
724
755
|
* Fetches a node and all ancestors up to and including the root.
|
725
756
|
* Requires `enable()` to have been called previously.
|
757
|
+
* @experimental
|
726
758
|
*/
|
727
759
|
getAXNodeAndAncestors(params: Protocol.Accessibility.GetAXNodeAndAncestorsRequest): Promise<{id: number, result: Protocol.Accessibility.GetAXNodeAndAncestorsResponse, sessionId: string}>;
|
728
760
|
|
729
761
|
/**
|
730
762
|
* Fetches a particular accessibility node by AXNodeId.
|
731
763
|
* Requires `enable()` to have been called previously.
|
764
|
+
* @experimental
|
732
765
|
*/
|
733
766
|
getChildAXNodes(params: Protocol.Accessibility.GetChildAXNodesRequest): Promise<{id: number, result: Protocol.Accessibility.GetChildAXNodesResponse, sessionId: string}>;
|
734
767
|
|
@@ -738,12 +771,14 @@ export namespace ProtocolTestsProxyApi {
|
|
738
771
|
* ignored for accessibility, and returns those that match the specified name and role. If no DOM
|
739
772
|
* node is specified, or the DOM node does not exist, the command returns an error. If neither
|
740
773
|
* `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.
|
774
|
+
* @experimental
|
741
775
|
*/
|
742
776
|
queryAXTree(params: Protocol.Accessibility.QueryAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.QueryAXTreeResponse, sessionId: string}>;
|
743
777
|
|
744
778
|
/**
|
745
779
|
* The loadComplete event mirrors the load complete event sent by the browser to assistive
|
746
780
|
* technology when the web page has finished loading.
|
781
|
+
* @experimental
|
747
782
|
*/
|
748
783
|
onLoadComplete(listener: (event: { params: Protocol.Accessibility.LoadCompleteEvent }) => void): void;
|
749
784
|
offLoadComplete(listener: (event: { params: Protocol.Accessibility.LoadCompleteEvent }) => void): void;
|
@@ -751,6 +786,7 @@ export namespace ProtocolTestsProxyApi {
|
|
751
786
|
|
752
787
|
/**
|
753
788
|
* The nodesUpdated event is sent every time a previously requested node has changed the in tree.
|
789
|
+
* @experimental
|
754
790
|
*/
|
755
791
|
onNodesUpdated(listener: (event: { params: Protocol.Accessibility.NodesUpdatedEvent }) => void): void;
|
756
792
|
offNodesUpdated(listener: (event: { params: Protocol.Accessibility.NodesUpdatedEvent }) => void): void;
|
@@ -988,11 +1024,13 @@ export namespace ProtocolTestsProxyApi {
|
|
988
1024
|
export interface BrowserApi {
|
989
1025
|
/**
|
990
1026
|
* Set permission settings for given origin.
|
1027
|
+
* @experimental
|
991
1028
|
*/
|
992
1029
|
setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
993
1030
|
|
994
1031
|
/**
|
995
1032
|
* Grant specific permissions to the given origin and reject all others.
|
1033
|
+
* @experimental
|
996
1034
|
*/
|
997
1035
|
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
998
1036
|
|
@@ -1003,11 +1041,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1003
1041
|
|
1004
1042
|
/**
|
1005
1043
|
* Set the behavior when downloading a file.
|
1044
|
+
* @experimental
|
1006
1045
|
*/
|
1007
1046
|
setDownloadBehavior(params: Protocol.Browser.SetDownloadBehaviorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1008
1047
|
|
1009
1048
|
/**
|
1010
1049
|
* Cancel a download if in progress
|
1050
|
+
* @experimental
|
1011
1051
|
*/
|
1012
1052
|
cancelDownload(params: Protocol.Browser.CancelDownloadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1013
1053
|
|
@@ -1018,11 +1058,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1018
1058
|
|
1019
1059
|
/**
|
1020
1060
|
* Crashes browser on the main thread.
|
1061
|
+
* @experimental
|
1021
1062
|
*/
|
1022
1063
|
crash(): Promise<{id: number, result: void, sessionId: string}>;
|
1023
1064
|
|
1024
1065
|
/**
|
1025
1066
|
* Crashes GPU process.
|
1067
|
+
* @experimental
|
1026
1068
|
*/
|
1027
1069
|
crashGpuProcess(): Promise<{id: number, result: void, sessionId: string}>;
|
1028
1070
|
|
@@ -1034,46 +1076,55 @@ export namespace ProtocolTestsProxyApi {
|
|
1034
1076
|
/**
|
1035
1077
|
* Returns the command line switches for the browser process if, and only if
|
1036
1078
|
* --enable-automation is on the commandline.
|
1079
|
+
* @experimental
|
1037
1080
|
*/
|
1038
1081
|
getBrowserCommandLine(): Promise<{id: number, result: Protocol.Browser.GetBrowserCommandLineResponse, sessionId: string}>;
|
1039
1082
|
|
1040
1083
|
/**
|
1041
1084
|
* Get Chrome histograms.
|
1085
|
+
* @experimental
|
1042
1086
|
*/
|
1043
1087
|
getHistograms(params: Protocol.Browser.GetHistogramsRequest): Promise<{id: number, result: Protocol.Browser.GetHistogramsResponse, sessionId: string}>;
|
1044
1088
|
|
1045
1089
|
/**
|
1046
1090
|
* Get a Chrome histogram by name.
|
1091
|
+
* @experimental
|
1047
1092
|
*/
|
1048
1093
|
getHistogram(params: Protocol.Browser.GetHistogramRequest): Promise<{id: number, result: Protocol.Browser.GetHistogramResponse, sessionId: string}>;
|
1049
1094
|
|
1050
1095
|
/**
|
1051
1096
|
* Get position and size of the browser window.
|
1097
|
+
* @experimental
|
1052
1098
|
*/
|
1053
1099
|
getWindowBounds(params: Protocol.Browser.GetWindowBoundsRequest): Promise<{id: number, result: Protocol.Browser.GetWindowBoundsResponse, sessionId: string}>;
|
1054
1100
|
|
1055
1101
|
/**
|
1056
1102
|
* Get the browser window that contains the devtools target.
|
1103
|
+
* @experimental
|
1057
1104
|
*/
|
1058
1105
|
getWindowForTarget(params: Protocol.Browser.GetWindowForTargetRequest): Promise<{id: number, result: Protocol.Browser.GetWindowForTargetResponse, sessionId: string}>;
|
1059
1106
|
|
1060
1107
|
/**
|
1061
1108
|
* Set position and/or size of the browser window.
|
1109
|
+
* @experimental
|
1062
1110
|
*/
|
1063
1111
|
setWindowBounds(params: Protocol.Browser.SetWindowBoundsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1064
1112
|
|
1065
1113
|
/**
|
1066
1114
|
* Set size of the browser contents resizing browser window as necessary.
|
1115
|
+
* @experimental
|
1067
1116
|
*/
|
1068
1117
|
setContentsSize(params: Protocol.Browser.SetContentsSizeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1069
1118
|
|
1070
1119
|
/**
|
1071
1120
|
* Set dock tile details, platform-specific.
|
1121
|
+
* @experimental
|
1072
1122
|
*/
|
1073
1123
|
setDockTile(params: Protocol.Browser.SetDockTileRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1074
1124
|
|
1075
1125
|
/**
|
1076
1126
|
* Invoke custom browser commands used by telemetry.
|
1127
|
+
* @experimental
|
1077
1128
|
*/
|
1078
1129
|
executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1079
1130
|
|
@@ -1093,6 +1144,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1093
1144
|
|
1094
1145
|
/**
|
1095
1146
|
* Fired when page is about to start a download.
|
1147
|
+
* @experimental
|
1096
1148
|
*/
|
1097
1149
|
onDownloadWillBegin(listener: (event: { params: Protocol.Browser.DownloadWillBeginEvent }) => void): void;
|
1098
1150
|
offDownloadWillBegin(listener: (event: { params: Protocol.Browser.DownloadWillBeginEvent }) => void): void;
|
@@ -1100,6 +1152,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1100
1152
|
|
1101
1153
|
/**
|
1102
1154
|
* Fired when download makes progress. Last call has |done| == true.
|
1155
|
+
* @experimental
|
1103
1156
|
*/
|
1104
1157
|
onDownloadProgress(listener: (event: { params: Protocol.Browser.DownloadProgressEvent }) => void): void;
|
1105
1158
|
offDownloadProgress(listener: (event: { params: Protocol.Browser.DownloadProgressEvent }) => void): void;
|
@@ -1163,9 +1216,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1163
1216
|
* to the provided property syntax, the value is parsed using combined
|
1164
1217
|
* syntax as if null `propertyName` was provided. If the value cannot be
|
1165
1218
|
* resolved even then, return the provided value without any changes.
|
1219
|
+
* @experimental
|
1166
1220
|
*/
|
1167
1221
|
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>;
|
1168
1222
|
|
1223
|
+
/**
|
1224
|
+
* @experimental
|
1225
|
+
*/
|
1169
1226
|
getLonghandProperties(params: Protocol.CSS.GetLonghandPropertiesRequest): Promise<{id: number, result: Protocol.CSS.GetLonghandPropertiesResponse, sessionId: string}>;
|
1170
1227
|
|
1171
1228
|
/**
|
@@ -1177,6 +1234,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1177
1234
|
/**
|
1178
1235
|
* Returns the styles coming from animations & transitions
|
1179
1236
|
* including the animation & transition styles coming from inheritance chain.
|
1237
|
+
* @experimental
|
1180
1238
|
*/
|
1181
1239
|
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetAnimatedStylesForNodeResponse, sessionId: string}>;
|
1182
1240
|
|
@@ -1187,6 +1245,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1187
1245
|
|
1188
1246
|
/**
|
1189
1247
|
* Returns the values of the default UA-defined environment variables used in env()
|
1248
|
+
* @experimental
|
1190
1249
|
*/
|
1191
1250
|
getEnvironmentVariables(): Promise<{id: number, result: Protocol.CSS.GetEnvironmentVariablesResponse, sessionId: string}>;
|
1192
1251
|
|
@@ -1211,12 +1270,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1211
1270
|
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
1212
1271
|
* layer for the nearest ancestor document or shadow root. The layer root contains
|
1213
1272
|
* the full layer tree for the tree scope and their ordering.
|
1273
|
+
* @experimental
|
1214
1274
|
*/
|
1215
1275
|
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetLayersForNodeResponse, sessionId: string}>;
|
1216
1276
|
|
1217
1277
|
/**
|
1218
1278
|
* Given a CSS selector text and a style sheet ID, getLocationForSelector
|
1219
1279
|
* returns an array of locations of the CSS selector in the style sheet.
|
1280
|
+
* @experimental
|
1220
1281
|
*/
|
1221
1282
|
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<{id: number, result: Protocol.CSS.GetLocationForSelectorResponse, sessionId: string}>;
|
1222
1283
|
|
@@ -1227,6 +1288,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1227
1288
|
* There can only be 1 node tracked for computed style updates
|
1228
1289
|
* so passing a new node id removes tracking from the previous node.
|
1229
1290
|
* Pass `undefined` to disable tracking.
|
1291
|
+
* @experimental
|
1230
1292
|
*/
|
1231
1293
|
trackComputedStyleUpdatesForNode(params: Protocol.CSS.TrackComputedStyleUpdatesForNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1232
1294
|
|
@@ -1237,11 +1299,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1237
1299
|
* The changes to computed style properties are only tracked for nodes pushed to the front-end
|
1238
1300
|
* by the DOM agent. If no changes to the tracked properties occur after the node has been pushed
|
1239
1301
|
* to the front-end, no updates will be issued for the node.
|
1302
|
+
* @experimental
|
1240
1303
|
*/
|
1241
1304
|
trackComputedStyleUpdates(params: Protocol.CSS.TrackComputedStyleUpdatesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1242
1305
|
|
1243
1306
|
/**
|
1244
1307
|
* Polls the next batch of computed style updates.
|
1308
|
+
* @experimental
|
1245
1309
|
*/
|
1246
1310
|
takeComputedStyleUpdates(): Promise<{id: number, result: Protocol.CSS.TakeComputedStyleUpdatesResponse, sessionId: string}>;
|
1247
1311
|
|
@@ -1268,16 +1332,19 @@ export namespace ProtocolTestsProxyApi {
|
|
1268
1332
|
|
1269
1333
|
/**
|
1270
1334
|
* Modifies the expression of a container query.
|
1335
|
+
* @experimental
|
1271
1336
|
*/
|
1272
1337
|
setContainerQueryText(params: Protocol.CSS.SetContainerQueryTextRequest): Promise<{id: number, result: Protocol.CSS.SetContainerQueryTextResponse, sessionId: string}>;
|
1273
1338
|
|
1274
1339
|
/**
|
1275
1340
|
* Modifies the expression of a supports at-rule.
|
1341
|
+
* @experimental
|
1276
1342
|
*/
|
1277
1343
|
setSupportsText(params: Protocol.CSS.SetSupportsTextRequest): Promise<{id: number, result: Protocol.CSS.SetSupportsTextResponse, sessionId: string}>;
|
1278
1344
|
|
1279
1345
|
/**
|
1280
1346
|
* Modifies the expression of a scope at-rule.
|
1347
|
+
* @experimental
|
1281
1348
|
*/
|
1282
1349
|
setScopeText(params: Protocol.CSS.SetScopeTextRequest): Promise<{id: number, result: Protocol.CSS.SetScopeTextResponse, sessionId: string}>;
|
1283
1350
|
|
@@ -1315,6 +1382,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1315
1382
|
|
1316
1383
|
/**
|
1317
1384
|
* Enables/disables rendering of local CSS fonts (enabled by default).
|
1385
|
+
* @experimental
|
1318
1386
|
*/
|
1319
1387
|
setLocalFontsEnabled(params: Protocol.CSS.SetLocalFontsEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1320
1388
|
|
@@ -1330,9 +1398,9 @@ export namespace ProtocolTestsProxyApi {
|
|
1330
1398
|
* Fires whenever a MediaQuery result changes (for example, after a browser window has been
|
1331
1399
|
* resized.) The current implementation considers only viewport-dependent media features.
|
1332
1400
|
*/
|
1333
|
-
onMediaQueryResultChanged(listener: (
|
1334
|
-
offMediaQueryResultChanged(listener: (
|
1335
|
-
onceMediaQueryResultChanged(eventMatcher?: (
|
1401
|
+
onMediaQueryResultChanged(listener: () => void): void;
|
1402
|
+
offMediaQueryResultChanged(listener: () => void): void;
|
1403
|
+
onceMediaQueryResultChanged(eventMatcher?: () => boolean): Promise<void>;
|
1336
1404
|
|
1337
1405
|
/**
|
1338
1406
|
* Fired whenever an active document stylesheet is added.
|
@@ -1355,6 +1423,9 @@ export namespace ProtocolTestsProxyApi {
|
|
1355
1423
|
offStyleSheetRemoved(listener: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => void): void;
|
1356
1424
|
onceStyleSheetRemoved(eventMatcher?: (event: { params: Protocol.CSS.StyleSheetRemovedEvent }) => boolean): Promise<{ params: Protocol.CSS.StyleSheetRemovedEvent }>;
|
1357
1425
|
|
1426
|
+
/**
|
1427
|
+
* @experimental
|
1428
|
+
*/
|
1358
1429
|
onComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1359
1430
|
offComputedStyleUpdated(listener: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => void): void;
|
1360
1431
|
onceComputedStyleUpdated(eventMatcher?: (event: { params: Protocol.CSS.ComputedStyleUpdatedEvent }) => boolean): Promise<{ params: Protocol.CSS.ComputedStyleUpdatedEvent }>;
|
@@ -1446,12 +1517,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1446
1517
|
export interface DOMApi {
|
1447
1518
|
/**
|
1448
1519
|
* Collects class names for the node with given id and all of it's child nodes.
|
1520
|
+
* @experimental
|
1449
1521
|
*/
|
1450
1522
|
collectClassNamesFromSubtree(params: Protocol.DOM.CollectClassNamesFromSubtreeRequest): Promise<{id: number, result: Protocol.DOM.CollectClassNamesFromSubtreeResponse, sessionId: string}>;
|
1451
1523
|
|
1452
1524
|
/**
|
1453
1525
|
* Creates a deep copy of the specified node and places it into the target container before the
|
1454
1526
|
* given anchor.
|
1527
|
+
* @experimental
|
1455
1528
|
*/
|
1456
1529
|
copyTo(params: Protocol.DOM.CopyToRequest): Promise<{id: number, result: Protocol.DOM.CopyToResponse, sessionId: string}>;
|
1457
1530
|
|
@@ -1476,6 +1549,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1476
1549
|
/**
|
1477
1550
|
* Discards search results from the session with the given id. `getSearchResults` should no longer
|
1478
1551
|
* be called for that search.
|
1552
|
+
* @experimental
|
1479
1553
|
*/
|
1480
1554
|
discardSearchResults(params: Protocol.DOM.DiscardSearchResultsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1481
1555
|
|
@@ -1502,6 +1576,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1502
1576
|
/**
|
1503
1577
|
* Returns quads that describe node position on the page. This method
|
1504
1578
|
* might return multiple quads for inline nodes.
|
1579
|
+
* @experimental
|
1505
1580
|
*/
|
1506
1581
|
getContentQuads(params: Protocol.DOM.GetContentQuadsRequest): Promise<{id: number, result: Protocol.DOM.GetContentQuadsResponse, sessionId: string}>;
|
1507
1582
|
|
@@ -1515,11 +1590,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1515
1590
|
* Returns the root DOM node (and optionally the subtree) to the caller.
|
1516
1591
|
* Deprecated, as it is not designed to work well with the rest of the DOM agent.
|
1517
1592
|
* Use DOMSnapshot.captureSnapshot instead.
|
1593
|
+
* @deprecated
|
1518
1594
|
*/
|
1519
1595
|
getFlattenedDocument(params: Protocol.DOM.GetFlattenedDocumentRequest): Promise<{id: number, result: Protocol.DOM.GetFlattenedDocumentResponse, sessionId: string}>;
|
1520
1596
|
|
1521
1597
|
/**
|
1522
1598
|
* Finds nodes with a given computed style in a subtree.
|
1599
|
+
* @experimental
|
1523
1600
|
*/
|
1524
1601
|
getNodesForSubtreeByStyle(params: Protocol.DOM.GetNodesForSubtreeByStyleRequest): Promise<{id: number, result: Protocol.DOM.GetNodesForSubtreeByStyleResponse, sessionId: string}>;
|
1525
1602
|
|
@@ -1536,12 +1613,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1536
1613
|
|
1537
1614
|
/**
|
1538
1615
|
* Returns the id of the nearest ancestor that is a relayout boundary.
|
1616
|
+
* @experimental
|
1539
1617
|
*/
|
1540
1618
|
getRelayoutBoundary(params: Protocol.DOM.GetRelayoutBoundaryRequest): Promise<{id: number, result: Protocol.DOM.GetRelayoutBoundaryResponse, sessionId: string}>;
|
1541
1619
|
|
1542
1620
|
/**
|
1543
1621
|
* Returns search results from given `fromIndex` to given `toIndex` from the search with the given
|
1544
1622
|
* identifier.
|
1623
|
+
* @experimental
|
1545
1624
|
*/
|
1546
1625
|
getSearchResults(params: Protocol.DOM.GetSearchResultsRequest): Promise<{id: number, result: Protocol.DOM.GetSearchResultsResponse, sessionId: string}>;
|
1547
1626
|
|
@@ -1562,6 +1641,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1562
1641
|
|
1563
1642
|
/**
|
1564
1643
|
* Marks last undoable state.
|
1644
|
+
* @experimental
|
1565
1645
|
*/
|
1566
1646
|
markUndoableState(): Promise<{id: number, result: void, sessionId: string}>;
|
1567
1647
|
|
@@ -1573,16 +1653,19 @@ export namespace ProtocolTestsProxyApi {
|
|
1573
1653
|
/**
|
1574
1654
|
* Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or
|
1575
1655
|
* `cancelSearch` to end this search session.
|
1656
|
+
* @experimental
|
1576
1657
|
*/
|
1577
1658
|
performSearch(params: Protocol.DOM.PerformSearchRequest): Promise<{id: number, result: Protocol.DOM.PerformSearchResponse, sessionId: string}>;
|
1578
1659
|
|
1579
1660
|
/**
|
1580
1661
|
* Requests that the node is sent to the caller given its path. // FIXME, use XPath
|
1662
|
+
* @experimental
|
1581
1663
|
*/
|
1582
1664
|
pushNodeByPathToFrontend(params: Protocol.DOM.PushNodeByPathToFrontendRequest): Promise<{id: number, result: Protocol.DOM.PushNodeByPathToFrontendResponse, sessionId: string}>;
|
1583
1665
|
|
1584
1666
|
/**
|
1585
1667
|
* Requests that a batch of nodes is sent to the caller given their backend node ids.
|
1668
|
+
* @experimental
|
1586
1669
|
*/
|
1587
1670
|
pushNodesByBackendIdsToFrontend(params: Protocol.DOM.PushNodesByBackendIdsToFrontendRequest): Promise<{id: number, result: Protocol.DOM.PushNodesByBackendIdsToFrontendResponse, sessionId: string}>;
|
1588
1671
|
|
@@ -1600,16 +1683,19 @@ export namespace ProtocolTestsProxyApi {
|
|
1600
1683
|
* Returns NodeIds of current top layer elements.
|
1601
1684
|
* Top layer is rendered closest to the user within a viewport, therefore its elements always
|
1602
1685
|
* appear on top of all other content.
|
1686
|
+
* @experimental
|
1603
1687
|
*/
|
1604
1688
|
getTopLayerElements(): Promise<{id: number, result: Protocol.DOM.GetTopLayerElementsResponse, sessionId: string}>;
|
1605
1689
|
|
1606
1690
|
/**
|
1607
1691
|
* Returns the NodeId of the matched element according to certain relations.
|
1692
|
+
* @experimental
|
1608
1693
|
*/
|
1609
1694
|
getElementByRelation(params: Protocol.DOM.GetElementByRelationRequest): Promise<{id: number, result: Protocol.DOM.GetElementByRelationResponse, sessionId: string}>;
|
1610
1695
|
|
1611
1696
|
/**
|
1612
1697
|
* Re-does the last undone action.
|
1698
|
+
* @experimental
|
1613
1699
|
*/
|
1614
1700
|
redo(): Promise<{id: number, result: void, sessionId: string}>;
|
1615
1701
|
|
@@ -1660,28 +1746,33 @@ export namespace ProtocolTestsProxyApi {
|
|
1660
1746
|
|
1661
1747
|
/**
|
1662
1748
|
* Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.
|
1749
|
+
* @experimental
|
1663
1750
|
*/
|
1664
1751
|
setNodeStackTracesEnabled(params: Protocol.DOM.SetNodeStackTracesEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1665
1752
|
|
1666
1753
|
/**
|
1667
1754
|
* Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
|
1755
|
+
* @experimental
|
1668
1756
|
*/
|
1669
1757
|
getNodeStackTraces(params: Protocol.DOM.GetNodeStackTracesRequest): Promise<{id: number, result: Protocol.DOM.GetNodeStackTracesResponse, sessionId: string}>;
|
1670
1758
|
|
1671
1759
|
/**
|
1672
1760
|
* Returns file information for the given
|
1673
1761
|
* File wrapper.
|
1762
|
+
* @experimental
|
1674
1763
|
*/
|
1675
1764
|
getFileInfo(params: Protocol.DOM.GetFileInfoRequest): Promise<{id: number, result: Protocol.DOM.GetFileInfoResponse, sessionId: string}>;
|
1676
1765
|
|
1677
1766
|
/**
|
1678
1767
|
* Returns list of detached nodes
|
1768
|
+
* @experimental
|
1679
1769
|
*/
|
1680
1770
|
getDetachedDomNodes(): Promise<{id: number, result: Protocol.DOM.GetDetachedDomNodesResponse, sessionId: string}>;
|
1681
1771
|
|
1682
1772
|
/**
|
1683
1773
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details
|
1684
1774
|
* $x functions).
|
1775
|
+
* @experimental
|
1685
1776
|
*/
|
1686
1777
|
setInspectedNode(params: Protocol.DOM.SetInspectedNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1687
1778
|
|
@@ -1702,38 +1793,44 @@ export namespace ProtocolTestsProxyApi {
|
|
1702
1793
|
|
1703
1794
|
/**
|
1704
1795
|
* Undoes the last performed action.
|
1796
|
+
* @experimental
|
1705
1797
|
*/
|
1706
1798
|
undo(): Promise<{id: number, result: void, sessionId: string}>;
|
1707
1799
|
|
1708
1800
|
/**
|
1709
1801
|
* Returns iframe node that owns iframe with the given domain.
|
1802
|
+
* @experimental
|
1710
1803
|
*/
|
1711
1804
|
getFrameOwner(params: Protocol.DOM.GetFrameOwnerRequest): Promise<{id: number, result: Protocol.DOM.GetFrameOwnerResponse, sessionId: string}>;
|
1712
1805
|
|
1713
1806
|
/**
|
1714
1807
|
* Returns the query container of the given node based on container query
|
1715
1808
|
* conditions: containerName, physical and logical axes, and whether it queries
|
1716
|
-
* scroll-state. If no axes are provided and
|
1717
|
-
* style container is returned, which is the
|
1718
|
-
* element with a matching container-name.
|
1809
|
+
* scroll-state or anchored elements. If no axes are provided and
|
1810
|
+
* queriesScrollState is false, the style container is returned, which is the
|
1811
|
+
* direct parent or the closest element with a matching container-name.
|
1812
|
+
* @experimental
|
1719
1813
|
*/
|
1720
1814
|
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<{id: number, result: Protocol.DOM.GetContainerForNodeResponse, sessionId: string}>;
|
1721
1815
|
|
1722
1816
|
/**
|
1723
1817
|
* Returns the descendants of a container query container that have
|
1724
1818
|
* container queries against this container.
|
1819
|
+
* @experimental
|
1725
1820
|
*/
|
1726
1821
|
getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<{id: number, result: Protocol.DOM.GetQueryingDescendantsForContainerResponse, sessionId: string}>;
|
1727
1822
|
|
1728
1823
|
/**
|
1729
1824
|
* Returns the target anchor element of the given anchor query according to
|
1730
1825
|
* https://www.w3.org/TR/css-anchor-position-1/#target.
|
1826
|
+
* @experimental
|
1731
1827
|
*/
|
1732
1828
|
getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<{id: number, result: Protocol.DOM.GetAnchorElementResponse, sessionId: string}>;
|
1733
1829
|
|
1734
1830
|
/**
|
1735
1831
|
* When enabling, this API force-opens the popover identified by nodeId
|
1736
1832
|
* and keeps it open until disabled.
|
1833
|
+
* @experimental
|
1737
1834
|
*/
|
1738
1835
|
forceShowPopover(params: Protocol.DOM.ForceShowPopoverRequest): Promise<{id: number, result: Protocol.DOM.ForceShowPopoverResponse, sessionId: string}>;
|
1739
1836
|
|
@@ -1781,6 +1878,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1781
1878
|
|
1782
1879
|
/**
|
1783
1880
|
* Called when distribution is changed.
|
1881
|
+
* @experimental
|
1784
1882
|
*/
|
1785
1883
|
onDistributedNodesUpdated(listener: (event: { params: Protocol.DOM.DistributedNodesUpdatedEvent }) => void): void;
|
1786
1884
|
offDistributedNodesUpdated(listener: (event: { params: Protocol.DOM.DistributedNodesUpdatedEvent }) => void): void;
|
@@ -1789,12 +1887,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1789
1887
|
/**
|
1790
1888
|
* Fired when `Document` has been totally updated. Node ids are no longer valid.
|
1791
1889
|
*/
|
1792
|
-
onDocumentUpdated(listener: (
|
1793
|
-
offDocumentUpdated(listener: (
|
1794
|
-
onceDocumentUpdated(eventMatcher?: (
|
1890
|
+
onDocumentUpdated(listener: () => void): void;
|
1891
|
+
offDocumentUpdated(listener: () => void): void;
|
1892
|
+
onceDocumentUpdated(eventMatcher?: () => boolean): Promise<void>;
|
1795
1893
|
|
1796
1894
|
/**
|
1797
1895
|
* Fired when `Element`'s inline style is modified via a CSS property modification.
|
1896
|
+
* @experimental
|
1798
1897
|
*/
|
1799
1898
|
onInlineStyleInvalidated(listener: (event: { params: Protocol.DOM.InlineStyleInvalidatedEvent }) => void): void;
|
1800
1899
|
offInlineStyleInvalidated(listener: (event: { params: Protocol.DOM.InlineStyleInvalidatedEvent }) => void): void;
|
@@ -1802,6 +1901,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1802
1901
|
|
1803
1902
|
/**
|
1804
1903
|
* Called when a pseudo element is added to an element.
|
1904
|
+
* @experimental
|
1805
1905
|
*/
|
1806
1906
|
onPseudoElementAdded(listener: (event: { params: Protocol.DOM.PseudoElementAddedEvent }) => void): void;
|
1807
1907
|
offPseudoElementAdded(listener: (event: { params: Protocol.DOM.PseudoElementAddedEvent }) => void): void;
|
@@ -1809,13 +1909,15 @@ export namespace ProtocolTestsProxyApi {
|
|
1809
1909
|
|
1810
1910
|
/**
|
1811
1911
|
* Called when top layer elements are changed.
|
1912
|
+
* @experimental
|
1812
1913
|
*/
|
1813
|
-
onTopLayerElementsUpdated(listener: (
|
1814
|
-
offTopLayerElementsUpdated(listener: (
|
1815
|
-
onceTopLayerElementsUpdated(eventMatcher?: (
|
1914
|
+
onTopLayerElementsUpdated(listener: () => void): void;
|
1915
|
+
offTopLayerElementsUpdated(listener: () => void): void;
|
1916
|
+
onceTopLayerElementsUpdated(eventMatcher?: () => boolean): Promise<void>;
|
1816
1917
|
|
1817
1918
|
/**
|
1818
1919
|
* Fired when a node's scrollability state changes.
|
1920
|
+
* @experimental
|
1819
1921
|
*/
|
1820
1922
|
onScrollableFlagUpdated(listener: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => void): void;
|
1821
1923
|
offScrollableFlagUpdated(listener: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => void): void;
|
@@ -1823,6 +1925,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1823
1925
|
|
1824
1926
|
/**
|
1825
1927
|
* Called when a pseudo element is removed from an element.
|
1928
|
+
* @experimental
|
1826
1929
|
*/
|
1827
1930
|
onPseudoElementRemoved(listener: (event: { params: Protocol.DOM.PseudoElementRemovedEvent }) => void): void;
|
1828
1931
|
offPseudoElementRemoved(listener: (event: { params: Protocol.DOM.PseudoElementRemovedEvent }) => void): void;
|
@@ -1838,6 +1941,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1838
1941
|
|
1839
1942
|
/**
|
1840
1943
|
* Called when shadow root is popped from the element.
|
1944
|
+
* @experimental
|
1841
1945
|
*/
|
1842
1946
|
onShadowRootPopped(listener: (event: { params: Protocol.DOM.ShadowRootPoppedEvent }) => void): void;
|
1843
1947
|
offShadowRootPopped(listener: (event: { params: Protocol.DOM.ShadowRootPoppedEvent }) => void): void;
|
@@ -1845,6 +1949,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1845
1949
|
|
1846
1950
|
/**
|
1847
1951
|
* Called when shadow root is pushed into the element.
|
1952
|
+
* @experimental
|
1848
1953
|
*/
|
1849
1954
|
onShadowRootPushed(listener: (event: { params: Protocol.DOM.ShadowRootPushedEvent }) => void): void;
|
1850
1955
|
offShadowRootPushed(listener: (event: { params: Protocol.DOM.ShadowRootPushedEvent }) => void): void;
|
@@ -1870,6 +1975,8 @@ export namespace ProtocolTestsProxyApi {
|
|
1870
1975
|
|
1871
1976
|
/**
|
1872
1977
|
* Removes breakpoint on particular native event.
|
1978
|
+
* @deprecated
|
1979
|
+
* @experimental
|
1873
1980
|
*/
|
1874
1981
|
removeInstrumentationBreakpoint(params: Protocol.DOMDebugger.RemoveInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1875
1982
|
|
@@ -1880,6 +1987,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1880
1987
|
|
1881
1988
|
/**
|
1882
1989
|
* Sets breakpoint on particular CSP violations.
|
1990
|
+
* @experimental
|
1883
1991
|
*/
|
1884
1992
|
setBreakOnCSPViolation(params: Protocol.DOMDebugger.SetBreakOnCSPViolationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1885
1993
|
|
@@ -1895,6 +2003,8 @@ export namespace ProtocolTestsProxyApi {
|
|
1895
2003
|
|
1896
2004
|
/**
|
1897
2005
|
* Sets breakpoint on particular native event.
|
2006
|
+
* @deprecated
|
2007
|
+
* @experimental
|
1898
2008
|
*/
|
1899
2009
|
setInstrumentationBreakpoint(params: Protocol.DOMDebugger.SetInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1900
2010
|
|
@@ -1939,6 +2049,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1939
2049
|
* template contents, and imported documents) in a flattened array, as well as layout and
|
1940
2050
|
* white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
|
1941
2051
|
* flattened.
|
2052
|
+
* @deprecated
|
1942
2053
|
*/
|
1943
2054
|
getSnapshot(params: Protocol.DOMSnapshot.GetSnapshotRequest): Promise<{id: number, result: Protocol.DOMSnapshot.GetSnapshotResponse, sessionId: string}>;
|
1944
2055
|
|
@@ -2005,6 +2116,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2005
2116
|
export interface EmulationApi {
|
2006
2117
|
/**
|
2007
2118
|
* Tells whether emulation is supported.
|
2119
|
+
* @deprecated
|
2008
2120
|
*/
|
2009
2121
|
canEmulate(): Promise<{id: number, result: Protocol.Emulation.CanEmulateResponse, sessionId: string}>;
|
2010
2122
|
|
@@ -2020,16 +2132,19 @@ export namespace ProtocolTestsProxyApi {
|
|
2020
2132
|
|
2021
2133
|
/**
|
2022
2134
|
* Requests that page scale factor is reset to initial values.
|
2135
|
+
* @experimental
|
2023
2136
|
*/
|
2024
2137
|
resetPageScaleFactor(): Promise<{id: number, result: void, sessionId: string}>;
|
2025
2138
|
|
2026
2139
|
/**
|
2027
2140
|
* Enables or disables simulating a focused and active page.
|
2141
|
+
* @experimental
|
2028
2142
|
*/
|
2029
2143
|
setFocusEmulationEnabled(params: Protocol.Emulation.SetFocusEmulationEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2030
2144
|
|
2031
2145
|
/**
|
2032
2146
|
* Automatically render all web contents using a dark theme.
|
2147
|
+
* @experimental
|
2033
2148
|
*/
|
2034
2149
|
setAutoDarkModeOverride(params: Protocol.Emulation.SetAutoDarkModeOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2035
2150
|
|
@@ -2047,6 +2162,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2047
2162
|
/**
|
2048
2163
|
* Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
2049
2164
|
* respective variables to be undefined, even if previously overridden.
|
2165
|
+
* @experimental
|
2050
2166
|
*/
|
2051
2167
|
setSafeAreaInsetsOverride(params: Protocol.Emulation.SetSafeAreaInsetsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2052
2168
|
|
@@ -2060,6 +2176,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2060
2176
|
/**
|
2061
2177
|
* Start reporting the given posture value to the Device Posture API.
|
2062
2178
|
* This override can also be set in setDeviceMetricsOverride().
|
2179
|
+
* @experimental
|
2063
2180
|
*/
|
2064
2181
|
setDevicePostureOverride(params: Protocol.Emulation.SetDevicePostureOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2065
2182
|
|
@@ -2068,12 +2185,14 @@ export namespace ProtocolTestsProxyApi {
|
|
2068
2185
|
* or setDevicePostureOverride() and starts using posture information from the
|
2069
2186
|
* platform again.
|
2070
2187
|
* Does nothing if no override is set.
|
2188
|
+
* @experimental
|
2071
2189
|
*/
|
2072
2190
|
clearDevicePostureOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2073
2191
|
|
2074
2192
|
/**
|
2075
2193
|
* Start using the given display features to pupulate the Viewport Segments API.
|
2076
2194
|
* This override can also be set in setDeviceMetricsOverride().
|
2195
|
+
* @experimental
|
2077
2196
|
*/
|
2078
2197
|
setDisplayFeaturesOverride(params: Protocol.Emulation.SetDisplayFeaturesOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2079
2198
|
|
@@ -2082,13 +2201,23 @@ export namespace ProtocolTestsProxyApi {
|
|
2082
2201
|
* or setDisplayFeaturesOverride() and starts using display features from the
|
2083
2202
|
* platform again.
|
2084
2203
|
* Does nothing if no override is set.
|
2204
|
+
* @experimental
|
2085
2205
|
*/
|
2086
2206
|
clearDisplayFeaturesOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2087
2207
|
|
2208
|
+
/**
|
2209
|
+
* @experimental
|
2210
|
+
*/
|
2088
2211
|
setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2089
2212
|
|
2213
|
+
/**
|
2214
|
+
* @experimental
|
2215
|
+
*/
|
2090
2216
|
setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2091
2217
|
|
2218
|
+
/**
|
2219
|
+
* @experimental
|
2220
|
+
*/
|
2092
2221
|
setEmitTouchEventsForMouse(params: Protocol.Emulation.SetEmitTouchEventsForMouseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2093
2222
|
|
2094
2223
|
/**
|
@@ -2112,6 +2241,9 @@ export namespace ProtocolTestsProxyApi {
|
|
2112
2241
|
*/
|
2113
2242
|
setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2114
2243
|
|
2244
|
+
/**
|
2245
|
+
* @experimental
|
2246
|
+
*/
|
2115
2247
|
getOverriddenSensorInformation(params: Protocol.Emulation.GetOverriddenSensorInformationRequest): Promise<{id: number, result: Protocol.Emulation.GetOverriddenSensorInformationResponse, sessionId: string}>;
|
2116
2248
|
|
2117
2249
|
/**
|
@@ -2120,12 +2252,14 @@ export namespace ProtocolTestsProxyApi {
|
|
2120
2252
|
* data from a real hardware sensor. Otherwise, existing virtual
|
2121
2253
|
* sensor-backend Sensor objects will fire an error event and new calls to
|
2122
2254
|
* Sensor.start() will attempt to use a real sensor instead.
|
2255
|
+
* @experimental
|
2123
2256
|
*/
|
2124
2257
|
setSensorOverrideEnabled(params: Protocol.Emulation.SetSensorOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2125
2258
|
|
2126
2259
|
/**
|
2127
2260
|
* Updates the sensor readings reported by a sensor type previously overridden
|
2128
2261
|
* by setSensorOverrideEnabled.
|
2262
|
+
* @experimental
|
2129
2263
|
*/
|
2130
2264
|
setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2131
2265
|
|
@@ -2134,6 +2268,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2134
2268
|
* Pressure API, so that updates to PressureObserver.observe() are provided
|
2135
2269
|
* via setPressureStateOverride instead of being retrieved from
|
2136
2270
|
* platform-provided telemetry data.
|
2271
|
+
* @experimental
|
2137
2272
|
*/
|
2138
2273
|
setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2139
2274
|
|
@@ -2142,6 +2277,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2142
2277
|
* Provides a given pressure state that will be processed and eventually be
|
2143
2278
|
* delivered to PressureObserver users. |source| must have been previously
|
2144
2279
|
* overridden by setPressureSourceOverrideEnabled.
|
2280
|
+
* @experimental
|
2145
2281
|
*/
|
2146
2282
|
setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2147
2283
|
|
@@ -2149,6 +2285,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2149
2285
|
* Provides a given pressure data set that will be processed and eventually be
|
2150
2286
|
* delivered to PressureObserver users. |source| must have been previously
|
2151
2287
|
* overridden by setPressureSourceOverrideEnabled.
|
2288
|
+
* @experimental
|
2152
2289
|
*/
|
2153
2290
|
setPressureDataOverride(params: Protocol.Emulation.SetPressureDataOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2154
2291
|
|
@@ -2164,11 +2301,14 @@ export namespace ProtocolTestsProxyApi {
|
|
2164
2301
|
|
2165
2302
|
/**
|
2166
2303
|
* Overrides value returned by the javascript navigator object.
|
2304
|
+
* @deprecated
|
2305
|
+
* @experimental
|
2167
2306
|
*/
|
2168
2307
|
setNavigatorOverrides(params: Protocol.Emulation.SetNavigatorOverridesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2169
2308
|
|
2170
2309
|
/**
|
2171
2310
|
* Sets a specified page scale factor.
|
2311
|
+
* @experimental
|
2172
2312
|
*/
|
2173
2313
|
setPageScaleFactor(params: Protocol.Emulation.SetPageScaleFactorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2174
2314
|
|
@@ -2185,11 +2325,13 @@ export namespace ProtocolTestsProxyApi {
|
|
2185
2325
|
/**
|
2186
2326
|
* Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets
|
2187
2327
|
* the current virtual time policy. Note this supersedes any previous time budget.
|
2328
|
+
* @experimental
|
2188
2329
|
*/
|
2189
2330
|
setVirtualTimePolicy(params: Protocol.Emulation.SetVirtualTimePolicyRequest): Promise<{id: number, result: Protocol.Emulation.SetVirtualTimePolicyResponse, sessionId: string}>;
|
2190
2331
|
|
2191
2332
|
/**
|
2192
2333
|
* Overrides default host system locale with the specified one.
|
2334
|
+
* @experimental
|
2193
2335
|
*/
|
2194
2336
|
setLocaleOverride(params: Protocol.Emulation.SetLocaleOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2195
2337
|
|
@@ -2202,16 +2344,25 @@ export namespace ProtocolTestsProxyApi {
|
|
2202
2344
|
* Resizes the frame/viewport of the page. Note that this does not affect the frame's container
|
2203
2345
|
* (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported
|
2204
2346
|
* on Android.
|
2347
|
+
* @deprecated
|
2348
|
+
* @experimental
|
2205
2349
|
*/
|
2206
2350
|
setVisibleSize(params: Protocol.Emulation.SetVisibleSizeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2207
2351
|
|
2352
|
+
/**
|
2353
|
+
* @experimental
|
2354
|
+
*/
|
2208
2355
|
setDisabledImageTypes(params: Protocol.Emulation.SetDisabledImageTypesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2209
2356
|
|
2210
2357
|
/**
|
2211
2358
|
* Override the value of navigator.connection.saveData
|
2359
|
+
* @experimental
|
2212
2360
|
*/
|
2213
2361
|
setDataSaverOverride(params: Protocol.Emulation.SetDataSaverOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2214
2362
|
|
2363
|
+
/**
|
2364
|
+
* @experimental
|
2365
|
+
*/
|
2215
2366
|
setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2216
2367
|
|
2217
2368
|
/**
|
@@ -2222,21 +2373,24 @@ export namespace ProtocolTestsProxyApi {
|
|
2222
2373
|
|
2223
2374
|
/**
|
2224
2375
|
* Allows overriding the automation flag.
|
2376
|
+
* @experimental
|
2225
2377
|
*/
|
2226
2378
|
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2227
2379
|
|
2228
2380
|
/**
|
2229
2381
|
* Allows overriding the difference between the small and large viewport sizes, which determine the
|
2230
2382
|
* value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
|
2383
|
+
* @experimental
|
2231
2384
|
*/
|
2232
2385
|
setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2233
2386
|
|
2234
2387
|
/**
|
2235
2388
|
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
|
2389
|
+
* @experimental
|
2236
2390
|
*/
|
2237
|
-
onVirtualTimeBudgetExpired(listener: (
|
2238
|
-
offVirtualTimeBudgetExpired(listener: (
|
2239
|
-
onceVirtualTimeBudgetExpired(eventMatcher?: (
|
2391
|
+
onVirtualTimeBudgetExpired(listener: () => void): void;
|
2392
|
+
offVirtualTimeBudgetExpired(listener: () => void): void;
|
2393
|
+
onceVirtualTimeBudgetExpired(eventMatcher?: () => boolean): Promise<void>;
|
2240
2394
|
|
2241
2395
|
}
|
2242
2396
|
|
@@ -2251,11 +2405,13 @@ export namespace ProtocolTestsProxyApi {
|
|
2251
2405
|
|
2252
2406
|
/**
|
2253
2407
|
* Disables headless events for the target.
|
2408
|
+
* @deprecated
|
2254
2409
|
*/
|
2255
2410
|
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2256
2411
|
|
2257
2412
|
/**
|
2258
2413
|
* Enables headless events for the target.
|
2414
|
+
* @deprecated
|
2259
2415
|
*/
|
2260
2416
|
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2261
2417
|
|
@@ -2335,6 +2491,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2335
2491
|
export interface InputApi {
|
2336
2492
|
/**
|
2337
2493
|
* Dispatches a drag event into the page.
|
2494
|
+
* @experimental
|
2338
2495
|
*/
|
2339
2496
|
dispatchDragEvent(params: Protocol.Input.DispatchDragEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2340
2497
|
|
@@ -2346,6 +2503,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2346
2503
|
/**
|
2347
2504
|
* This method emulates inserting text that doesn't come from a key press,
|
2348
2505
|
* for example an emoji keyboard or an IME.
|
2506
|
+
* @experimental
|
2349
2507
|
*/
|
2350
2508
|
insertText(params: Protocol.Input.InsertTextRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2351
2509
|
|
@@ -2353,6 +2511,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2353
2511
|
* This method sets the current candidate text for IME.
|
2354
2512
|
* Use imeCommitComposition to commit the final text.
|
2355
2513
|
* Use imeSetComposition with empty string as text to cancel composition.
|
2514
|
+
* @experimental
|
2356
2515
|
*/
|
2357
2516
|
imeSetComposition(params: Protocol.Input.ImeSetCompositionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2358
2517
|
|
@@ -2373,6 +2532,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2373
2532
|
|
2374
2533
|
/**
|
2375
2534
|
* Emulates touch event from the mouse event parameters.
|
2535
|
+
* @experimental
|
2376
2536
|
*/
|
2377
2537
|
emulateTouchFromMouseEvent(params: Protocol.Input.EmulateTouchFromMouseEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2378
2538
|
|
@@ -2384,27 +2544,32 @@ export namespace ProtocolTestsProxyApi {
|
|
2384
2544
|
/**
|
2385
2545
|
* Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.
|
2386
2546
|
* Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
|
2547
|
+
* @experimental
|
2387
2548
|
*/
|
2388
2549
|
setInterceptDrags(params: Protocol.Input.SetInterceptDragsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2389
2550
|
|
2390
2551
|
/**
|
2391
2552
|
* Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
|
2553
|
+
* @experimental
|
2392
2554
|
*/
|
2393
2555
|
synthesizePinchGesture(params: Protocol.Input.SynthesizePinchGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2394
2556
|
|
2395
2557
|
/**
|
2396
2558
|
* Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
|
2559
|
+
* @experimental
|
2397
2560
|
*/
|
2398
2561
|
synthesizeScrollGesture(params: Protocol.Input.SynthesizeScrollGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2399
2562
|
|
2400
2563
|
/**
|
2401
2564
|
* Synthesizes a tap gesture over a time period by issuing appropriate touch events.
|
2565
|
+
* @experimental
|
2402
2566
|
*/
|
2403
2567
|
synthesizeTapGesture(params: Protocol.Input.SynthesizeTapGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2404
2568
|
|
2405
2569
|
/**
|
2406
2570
|
* Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to
|
2407
2571
|
* restore normal drag and drop behavior.
|
2572
|
+
* @experimental
|
2408
2573
|
*/
|
2409
2574
|
onDragIntercepted(listener: (event: { params: Protocol.Input.DragInterceptedEvent }) => void): void;
|
2410
2575
|
offDragIntercepted(listener: (event: { params: Protocol.Input.DragInterceptedEvent }) => void): void;
|
@@ -2433,16 +2598,16 @@ export namespace ProtocolTestsProxyApi {
|
|
2433
2598
|
/**
|
2434
2599
|
* Fired when debugging target has crashed
|
2435
2600
|
*/
|
2436
|
-
onTargetCrashed(listener: (
|
2437
|
-
offTargetCrashed(listener: (
|
2438
|
-
onceTargetCrashed(eventMatcher?: (
|
2601
|
+
onTargetCrashed(listener: () => void): void;
|
2602
|
+
offTargetCrashed(listener: () => void): void;
|
2603
|
+
onceTargetCrashed(eventMatcher?: () => boolean): Promise<void>;
|
2439
2604
|
|
2440
2605
|
/**
|
2441
2606
|
* Fired when debugging target has reloaded after crash
|
2442
2607
|
*/
|
2443
|
-
onTargetReloadedAfterCrash(listener: (
|
2444
|
-
offTargetReloadedAfterCrash(listener: (
|
2445
|
-
onceTargetReloadedAfterCrash(eventMatcher?: (
|
2608
|
+
onTargetReloadedAfterCrash(listener: () => void): void;
|
2609
|
+
offTargetReloadedAfterCrash(listener: () => void): void;
|
2610
|
+
onceTargetReloadedAfterCrash(eventMatcher?: () => boolean): Promise<void>;
|
2446
2611
|
|
2447
2612
|
}
|
2448
2613
|
|
@@ -2600,26 +2765,31 @@ export namespace ProtocolTestsProxyApi {
|
|
2600
2765
|
export interface NetworkApi {
|
2601
2766
|
/**
|
2602
2767
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
2768
|
+
* @experimental
|
2603
2769
|
*/
|
2604
2770
|
setAcceptedEncodings(params: Protocol.Network.SetAcceptedEncodingsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2605
2771
|
|
2606
2772
|
/**
|
2607
2773
|
* Clears accepted encodings set by setAcceptedEncodings
|
2774
|
+
* @experimental
|
2608
2775
|
*/
|
2609
2776
|
clearAcceptedEncodingsOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2610
2777
|
|
2611
2778
|
/**
|
2612
2779
|
* Tells whether clearing browser cache is supported.
|
2780
|
+
* @deprecated
|
2613
2781
|
*/
|
2614
2782
|
canClearBrowserCache(): Promise<{id: number, result: Protocol.Network.CanClearBrowserCacheResponse, sessionId: string}>;
|
2615
2783
|
|
2616
2784
|
/**
|
2617
2785
|
* Tells whether clearing browser cookies is supported.
|
2786
|
+
* @deprecated
|
2618
2787
|
*/
|
2619
2788
|
canClearBrowserCookies(): Promise<{id: number, result: Protocol.Network.CanClearBrowserCookiesResponse, sessionId: string}>;
|
2620
2789
|
|
2621
2790
|
/**
|
2622
2791
|
* Tells whether emulation of network conditions is supported.
|
2792
|
+
* @deprecated
|
2623
2793
|
*/
|
2624
2794
|
canEmulateNetworkConditions(): Promise<{id: number, result: Protocol.Network.CanEmulateNetworkConditionsResponse, sessionId: string}>;
|
2625
2795
|
|
@@ -2639,6 +2809,8 @@ export namespace ProtocolTestsProxyApi {
|
|
2639
2809
|
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
|
2640
2810
|
* event will be sent with the same InterceptionId.
|
2641
2811
|
* Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
2812
|
+
* @deprecated
|
2813
|
+
* @experimental
|
2642
2814
|
*/
|
2643
2815
|
continueInterceptedRequest(params: Protocol.Network.ContinueInterceptedRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2644
2816
|
|
@@ -2666,11 +2838,13 @@ export namespace ProtocolTestsProxyApi {
|
|
2666
2838
|
* Returns all browser cookies. Depending on the backend support, will return detailed cookie
|
2667
2839
|
* information in the `cookies` field.
|
2668
2840
|
* Deprecated. Use Storage.getCookies instead.
|
2841
|
+
* @deprecated
|
2669
2842
|
*/
|
2670
2843
|
getAllCookies(): Promise<{id: number, result: Protocol.Network.GetAllCookiesResponse, sessionId: string}>;
|
2671
2844
|
|
2672
2845
|
/**
|
2673
2846
|
* Returns the DER-encoded certificate.
|
2847
|
+
* @experimental
|
2674
2848
|
*/
|
2675
2849
|
getCertificate(params: Protocol.Network.GetCertificateRequest): Promise<{id: number, result: Protocol.Network.GetCertificateResponse, sessionId: string}>;
|
2676
2850
|
|
@@ -2692,6 +2866,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2692
2866
|
|
2693
2867
|
/**
|
2694
2868
|
* Returns content served for the given currently intercepted request.
|
2869
|
+
* @experimental
|
2695
2870
|
*/
|
2696
2871
|
getResponseBodyForInterception(params: Protocol.Network.GetResponseBodyForInterceptionRequest): Promise<{id: number, result: Protocol.Network.GetResponseBodyForInterceptionResponse, sessionId: string}>;
|
2697
2872
|
|
@@ -2700,6 +2875,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2700
2875
|
* the intercepted request can't be continued as is -- you either need to cancel it or to provide
|
2701
2876
|
* the response body. The stream only supports sequential read, IO.read will fail if the position
|
2702
2877
|
* is specified.
|
2878
|
+
* @experimental
|
2703
2879
|
*/
|
2704
2880
|
takeResponseBodyForInterceptionAsStream(params: Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest): Promise<{id: number, result: Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse, sessionId: string}>;
|
2705
2881
|
|
@@ -2707,16 +2883,19 @@ export namespace ProtocolTestsProxyApi {
|
|
2707
2883
|
* This method sends a new XMLHttpRequest which is identical to the original one. The following
|
2708
2884
|
* parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
2709
2885
|
* attribute, user, password.
|
2886
|
+
* @experimental
|
2710
2887
|
*/
|
2711
2888
|
replayXHR(params: Protocol.Network.ReplayXHRRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2712
2889
|
|
2713
2890
|
/**
|
2714
2891
|
* Searches for given string in response content.
|
2892
|
+
* @experimental
|
2715
2893
|
*/
|
2716
2894
|
searchInResponseBody(params: Protocol.Network.SearchInResponseBodyRequest): Promise<{id: number, result: Protocol.Network.SearchInResponseBodyResponse, sessionId: string}>;
|
2717
2895
|
|
2718
2896
|
/**
|
2719
2897
|
* Blocks URLs from loading.
|
2898
|
+
* @experimental
|
2720
2899
|
*/
|
2721
2900
|
setBlockedURLs(params: Protocol.Network.SetBlockedURLsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2722
2901
|
|
@@ -2747,12 +2926,15 @@ export namespace ProtocolTestsProxyApi {
|
|
2747
2926
|
|
2748
2927
|
/**
|
2749
2928
|
* Specifies whether to attach a page script stack id in requests
|
2929
|
+
* @experimental
|
2750
2930
|
*/
|
2751
2931
|
setAttachDebugStack(params: Protocol.Network.SetAttachDebugStackRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2752
2932
|
|
2753
2933
|
/**
|
2754
2934
|
* Sets the requests to intercept that match the provided patterns and optionally resource types.
|
2755
2935
|
* Deprecated, please use Fetch.enable instead.
|
2936
|
+
* @deprecated
|
2937
|
+
* @experimental
|
2756
2938
|
*/
|
2757
2939
|
setRequestInterception(params: Protocol.Network.SetRequestInterceptionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2758
2940
|
|
@@ -2764,28 +2946,33 @@ export namespace ProtocolTestsProxyApi {
|
|
2764
2946
|
/**
|
2765
2947
|
* Enables streaming of the response for the given requestId.
|
2766
2948
|
* If enabled, the dataReceived event contains the data that was received during streaming.
|
2949
|
+
* @experimental
|
2767
2950
|
*/
|
2768
2951
|
streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise<{id: number, result: Protocol.Network.StreamResourceContentResponse, sessionId: string}>;
|
2769
2952
|
|
2770
2953
|
/**
|
2771
2954
|
* Returns information about the COEP/COOP isolation status.
|
2955
|
+
* @experimental
|
2772
2956
|
*/
|
2773
2957
|
getSecurityIsolationStatus(params: Protocol.Network.GetSecurityIsolationStatusRequest): Promise<{id: number, result: Protocol.Network.GetSecurityIsolationStatusResponse, sessionId: string}>;
|
2774
2958
|
|
2775
2959
|
/**
|
2776
2960
|
* Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.
|
2777
2961
|
* Enabling triggers 'reportingApiReportAdded' for all existing reports.
|
2962
|
+
* @experimental
|
2778
2963
|
*/
|
2779
2964
|
enableReportingApi(params: Protocol.Network.EnableReportingApiRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2780
2965
|
|
2781
2966
|
/**
|
2782
2967
|
* Fetches the resource and returns the content.
|
2968
|
+
* @experimental
|
2783
2969
|
*/
|
2784
2970
|
loadNetworkResource(params: Protocol.Network.LoadNetworkResourceRequest): Promise<{id: number, result: Protocol.Network.LoadNetworkResourceResponse, sessionId: string}>;
|
2785
2971
|
|
2786
2972
|
/**
|
2787
2973
|
* Sets Controls for third-party cookie access
|
2788
2974
|
* Page reload is required before the new cookie behavior will be observed
|
2975
|
+
* @experimental
|
2789
2976
|
*/
|
2790
2977
|
setCookieControls(params: Protocol.Network.SetCookieControlsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2791
2978
|
|
@@ -2821,6 +3008,8 @@ export namespace ProtocolTestsProxyApi {
|
|
2821
3008
|
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
2822
3009
|
* mocked.
|
2823
3010
|
* Deprecated, use Fetch.requestPaused instead.
|
3011
|
+
* @deprecated
|
3012
|
+
* @experimental
|
2824
3013
|
*/
|
2825
3014
|
onRequestIntercepted(listener: (event: { params: Protocol.Network.RequestInterceptedEvent }) => void): void;
|
2826
3015
|
offRequestIntercepted(listener: (event: { params: Protocol.Network.RequestInterceptedEvent }) => void): void;
|
@@ -2842,6 +3031,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2842
3031
|
|
2843
3032
|
/**
|
2844
3033
|
* Fired when resource loading priority is changed
|
3034
|
+
* @experimental
|
2845
3035
|
*/
|
2846
3036
|
onResourceChangedPriority(listener: (event: { params: Protocol.Network.ResourceChangedPriorityEvent }) => void): void;
|
2847
3037
|
offResourceChangedPriority(listener: (event: { params: Protocol.Network.ResourceChangedPriorityEvent }) => void): void;
|
@@ -2849,6 +3039,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2849
3039
|
|
2850
3040
|
/**
|
2851
3041
|
* Fired when a signed exchange was received over the network
|
3042
|
+
* @experimental
|
2852
3043
|
*/
|
2853
3044
|
onSignedExchangeReceived(listener: (event: { params: Protocol.Network.SignedExchangeReceivedEvent }) => void): void;
|
2854
3045
|
offSignedExchangeReceived(listener: (event: { params: Protocol.Network.SignedExchangeReceivedEvent }) => void): void;
|
@@ -2933,6 +3124,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2933
3124
|
|
2934
3125
|
/**
|
2935
3126
|
* Fired upon direct_socket.TCPSocket creation.
|
3127
|
+
* @experimental
|
2936
3128
|
*/
|
2937
3129
|
onDirectTCPSocketCreated(listener: (event: { params: Protocol.Network.DirectTCPSocketCreatedEvent }) => void): void;
|
2938
3130
|
offDirectTCPSocketCreated(listener: (event: { params: Protocol.Network.DirectTCPSocketCreatedEvent }) => void): void;
|
@@ -2940,6 +3132,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2940
3132
|
|
2941
3133
|
/**
|
2942
3134
|
* Fired when direct_socket.TCPSocket connection is opened.
|
3135
|
+
* @experimental
|
2943
3136
|
*/
|
2944
3137
|
onDirectTCPSocketOpened(listener: (event: { params: Protocol.Network.DirectTCPSocketOpenedEvent }) => void): void;
|
2945
3138
|
offDirectTCPSocketOpened(listener: (event: { params: Protocol.Network.DirectTCPSocketOpenedEvent }) => void): void;
|
@@ -2947,6 +3140,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2947
3140
|
|
2948
3141
|
/**
|
2949
3142
|
* Fired when direct_socket.TCPSocket is aborted.
|
3143
|
+
* @experimental
|
2950
3144
|
*/
|
2951
3145
|
onDirectTCPSocketAborted(listener: (event: { params: Protocol.Network.DirectTCPSocketAbortedEvent }) => void): void;
|
2952
3146
|
offDirectTCPSocketAborted(listener: (event: { params: Protocol.Network.DirectTCPSocketAbortedEvent }) => void): void;
|
@@ -2954,6 +3148,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2954
3148
|
|
2955
3149
|
/**
|
2956
3150
|
* Fired when direct_socket.TCPSocket is closed.
|
3151
|
+
* @experimental
|
2957
3152
|
*/
|
2958
3153
|
onDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
|
2959
3154
|
offDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
|
@@ -2961,6 +3156,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2961
3156
|
|
2962
3157
|
/**
|
2963
3158
|
* Fired when data is sent to tcp direct socket stream.
|
3159
|
+
* @experimental
|
2964
3160
|
*/
|
2965
3161
|
onDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
|
2966
3162
|
offDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
|
@@ -2968,6 +3164,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2968
3164
|
|
2969
3165
|
/**
|
2970
3166
|
* Fired when data is received from tcp direct socket stream.
|
3167
|
+
* @experimental
|
2971
3168
|
*/
|
2972
3169
|
onDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
|
2973
3170
|
offDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
|
@@ -2975,6 +3172,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2975
3172
|
|
2976
3173
|
/**
|
2977
3174
|
* Fired upon direct_socket.UDPSocket creation.
|
3175
|
+
* @experimental
|
2978
3176
|
*/
|
2979
3177
|
onDirectUDPSocketCreated(listener: (event: { params: Protocol.Network.DirectUDPSocketCreatedEvent }) => void): void;
|
2980
3178
|
offDirectUDPSocketCreated(listener: (event: { params: Protocol.Network.DirectUDPSocketCreatedEvent }) => void): void;
|
@@ -2982,6 +3180,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2982
3180
|
|
2983
3181
|
/**
|
2984
3182
|
* Fired when direct_socket.UDPSocket connection is opened.
|
3183
|
+
* @experimental
|
2985
3184
|
*/
|
2986
3185
|
onDirectUDPSocketOpened(listener: (event: { params: Protocol.Network.DirectUDPSocketOpenedEvent }) => void): void;
|
2987
3186
|
offDirectUDPSocketOpened(listener: (event: { params: Protocol.Network.DirectUDPSocketOpenedEvent }) => void): void;
|
@@ -2989,6 +3188,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2989
3188
|
|
2990
3189
|
/**
|
2991
3190
|
* Fired when direct_socket.UDPSocket is aborted.
|
3191
|
+
* @experimental
|
2992
3192
|
*/
|
2993
3193
|
onDirectUDPSocketAborted(listener: (event: { params: Protocol.Network.DirectUDPSocketAbortedEvent }) => void): void;
|
2994
3194
|
offDirectUDPSocketAborted(listener: (event: { params: Protocol.Network.DirectUDPSocketAbortedEvent }) => void): void;
|
@@ -2996,6 +3196,7 @@ export namespace ProtocolTestsProxyApi {
|
|
2996
3196
|
|
2997
3197
|
/**
|
2998
3198
|
* Fired when direct_socket.UDPSocket is closed.
|
3199
|
+
* @experimental
|
2999
3200
|
*/
|
3000
3201
|
onDirectUDPSocketClosed(listener: (event: { params: Protocol.Network.DirectUDPSocketClosedEvent }) => void): void;
|
3001
3202
|
offDirectUDPSocketClosed(listener: (event: { params: Protocol.Network.DirectUDPSocketClosedEvent }) => void): void;
|
@@ -3003,6 +3204,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3003
3204
|
|
3004
3205
|
/**
|
3005
3206
|
* Fired when message is sent to udp direct socket stream.
|
3207
|
+
* @experimental
|
3006
3208
|
*/
|
3007
3209
|
onDirectUDPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkSentEvent }) => void): void;
|
3008
3210
|
offDirectUDPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkSentEvent }) => void): void;
|
@@ -3010,6 +3212,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3010
3212
|
|
3011
3213
|
/**
|
3012
3214
|
* Fired when message is received from udp direct socket stream.
|
3215
|
+
* @experimental
|
3013
3216
|
*/
|
3014
3217
|
onDirectUDPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }) => void): void;
|
3015
3218
|
offDirectUDPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectUDPSocketChunkReceivedEvent }) => void): void;
|
@@ -3020,6 +3223,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3020
3223
|
* network stack. Not every requestWillBeSent event will have an additional
|
3021
3224
|
* requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
|
3022
3225
|
* or requestWillBeSentExtraInfo will be fired first for the same request.
|
3226
|
+
* @experimental
|
3023
3227
|
*/
|
3024
3228
|
onRequestWillBeSentExtraInfo(listener: (event: { params: Protocol.Network.RequestWillBeSentExtraInfoEvent }) => void): void;
|
3025
3229
|
offRequestWillBeSentExtraInfo(listener: (event: { params: Protocol.Network.RequestWillBeSentExtraInfoEvent }) => void): void;
|
@@ -3029,6 +3233,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3029
3233
|
* Fired when additional information about a responseReceived event is available from the network
|
3030
3234
|
* stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
|
3031
3235
|
* it, and responseReceivedExtraInfo may be fired before or after responseReceived.
|
3236
|
+
* @experimental
|
3032
3237
|
*/
|
3033
3238
|
onResponseReceivedExtraInfo(listener: (event: { params: Protocol.Network.ResponseReceivedExtraInfoEvent }) => void): void;
|
3034
3239
|
offResponseReceivedExtraInfo(listener: (event: { params: Protocol.Network.ResponseReceivedExtraInfoEvent }) => void): void;
|
@@ -3038,6 +3243,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3038
3243
|
* Fired when 103 Early Hints headers is received in addition to the common response.
|
3039
3244
|
* Not every responseReceived event will have an responseReceivedEarlyHints fired.
|
3040
3245
|
* Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
|
3246
|
+
* @experimental
|
3041
3247
|
*/
|
3042
3248
|
onResponseReceivedEarlyHints(listener: (event: { params: Protocol.Network.ResponseReceivedEarlyHintsEvent }) => void): void;
|
3043
3249
|
offResponseReceivedEarlyHints(listener: (event: { params: Protocol.Network.ResponseReceivedEarlyHintsEvent }) => void): void;
|
@@ -3048,6 +3254,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3048
3254
|
* the type of the operation and whether the operation succeeded or
|
3049
3255
|
* failed, the event is fired before the corresponding request was sent
|
3050
3256
|
* or after the response was received.
|
3257
|
+
* @experimental
|
3051
3258
|
*/
|
3052
3259
|
onTrustTokenOperationDone(listener: (event: { params: Protocol.Network.TrustTokenOperationDoneEvent }) => void): void;
|
3053
3260
|
offTrustTokenOperationDone(listener: (event: { params: Protocol.Network.TrustTokenOperationDoneEvent }) => void): void;
|
@@ -3055,14 +3262,16 @@ export namespace ProtocolTestsProxyApi {
|
|
3055
3262
|
|
3056
3263
|
/**
|
3057
3264
|
* Fired once security policy has been updated.
|
3265
|
+
* @experimental
|
3058
3266
|
*/
|
3059
|
-
onPolicyUpdated(listener: (
|
3060
|
-
offPolicyUpdated(listener: (
|
3061
|
-
oncePolicyUpdated(eventMatcher?: (
|
3267
|
+
onPolicyUpdated(listener: () => void): void;
|
3268
|
+
offPolicyUpdated(listener: () => void): void;
|
3269
|
+
oncePolicyUpdated(eventMatcher?: () => boolean): Promise<void>;
|
3062
3270
|
|
3063
3271
|
/**
|
3064
3272
|
* Fired once when parsing the .wbn file has succeeded.
|
3065
3273
|
* The event contains the information about the web bundle contents.
|
3274
|
+
* @experimental
|
3066
3275
|
*/
|
3067
3276
|
onSubresourceWebBundleMetadataReceived(listener: (event: { params: Protocol.Network.SubresourceWebBundleMetadataReceivedEvent }) => void): void;
|
3068
3277
|
offSubresourceWebBundleMetadataReceived(listener: (event: { params: Protocol.Network.SubresourceWebBundleMetadataReceivedEvent }) => void): void;
|
@@ -3070,6 +3279,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3070
3279
|
|
3071
3280
|
/**
|
3072
3281
|
* Fired once when parsing the .wbn file has failed.
|
3282
|
+
* @experimental
|
3073
3283
|
*/
|
3074
3284
|
onSubresourceWebBundleMetadataError(listener: (event: { params: Protocol.Network.SubresourceWebBundleMetadataErrorEvent }) => void): void;
|
3075
3285
|
offSubresourceWebBundleMetadataError(listener: (event: { params: Protocol.Network.SubresourceWebBundleMetadataErrorEvent }) => void): void;
|
@@ -3078,6 +3288,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3078
3288
|
/**
|
3079
3289
|
* Fired when handling requests for resources within a .wbn file.
|
3080
3290
|
* Note: this will only be fired for resources that are requested by the webpage.
|
3291
|
+
* @experimental
|
3081
3292
|
*/
|
3082
3293
|
onSubresourceWebBundleInnerResponseParsed(listener: (event: { params: Protocol.Network.SubresourceWebBundleInnerResponseParsedEvent }) => void): void;
|
3083
3294
|
offSubresourceWebBundleInnerResponseParsed(listener: (event: { params: Protocol.Network.SubresourceWebBundleInnerResponseParsedEvent }) => void): void;
|
@@ -3085,6 +3296,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3085
3296
|
|
3086
3297
|
/**
|
3087
3298
|
* Fired when request for resources within a .wbn file failed.
|
3299
|
+
* @experimental
|
3088
3300
|
*/
|
3089
3301
|
onSubresourceWebBundleInnerResponseError(listener: (event: { params: Protocol.Network.SubresourceWebBundleInnerResponseErrorEvent }) => void): void;
|
3090
3302
|
offSubresourceWebBundleInnerResponseError(listener: (event: { params: Protocol.Network.SubresourceWebBundleInnerResponseErrorEvent }) => void): void;
|
@@ -3093,15 +3305,22 @@ export namespace ProtocolTestsProxyApi {
|
|
3093
3305
|
/**
|
3094
3306
|
* Is sent whenever a new report is added.
|
3095
3307
|
* And after 'enableReportingApi' for all existing reports.
|
3308
|
+
* @experimental
|
3096
3309
|
*/
|
3097
3310
|
onReportingApiReportAdded(listener: (event: { params: Protocol.Network.ReportingApiReportAddedEvent }) => void): void;
|
3098
3311
|
offReportingApiReportAdded(listener: (event: { params: Protocol.Network.ReportingApiReportAddedEvent }) => void): void;
|
3099
3312
|
onceReportingApiReportAdded(eventMatcher?: (event: { params: Protocol.Network.ReportingApiReportAddedEvent }) => boolean): Promise<{ params: Protocol.Network.ReportingApiReportAddedEvent }>;
|
3100
3313
|
|
3314
|
+
/**
|
3315
|
+
* @experimental
|
3316
|
+
*/
|
3101
3317
|
onReportingApiReportUpdated(listener: (event: { params: Protocol.Network.ReportingApiReportUpdatedEvent }) => void): void;
|
3102
3318
|
offReportingApiReportUpdated(listener: (event: { params: Protocol.Network.ReportingApiReportUpdatedEvent }) => void): void;
|
3103
3319
|
onceReportingApiReportUpdated(eventMatcher?: (event: { params: Protocol.Network.ReportingApiReportUpdatedEvent }) => boolean): Promise<{ params: Protocol.Network.ReportingApiReportUpdatedEvent }>;
|
3104
3320
|
|
3321
|
+
/**
|
3322
|
+
* @experimental
|
3323
|
+
*/
|
3105
3324
|
onReportingApiEndpointsChangedForOrigin(listener: (event: { params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }) => void): void;
|
3106
3325
|
offReportingApiEndpointsChangedForOrigin(listener: (event: { params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }) => void): void;
|
3107
3326
|
onceReportingApiEndpointsChangedForOrigin(eventMatcher?: (event: { params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }) => boolean): Promise<{ params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }>;
|
@@ -3144,6 +3363,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3144
3363
|
* Deprecated: Doesn't work reliably and cannot be fixed due to process
|
3145
3364
|
* separation (the owner node might be in a different process). Determine
|
3146
3365
|
* the owner node in the client and use highlightNode.
|
3366
|
+
* @deprecated
|
3147
3367
|
*/
|
3148
3368
|
highlightFrame(params: Protocol.Overlay.HighlightFrameRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3149
3369
|
|
@@ -3220,11 +3440,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3220
3440
|
|
3221
3441
|
/**
|
3222
3442
|
* Deprecated, no longer has any effect.
|
3443
|
+
* @deprecated
|
3223
3444
|
*/
|
3224
3445
|
setShowHitTestBorders(params: Protocol.Overlay.SetShowHitTestBordersRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3225
3446
|
|
3226
3447
|
/**
|
3227
3448
|
* Deprecated, no longer has any effect.
|
3449
|
+
* @deprecated
|
3228
3450
|
*/
|
3229
3451
|
setShowWebVitals(params: Protocol.Overlay.SetShowWebVitalsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3230
3452
|
|
@@ -3273,15 +3495,17 @@ export namespace ProtocolTestsProxyApi {
|
|
3273
3495
|
/**
|
3274
3496
|
* Fired when user cancels the inspect mode.
|
3275
3497
|
*/
|
3276
|
-
onInspectModeCanceled(listener: (
|
3277
|
-
offInspectModeCanceled(listener: (
|
3278
|
-
onceInspectModeCanceled(eventMatcher?: (
|
3498
|
+
onInspectModeCanceled(listener: () => void): void;
|
3499
|
+
offInspectModeCanceled(listener: () => void): void;
|
3500
|
+
onceInspectModeCanceled(eventMatcher?: () => boolean): Promise<void>;
|
3279
3501
|
|
3280
3502
|
}
|
3281
3503
|
|
3282
3504
|
export interface PageApi {
|
3283
3505
|
/**
|
3284
3506
|
* Deprecated, please use addScriptToEvaluateOnNewDocument instead.
|
3507
|
+
* @deprecated
|
3508
|
+
* @experimental
|
3285
3509
|
*/
|
3286
3510
|
addScriptToEvaluateOnLoad(params: Protocol.Page.AddScriptToEvaluateOnLoadRequest): Promise<{id: number, result: Protocol.Page.AddScriptToEvaluateOnLoadResponse, sessionId: string}>;
|
3287
3511
|
|
@@ -3303,21 +3527,27 @@ export namespace ProtocolTestsProxyApi {
|
|
3303
3527
|
/**
|
3304
3528
|
* Returns a snapshot of the page as a string. For MHTML format, the serialization includes
|
3305
3529
|
* iframes, shadow DOM, external resources, and element-inline styles.
|
3530
|
+
* @experimental
|
3306
3531
|
*/
|
3307
3532
|
captureSnapshot(params: Protocol.Page.CaptureSnapshotRequest): Promise<{id: number, result: Protocol.Page.CaptureSnapshotResponse, sessionId: string}>;
|
3308
3533
|
|
3309
3534
|
/**
|
3310
3535
|
* Clears the overridden device metrics.
|
3536
|
+
* @deprecated
|
3537
|
+
* @experimental
|
3311
3538
|
*/
|
3312
3539
|
clearDeviceMetricsOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
3313
3540
|
|
3314
3541
|
/**
|
3315
3542
|
* Clears the overridden Device Orientation.
|
3543
|
+
* @deprecated
|
3544
|
+
* @experimental
|
3316
3545
|
*/
|
3317
3546
|
clearDeviceOrientationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
3318
3547
|
|
3319
3548
|
/**
|
3320
3549
|
* Clears the overridden Geolocation Position and Error.
|
3550
|
+
* @deprecated
|
3321
3551
|
*/
|
3322
3552
|
clearGeolocationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
3323
3553
|
|
@@ -3328,6 +3558,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3328
3558
|
|
3329
3559
|
/**
|
3330
3560
|
* Deletes browser cookie with given name, domain and path.
|
3561
|
+
* @deprecated
|
3562
|
+
* @experimental
|
3331
3563
|
*/
|
3332
3564
|
deleteCookie(params: Protocol.Page.DeleteCookieRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3333
3565
|
|
@@ -3350,19 +3582,28 @@ export namespace ProtocolTestsProxyApi {
|
|
3350
3582
|
*/
|
3351
3583
|
getAppManifest(params: Protocol.Page.GetAppManifestRequest): Promise<{id: number, result: Protocol.Page.GetAppManifestResponse, sessionId: string}>;
|
3352
3584
|
|
3585
|
+
/**
|
3586
|
+
* @experimental
|
3587
|
+
*/
|
3353
3588
|
getInstallabilityErrors(): Promise<{id: number, result: Protocol.Page.GetInstallabilityErrorsResponse, sessionId: string}>;
|
3354
3589
|
|
3355
3590
|
/**
|
3356
3591
|
* Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.
|
3592
|
+
* @deprecated
|
3593
|
+
* @experimental
|
3357
3594
|
*/
|
3358
3595
|
getManifestIcons(): Promise<{id: number, result: Protocol.Page.GetManifestIconsResponse, sessionId: string}>;
|
3359
3596
|
|
3360
3597
|
/**
|
3361
3598
|
* Returns the unique (PWA) app id.
|
3362
3599
|
* Only returns values if the feature flag 'WebAppEnableManifestId' is enabled
|
3600
|
+
* @experimental
|
3363
3601
|
*/
|
3364
3602
|
getAppId(): Promise<{id: number, result: Protocol.Page.GetAppIdResponse, sessionId: string}>;
|
3365
3603
|
|
3604
|
+
/**
|
3605
|
+
* @experimental
|
3606
|
+
*/
|
3366
3607
|
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptAncestryResponse, sessionId: string}>;
|
3367
3608
|
|
3368
3609
|
/**
|
@@ -3387,11 +3628,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3387
3628
|
|
3388
3629
|
/**
|
3389
3630
|
* Returns content of the given resource.
|
3631
|
+
* @experimental
|
3390
3632
|
*/
|
3391
3633
|
getResourceContent(params: Protocol.Page.GetResourceContentRequest): Promise<{id: number, result: Protocol.Page.GetResourceContentResponse, sessionId: string}>;
|
3392
3634
|
|
3393
3635
|
/**
|
3394
3636
|
* Returns present frame / resource tree structure.
|
3637
|
+
* @experimental
|
3395
3638
|
*/
|
3396
3639
|
getResourceTree(): Promise<{id: number, result: Protocol.Page.GetResourceTreeResponse, sessionId: string}>;
|
3397
3640
|
|
@@ -3422,6 +3665,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3422
3665
|
|
3423
3666
|
/**
|
3424
3667
|
* Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
|
3668
|
+
* @deprecated
|
3669
|
+
* @experimental
|
3425
3670
|
*/
|
3426
3671
|
removeScriptToEvaluateOnLoad(params: Protocol.Page.RemoveScriptToEvaluateOnLoadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3427
3672
|
|
@@ -3432,16 +3677,19 @@ export namespace ProtocolTestsProxyApi {
|
|
3432
3677
|
|
3433
3678
|
/**
|
3434
3679
|
* Acknowledges that a screencast frame has been received by the frontend.
|
3680
|
+
* @experimental
|
3435
3681
|
*/
|
3436
3682
|
screencastFrameAck(params: Protocol.Page.ScreencastFrameAckRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3437
3683
|
|
3438
3684
|
/**
|
3439
3685
|
* Searches for given string in resource content.
|
3686
|
+
* @experimental
|
3440
3687
|
*/
|
3441
3688
|
searchInResource(params: Protocol.Page.SearchInResourceRequest): Promise<{id: number, result: Protocol.Page.SearchInResourceResponse, sessionId: string}>;
|
3442
3689
|
|
3443
3690
|
/**
|
3444
3691
|
* Enable Chrome's experimental ad filter on all sites.
|
3692
|
+
* @experimental
|
3445
3693
|
*/
|
3446
3694
|
setAdBlockingEnabled(params: Protocol.Page.SetAdBlockingEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3447
3695
|
|
@@ -3452,11 +3700,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3452
3700
|
|
3453
3701
|
/**
|
3454
3702
|
* Get Permissions Policy state on given frame.
|
3703
|
+
* @experimental
|
3455
3704
|
*/
|
3456
3705
|
getPermissionsPolicyState(params: Protocol.Page.GetPermissionsPolicyStateRequest): Promise<{id: number, result: Protocol.Page.GetPermissionsPolicyStateResponse, sessionId: string}>;
|
3457
3706
|
|
3458
3707
|
/**
|
3459
3708
|
* Get Origin Trials on given frame.
|
3709
|
+
* @experimental
|
3460
3710
|
*/
|
3461
3711
|
getOriginTrials(params: Protocol.Page.GetOriginTrialsRequest): Promise<{id: number, result: Protocol.Page.GetOriginTrialsResponse, sessionId: string}>;
|
3462
3712
|
|
@@ -3464,21 +3714,27 @@ export namespace ProtocolTestsProxyApi {
|
|
3464
3714
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
3465
3715
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
3466
3716
|
* query results).
|
3717
|
+
* @deprecated
|
3718
|
+
* @experimental
|
3467
3719
|
*/
|
3468
3720
|
setDeviceMetricsOverride(params: Protocol.Page.SetDeviceMetricsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3469
3721
|
|
3470
3722
|
/**
|
3471
3723
|
* Overrides the Device Orientation.
|
3724
|
+
* @deprecated
|
3725
|
+
* @experimental
|
3472
3726
|
*/
|
3473
3727
|
setDeviceOrientationOverride(params: Protocol.Page.SetDeviceOrientationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3474
3728
|
|
3475
3729
|
/**
|
3476
3730
|
* Set generic font families.
|
3731
|
+
* @experimental
|
3477
3732
|
*/
|
3478
3733
|
setFontFamilies(params: Protocol.Page.SetFontFamiliesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3479
3734
|
|
3480
3735
|
/**
|
3481
3736
|
* Set default font sizes.
|
3737
|
+
* @experimental
|
3482
3738
|
*/
|
3483
3739
|
setFontSizes(params: Protocol.Page.SetFontSizesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3484
3740
|
|
@@ -3489,12 +3745,15 @@ export namespace ProtocolTestsProxyApi {
|
|
3489
3745
|
|
3490
3746
|
/**
|
3491
3747
|
* Set the behavior when downloading a file.
|
3748
|
+
* @deprecated
|
3749
|
+
* @experimental
|
3492
3750
|
*/
|
3493
3751
|
setDownloadBehavior(params: Protocol.Page.SetDownloadBehaviorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3494
3752
|
|
3495
3753
|
/**
|
3496
3754
|
* Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
|
3497
3755
|
* unavailable.
|
3756
|
+
* @deprecated
|
3498
3757
|
*/
|
3499
3758
|
setGeolocationOverride(params: Protocol.Page.SetGeolocationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3500
3759
|
|
@@ -3505,11 +3764,14 @@ export namespace ProtocolTestsProxyApi {
|
|
3505
3764
|
|
3506
3765
|
/**
|
3507
3766
|
* Toggles mouse event-based touch event emulation.
|
3767
|
+
* @deprecated
|
3768
|
+
* @experimental
|
3508
3769
|
*/
|
3509
3770
|
setTouchEmulationEnabled(params: Protocol.Page.SetTouchEmulationEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3510
3771
|
|
3511
3772
|
/**
|
3512
3773
|
* Starts sending each frame using the `screencastFrame` event.
|
3774
|
+
* @experimental
|
3513
3775
|
*/
|
3514
3776
|
startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3515
3777
|
|
@@ -3520,6 +3782,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3520
3782
|
|
3521
3783
|
/**
|
3522
3784
|
* Crashes renderer on the IO thread, generates minidumps.
|
3785
|
+
* @experimental
|
3523
3786
|
*/
|
3524
3787
|
crash(): Promise<{id: number, result: void, sessionId: string}>;
|
3525
3788
|
|
@@ -3532,11 +3795,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3532
3795
|
* Tries to update the web lifecycle state of the page.
|
3533
3796
|
* It will transition the page to the given state according to:
|
3534
3797
|
* https://github.com/WICG/web-lifecycle/
|
3798
|
+
* @experimental
|
3535
3799
|
*/
|
3536
3800
|
setWebLifecycleState(params: Protocol.Page.SetWebLifecycleStateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3537
3801
|
|
3538
3802
|
/**
|
3539
3803
|
* Stops sending each frame in the `screencastFrame`.
|
3804
|
+
* @experimental
|
3540
3805
|
*/
|
3541
3806
|
stopScreencast(): Promise<{id: number, result: void, sessionId: string}>;
|
3542
3807
|
|
@@ -3547,39 +3812,46 @@ export namespace ProtocolTestsProxyApi {
|
|
3547
3812
|
* When script with a matching URL is encountered, the cache is optionally
|
3548
3813
|
* produced upon backend discretion, based on internal heuristics.
|
3549
3814
|
* See also: `Page.compilationCacheProduced`.
|
3815
|
+
* @experimental
|
3550
3816
|
*/
|
3551
3817
|
produceCompilationCache(params: Protocol.Page.ProduceCompilationCacheRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3552
3818
|
|
3553
3819
|
/**
|
3554
3820
|
* Seeds compilation cache for given url. Compilation cache does not survive
|
3555
3821
|
* cross-process navigation.
|
3822
|
+
* @experimental
|
3556
3823
|
*/
|
3557
3824
|
addCompilationCache(params: Protocol.Page.AddCompilationCacheRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3558
3825
|
|
3559
3826
|
/**
|
3560
3827
|
* Clears seeded compilation cache.
|
3828
|
+
* @experimental
|
3561
3829
|
*/
|
3562
3830
|
clearCompilationCache(): Promise<{id: number, result: void, sessionId: string}>;
|
3563
3831
|
|
3564
3832
|
/**
|
3565
3833
|
* Sets the Secure Payment Confirmation transaction mode.
|
3566
3834
|
* https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
|
3835
|
+
* @experimental
|
3567
3836
|
*/
|
3568
3837
|
setSPCTransactionMode(params: Protocol.Page.SetSPCTransactionModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3569
3838
|
|
3570
3839
|
/**
|
3571
3840
|
* Extensions for Custom Handlers API:
|
3572
3841
|
* https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
|
3842
|
+
* @experimental
|
3573
3843
|
*/
|
3574
3844
|
setRPHRegistrationMode(params: Protocol.Page.SetRPHRegistrationModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3575
3845
|
|
3576
3846
|
/**
|
3577
3847
|
* Generates a report for testing.
|
3848
|
+
* @experimental
|
3578
3849
|
*/
|
3579
3850
|
generateTestReport(params: Protocol.Page.GenerateTestReportRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3580
3851
|
|
3581
3852
|
/**
|
3582
3853
|
* Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.
|
3854
|
+
* @experimental
|
3583
3855
|
*/
|
3584
3856
|
waitForDebugger(): Promise<{id: number, result: void, sessionId: string}>;
|
3585
3857
|
|
@@ -3598,6 +3870,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3598
3870
|
* for more details.
|
3599
3871
|
*
|
3600
3872
|
* TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
|
3873
|
+
* @experimental
|
3601
3874
|
*/
|
3602
3875
|
setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3603
3876
|
|
@@ -3621,6 +3894,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3621
3894
|
|
3622
3895
|
/**
|
3623
3896
|
* Fired when frame no longer has a scheduled navigation.
|
3897
|
+
* @deprecated
|
3624
3898
|
*/
|
3625
3899
|
onFrameClearedScheduledNavigation(listener: (event: { params: Protocol.Page.FrameClearedScheduledNavigationEvent }) => void): void;
|
3626
3900
|
offFrameClearedScheduledNavigation(listener: (event: { params: Protocol.Page.FrameClearedScheduledNavigationEvent }) => void): void;
|
@@ -3636,6 +3910,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3636
3910
|
/**
|
3637
3911
|
* Fired before frame subtree is detached. Emitted before any frame of the
|
3638
3912
|
* subtree is actually detached.
|
3913
|
+
* @experimental
|
3639
3914
|
*/
|
3640
3915
|
onFrameSubtreeWillBeDetached(listener: (event: { params: Protocol.Page.FrameSubtreeWillBeDetachedEvent }) => void): void;
|
3641
3916
|
offFrameSubtreeWillBeDetached(listener: (event: { params: Protocol.Page.FrameSubtreeWillBeDetachedEvent }) => void): void;
|
@@ -3650,14 +3925,18 @@ export namespace ProtocolTestsProxyApi {
|
|
3650
3925
|
|
3651
3926
|
/**
|
3652
3927
|
* Fired when opening document to write to.
|
3928
|
+
* @experimental
|
3653
3929
|
*/
|
3654
3930
|
onDocumentOpened(listener: (event: { params: Protocol.Page.DocumentOpenedEvent }) => void): void;
|
3655
3931
|
offDocumentOpened(listener: (event: { params: Protocol.Page.DocumentOpenedEvent }) => void): void;
|
3656
3932
|
onceDocumentOpened(eventMatcher?: (event: { params: Protocol.Page.DocumentOpenedEvent }) => boolean): Promise<{ params: Protocol.Page.DocumentOpenedEvent }>;
|
3657
3933
|
|
3658
|
-
|
3659
|
-
|
3660
|
-
|
3934
|
+
/**
|
3935
|
+
* @experimental
|
3936
|
+
*/
|
3937
|
+
onFrameResized(listener: () => void): void;
|
3938
|
+
offFrameResized(listener: () => void): void;
|
3939
|
+
onceFrameResized(eventMatcher?: () => boolean): Promise<void>;
|
3661
3940
|
|
3662
3941
|
/**
|
3663
3942
|
* Fired when a navigation starts. This event is fired for both
|
@@ -3667,6 +3946,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3667
3946
|
* can be fired for a single navigation, for example, when a same-document
|
3668
3947
|
* navigation becomes a cross-document navigation (such as in the case of a
|
3669
3948
|
* frameset).
|
3949
|
+
* @experimental
|
3670
3950
|
*/
|
3671
3951
|
onFrameStartedNavigating(listener: (event: { params: Protocol.Page.FrameStartedNavigatingEvent }) => void): void;
|
3672
3952
|
offFrameStartedNavigating(listener: (event: { params: Protocol.Page.FrameStartedNavigatingEvent }) => void): void;
|
@@ -3675,6 +3955,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3675
3955
|
/**
|
3676
3956
|
* Fired when a renderer-initiated navigation is requested.
|
3677
3957
|
* Navigation may still be cancelled after the event is issued.
|
3958
|
+
* @experimental
|
3678
3959
|
*/
|
3679
3960
|
onFrameRequestedNavigation(listener: (event: { params: Protocol.Page.FrameRequestedNavigationEvent }) => void): void;
|
3680
3961
|
offFrameRequestedNavigation(listener: (event: { params: Protocol.Page.FrameRequestedNavigationEvent }) => void): void;
|
@@ -3682,6 +3963,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3682
3963
|
|
3683
3964
|
/**
|
3684
3965
|
* Fired when frame schedules a potential navigation.
|
3966
|
+
* @deprecated
|
3685
3967
|
*/
|
3686
3968
|
onFrameScheduledNavigation(listener: (event: { params: Protocol.Page.FrameScheduledNavigationEvent }) => void): void;
|
3687
3969
|
offFrameScheduledNavigation(listener: (event: { params: Protocol.Page.FrameScheduledNavigationEvent }) => void): void;
|
@@ -3689,6 +3971,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3689
3971
|
|
3690
3972
|
/**
|
3691
3973
|
* Fired when frame has started loading.
|
3974
|
+
* @experimental
|
3692
3975
|
*/
|
3693
3976
|
onFrameStartedLoading(listener: (event: { params: Protocol.Page.FrameStartedLoadingEvent }) => void): void;
|
3694
3977
|
offFrameStartedLoading(listener: (event: { params: Protocol.Page.FrameStartedLoadingEvent }) => void): void;
|
@@ -3696,6 +3979,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3696
3979
|
|
3697
3980
|
/**
|
3698
3981
|
* Fired when frame has stopped loading.
|
3982
|
+
* @experimental
|
3699
3983
|
*/
|
3700
3984
|
onFrameStoppedLoading(listener: (event: { params: Protocol.Page.FrameStoppedLoadingEvent }) => void): void;
|
3701
3985
|
offFrameStoppedLoading(listener: (event: { params: Protocol.Page.FrameStoppedLoadingEvent }) => void): void;
|
@@ -3704,6 +3988,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3704
3988
|
/**
|
3705
3989
|
* Fired when page is about to start a download.
|
3706
3990
|
* Deprecated. Use Browser.downloadWillBegin instead.
|
3991
|
+
* @deprecated
|
3992
|
+
* @experimental
|
3707
3993
|
*/
|
3708
3994
|
onDownloadWillBegin(listener: (event: { params: Protocol.Page.DownloadWillBeginEvent }) => void): void;
|
3709
3995
|
offDownloadWillBegin(listener: (event: { params: Protocol.Page.DownloadWillBeginEvent }) => void): void;
|
@@ -3712,6 +3998,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3712
3998
|
/**
|
3713
3999
|
* Fired when download makes progress. Last call has |done| == true.
|
3714
4000
|
* Deprecated. Use Browser.downloadProgress instead.
|
4001
|
+
* @deprecated
|
4002
|
+
* @experimental
|
3715
4003
|
*/
|
3716
4004
|
onDownloadProgress(listener: (event: { params: Protocol.Page.DownloadProgressEvent }) => void): void;
|
3717
4005
|
offDownloadProgress(listener: (event: { params: Protocol.Page.DownloadProgressEvent }) => void): void;
|
@@ -3720,16 +4008,16 @@ export namespace ProtocolTestsProxyApi {
|
|
3720
4008
|
/**
|
3721
4009
|
* Fired when interstitial page was hidden
|
3722
4010
|
*/
|
3723
|
-
onInterstitialHidden(listener: (
|
3724
|
-
offInterstitialHidden(listener: (
|
3725
|
-
onceInterstitialHidden(eventMatcher?: (
|
4011
|
+
onInterstitialHidden(listener: () => void): void;
|
4012
|
+
offInterstitialHidden(listener: () => void): void;
|
4013
|
+
onceInterstitialHidden(eventMatcher?: () => boolean): Promise<void>;
|
3726
4014
|
|
3727
4015
|
/**
|
3728
4016
|
* Fired when interstitial page was shown
|
3729
4017
|
*/
|
3730
|
-
onInterstitialShown(listener: (
|
3731
|
-
offInterstitialShown(listener: (
|
3732
|
-
onceInterstitialShown(eventMatcher?: (
|
4018
|
+
onInterstitialShown(listener: () => void): void;
|
4019
|
+
offInterstitialShown(listener: () => void): void;
|
4020
|
+
onceInterstitialShown(eventMatcher?: () => boolean): Promise<void>;
|
3733
4021
|
|
3734
4022
|
/**
|
3735
4023
|
* Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been
|
@@ -3760,6 +4048,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3760
4048
|
* not assume any ordering with the Page.frameNavigated event. This event is fired only for
|
3761
4049
|
* main-frame history navigation where the document changes (non-same-document navigations),
|
3762
4050
|
* when bfcache navigation fails.
|
4051
|
+
* @experimental
|
3763
4052
|
*/
|
3764
4053
|
onBackForwardCacheNotUsed(listener: (event: { params: Protocol.Page.BackForwardCacheNotUsedEvent }) => void): void;
|
3765
4054
|
offBackForwardCacheNotUsed(listener: (event: { params: Protocol.Page.BackForwardCacheNotUsedEvent }) => void): void;
|
@@ -3771,6 +4060,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3771
4060
|
|
3772
4061
|
/**
|
3773
4062
|
* Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
|
4063
|
+
* @experimental
|
3774
4064
|
*/
|
3775
4065
|
onNavigatedWithinDocument(listener: (event: { params: Protocol.Page.NavigatedWithinDocumentEvent }) => void): void;
|
3776
4066
|
offNavigatedWithinDocument(listener: (event: { params: Protocol.Page.NavigatedWithinDocumentEvent }) => void): void;
|
@@ -3778,6 +4068,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3778
4068
|
|
3779
4069
|
/**
|
3780
4070
|
* Compressed image data requested by the `startScreencast`.
|
4071
|
+
* @experimental
|
3781
4072
|
*/
|
3782
4073
|
onScreencastFrame(listener: (event: { params: Protocol.Page.ScreencastFrameEvent }) => void): void;
|
3783
4074
|
offScreencastFrame(listener: (event: { params: Protocol.Page.ScreencastFrameEvent }) => void): void;
|
@@ -3785,6 +4076,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3785
4076
|
|
3786
4077
|
/**
|
3787
4078
|
* Fired when the page with currently enabled screencast was shown or hidden `.
|
4079
|
+
* @experimental
|
3788
4080
|
*/
|
3789
4081
|
onScreencastVisibilityChanged(listener: (event: { params: Protocol.Page.ScreencastVisibilityChangedEvent }) => void): void;
|
3790
4082
|
offScreencastVisibilityChanged(listener: (event: { params: Protocol.Page.ScreencastVisibilityChangedEvent }) => void): void;
|
@@ -3801,6 +4093,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3801
4093
|
/**
|
3802
4094
|
* Issued for every compilation cache generated. Is only available
|
3803
4095
|
* if Page.setGenerateCompilationCache is enabled.
|
4096
|
+
* @experimental
|
3804
4097
|
*/
|
3805
4098
|
onCompilationCacheProduced(listener: (event: { params: Protocol.Page.CompilationCacheProducedEvent }) => void): void;
|
3806
4099
|
offCompilationCacheProduced(listener: (event: { params: Protocol.Page.CompilationCacheProducedEvent }) => void): void;
|
@@ -3823,6 +4116,8 @@ export namespace ProtocolTestsProxyApi {
|
|
3823
4116
|
* Sets time domain to use for collecting and reporting duration metrics.
|
3824
4117
|
* Note that this must be called before enabling metrics collection. Calling
|
3825
4118
|
* this method while metrics collection is enabled returns an error.
|
4119
|
+
* @deprecated
|
4120
|
+
* @experimental
|
3826
4121
|
*/
|
3827
4122
|
setTimeDomain(params: Protocol.Performance.SetTimeDomainRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3828
4123
|
|
@@ -3874,12 +4169,14 @@ export namespace ProtocolTestsProxyApi {
|
|
3874
4169
|
|
3875
4170
|
/**
|
3876
4171
|
* Handles a certificate error that fired a certificateError event.
|
4172
|
+
* @deprecated
|
3877
4173
|
*/
|
3878
4174
|
handleCertificateError(params: Protocol.Security.HandleCertificateErrorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3879
4175
|
|
3880
4176
|
/**
|
3881
4177
|
* Enable/disable overriding certificate errors. If enabled, all certificate error events need to
|
3882
4178
|
* be handled by the DevTools client and should be answered with `handleCertificateError` commands.
|
4179
|
+
* @deprecated
|
3883
4180
|
*/
|
3884
4181
|
setOverrideCertificateErrors(params: Protocol.Security.SetOverrideCertificateErrorsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3885
4182
|
|
@@ -3888,6 +4185,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3888
4185
|
* handled with the `handleCertificateError` command. Note: this event does not fire if the
|
3889
4186
|
* certificate error has been allowed internally. Only one client per target should override
|
3890
4187
|
* certificate errors at the same time.
|
4188
|
+
* @deprecated
|
3891
4189
|
*/
|
3892
4190
|
onCertificateError(listener: (event: { params: Protocol.Security.CertificateErrorEvent }) => void): void;
|
3893
4191
|
offCertificateError(listener: (event: { params: Protocol.Security.CertificateErrorEvent }) => void): void;
|
@@ -3895,6 +4193,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3895
4193
|
|
3896
4194
|
/**
|
3897
4195
|
* The security state of the page changed.
|
4196
|
+
* @experimental
|
3898
4197
|
*/
|
3899
4198
|
onVisibleSecurityStateChanged(listener: (event: { params: Protocol.Security.VisibleSecurityStateChangedEvent }) => void): void;
|
3900
4199
|
offVisibleSecurityStateChanged(listener: (event: { params: Protocol.Security.VisibleSecurityStateChangedEvent }) => void): void;
|
@@ -3902,6 +4201,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3902
4201
|
|
3903
4202
|
/**
|
3904
4203
|
* The security state of the page changed. No longer being sent.
|
4204
|
+
* @deprecated
|
3905
4205
|
*/
|
3906
4206
|
onSecurityStateChanged(listener: (event: { params: Protocol.Security.SecurityStateChangedEvent }) => void): void;
|
3907
4207
|
offSecurityStateChanged(listener: (event: { params: Protocol.Security.SecurityStateChangedEvent }) => void): void;
|
@@ -3986,6 +4286,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3986
4286
|
|
3987
4287
|
/**
|
3988
4288
|
* Override quota for the specified origin
|
4289
|
+
* @experimental
|
3989
4290
|
*/
|
3990
4291
|
overrideQuotaForOrigin(params: Protocol.Storage.OverrideQuotaForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3991
4292
|
|
@@ -4032,100 +4333,119 @@ export namespace ProtocolTestsProxyApi {
|
|
4032
4333
|
/**
|
4033
4334
|
* Returns the number of stored Trust Tokens per issuer for the
|
4034
4335
|
* current browsing context.
|
4336
|
+
* @experimental
|
4035
4337
|
*/
|
4036
4338
|
getTrustTokens(): Promise<{id: number, result: Protocol.Storage.GetTrustTokensResponse, sessionId: string}>;
|
4037
4339
|
|
4038
4340
|
/**
|
4039
4341
|
* Removes all Trust Tokens issued by the provided issuerOrigin.
|
4040
4342
|
* Leaves other stored data, including the issuer's Redemption Records, intact.
|
4343
|
+
* @experimental
|
4041
4344
|
*/
|
4042
4345
|
clearTrustTokens(params: Protocol.Storage.ClearTrustTokensRequest): Promise<{id: number, result: Protocol.Storage.ClearTrustTokensResponse, sessionId: string}>;
|
4043
4346
|
|
4044
4347
|
/**
|
4045
4348
|
* Gets details for a named interest group.
|
4349
|
+
* @experimental
|
4046
4350
|
*/
|
4047
4351
|
getInterestGroupDetails(params: Protocol.Storage.GetInterestGroupDetailsRequest): Promise<{id: number, result: Protocol.Storage.GetInterestGroupDetailsResponse, sessionId: string}>;
|
4048
4352
|
|
4049
4353
|
/**
|
4050
4354
|
* Enables/Disables issuing of interestGroupAccessed events.
|
4355
|
+
* @experimental
|
4051
4356
|
*/
|
4052
4357
|
setInterestGroupTracking(params: Protocol.Storage.SetInterestGroupTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4053
4358
|
|
4054
4359
|
/**
|
4055
4360
|
* Enables/Disables issuing of interestGroupAuctionEventOccurred and
|
4056
4361
|
* interestGroupAuctionNetworkRequestCreated.
|
4362
|
+
* @experimental
|
4057
4363
|
*/
|
4058
4364
|
setInterestGroupAuctionTracking(params: Protocol.Storage.SetInterestGroupAuctionTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4059
4365
|
|
4060
4366
|
/**
|
4061
4367
|
* Gets metadata for an origin's shared storage.
|
4368
|
+
* @experimental
|
4062
4369
|
*/
|
4063
4370
|
getSharedStorageMetadata(params: Protocol.Storage.GetSharedStorageMetadataRequest): Promise<{id: number, result: Protocol.Storage.GetSharedStorageMetadataResponse, sessionId: string}>;
|
4064
4371
|
|
4065
4372
|
/**
|
4066
4373
|
* Gets the entries in an given origin's shared storage.
|
4374
|
+
* @experimental
|
4067
4375
|
*/
|
4068
4376
|
getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<{id: number, result: Protocol.Storage.GetSharedStorageEntriesResponse, sessionId: string}>;
|
4069
4377
|
|
4070
4378
|
/**
|
4071
4379
|
* Sets entry with `key` and `value` for a given origin's shared storage.
|
4380
|
+
* @experimental
|
4072
4381
|
*/
|
4073
4382
|
setSharedStorageEntry(params: Protocol.Storage.SetSharedStorageEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4074
4383
|
|
4075
4384
|
/**
|
4076
4385
|
* Deletes entry for `key` (if it exists) for a given origin's shared storage.
|
4386
|
+
* @experimental
|
4077
4387
|
*/
|
4078
4388
|
deleteSharedStorageEntry(params: Protocol.Storage.DeleteSharedStorageEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4079
4389
|
|
4080
4390
|
/**
|
4081
4391
|
* Clears all entries for a given origin's shared storage.
|
4392
|
+
* @experimental
|
4082
4393
|
*/
|
4083
4394
|
clearSharedStorageEntries(params: Protocol.Storage.ClearSharedStorageEntriesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4084
4395
|
|
4085
4396
|
/**
|
4086
4397
|
* Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
|
4398
|
+
* @experimental
|
4087
4399
|
*/
|
4088
4400
|
resetSharedStorageBudget(params: Protocol.Storage.ResetSharedStorageBudgetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4089
4401
|
|
4090
4402
|
/**
|
4091
4403
|
* Enables/disables issuing of sharedStorageAccessed events.
|
4404
|
+
* @experimental
|
4092
4405
|
*/
|
4093
4406
|
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4094
4407
|
|
4095
4408
|
/**
|
4096
4409
|
* Set tracking for a storage key's buckets.
|
4410
|
+
* @experimental
|
4097
4411
|
*/
|
4098
4412
|
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4099
4413
|
|
4100
4414
|
/**
|
4101
4415
|
* Deletes the Storage Bucket with the given storage key and bucket name.
|
4416
|
+
* @experimental
|
4102
4417
|
*/
|
4103
4418
|
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4104
4419
|
|
4105
4420
|
/**
|
4106
4421
|
* Deletes state for sites identified as potential bounce trackers, immediately.
|
4422
|
+
* @experimental
|
4107
4423
|
*/
|
4108
4424
|
runBounceTrackingMitigations(): Promise<{id: number, result: Protocol.Storage.RunBounceTrackingMitigationsResponse, sessionId: string}>;
|
4109
4425
|
|
4110
4426
|
/**
|
4111
4427
|
* https://wicg.github.io/attribution-reporting-api/
|
4428
|
+
* @experimental
|
4112
4429
|
*/
|
4113
4430
|
setAttributionReportingLocalTestingMode(params: Protocol.Storage.SetAttributionReportingLocalTestingModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4114
4431
|
|
4115
4432
|
/**
|
4116
4433
|
* Enables/disables issuing of Attribution Reporting events.
|
4434
|
+
* @experimental
|
4117
4435
|
*/
|
4118
4436
|
setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4119
4437
|
|
4120
4438
|
/**
|
4121
4439
|
* Sends all pending Attribution Reports immediately, regardless of their
|
4122
4440
|
* scheduled report time.
|
4441
|
+
* @experimental
|
4123
4442
|
*/
|
4124
4443
|
sendPendingAttributionReports(): Promise<{id: number, result: Protocol.Storage.SendPendingAttributionReportsResponse, sessionId: string}>;
|
4125
4444
|
|
4126
4445
|
/**
|
4127
4446
|
* Returns the effective Related Website Sets in use by this profile for the browser
|
4128
4447
|
* session. The effective Related Website Sets will not change during a browser session.
|
4448
|
+
* @experimental
|
4129
4449
|
*/
|
4130
4450
|
getRelatedWebsiteSets(): Promise<{id: number, result: Protocol.Storage.GetRelatedWebsiteSetsResponse, sessionId: string}>;
|
4131
4451
|
|
@@ -4133,6 +4453,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4133
4453
|
* Returns the list of URLs from a page and its embedded resources that match
|
4134
4454
|
* existing grace period URL pattern rules.
|
4135
4455
|
* https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
|
4456
|
+
* @experimental
|
4136
4457
|
*/
|
4137
4458
|
getAffectedUrlsForThirdPartyCookieMetadata(params: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataRequest): Promise<{id: number, result: Protocol.Storage.GetAffectedUrlsForThirdPartyCookieMetadataResponse, sessionId: string}>;
|
4138
4459
|
|
@@ -4216,18 +4537,30 @@ export namespace ProtocolTestsProxyApi {
|
|
4216
4537
|
offStorageBucketDeleted(listener: (event: { params: Protocol.Storage.StorageBucketDeletedEvent }) => void): void;
|
4217
4538
|
onceStorageBucketDeleted(eventMatcher?: (event: { params: Protocol.Storage.StorageBucketDeletedEvent }) => boolean): Promise<{ params: Protocol.Storage.StorageBucketDeletedEvent }>;
|
4218
4539
|
|
4540
|
+
/**
|
4541
|
+
* @experimental
|
4542
|
+
*/
|
4219
4543
|
onAttributionReportingSourceRegistered(listener: (event: { params: Protocol.Storage.AttributionReportingSourceRegisteredEvent }) => void): void;
|
4220
4544
|
offAttributionReportingSourceRegistered(listener: (event: { params: Protocol.Storage.AttributionReportingSourceRegisteredEvent }) => void): void;
|
4221
4545
|
onceAttributionReportingSourceRegistered(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingSourceRegisteredEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingSourceRegisteredEvent }>;
|
4222
4546
|
|
4547
|
+
/**
|
4548
|
+
* @experimental
|
4549
|
+
*/
|
4223
4550
|
onAttributionReportingTriggerRegistered(listener: (event: { params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }) => void): void;
|
4224
4551
|
offAttributionReportingTriggerRegistered(listener: (event: { params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }) => void): void;
|
4225
4552
|
onceAttributionReportingTriggerRegistered(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingTriggerRegisteredEvent }>;
|
4226
4553
|
|
4554
|
+
/**
|
4555
|
+
* @experimental
|
4556
|
+
*/
|
4227
4557
|
onAttributionReportingReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => void): void;
|
4228
4558
|
offAttributionReportingReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => void): void;
|
4229
4559
|
onceAttributionReportingReportSent(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingReportSentEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingReportSentEvent }>;
|
4230
4560
|
|
4561
|
+
/**
|
4562
|
+
* @experimental
|
4563
|
+
*/
|
4231
4564
|
onAttributionReportingVerboseDebugReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingVerboseDebugReportSentEvent }) => void): void;
|
4232
4565
|
offAttributionReportingVerboseDebugReportSent(listener: (event: { params: Protocol.Storage.AttributionReportingVerboseDebugReportSentEvent }) => void): void;
|
4233
4566
|
onceAttributionReportingVerboseDebugReportSent(eventMatcher?: (event: { params: Protocol.Storage.AttributionReportingVerboseDebugReportSentEvent }) => boolean): Promise<{ params: Protocol.Storage.AttributionReportingVerboseDebugReportSentEvent }>;
|
@@ -4265,6 +4598,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4265
4598
|
|
4266
4599
|
/**
|
4267
4600
|
* Attaches to the browser target, only uses flat sessionId mode.
|
4601
|
+
* @experimental
|
4268
4602
|
*/
|
4269
4603
|
attachToBrowserTarget(): Promise<{id: number, result: Protocol.Target.AttachToBrowserTargetResponse, sessionId: string}>;
|
4270
4604
|
|
@@ -4282,6 +4616,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4282
4616
|
* The object has the following API:
|
4283
4617
|
* - `binding.send(json)` - a method to send messages over the remote debugging protocol
|
4284
4618
|
* - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.
|
4619
|
+
* @experimental
|
4285
4620
|
*/
|
4286
4621
|
exposeDevToolsProtocol(params: Protocol.Target.ExposeDevToolsProtocolRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4287
4622
|
|
@@ -4314,6 +4649,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4314
4649
|
|
4315
4650
|
/**
|
4316
4651
|
* Returns information about a target.
|
4652
|
+
* @experimental
|
4317
4653
|
*/
|
4318
4654
|
getTargetInfo(params: Protocol.Target.GetTargetInfoRequest): Promise<{id: number, result: Protocol.Target.GetTargetInfoResponse, sessionId: string}>;
|
4319
4655
|
|
@@ -4326,6 +4662,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4326
4662
|
* Sends protocol message over session with given id.
|
4327
4663
|
* Consider using flat mode instead; see commands attachToTarget, setAutoAttach,
|
4328
4664
|
* and crbug.com/991325.
|
4665
|
+
* @deprecated
|
4329
4666
|
*/
|
4330
4667
|
sendMessageToTarget(params: Protocol.Target.SendMessageToTargetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4331
4668
|
|
@@ -4347,6 +4684,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4347
4684
|
* through `attachedToTarget`. The specified target is also auto-attached.
|
4348
4685
|
* This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent
|
4349
4686
|
* `setAutoAttach`. Only available at the Browser target.
|
4687
|
+
* @experimental
|
4350
4688
|
*/
|
4351
4689
|
autoAttachRelated(params: Protocol.Target.AutoAttachRelatedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4352
4690
|
|
@@ -4359,11 +4697,13 @@ export namespace ProtocolTestsProxyApi {
|
|
4359
4697
|
/**
|
4360
4698
|
* Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
|
4361
4699
|
* `true`.
|
4700
|
+
* @experimental
|
4362
4701
|
*/
|
4363
4702
|
setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4364
4703
|
|
4365
4704
|
/**
|
4366
4705
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
4706
|
+
* @experimental
|
4367
4707
|
*/
|
4368
4708
|
onAttachedToTarget(listener: (event: { params: Protocol.Target.AttachedToTargetEvent }) => void): void;
|
4369
4709
|
offAttachedToTarget(listener: (event: { params: Protocol.Target.AttachedToTargetEvent }) => void): void;
|
@@ -4372,6 +4712,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4372
4712
|
/**
|
4373
4713
|
* Issued when detached from target for any reason (including `detachFromTarget` command). Can be
|
4374
4714
|
* issued multiple times per target if multiple sessions have been attached to it.
|
4715
|
+
* @experimental
|
4375
4716
|
*/
|
4376
4717
|
onDetachedFromTarget(listener: (event: { params: Protocol.Target.DetachedFromTargetEvent }) => void): void;
|
4377
4718
|
offDetachedFromTarget(listener: (event: { params: Protocol.Target.DetachedFromTargetEvent }) => void): void;
|
@@ -4444,16 +4785,19 @@ export namespace ProtocolTestsProxyApi {
|
|
4444
4785
|
|
4445
4786
|
/**
|
4446
4787
|
* Gets supported tracing categories.
|
4788
|
+
* @experimental
|
4447
4789
|
*/
|
4448
4790
|
getCategories(): Promise<{id: number, result: Protocol.Tracing.GetCategoriesResponse, sessionId: string}>;
|
4449
4791
|
|
4450
4792
|
/**
|
4451
4793
|
* Record a clock sync marker in the trace.
|
4794
|
+
* @experimental
|
4452
4795
|
*/
|
4453
4796
|
recordClockSyncMarker(params: Protocol.Tracing.RecordClockSyncMarkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4454
4797
|
|
4455
4798
|
/**
|
4456
4799
|
* Request a global memory dump.
|
4800
|
+
* @experimental
|
4457
4801
|
*/
|
4458
4802
|
requestMemoryDump(params: Protocol.Tracing.RequestMemoryDumpRequest): Promise<{id: number, result: Protocol.Tracing.RequestMemoryDumpResponse, sessionId: string}>;
|
4459
4803
|
|
@@ -4462,6 +4806,9 @@ export namespace ProtocolTestsProxyApi {
|
|
4462
4806
|
*/
|
4463
4807
|
start(params: Protocol.Tracing.StartRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4464
4808
|
|
4809
|
+
/**
|
4810
|
+
* @experimental
|
4811
|
+
*/
|
4465
4812
|
onBufferUsage(listener: (event: { params: Protocol.Tracing.BufferUsageEvent }) => void): void;
|
4466
4813
|
offBufferUsage(listener: (event: { params: Protocol.Tracing.BufferUsageEvent }) => void): void;
|
4467
4814
|
onceBufferUsage(eventMatcher?: (event: { params: Protocol.Tracing.BufferUsageEvent }) => boolean): Promise<{ params: Protocol.Tracing.BufferUsageEvent }>;
|
@@ -4469,6 +4816,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4469
4816
|
/**
|
4470
4817
|
* Contains a bucket of collected trace events. When tracing is stopped collected events will be
|
4471
4818
|
* sent as a sequence of dataCollected events followed by tracingComplete event.
|
4819
|
+
* @experimental
|
4472
4820
|
*/
|
4473
4821
|
onDataCollected(listener: (event: { params: Protocol.Tracing.DataCollectedEvent }) => void): void;
|
4474
4822
|
offDataCollected(listener: (event: { params: Protocol.Tracing.DataCollectedEvent }) => void): void;
|
@@ -4520,6 +4868,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4520
4868
|
* Continues loading of the paused response, optionally modifying the
|
4521
4869
|
* response headers. If either responseCode or headers are modified, all of them
|
4522
4870
|
* must be present.
|
4871
|
+
* @experimental
|
4523
4872
|
*/
|
4524
4873
|
continueResponse(params: Protocol.Fetch.ContinueResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4525
4874
|
|