@checkly/playwright-core 1.47.12 → 1.48.10-alpha

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.
Files changed (227) hide show
  1. package/browsers.json +14 -10
  2. package/lib/cli/program.js +22 -12
  3. package/lib/client/api.js +6 -0
  4. package/lib/client/browserContext.js +20 -2
  5. package/lib/client/channelOwner.js +5 -2
  6. package/lib/client/connection.js +3 -0
  7. package/lib/client/fetch.js +16 -3
  8. package/lib/client/jsHandle.js +0 -8
  9. package/lib/client/localUtils.js +1 -0
  10. package/lib/client/network.js +175 -17
  11. package/lib/client/page.js +21 -0
  12. package/lib/client/playwright.js +6 -3
  13. package/lib/client/tracing.js +16 -20
  14. package/lib/generated/consoleApiSource.js +1 -1
  15. package/lib/generated/injectedScriptSource.js +1 -1
  16. package/lib/generated/pollingRecorderSource.js +7 -0
  17. package/lib/generated/webSocketMockSource.js +7 -0
  18. package/lib/protocol/validator.js +79 -14
  19. package/lib/server/bidi/bidiBrowser.js +23 -8
  20. package/lib/server/bidi/bidiChromium.js +124 -0
  21. package/lib/server/bidi/bidiConnection.js +1 -1
  22. package/lib/server/bidi/bidiExecutionContext.js +0 -3
  23. package/lib/server/bidi/bidiFirefox.js +15 -21
  24. package/lib/server/bidi/bidiInput.js +16 -32
  25. package/lib/server/bidi/bidiNetworkManager.js +39 -5
  26. package/lib/server/bidi/bidiOverCdp.js +103 -0
  27. package/lib/server/bidi/bidiPage.js +98 -25
  28. package/lib/server/bidi/bidiPdf.js +140 -0
  29. package/lib/server/bidi/third_party/firefoxPrefs.js +221 -0
  30. package/lib/server/browser.js +13 -2
  31. package/lib/server/browserContext.js +6 -23
  32. package/lib/server/browserType.js +39 -11
  33. package/lib/server/chromium/chromium.js +3 -15
  34. package/lib/server/chromium/chromiumSwitches.js +3 -1
  35. package/lib/server/chromium/crBrowser.js +4 -3
  36. package/lib/server/chromium/crExecutionContext.js +0 -7
  37. package/lib/server/chromium/crPage.js +5 -2
  38. package/lib/server/chromium/videoRecorder.js +1 -1
  39. package/lib/server/codegen/csharp.js +2 -2
  40. package/lib/server/codegen/java.js +1 -1
  41. package/lib/server/codegen/javascript.js +1 -1
  42. package/lib/server/codegen/language.js +14 -2
  43. package/lib/server/codegen/python.js +2 -2
  44. package/lib/server/cookieStore.js +73 -0
  45. package/lib/server/debugController.js +2 -2
  46. package/lib/server/deviceDescriptorsSource.json +51 -51
  47. package/lib/server/dialog.js +1 -0
  48. package/lib/server/dispatchers/browserContextDispatcher.js +19 -2
  49. package/lib/server/dispatchers/jsHandleDispatcher.js +0 -5
  50. package/lib/server/dispatchers/pageDispatcher.js +9 -0
  51. package/lib/server/dispatchers/playwrightDispatcher.js +2 -1
  52. package/lib/server/dispatchers/webSocketRouteDispatcher.js +189 -0
  53. package/lib/server/download.js +9 -2
  54. package/lib/server/fetch.js +96 -99
  55. package/lib/server/firefox/ffBrowser.js +6 -4
  56. package/lib/server/firefox/ffExecutionContext.js +0 -3
  57. package/lib/server/firefox/ffPage.js +3 -0
  58. package/lib/server/firefox/firefox.js +2 -13
  59. package/lib/server/frameSelectors.js +1 -1
  60. package/lib/server/frames.js +3 -2
  61. package/lib/server/har/harTracer.js +11 -0
  62. package/lib/server/input.js +0 -1
  63. package/lib/server/javascript.js +0 -7
  64. package/lib/server/page.js +5 -1
  65. package/lib/server/playwright.js +5 -2
  66. package/lib/server/recorder/contextRecorder.js +33 -50
  67. package/lib/server/recorder/recorderActions.js +2 -1
  68. package/lib/server/recorder/recorderApp.js +15 -9
  69. package/lib/server/recorder/recorderCollection.js +68 -79
  70. package/lib/server/recorder/recorderFrontend.js +5 -0
  71. package/lib/server/recorder/recorderInTraceViewer.js +144 -0
  72. package/lib/server/recorder/recorderRunner.js +75 -97
  73. package/lib/server/recorder/recorderUtils.js +47 -6
  74. package/lib/server/recorder.js +28 -25
  75. package/lib/server/registry/index.js +85 -4
  76. package/lib/server/socksClientCertificatesInterceptor.js +15 -3
  77. package/lib/server/trace/recorder/snapshotter.js +1 -0
  78. package/lib/server/trace/recorder/snapshotterInjected.js +2 -2
  79. package/lib/server/trace/recorder/tracing.js +58 -2
  80. package/lib/server/trace/test/inMemorySnapshotter.js +1 -1
  81. package/lib/server/trace/viewer/traceViewer.js +2 -5
  82. package/lib/server/webkit/webkit.js +1 -1
  83. package/lib/server/webkit/wkBrowser.js +6 -5
  84. package/lib/server/webkit/wkExecutionContext.js +0 -3
  85. package/lib/server/webkit/wkPage.js +4 -1
  86. package/lib/utils/happy-eyeballs.js +13 -0
  87. package/lib/utils/hostPlatform.js +2 -2
  88. package/lib/utils/httpServer.js +1 -0
  89. package/lib/utils/isomorphic/locatorGenerators.js +9 -18
  90. package/lib/utils/isomorphic/locatorParser.js +2 -2
  91. package/lib/utils/isomorphic/recorderUtils.js +195 -0
  92. package/lib/vite/htmlReport/index.html +12 -12
  93. package/lib/vite/recorder/assets/codeMirrorModule-CND2fZ5Q.js +24 -0
  94. package/lib/vite/recorder/assets/{index-NC7rIA63.css → index-BW-aOBcL.css} +1 -1
  95. package/lib/vite/recorder/assets/{index-A2TWT47O.js → index-CEc83sSS.js} +10 -15
  96. package/lib/vite/recorder/index.html +2 -2
  97. package/lib/vite/traceViewer/assets/codeMirrorModule-5yiV-3wl.js +16831 -0
  98. package/lib/vite/traceViewer/assets/codeMirrorModule-B7Z3vq11.js +24 -0
  99. package/lib/vite/traceViewer/assets/codeMirrorModule-BdBhzV6t.js +16443 -0
  100. package/lib/vite/traceViewer/assets/codeMirrorModule-BqcXH1AO.js +16838 -0
  101. package/lib/vite/traceViewer/assets/codeMirrorModule-C6p3E9Zg.js +24 -0
  102. package/lib/vite/traceViewer/assets/codeMirrorModule-Ca-1BNel.js +24 -0
  103. package/lib/vite/traceViewer/assets/codeMirrorModule-CcviAl53.js +16831 -0
  104. package/lib/vite/{recorder/assets/codeMirrorModule-vr7pfcwZ.js → traceViewer/assets/codeMirrorModule-CqYUz5ms.js} +1 -1
  105. package/lib/vite/traceViewer/assets/codeMirrorModule-DS3v0XrQ.js +24 -0
  106. package/lib/vite/traceViewer/assets/codeMirrorModule-Dx6AXgMV.js +16838 -0
  107. package/lib/vite/traceViewer/assets/codeMirrorModule-EhKN7Okm.js +16449 -0
  108. package/lib/vite/traceViewer/assets/codeMirrorModule-MzSmL4X2.js +24 -0
  109. package/lib/vite/traceViewer/assets/{codeMirrorModule-cCPLLRBo.js → codeMirrorModule-T_sdMrbM.js} +1 -1
  110. package/lib/vite/traceViewer/assets/codeMirrorModule-U6XMqGkV.js +16437 -0
  111. package/lib/vite/traceViewer/assets/inspectorTab-BABZNwlH.js +17351 -0
  112. package/lib/vite/traceViewer/assets/inspectorTab-BPzVEZSf.js +17351 -0
  113. package/lib/vite/traceViewer/assets/inspectorTab-Bbgq0hgt.js +64 -0
  114. package/lib/vite/traceViewer/assets/inspectorTab-DhBbZz8I.js +64 -0
  115. package/lib/vite/traceViewer/assets/inspectorTab-DpvLVMq5.js +17351 -0
  116. package/lib/vite/traceViewer/assets/testServerConnection-D-tXL3sj.js +224 -0
  117. package/lib/vite/traceViewer/assets/workbench-B13nfocr.js +9 -0
  118. package/lib/vite/traceViewer/assets/workbench-BcgGQnKb.js +1473 -0
  119. package/lib/vite/traceViewer/assets/{wsPort-MnTGOuCA.js → workbench-Bjkiwcr1.js} +1505 -926
  120. package/lib/vite/traceViewer/assets/workbench-BwodYCgl.js +19119 -0
  121. package/lib/vite/traceViewer/assets/workbench-ByyWxoT8.js +1473 -0
  122. package/lib/vite/traceViewer/assets/{workbench-z8ylMSQK.js → workbench-C43LWZEX.js} +7 -7
  123. package/lib/vite/traceViewer/assets/workbench-C5OQh9VX.js +19119 -0
  124. package/lib/vite/traceViewer/assets/workbench-Crj6jzdv.js +19119 -0
  125. package/lib/vite/traceViewer/assets/workbench-DhqI6jeL.js +1473 -0
  126. package/lib/vite/traceViewer/assets/workbench-DrQjKdyE.js +72 -0
  127. package/lib/vite/traceViewer/assets/workbench-Pa1v1Ojh.js +72 -0
  128. package/lib/vite/traceViewer/assets/workbench-caTaZnzx.js +72 -0
  129. package/lib/vite/traceViewer/assets/workbench-gtYcQBNA.js +9 -0
  130. package/lib/vite/traceViewer/assets/workbench-u2lRPMOT.js +72 -0
  131. package/lib/vite/traceViewer/assets/xtermModule-CZ7sDYXB.js +6529 -0
  132. package/lib/vite/traceViewer/assets/xtermModule-DZP0glxx.js +5982 -0
  133. package/lib/vite/traceViewer/codeMirrorModule.Cy8X9Wtw.css +344 -0
  134. package/lib/vite/traceViewer/embedded.27BGR_eD.js +105 -0
  135. package/lib/vite/traceViewer/embedded.BBZ9gQEw.js +104 -0
  136. package/lib/vite/traceViewer/embedded.BQq6Psnz.js +104 -0
  137. package/lib/vite/traceViewer/{embedded.TOXRJZ9A.js → embedded.BVDVQOzc.js} +1 -1
  138. package/lib/vite/traceViewer/embedded.Bn8Ptzv6.js +2 -0
  139. package/lib/vite/traceViewer/embedded.CorI3dFX.js +104 -0
  140. package/lib/vite/traceViewer/embedded.CvhnUgIi.js +2 -0
  141. package/lib/vite/traceViewer/embedded.D27cnKiB.js +104 -0
  142. package/lib/vite/traceViewer/embedded.D4lqGydT.js +2 -0
  143. package/lib/vite/traceViewer/embedded.DPqrDeET.js +2 -0
  144. package/lib/vite/traceViewer/embedded.DTjd2aiy.js +105 -0
  145. package/lib/vite/traceViewer/embedded.DbzY7Q8w.js +2 -0
  146. package/lib/vite/traceViewer/embedded.DjZq4InJ.css +68 -0
  147. package/lib/vite/traceViewer/embedded.SsjKHrxC.js +105 -0
  148. package/lib/vite/traceViewer/embedded.f-PLGsBT.js +2 -0
  149. package/lib/vite/traceViewer/embedded.html +6 -4
  150. package/lib/vite/traceViewer/index.B7aiTMfZ.js +2 -0
  151. package/lib/vite/traceViewer/{index.e7qpO0B0.js → index.B8dgQwuN.js} +1 -1
  152. package/lib/vite/traceViewer/index.BGj8jY3H.js +2 -0
  153. package/lib/vite/traceViewer/index.BSak5QT9.js +2 -0
  154. package/lib/vite/traceViewer/index.BrT2kfuc.js +2 -0
  155. package/lib/vite/traceViewer/{index.RT4iItO_.js → index.C0EgJ4oW.js} +36 -21
  156. package/lib/vite/traceViewer/index.CUpI-BFe.js +195 -0
  157. package/lib/vite/traceViewer/index.DkRbtWVo.js +195 -0
  158. package/lib/vite/traceViewer/index.DsjmhbB6.js +195 -0
  159. package/lib/vite/traceViewer/index.Dz3icWJV.js +196 -0
  160. package/lib/vite/traceViewer/index.PqcsvBxQ.js +196 -0
  161. package/lib/vite/traceViewer/index.QanXxRUb.css +131 -0
  162. package/lib/vite/traceViewer/index._cX8k4co.js +2 -0
  163. package/lib/vite/traceViewer/index.html +7 -5
  164. package/lib/vite/traceViewer/index.pMAN88y-.js +2 -0
  165. package/lib/vite/traceViewer/index.yxAwzeWG.js +196 -0
  166. package/lib/vite/traceViewer/inspectorTab.DGJWXOSd.css +3145 -0
  167. package/lib/vite/traceViewer/inspectorTab.DLjBDrQR.css +1 -0
  168. package/lib/vite/traceViewer/recorder.7Wl6HrQl.js +550 -0
  169. package/lib/vite/traceViewer/recorder.B_SY1GJM.css +0 -0
  170. package/lib/vite/traceViewer/recorder.BufKu9Hp.js +550 -0
  171. package/lib/vite/traceViewer/recorder.Ch-WHviK.js +2 -0
  172. package/lib/vite/traceViewer/recorder.DBDpiNOK.css +15 -0
  173. package/lib/vite/traceViewer/recorder.POd-toIn.js +2 -0
  174. package/lib/vite/traceViewer/recorder.am-MV-DQ.js +550 -0
  175. package/lib/vite/traceViewer/recorder.html +17 -0
  176. package/lib/vite/traceViewer/sw.bundle.js +3 -3
  177. package/lib/vite/traceViewer/uiMode.BEZVCe5O.js +5 -0
  178. package/lib/vite/traceViewer/uiMode.BZoFj6zV.js +1723 -0
  179. package/lib/vite/traceViewer/uiMode.C4nbcio6.js +1730 -0
  180. package/lib/vite/traceViewer/uiMode.CAYqod-m.css +1 -0
  181. package/lib/vite/traceViewer/uiMode.D-tg1Oci.js +1730 -0
  182. package/lib/vite/traceViewer/uiMode.DKjMBMlc.js +1730 -0
  183. package/lib/vite/traceViewer/uiMode.DRmgrHSk.css +1462 -0
  184. package/lib/vite/traceViewer/uiMode.DVWUEIHq.css +1424 -0
  185. package/lib/vite/traceViewer/{uiMode.MTXOs_2V.js → uiMode.DVrL7a1K.js} +5 -5
  186. package/lib/vite/traceViewer/uiMode.DdtUZZVS.js +5 -0
  187. package/lib/vite/traceViewer/uiMode.Dg9oJCQU.js +10 -0
  188. package/lib/vite/traceViewer/uiMode.Dlo9s_YX.js +1723 -0
  189. package/lib/vite/traceViewer/uiMode.DwZAzstF.js +10 -0
  190. package/lib/vite/traceViewer/uiMode.O07awP3T.js +10 -0
  191. package/lib/vite/traceViewer/uiMode.gGHHTsyL.js +1730 -0
  192. package/lib/vite/traceViewer/uiMode.html +7 -5
  193. package/lib/vite/traceViewer/uiMode.jY2s-9ps.js +10 -0
  194. package/lib/vite/traceViewer/uiMode.wsGnVMQK.js +1723 -0
  195. package/lib/vite/traceViewer/workbench.B3X2QtYa.css +3702 -0
  196. package/lib/vite/traceViewer/workbench.BQNDbcQ0.css +550 -0
  197. package/lib/vite/traceViewer/{workbench.NokwQoMV.css → workbench.DjbIuxix.css} +1 -1
  198. package/lib/vite/traceViewer/workbench.DlsCx8k5.css +1 -0
  199. package/lib/vite/traceViewer/workbench.DyTpxWVb.css +1 -0
  200. package/lib/vite/traceViewer/workbench.wuxQoE2z.css +3703 -0
  201. package/lib/vite/traceViewer/xtermModule.4oRVGWQ-.css +209 -0
  202. package/package.json +1 -1
  203. package/types/protocol.d.ts +610 -173
  204. package/types/types.d.ts +2037 -949
  205. package/lib/vite/traceViewer/assets/codeMirrorModule-0bpaqixv.js +0 -24
  206. package/lib/vite/traceViewer/assets/codeMirrorModule-clyjx5sb.js +0 -15578
  207. package/lib/vite/traceViewer/assets/codeMirrorModule-wLpsbIhd.js +0 -24
  208. package/lib/vite/traceViewer/assets/wsPort-_JBDEilC.js +0 -69
  209. package/lib/vite/traceViewer/assets/wsPort-f2dAQL4I.js +0 -69
  210. package/lib/vite/traceViewer/index.-_8-eHEE.js +0 -2
  211. package/lib/vite/traceViewer/index.-g_5lMbJ.css +0 -1
  212. package/lib/vite/traceViewer/index.u51inEcm.js +0 -2
  213. package/lib/vite/traceViewer/uiMode.9CwNsWc6.js +0 -10
  214. package/lib/vite/traceViewer/uiMode.Fb0bNA4H.js +0 -10
  215. package/lib/vite/traceViewer/uiMode.pWy0Re7G.css +0 -1
  216. package/lib/vite/traceViewer/uiMode.yLNTmFO4.js +0 -1490
  217. package/lib/vite/traceViewer/wsPort.zR1WIy9-.css +0 -1
  218. /package/lib/vite/recorder/assets/{codeMirrorModule-Hs9-1ZG4.css → codeMirrorModule-ez37Vkbh.css} +0 -0
  219. /package/lib/vite/recorder/assets/{codicon-wpoHPmsu.ttf → codicon-DCmgc-ay.ttf} +0 -0
  220. /package/lib/vite/traceViewer/assets/{testServerConnection-_1gRQKgk.js → testServerConnection-DeE2kSzz.js} +0 -0
  221. /package/lib/vite/traceViewer/assets/{xtermModule-Yt6xwiJ_.js → xtermModule-BeNbaIVa.js} +0 -0
  222. /package/lib/vite/traceViewer/{codeMirrorModule.Hs9-1ZG4.css → codeMirrorModule.ez37Vkbh.css} +0 -0
  223. /package/lib/vite/traceViewer/{codicon.wpoHPmsu.ttf → codicon.DCmgc-ay.ttf} +0 -0
  224. /package/lib/vite/traceViewer/{embedded.MO1jdrtU.css → embedded.w7WN2u1R.css} +0 -0
  225. /package/lib/vite/traceViewer/{index.q21lh23x.css → index.CrbWWHbf.css} +0 -0
  226. /package/lib/vite/traceViewer/{uiMode.93DRT-rm.css → uiMode.D3cNFP6u.css} +0 -0
  227. /package/lib/vite/traceViewer/{xtermModule.0lwXJFHT.css → xtermModule.DSXBckUd.css} +0 -0
@@ -170,7 +170,7 @@ export module Protocol {
170
170
  */
171
171
  frameId?: Page.FrameId;
172
172
  }
173
-
173
+
174
174
  /**
175
175
  * The loadComplete event mirrors the load complete event sent by the browser to assistive
176
176
  technology when the web page has finished loading.
@@ -190,7 +190,7 @@ technology when the web page has finished loading.
190
190
  */
191
191
  nodes: AXNode[];
192
192
  }
193
-
193
+
194
194
  /**
195
195
  * Disables the accessibility domain.
196
196
  */
@@ -339,7 +339,7 @@ including nodes that are ignored for accessibility.
339
339
  nodes: AXNode[];
340
340
  }
341
341
  }
342
-
342
+
343
343
  export module Animation {
344
344
  /**
345
345
  * Animation instance.
@@ -497,7 +497,7 @@ percentage [0 - 100] for scroll driven animations
497
497
  */
498
498
  easing: string;
499
499
  }
500
-
500
+
501
501
  /**
502
502
  * Event for when an animation has been cancelled.
503
503
  */
@@ -534,7 +534,6 @@ percentage [0 - 100] for scroll driven animations
534
534
  */
535
535
  animation: Animation;
536
536
  }
537
-
538
537
  /**
539
538
  * Disables animation domain notifications.
540
539
  */
@@ -662,7 +661,7 @@ percentage [0 - 100] for scroll driven animations
662
661
  export type setTimingReturnValue = {
663
662
  }
664
663
  }
665
-
664
+
666
665
  /**
667
666
  * Audits domain allows investigation of page violations and possible improvements.
668
667
  */
@@ -840,7 +839,7 @@ CORS RFC1918 enforcement.
840
839
  resourceIPAddressSpace?: Network.IPAddressSpace;
841
840
  clientSecurityState?: Network.ClientSecurityState;
842
841
  }
843
- export type AttributionReportingIssueType = "PermissionPolicyDisabled"|"UntrustworthyReportingOrigin"|"InsecureContext"|"InvalidHeader"|"InvalidRegisterTriggerHeader"|"SourceAndTriggerHeaders"|"SourceIgnored"|"TriggerIgnored"|"OsSourceIgnored"|"OsTriggerIgnored"|"InvalidRegisterOsSourceHeader"|"InvalidRegisterOsTriggerHeader"|"WebAndOsHeaders"|"NoWebOrOsSupport"|"NavigationRegistrationWithoutTransientUserActivation"|"InvalidInfoHeader"|"NoRegisterSourceHeader"|"NoRegisterTriggerHeader"|"NoRegisterOsSourceHeader"|"NoRegisterOsTriggerHeader";
842
+ export type AttributionReportingIssueType = "PermissionPolicyDisabled"|"UntrustworthyReportingOrigin"|"InsecureContext"|"InvalidHeader"|"InvalidRegisterTriggerHeader"|"SourceAndTriggerHeaders"|"SourceIgnored"|"TriggerIgnored"|"OsSourceIgnored"|"OsTriggerIgnored"|"InvalidRegisterOsSourceHeader"|"InvalidRegisterOsTriggerHeader"|"WebAndOsHeaders"|"NoWebOrOsSupport"|"NavigationRegistrationWithoutTransientUserActivation"|"InvalidInfoHeader"|"NoRegisterSourceHeader"|"NoRegisterTriggerHeader"|"NoRegisterOsSourceHeader"|"NoRegisterOsTriggerHeader"|"NavigationRegistrationUniqueScopeAlreadySet";
844
843
  export type SharedDictionaryError = "UseErrorCrossOriginNoCorsRequest"|"UseErrorDictionaryLoadFailure"|"UseErrorMatchingDictionaryNotUsed"|"UseErrorUnexpectedContentDictionaryHeader"|"WriteErrorCossOriginNoCorsRequest"|"WriteErrorDisallowedBySettings"|"WriteErrorExpiredResponse"|"WriteErrorFeatureDisabled"|"WriteErrorInsufficientResources"|"WriteErrorInvalidMatchField"|"WriteErrorInvalidStructuredHeader"|"WriteErrorNavigationRequest"|"WriteErrorNoMatchField"|"WriteErrorNonListMatchDestField"|"WriteErrorNonSecureContext"|"WriteErrorNonStringIdField"|"WriteErrorNonStringInMatchDestList"|"WriteErrorNonStringMatchField"|"WriteErrorNonTokenTypeField"|"WriteErrorRequestAborted"|"WriteErrorShuttingDown"|"WriteErrorTooLongIdField"|"WriteErrorUnsupportedType";
845
844
  /**
846
845
  * Details for issues around "Attribution Reporting API" usage.
@@ -1051,11 +1050,11 @@ exception, CDP message, etc.) is referencing this issue.
1051
1050
  */
1052
1051
  issueId?: IssueId;
1053
1052
  }
1054
-
1053
+
1055
1054
  export type issueAddedPayload = {
1056
1055
  issue: InspectorIssue;
1057
1056
  }
1058
-
1057
+
1059
1058
  /**
1060
1059
  * Returns the response body and size if it were re-encoded with the specified settings. Only
1061
1060
  applies to images.
@@ -1129,7 +1128,113 @@ using Audits.issueAdded event.
1129
1128
  formIssues: GenericIssueDetails[];
1130
1129
  }
1131
1130
  }
1132
-
1131
+
1132
+ /**
1133
+ * Defines commands and events for browser extensions.
1134
+ */
1135
+ export module Extensions {
1136
+ /**
1137
+ * Storage areas.
1138
+ */
1139
+ export type StorageArea = "session"|"local"|"sync"|"managed";
1140
+
1141
+
1142
+ /**
1143
+ * Installs an unpacked extension from the filesystem similar to
1144
+ --load-extension CLI flags. Returns extension ID once the extension
1145
+ has been installed. Available if the client is connected using the
1146
+ --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
1147
+ flag is set.
1148
+ */
1149
+ export type loadUnpackedParameters = {
1150
+ /**
1151
+ * Absolute file path.
1152
+ */
1153
+ path: string;
1154
+ }
1155
+ export type loadUnpackedReturnValue = {
1156
+ /**
1157
+ * Extension id.
1158
+ */
1159
+ id: string;
1160
+ }
1161
+ /**
1162
+ * Gets data from extension storage in the given `storageArea`. If `keys` is
1163
+ specified, these are used to filter the result.
1164
+ */
1165
+ export type getStorageItemsParameters = {
1166
+ /**
1167
+ * ID of extension.
1168
+ */
1169
+ id: string;
1170
+ /**
1171
+ * StorageArea to retrieve data from.
1172
+ */
1173
+ storageArea: StorageArea;
1174
+ /**
1175
+ * Keys to retrieve.
1176
+ */
1177
+ keys?: string[];
1178
+ }
1179
+ export type getStorageItemsReturnValue = {
1180
+ data: { [key: string]: string };
1181
+ }
1182
+ /**
1183
+ * Removes `keys` from extension storage in the given `storageArea`.
1184
+ */
1185
+ export type removeStorageItemsParameters = {
1186
+ /**
1187
+ * ID of extension.
1188
+ */
1189
+ id: string;
1190
+ /**
1191
+ * StorageArea to remove data from.
1192
+ */
1193
+ storageArea: StorageArea;
1194
+ /**
1195
+ * Keys to remove.
1196
+ */
1197
+ keys: string[];
1198
+ }
1199
+ export type removeStorageItemsReturnValue = {
1200
+ }
1201
+ /**
1202
+ * Clears extension storage in the given `storageArea`.
1203
+ */
1204
+ export type clearStorageItemsParameters = {
1205
+ /**
1206
+ * ID of extension.
1207
+ */
1208
+ id: string;
1209
+ /**
1210
+ * StorageArea to remove data from.
1211
+ */
1212
+ storageArea: StorageArea;
1213
+ }
1214
+ export type clearStorageItemsReturnValue = {
1215
+ }
1216
+ /**
1217
+ * Sets `values` in extension storage in the given `storageArea`. The provided `values`
1218
+ will be merged with existing values in the storage area.
1219
+ */
1220
+ export type setStorageItemsParameters = {
1221
+ /**
1222
+ * ID of extension.
1223
+ */
1224
+ id: string;
1225
+ /**
1226
+ * StorageArea to set data in.
1227
+ */
1228
+ storageArea: StorageArea;
1229
+ /**
1230
+ * Values to set.
1231
+ */
1232
+ values: { [key: string]: string };
1233
+ }
1234
+ export type setStorageItemsReturnValue = {
1235
+ }
1236
+ }
1237
+
1133
1238
  /**
1134
1239
  * Defines commands and events for browser extensions.
1135
1240
  */
@@ -1138,8 +1243,8 @@ using Audits.issueAdded event.
1138
1243
  * Storage areas.
1139
1244
  */
1140
1245
  export type StorageArea = "session"|"local"|"sync"|"managed";
1141
-
1142
-
1246
+
1247
+
1143
1248
  /**
1144
1249
  * Installs an unpacked extension from the filesystem similar to
1145
1250
  --load-extension CLI flags. Returns extension ID once the extension
@@ -1235,7 +1340,7 @@ will be merged with existing values in the storage area.
1235
1340
  export type setStorageItemsReturnValue = {
1236
1341
  }
1237
1342
  }
1238
-
1343
+
1239
1344
  /**
1240
1345
  * Defines commands and events for Autofill.
1241
1346
  */
@@ -1337,7 +1442,7 @@ Munich 81456
1337
1442
  */
1338
1443
  fieldId: DOM.BackendNodeId;
1339
1444
  }
1340
-
1445
+
1341
1446
  /**
1342
1447
  * Emitted when an address form is filled.
1343
1448
  */
@@ -1352,7 +1457,7 @@ Consists of a 2D array where each child represents an address/profile line.
1352
1457
  */
1353
1458
  addressUi: AddressUI;
1354
1459
  }
1355
-
1460
+
1356
1461
  /**
1357
1462
  * Trigger autofill on a form identified by the fieldId.
1358
1463
  If the field and related form cannot be autofilled, returns an error.
@@ -1396,7 +1501,7 @@ If the field and related form cannot be autofilled, returns an error.
1396
1501
  export type enableReturnValue = {
1397
1502
  }
1398
1503
  }
1399
-
1504
+
1400
1505
  /**
1401
1506
  * Defines events for background web platform features.
1402
1507
  */
@@ -1448,7 +1553,7 @@ API.
1448
1553
  */
1449
1554
  storageKey: string;
1450
1555
  }
1451
-
1556
+
1452
1557
  /**
1453
1558
  * Called when the recording state for the service has been updated.
1454
1559
  */
@@ -1463,7 +1568,7 @@ events afterwards if enabled and recording.
1463
1568
  export type backgroundServiceEventReceivedPayload = {
1464
1569
  backgroundServiceEvent: BackgroundServiceEvent;
1465
1570
  }
1466
-
1571
+
1467
1572
  /**
1468
1573
  * Enables event updates for the service.
1469
1574
  */
@@ -1498,7 +1603,7 @@ events afterwards if enabled and recording.
1498
1603
  export type clearEventsReturnValue = {
1499
1604
  }
1500
1605
  }
1501
-
1606
+
1502
1607
  /**
1503
1608
  * The Browser domain defines methods and events for browser managing.
1504
1609
  */
@@ -1534,7 +1639,7 @@ events afterwards if enabled and recording.
1534
1639
  */
1535
1640
  windowState?: WindowState;
1536
1641
  }
1537
- export type PermissionType = "accessibilityEvents"|"audioCapture"|"backgroundSync"|"backgroundFetch"|"capturedSurfaceControl"|"clipboardReadWrite"|"clipboardSanitizedWrite"|"displayCapture"|"durableStorage"|"flash"|"geolocation"|"idleDetection"|"localFonts"|"midi"|"midiSysex"|"nfc"|"notifications"|"paymentHandler"|"periodicBackgroundSync"|"protectedMediaIdentifier"|"sensors"|"storageAccess"|"speakerSelection"|"topLevelStorageAccess"|"videoCapture"|"videoCapturePanTiltZoom"|"wakeLockScreen"|"wakeLockSystem"|"windowManagement";
1642
+ export type PermissionType = "accessibilityEvents"|"audioCapture"|"backgroundSync"|"backgroundFetch"|"capturedSurfaceControl"|"clipboardReadWrite"|"clipboardSanitizedWrite"|"displayCapture"|"durableStorage"|"flash"|"geolocation"|"idleDetection"|"localFonts"|"midi"|"midiSysex"|"nfc"|"notifications"|"paymentHandler"|"periodicBackgroundSync"|"protectedMediaIdentifier"|"sensors"|"storageAccess"|"speakerSelection"|"topLevelStorageAccess"|"videoCapture"|"videoCapturePanTiltZoom"|"wakeLockScreen"|"wakeLockSystem"|"webAppInstallation"|"windowManagement";
1538
1643
  export type PermissionSetting = "granted"|"denied"|"prompt";
1539
1644
  /**
1540
1645
  * Definition of PermissionDescriptor defined in the Permissions API:
@@ -1610,7 +1715,7 @@ Note that userVisibleOnly = true is the only currently supported type.
1610
1715
  */
1611
1716
  buckets: Bucket[];
1612
1717
  }
1613
-
1718
+
1614
1719
  /**
1615
1720
  * Fired when page is about to start a download.
1616
1721
  */
@@ -1653,7 +1758,7 @@ Note that userVisibleOnly = true is the only currently supported type.
1653
1758
  */
1654
1759
  state: "inProgress"|"completed"|"canceled";
1655
1760
  }
1656
-
1761
+
1657
1762
  /**
1658
1763
  * Set permission settings for given origin.
1659
1764
  */
@@ -1927,7 +2032,7 @@ without the site actually being enrolled. Only supported on page targets.
1927
2032
  export type addPrivacySandboxEnrollmentOverrideReturnValue = {
1928
2033
  }
1929
2034
  }
1930
-
2035
+
1931
2036
  /**
1932
2037
  * This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles)
1933
2038
  have an associated `id` used in subsequent operations on the related object. Each object type has
@@ -2739,7 +2844,7 @@ stylesheet rules) this rule came from.
2739
2844
  */
2740
2845
  text: string;
2741
2846
  }
2742
-
2847
+
2743
2848
  /**
2744
2849
  * Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded
2745
2850
  web font.
@@ -2779,7 +2884,7 @@ resized.) The current implementation considers only viewport-dependent media fea
2779
2884
  */
2780
2885
  styleSheetId: StyleSheetId;
2781
2886
  }
2782
-
2887
+
2783
2888
  /**
2784
2889
  * Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
2785
2890
  position specified by `location`.
@@ -3247,7 +3352,7 @@ instrumentation).
3247
3352
  export type setLocalFontsEnabledReturnValue = {
3248
3353
  }
3249
3354
  }
3250
-
3355
+
3251
3356
  export module CacheStorage {
3252
3357
  /**
3253
3358
  * Unique identifier of the Cache object.
@@ -3332,8 +3437,8 @@ instrumentation).
3332
3437
  */
3333
3438
  body: binary;
3334
3439
  }
3335
-
3336
-
3440
+
3441
+
3337
3442
  /**
3338
3443
  * Deletes a cache.
3339
3444
  */
@@ -3440,7 +3545,7 @@ is the count of all entries from this storage.
3440
3545
  returnCount: number;
3441
3546
  }
3442
3547
  }
3443
-
3548
+
3444
3549
  /**
3445
3550
  * A domain for interacting with Cast, Presentation API, and Remote Playback API
3446
3551
  functionalities.
@@ -3455,7 +3560,7 @@ session on the sink.
3455
3560
  */
3456
3561
  session?: string;
3457
3562
  }
3458
-
3563
+
3459
3564
  /**
3460
3565
  * This is fired whenever the list of available sinks changes. A sink is a
3461
3566
  device or a software surface that you can cast to.
@@ -3470,7 +3575,7 @@ device or a software surface that you can cast to.
3470
3575
  export type issueUpdatedPayload = {
3471
3576
  issueMessage: string;
3472
3577
  }
3473
-
3578
+
3474
3579
  /**
3475
3580
  * Starts observing for sinks that can be used for tab mirroring, and if set,
3476
3581
  sinks compatible with |presentationUrl| as well. When sinks are found, a
@@ -3524,7 +3629,7 @@ sink via Presentation API, Remote Playback API, or Cast SDK.
3524
3629
  export type stopCastingReturnValue = {
3525
3630
  }
3526
3631
  }
3527
-
3632
+
3528
3633
  /**
3529
3634
  * This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object
3530
3635
  that has an `id`. This `id` can be used to get additional information on the Node, resolve it into
@@ -3561,7 +3666,7 @@ front-end.
3561
3666
  /**
3562
3667
  * Pseudo element type.
3563
3668
  */
3564
- export type PseudoType = "first-line"|"first-letter"|"before"|"after"|"marker"|"backdrop"|"selection"|"search-text"|"target-text"|"spelling-error"|"grammar-error"|"highlight"|"first-line-inherited"|"scroll-marker"|"scroll-marker-group"|"scroll-next-button"|"scroll-prev-button"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer"|"input-list-button"|"view-transition"|"view-transition-group"|"view-transition-image-pair"|"view-transition-old"|"view-transition-new";
3669
+ export type PseudoType = "first-line"|"first-letter"|"before"|"after"|"marker"|"backdrop"|"column"|"selection"|"search-text"|"target-text"|"spelling-error"|"grammar-error"|"highlight"|"first-line-inherited"|"scroll-marker"|"scroll-marker-group"|"scroll-next-button"|"scroll-prev-button"|"scrollbar"|"scrollbar-thumb"|"scrollbar-button"|"scrollbar-track"|"scrollbar-track-piece"|"scrollbar-corner"|"resizer"|"input-list-button"|"view-transition"|"view-transition-group"|"view-transition-image-pair"|"view-transition-old"|"view-transition-new"|"placeholder"|"file-selector-button"|"details-content"|"select-fallback-button"|"select-fallback-button-text"|"picker";
3565
3670
  /**
3566
3671
  * Shadow root type.
3567
3672
  */
@@ -3710,6 +3815,21 @@ The property is always undefined now.
3710
3815
  isSVG?: boolean;
3711
3816
  compatibilityMode?: CompatibilityMode;
3712
3817
  assignedSlot?: BackendNode;
3818
+ isScrollable?: boolean;
3819
+ }
3820
+ /**
3821
+ * A structure to hold the top-level node of a detached tree and an array of its retained descendants.
3822
+ */
3823
+ export interface DetachedElementInfo {
3824
+ treeNode: Node;
3825
+ retainedNodeIds: NodeId[];
3826
+ }
3827
+ /**
3828
+ * A structure to hold the top-level node of a detached tree and an array of its retained descendants.
3829
+ */
3830
+ export interface DetachedElementInfo {
3831
+ treeNode: Node;
3832
+ retainedNodeIds: NodeId[];
3713
3833
  }
3714
3834
  /**
3715
3835
  * A structure to hold the top-level node of a detached tree and an array of its retained descendants.
@@ -3824,7 +3944,7 @@ The property is always undefined now.
3824
3944
  */
3825
3945
  value: string;
3826
3946
  }
3827
-
3947
+
3828
3948
  /**
3829
3949
  * Fired when `Element`'s attribute is modified.
3830
3950
  */
@@ -3954,6 +4074,19 @@ The property is always undefined now.
3954
4074
  * Called when top layer elements are changed.
3955
4075
  */
3956
4076
  export type topLayerElementsUpdatedPayload = void;
4077
+ /**
4078
+ * Fired when a node's scrollability state changes.
4079
+ */
4080
+ export type scrollableFlagUpdatedPayload = {
4081
+ /**
4082
+ * The id of the node.
4083
+ */
4084
+ nodeId: DOM.NodeId;
4085
+ /**
4086
+ * If the node is scrollable.
4087
+ */
4088
+ isScrollable: boolean;
4089
+ }
3957
4090
  /**
3958
4091
  * Called when a pseudo element is removed from an element.
3959
4092
  */
@@ -4007,7 +4140,7 @@ most of the calls requesting node ids.
4007
4140
  */
4008
4141
  root: Node;
4009
4142
  }
4010
-
4143
+
4011
4144
  /**
4012
4145
  * Collects class names for the node with given id and all of it's child nodes.
4013
4146
  */
@@ -4918,7 +5051,7 @@ the given positioned element.
4918
5051
  nodeId: NodeId;
4919
5052
  }
4920
5053
  }
4921
-
5054
+
4922
5055
  /**
4923
5056
  * DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript
4924
5057
  execution will stop on these operations as if there was a regular breakpoint set.
@@ -4977,8 +5110,8 @@ execution will stop on these operations as if there was a regular breakpoint set
4977
5110
  */
4978
5111
  backendNodeId?: DOM.BackendNodeId;
4979
5112
  }
4980
-
4981
-
5113
+
5114
+
4982
5115
  /**
4983
5116
  * Returns event listeners of the given object.
4984
5117
  */
@@ -5121,15 +5254,15 @@ EventTarget.
5121
5254
  export type setXHRBreakpointReturnValue = {
5122
5255
  }
5123
5256
  }
5124
-
5257
+
5125
5258
  /**
5126
5259
  * EventBreakpoints permits setting JavaScript breakpoints on operations and events
5127
5260
  occurring in native code invoked from JavaScript. Once breakpoint is hit, it is
5128
5261
  reported through Debugger domain, similarly to regular breakpoints being hit.
5129
5262
  */
5130
5263
  export module EventBreakpoints {
5131
-
5132
-
5264
+
5265
+
5133
5266
  /**
5134
5267
  * Sets breakpoint on particular native event.
5135
5268
  */
@@ -5160,7 +5293,7 @@ reported through Debugger domain, similarly to regular breakpoints being hit.
5160
5293
  export type disableReturnValue = {
5161
5294
  }
5162
5295
  }
5163
-
5296
+
5164
5297
  /**
5165
5298
  * This domain facilitates obtaining document snapshots with DOM, layout, and style information.
5166
5299
  */
@@ -5601,8 +5734,8 @@ represented as a surrogate pair in UTF-16 have length 2.
5601
5734
  */
5602
5735
  length: number[];
5603
5736
  }
5604
-
5605
-
5737
+
5738
+
5606
5739
  /**
5607
5740
  * Disables DOM snapshot agent for the given page.
5608
5741
  */
@@ -5698,7 +5831,7 @@ The final text color opacity is computed based on the opacity of all overlapping
5698
5831
  strings: string[];
5699
5832
  }
5700
5833
  }
5701
-
5834
+
5702
5835
  /**
5703
5836
  * Query and modify DOM storage.
5704
5837
  */
@@ -5725,7 +5858,7 @@ The final text color opacity is computed based on the opacity of all overlapping
5725
5858
  * DOM Storage item.
5726
5859
  */
5727
5860
  export type Item = string[];
5728
-
5861
+
5729
5862
  export type domStorageItemAddedPayload = {
5730
5863
  storageId: StorageId;
5731
5864
  key: string;
@@ -5744,7 +5877,7 @@ The final text color opacity is computed based on the opacity of all overlapping
5744
5877
  export type domStorageItemsClearedPayload = {
5745
5878
  storageId: StorageId;
5746
5879
  }
5747
-
5880
+
5748
5881
  export type clearParameters = {
5749
5882
  storageId: StorageId;
5750
5883
  }
@@ -5784,7 +5917,7 @@ The final text color opacity is computed based on the opacity of all overlapping
5784
5917
  export type setDOMStorageItemReturnValue = {
5785
5918
  }
5786
5919
  }
5787
-
5920
+
5788
5921
  export module Database {
5789
5922
  /**
5790
5923
  * Unique identifier of Database object.
@@ -5824,11 +5957,11 @@ The final text color opacity is computed based on the opacity of all overlapping
5824
5957
  */
5825
5958
  code: number;
5826
5959
  }
5827
-
5960
+
5828
5961
  export type addDatabasePayload = {
5829
5962
  database: Database;
5830
5963
  }
5831
-
5964
+
5832
5965
  /**
5833
5966
  * Disables database tracking, prevents database events from being sent to the client.
5834
5967
  */
@@ -5859,10 +5992,10 @@ The final text color opacity is computed based on the opacity of all overlapping
5859
5992
  tableNames: string[];
5860
5993
  }
5861
5994
  }
5862
-
5995
+
5863
5996
  export module DeviceOrientation {
5864
-
5865
-
5997
+
5998
+
5866
5999
  /**
5867
6000
  * Clears the overridden Device Orientation.
5868
6001
  */
@@ -5890,7 +6023,7 @@ The final text color opacity is computed based on the opacity of all overlapping
5890
6023
  export type setDeviceOrientationOverrideReturnValue = {
5891
6024
  }
5892
6025
  }
5893
-
6026
+
5894
6027
  /**
5895
6028
  * This domain emulates different environments for the page.
5896
6029
  */
@@ -6009,12 +6142,12 @@ See https://w3c.github.io/sensors/#automation for more information.
6009
6142
  * Enum of image types that can be disabled.
6010
6143
  */
6011
6144
  export type DisabledImageType = "avif"|"webp";
6012
-
6145
+
6013
6146
  /**
6014
6147
  * Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
6015
6148
  */
6016
6149
  export type virtualTimeBudgetExpiredPayload = void;
6017
-
6150
+
6018
6151
  /**
6019
6152
  * Tells whether emulation is supported.
6020
6153
  */
@@ -6503,7 +6636,7 @@ on Android.
6503
6636
  export type setAutomationOverrideReturnValue = {
6504
6637
  }
6505
6638
  }
6506
-
6639
+
6507
6640
  /**
6508
6641
  * This domain provides experimental commands only supported in headless mode.
6509
6642
  */
@@ -6525,8 +6658,8 @@ on Android.
6525
6658
  */
6526
6659
  optimizeForSpeed?: boolean;
6527
6660
  }
6528
-
6529
-
6661
+
6662
+
6530
6663
  /**
6531
6664
  * Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
6532
6665
  screenshot from the resulting frame. Requires that the target was created with enabled
@@ -6583,7 +6716,7 @@ display. Reported for diagnostic uses, may be removed in the future.
6583
6716
  export type enableReturnValue = {
6584
6717
  }
6585
6718
  }
6586
-
6719
+
6587
6720
  /**
6588
6721
  * Input/Output operations for streams produced by DevTools.
6589
6722
  */
@@ -6593,8 +6726,8 @@ display. Reported for diagnostic uses, may be removed in the future.
6593
6726
  `<uuid>` is an UUID of a Blob.
6594
6727
  */
6595
6728
  export type StreamHandle = string;
6596
-
6597
-
6729
+
6730
+
6598
6731
  /**
6599
6732
  * Close the stream, discard any temporary backing storage.
6600
6733
  */
@@ -6654,7 +6787,6 @@ following the last read). Some types of streams may only support sequential read
6654
6787
  uuid: string;
6655
6788
  }
6656
6789
  }
6657
-
6658
6790
  export module FileSystem {
6659
6791
  export interface File {
6660
6792
  name: string;
@@ -6690,8 +6822,8 @@ following the last read). Some types of streams may only support sequential read
6690
6822
  */
6691
6823
  pathComponents: string[];
6692
6824
  }
6693
-
6694
-
6825
+
6826
+
6695
6827
  export type getDirectoryParameters = {
6696
6828
  bucketFileSystemLocator: BucketFileSystemLocator;
6697
6829
  }
@@ -6702,7 +6834,6 @@ following the last read). Some types of streams may only support sequential read
6702
6834
  directory: Directory;
6703
6835
  }
6704
6836
  }
6705
-
6706
6837
  export module IndexedDB {
6707
6838
  /**
6708
6839
  * Database with an array of object stores.
@@ -6844,8 +6975,8 @@ requires the version number to be 'unsigned long long')
6844
6975
  */
6845
6976
  array?: string[];
6846
6977
  }
6847
-
6848
-
6978
+
6979
+
6849
6980
  /**
6850
6981
  * Clears all entries from an object store.
6851
6982
  */
@@ -7081,7 +7212,7 @@ Security origin.
7081
7212
  databaseNames: string[];
7082
7213
  }
7083
7214
  }
7084
-
7215
+
7085
7216
  export module Input {
7086
7217
  export interface TouchPoint {
7087
7218
  /**
@@ -7167,7 +7298,7 @@ text, HTML markup or any other data.
7167
7298
  */
7168
7299
  dragOperationsMask: number;
7169
7300
  }
7170
-
7301
+
7171
7302
  /**
7172
7303
  * Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to
7173
7304
  restore normal drag and drop behavior.
@@ -7175,7 +7306,7 @@ restore normal drag and drop behavior.
7175
7306
  export type dragInterceptedPayload = {
7176
7307
  data: DragData;
7177
7308
  }
7178
-
7309
+
7179
7310
  /**
7180
7311
  * Dispatches a drag event into the page.
7181
7312
  */
@@ -7604,9 +7735,9 @@ for the preferred input type).
7604
7735
  export type synthesizeTapGestureReturnValue = {
7605
7736
  }
7606
7737
  }
7607
-
7738
+
7608
7739
  export module Inspector {
7609
-
7740
+
7610
7741
  /**
7611
7742
  * Fired when remote debugging connection is about to be terminated. Contains detach reason.
7612
7743
  */
@@ -7624,7 +7755,7 @@ for the preferred input type).
7624
7755
  * Fired when debugging target has reloaded after crash
7625
7756
  */
7626
7757
  export type targetReloadedAfterCrashPayload = void;
7627
-
7758
+
7628
7759
  /**
7629
7760
  * Disables inspector domain notifications.
7630
7761
  */
@@ -7640,7 +7771,7 @@ for the preferred input type).
7640
7771
  export type enableReturnValue = {
7641
7772
  }
7642
7773
  }
7643
-
7774
+
7644
7775
  export module LayerTree {
7645
7776
  /**
7646
7777
  * Unique Layer identifier.
@@ -7775,7 +7906,7 @@ transform/scrolling purposes only.
7775
7906
  * Array of timings, one per paint step.
7776
7907
  */
7777
7908
  export type PaintProfile = number[];
7778
-
7909
+
7779
7910
  export type layerPaintedPayload = {
7780
7911
  /**
7781
7912
  * The id of the painted layer.
@@ -7792,7 +7923,7 @@ transform/scrolling purposes only.
7792
7923
  */
7793
7924
  layers?: Layer[];
7794
7925
  }
7795
-
7926
+
7796
7927
  /**
7797
7928
  * Provides the reasons why the given layer was composited.
7798
7929
  */
@@ -7934,7 +8065,7 @@ transform/scrolling purposes only.
7934
8065
  commandLog: { [key: string]: string }[];
7935
8066
  }
7936
8067
  }
7937
-
8068
+
7938
8069
  /**
7939
8070
  * Provides access to log entries.
7940
8071
  */
@@ -7998,7 +8129,7 @@ transform/scrolling purposes only.
7998
8129
  */
7999
8130
  threshold: number;
8000
8131
  }
8001
-
8132
+
8002
8133
  /**
8003
8134
  * Issued when new message was logged.
8004
8135
  */
@@ -8008,7 +8139,7 @@ transform/scrolling purposes only.
8008
8139
  */
8009
8140
  entry: LogEntry;
8010
8141
  }
8011
-
8142
+
8012
8143
  /**
8013
8144
  * Clears the log.
8014
8145
  */
@@ -8050,7 +8181,7 @@ transform/scrolling purposes only.
8050
8181
  export type stopViolationsReportReturnValue = {
8051
8182
  }
8052
8183
  }
8053
-
8184
+
8054
8185
  export module Memory {
8055
8186
  /**
8056
8187
  * Memory pressure level.
@@ -8102,8 +8233,25 @@ or hexadecimal (0x prefixed) string.
8102
8233
  */
8103
8234
  size: number;
8104
8235
  }
8105
-
8106
-
8236
+ /**
8237
+ * DOM object counter data.
8238
+ */
8239
+ export interface DOMCounter {
8240
+ /**
8241
+ * Object name. Note: object names should be presumed volatile and clients should not expect
8242
+ the returned names to be consistent across runs.
8243
+ */
8244
+ name: string;
8245
+ /**
8246
+ * Object count.
8247
+ */
8248
+ count: number;
8249
+ }
8250
+
8251
+
8252
+ /**
8253
+ * Retruns current DOM object counters.
8254
+ */
8107
8255
  export type getDOMCountersParameters = {
8108
8256
  }
8109
8257
  export type getDOMCountersReturnValue = {
@@ -8111,6 +8259,21 @@ or hexadecimal (0x prefixed) string.
8111
8259
  nodes: number;
8112
8260
  jsEventListeners: number;
8113
8261
  }
8262
+ /**
8263
+ * Retruns DOM object counters after preparing renderer for leak detection.
8264
+ */
8265
+ export type getDOMCountersForLeakDetectionParameters = {
8266
+ }
8267
+ export type getDOMCountersForLeakDetectionReturnValue = {
8268
+ /**
8269
+ * DOM object counters.
8270
+ */
8271
+ counters: DOMCounter[];
8272
+ }
8273
+ /**
8274
+ * Prepares for leak detection by terminating workers, stopping spellcheckers,
8275
+ dropping non-essential internal caches, running garbage collections, etc.
8276
+ */
8114
8277
  export type prepareForLeakDetectionParameters = {
8115
8278
  }
8116
8279
  export type prepareForLeakDetectionReturnValue = {
@@ -8194,7 +8357,7 @@ collected since browser process startup.
8194
8357
  profile: SamplingProfile;
8195
8358
  }
8196
8359
  }
8197
-
8360
+
8198
8361
  /**
8199
8362
  * Network domain allows tracking network activities of the page. It exposes information about http,
8200
8363
  file, data and other requests and responses, their headers, bodies, timing, etc.
@@ -8902,7 +9065,7 @@ This is a temporary ability and it will be removed in the future.
8902
9065
  /**
8903
9066
  * Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
8904
9067
  */
8905
- export type CookieExemptionReason = "None"|"UserSetting"|"TPCDMetadata"|"TPCDDeprecationTrial"|"TPCDHeuristics"|"EnterprisePolicy"|"StorageAccess"|"TopLevelStorageAccess"|"CorsOptIn"|"Scheme";
9068
+ export type CookieExemptionReason = "None"|"UserSetting"|"TPCDMetadata"|"TPCDDeprecationTrial"|"TopLevelTPCDDeprecationTrial"|"TPCDHeuristics"|"EnterprisePolicy"|"StorageAccess"|"TopLevelStorageAccess"|"Scheme";
8906
9069
  /**
8907
9070
  * A cookie which was not stored from a response with the corresponding reason.
8908
9071
  */
@@ -9318,7 +9481,7 @@ CORB and streaming.
9318
9481
  disableCache: boolean;
9319
9482
  includeCredentials: boolean;
9320
9483
  }
9321
-
9484
+
9322
9485
  /**
9323
9486
  * Fired when data chunk was received over the network.
9324
9487
  */
@@ -9992,7 +10155,7 @@ And after 'enableReportingApi' for all existing reports.
9992
10155
  origin: string;
9993
10156
  endpoints: ReportingApiEndpoint[];
9994
10157
  }
9995
-
10158
+
9996
10159
  /**
9997
10160
  * Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
9998
10161
  */
@@ -10580,7 +10743,7 @@ should be omitted for worker targets.
10580
10743
  resource: LoadNetworkResourcePageResult;
10581
10744
  }
10582
10745
  }
10583
-
10746
+
10584
10747
  /**
10585
10748
  * This domain provides various functionality related to drawing atop the inspected page.
10586
10749
  */
@@ -10976,7 +11139,7 @@ should be omitted for worker targets.
10976
11139
  maskColor?: DOM.RGBA;
10977
11140
  }
10978
11141
  export type InspectMode = "searchForNode"|"searchForUAShadowDOM"|"captureAreaScreenshot"|"showDistances"|"none";
10979
-
11142
+
10980
11143
  /**
10981
11144
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
10982
11145
  user manually inspects an element.
@@ -11006,7 +11169,7 @@ user manually inspects an element.
11006
11169
  * Fired when user cancels the inspect mode.
11007
11170
  */
11008
11171
  export type inspectModeCanceledPayload = void;
11009
-
11172
+
11010
11173
  /**
11011
11174
  * Disables domain notifications.
11012
11175
  */
@@ -11403,7 +11566,7 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
11403
11566
  export type setShowWindowControlsOverlayReturnValue = {
11404
11567
  }
11405
11568
  }
11406
-
11569
+
11407
11570
  /**
11408
11571
  * Actions and events related to the inspected page belong to the page domain.
11409
11572
  */
@@ -11452,7 +11615,7 @@ as an ad.
11452
11615
  * All Permissions Policy features. This enum should match the one defined
11453
11616
  in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
11454
11617
  */
11455
- export type PermissionsPolicyFeature = "accelerometer"|"all-screens-capture"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"captured-surface-control"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-prefers-reduced-motion"|"ch-prefers-reduced-transparency"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-form-factors"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"compute-pressure"|"cross-origin-isolated"|"deferred-fetch"|"digital-credentials-get"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"identity-credentials-get"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"media-playback-while-not-visible"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"private-aggregation"|"private-state-token-issuance"|"private-state-token-redemption"|"publickey-credentials-create"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"shared-storage-select-url"|"smart-card"|"speaker-selection"|"storage-access"|"sub-apps"|"sync-xhr"|"unload"|"usb"|"usb-unrestricted"|"vertical-scroll"|"web-printing"|"web-share"|"window-management"|"xr-spatial-tracking";
11618
+ export type PermissionsPolicyFeature = "accelerometer"|"all-screens-capture"|"ambient-light-sensor"|"attribution-reporting"|"autoplay"|"bluetooth"|"browsing-topics"|"camera"|"captured-surface-control"|"ch-dpr"|"ch-device-memory"|"ch-downlink"|"ch-ect"|"ch-prefers-color-scheme"|"ch-prefers-reduced-motion"|"ch-prefers-reduced-transparency"|"ch-rtt"|"ch-save-data"|"ch-ua"|"ch-ua-arch"|"ch-ua-bitness"|"ch-ua-platform"|"ch-ua-model"|"ch-ua-mobile"|"ch-ua-form-factors"|"ch-ua-full-version"|"ch-ua-full-version-list"|"ch-ua-platform-version"|"ch-ua-wow64"|"ch-viewport-height"|"ch-viewport-width"|"ch-width"|"clipboard-read"|"clipboard-write"|"compute-pressure"|"controlled-frame"|"cross-origin-isolated"|"deferred-fetch"|"digital-credentials-get"|"direct-sockets"|"display-capture"|"document-domain"|"encrypted-media"|"execution-while-out-of-viewport"|"execution-while-not-rendered"|"focus-without-user-activation"|"fullscreen"|"frobulate"|"gamepad"|"geolocation"|"gyroscope"|"hid"|"identity-credentials-get"|"idle-detection"|"interest-cohort"|"join-ad-interest-group"|"keyboard-map"|"local-fonts"|"magnetometer"|"media-playback-while-not-visible"|"microphone"|"midi"|"otp-credentials"|"payment"|"picture-in-picture"|"popins"|"private-aggregation"|"private-state-token-issuance"|"private-state-token-redemption"|"publickey-credentials-create"|"publickey-credentials-get"|"run-ad-auction"|"screen-wake-lock"|"serial"|"shared-autofill"|"shared-storage"|"shared-storage-select-url"|"smart-card"|"speaker-selection"|"storage-access"|"sub-apps"|"sync-xhr"|"unload"|"usb"|"usb-unrestricted"|"vertical-scroll"|"web-app-installation"|"web-printing"|"web-share"|"window-management"|"xr-spatial-tracking";
11456
11619
  /**
11457
11620
  * Reason for a permissions policy feature to be disabled.
11458
11621
  */
@@ -12040,7 +12203,7 @@ https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-expl
12040
12203
  /**
12041
12204
  * List of not restored reasons for back-forward cache.
12042
12205
  */
12043
- export type BackForwardCacheNotRestoredReason = "NotPrimaryMainFrame"|"BackForwardCacheDisabled"|"RelatedActiveContentsExist"|"HTTPStatusNotOK"|"SchemeNotHTTPOrHTTPS"|"Loading"|"WasGrantedMediaAccess"|"DisableForRenderFrameHostCalled"|"DomainNotAllowed"|"HTTPMethodNotGET"|"SubframeIsNavigating"|"Timeout"|"CacheLimit"|"JavaScriptExecution"|"RendererProcessKilled"|"RendererProcessCrashed"|"SchedulerTrackedFeatureUsed"|"ConflictingBrowsingInstance"|"CacheFlushed"|"ServiceWorkerVersionActivation"|"SessionRestored"|"ServiceWorkerPostMessage"|"EnteredBackForwardCacheBeforeServiceWorkerHostAdded"|"RenderFrameHostReused_SameSite"|"RenderFrameHostReused_CrossSite"|"ServiceWorkerClaim"|"IgnoreEventAndEvict"|"HaveInnerContents"|"TimeoutPuttingInCache"|"BackForwardCacheDisabledByLowMemory"|"BackForwardCacheDisabledByCommandLine"|"NetworkRequestDatapipeDrainedAsBytesConsumer"|"NetworkRequestRedirected"|"NetworkRequestTimeout"|"NetworkExceedsBufferLimit"|"NavigationCancelledWhileRestoring"|"NotMostRecentNavigationEntry"|"BackForwardCacheDisabledForPrerender"|"UserAgentOverrideDiffers"|"ForegroundCacheLimit"|"BrowsingInstanceNotSwapped"|"BackForwardCacheDisabledForDelegate"|"UnloadHandlerExistsInMainFrame"|"UnloadHandlerExistsInSubFrame"|"ServiceWorkerUnregistration"|"CacheControlNoStore"|"CacheControlNoStoreCookieModified"|"CacheControlNoStoreHTTPOnlyCookieModified"|"NoResponseHead"|"Unknown"|"ActivationNavigationsDisallowedForBug1234857"|"ErrorDocument"|"FencedFramesEmbedder"|"CookieDisabled"|"HTTPAuthRequired"|"CookieFlushed"|"BroadcastChannelOnMessage"|"WebViewSettingsChanged"|"WebViewJavaScriptObjectChanged"|"WebViewMessageListenerInjected"|"WebViewSafeBrowsingAllowlistChanged"|"WebViewDocumentStartJavascriptChanged"|"WebSocket"|"WebTransport"|"WebRTC"|"MainResourceHasCacheControlNoStore"|"MainResourceHasCacheControlNoCache"|"SubresourceHasCacheControlNoStore"|"SubresourceHasCacheControlNoCache"|"ContainsPlugins"|"DocumentLoaded"|"OutstandingNetworkRequestOthers"|"RequestedMIDIPermission"|"RequestedAudioCapturePermission"|"RequestedVideoCapturePermission"|"RequestedBackForwardCacheBlockedSensors"|"RequestedBackgroundWorkPermission"|"BroadcastChannel"|"WebXR"|"SharedWorker"|"WebLocks"|"WebHID"|"WebShare"|"RequestedStorageAccessGrant"|"WebNfc"|"OutstandingNetworkRequestFetch"|"OutstandingNetworkRequestXHR"|"AppBanner"|"Printing"|"WebDatabase"|"PictureInPicture"|"SpeechRecognizer"|"IdleManager"|"PaymentManager"|"SpeechSynthesis"|"KeyboardLock"|"WebOTPService"|"OutstandingNetworkRequestDirectSocket"|"InjectedJavascript"|"InjectedStyleSheet"|"KeepaliveRequest"|"IndexedDBEvent"|"Dummy"|"JsNetworkRequestReceivedCacheControlNoStoreResource"|"WebRTCSticky"|"WebTransportSticky"|"WebSocketSticky"|"SmartCard"|"LiveMediaStreamTrack"|"UnloadHandler"|"ParserAborted"|"ContentSecurityHandler"|"ContentWebAuthenticationAPI"|"ContentFileChooser"|"ContentSerial"|"ContentFileSystemAccess"|"ContentMediaDevicesDispatcherHost"|"ContentWebBluetooth"|"ContentWebUSB"|"ContentMediaSessionService"|"ContentScreenReader"|"EmbedderPopupBlockerTabHelper"|"EmbedderSafeBrowsingTriggeredPopupBlocker"|"EmbedderSafeBrowsingThreatDetails"|"EmbedderAppBannerManager"|"EmbedderDomDistillerViewerSource"|"EmbedderDomDistillerSelfDeletingRequestDelegate"|"EmbedderOomInterventionTabHelper"|"EmbedderOfflinePage"|"EmbedderChromePasswordManagerClientBindCredentialManager"|"EmbedderPermissionRequestManager"|"EmbedderModalDialog"|"EmbedderExtensions"|"EmbedderExtensionMessaging"|"EmbedderExtensionMessagingForOpenPort"|"EmbedderExtensionSentMessageToCachedFrame"|"RequestedByWebViewClient";
12206
+ export type BackForwardCacheNotRestoredReason = "NotPrimaryMainFrame"|"BackForwardCacheDisabled"|"RelatedActiveContentsExist"|"HTTPStatusNotOK"|"SchemeNotHTTPOrHTTPS"|"Loading"|"WasGrantedMediaAccess"|"DisableForRenderFrameHostCalled"|"DomainNotAllowed"|"HTTPMethodNotGET"|"SubframeIsNavigating"|"Timeout"|"CacheLimit"|"JavaScriptExecution"|"RendererProcessKilled"|"RendererProcessCrashed"|"SchedulerTrackedFeatureUsed"|"ConflictingBrowsingInstance"|"CacheFlushed"|"ServiceWorkerVersionActivation"|"SessionRestored"|"ServiceWorkerPostMessage"|"EnteredBackForwardCacheBeforeServiceWorkerHostAdded"|"RenderFrameHostReused_SameSite"|"RenderFrameHostReused_CrossSite"|"ServiceWorkerClaim"|"IgnoreEventAndEvict"|"HaveInnerContents"|"TimeoutPuttingInCache"|"BackForwardCacheDisabledByLowMemory"|"BackForwardCacheDisabledByCommandLine"|"NetworkRequestDatapipeDrainedAsBytesConsumer"|"NetworkRequestRedirected"|"NetworkRequestTimeout"|"NetworkExceedsBufferLimit"|"NavigationCancelledWhileRestoring"|"NotMostRecentNavigationEntry"|"BackForwardCacheDisabledForPrerender"|"UserAgentOverrideDiffers"|"ForegroundCacheLimit"|"BrowsingInstanceNotSwapped"|"BackForwardCacheDisabledForDelegate"|"UnloadHandlerExistsInMainFrame"|"UnloadHandlerExistsInSubFrame"|"ServiceWorkerUnregistration"|"CacheControlNoStore"|"CacheControlNoStoreCookieModified"|"CacheControlNoStoreHTTPOnlyCookieModified"|"NoResponseHead"|"Unknown"|"ActivationNavigationsDisallowedForBug1234857"|"ErrorDocument"|"FencedFramesEmbedder"|"CookieDisabled"|"HTTPAuthRequired"|"CookieFlushed"|"BroadcastChannelOnMessage"|"WebViewSettingsChanged"|"WebViewJavaScriptObjectChanged"|"WebViewMessageListenerInjected"|"WebViewSafeBrowsingAllowlistChanged"|"WebViewDocumentStartJavascriptChanged"|"WebSocket"|"WebTransport"|"WebRTC"|"MainResourceHasCacheControlNoStore"|"MainResourceHasCacheControlNoCache"|"SubresourceHasCacheControlNoStore"|"SubresourceHasCacheControlNoCache"|"ContainsPlugins"|"DocumentLoaded"|"OutstandingNetworkRequestOthers"|"RequestedMIDIPermission"|"RequestedAudioCapturePermission"|"RequestedVideoCapturePermission"|"RequestedBackForwardCacheBlockedSensors"|"RequestedBackgroundWorkPermission"|"BroadcastChannel"|"WebXR"|"SharedWorker"|"WebLocks"|"WebHID"|"WebShare"|"RequestedStorageAccessGrant"|"WebNfc"|"OutstandingNetworkRequestFetch"|"OutstandingNetworkRequestXHR"|"AppBanner"|"Printing"|"WebDatabase"|"PictureInPicture"|"SpeechRecognizer"|"IdleManager"|"PaymentManager"|"SpeechSynthesis"|"KeyboardLock"|"WebOTPService"|"OutstandingNetworkRequestDirectSocket"|"InjectedJavascript"|"InjectedStyleSheet"|"KeepaliveRequest"|"IndexedDBEvent"|"Dummy"|"JsNetworkRequestReceivedCacheControlNoStoreResource"|"WebRTCSticky"|"WebTransportSticky"|"WebSocketSticky"|"SmartCard"|"LiveMediaStreamTrack"|"UnloadHandler"|"ParserAborted"|"ContentSecurityHandler"|"ContentWebAuthenticationAPI"|"ContentFileChooser"|"ContentSerial"|"ContentFileSystemAccess"|"ContentMediaDevicesDispatcherHost"|"ContentWebBluetooth"|"ContentWebUSB"|"ContentMediaSessionService"|"ContentScreenReader"|"ContentDiscarded"|"EmbedderPopupBlockerTabHelper"|"EmbedderSafeBrowsingTriggeredPopupBlocker"|"EmbedderSafeBrowsingThreatDetails"|"EmbedderAppBannerManager"|"EmbedderDomDistillerViewerSource"|"EmbedderDomDistillerSelfDeletingRequestDelegate"|"EmbedderOomInterventionTabHelper"|"EmbedderOfflinePage"|"EmbedderChromePasswordManagerClientBindCredentialManager"|"EmbedderPermissionRequestManager"|"EmbedderModalDialog"|"EmbedderExtensions"|"EmbedderExtensionMessaging"|"EmbedderExtensionMessagingForOpenPort"|"EmbedderExtensionSentMessageToCachedFrame"|"RequestedByWebViewClient";
12044
12207
  /**
12045
12208
  * Types of not restored reasons for back-forward cache.
12046
12209
  */
@@ -12094,7 +12257,7 @@ dependent on the reason:
12094
12257
  */
12095
12258
  children: BackForwardCacheNotRestoredExplanationTree[];
12096
12259
  }
12097
-
12260
+
12098
12261
  export type domContentEventFiredPayload = {
12099
12262
  timestamp: Network.MonotonicTime;
12100
12263
  }
@@ -12151,6 +12314,16 @@ dependent on the reason:
12151
12314
  frameId: FrameId;
12152
12315
  reason: "remove"|"swap";
12153
12316
  }
12317
+ /**
12318
+ * Fired before frame subtree is detached. Emitted before any frame of the
12319
+ subtree is actually detached.
12320
+ */
12321
+ export type frameSubtreeWillBeDetachedPayload = {
12322
+ /**
12323
+ * Id of the frame that is the root of the subtree that will be detached.
12324
+ */
12325
+ frameId: FrameId;
12326
+ }
12154
12327
  /**
12155
12328
  * Fired once navigation of the frame has completed. Frame is now associated with the new loader.
12156
12329
  */
@@ -12445,7 +12618,7 @@ if Page.setGenerateCompilationCache is enabled.
12445
12618
  */
12446
12619
  data: binary;
12447
12620
  }
12448
-
12621
+
12449
12622
  /**
12450
12623
  * Deprecated, please use addScriptToEvaluateOnNewDocument instead.
12451
12624
  */
@@ -13413,7 +13586,7 @@ TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets
13413
13586
  export type setPrerenderingAllowedReturnValue = {
13414
13587
  }
13415
13588
  }
13416
-
13589
+
13417
13590
  export module Performance {
13418
13591
  /**
13419
13592
  * Run-time execution metric.
@@ -13428,7 +13601,7 @@ TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets
13428
13601
  */
13429
13602
  value: number;
13430
13603
  }
13431
-
13604
+
13432
13605
  /**
13433
13606
  * Current values of the metrics.
13434
13607
  */
@@ -13442,7 +13615,7 @@ TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets
13442
13615
  */
13443
13616
  title: string;
13444
13617
  }
13445
-
13618
+
13446
13619
  /**
13447
13620
  * Disable collecting and reporting metrics.
13448
13621
  */
@@ -13486,7 +13659,7 @@ this method while metrics collection is enabled returns an error.
13486
13659
  metrics: Metric[];
13487
13660
  }
13488
13661
  }
13489
-
13662
+
13490
13663
  /**
13491
13664
  * Reporting of performance timeline events, as specified in
13492
13665
  https://w3c.github.io/performance-timeline/#dom-performanceobserver.
@@ -13554,14 +13727,14 @@ This determines which of the optional "details" fields is present.
13554
13727
  lcpDetails?: LargestContentfulPaint;
13555
13728
  layoutShiftDetails?: LayoutShift;
13556
13729
  }
13557
-
13730
+
13558
13731
  /**
13559
13732
  * Sent when a performance timeline event is added. See reportPerformanceTimeline method.
13560
13733
  */
13561
13734
  export type timelineEventAddedPayload = {
13562
13735
  event: TimelineEvent;
13563
13736
  }
13564
-
13737
+
13565
13738
  /**
13566
13739
  * Previously buffered events would be reported before method returns.
13567
13740
  See also: timelineEventAdded
@@ -13579,7 +13752,7 @@ Note that not all types exposed to the web platform are currently supported.
13579
13752
  export type enableReturnValue = {
13580
13753
  }
13581
13754
  }
13582
-
13755
+
13583
13756
  /**
13584
13757
  * Security
13585
13758
  */
@@ -13777,7 +13950,7 @@ https://www.w3.org/TR/mixed-content/#categories
13777
13950
  request and cancel will cancel the request.
13778
13951
  */
13779
13952
  export type CertificateErrorAction = "continue"|"cancel";
13780
-
13953
+
13781
13954
  /**
13782
13955
  * There is a certificate error. If overriding certificate errors is enabled, then it should be
13783
13956
  handled with the `handleCertificateError` command. Note: this event does not fire if the
@@ -13833,7 +14006,7 @@ empty.
13833
14006
  */
13834
14007
  summary?: string;
13835
14008
  }
13836
-
14009
+
13837
14010
  /**
13838
14011
  * Disables tracking security state changes.
13839
14012
  */
@@ -13887,7 +14060,7 @@ be handled by the DevTools client and should be answered with `handleCertificate
13887
14060
  export type setOverrideCertificateErrorsReturnValue = {
13888
14061
  }
13889
14062
  }
13890
-
14063
+
13891
14064
  export module ServiceWorker {
13892
14065
  export type RegistrationID = string;
13893
14066
  /**
@@ -13933,7 +14106,7 @@ For cached script it is the last time the cache entry was validated.
13933
14106
  lineNumber: number;
13934
14107
  columnNumber: number;
13935
14108
  }
13936
-
14109
+
13937
14110
  export type workerErrorReportedPayload = {
13938
14111
  errorMessage: ServiceWorkerErrorMessage;
13939
14112
  }
@@ -13943,7 +14116,7 @@ For cached script it is the last time the cache entry was validated.
13943
14116
  export type workerVersionUpdatedPayload = {
13944
14117
  versions: ServiceWorkerVersion[];
13945
14118
  }
13946
-
14119
+
13947
14120
  export type deliverPushMessageParameters = {
13948
14121
  origin: string;
13949
14122
  registrationId: RegistrationID;
@@ -14014,7 +14187,7 @@ For cached script it is the last time the cache entry was validated.
14014
14187
  export type updateRegistrationReturnValue = {
14015
14188
  }
14016
14189
  }
14017
-
14190
+
14018
14191
  export module Storage {
14019
14192
  export type SerializedStorageKey = string;
14020
14193
  /**
@@ -14250,10 +14423,19 @@ int, only present for source registrations
14250
14423
  debugData: AttributionReportingAggregatableDebugReportingData[];
14251
14424
  aggregationCoordinatorOrigin?: string;
14252
14425
  }
14253
- export interface AttributionReportingSourceRegistration {
14254
- time: Network.TimeSinceEpoch;
14426
+ export interface AttributionScopesData {
14427
+ values: string[];
14255
14428
  /**
14256
- * duration in seconds
14429
+ * number instead of integer because not all uint32 can be represented by
14430
+ int
14431
+ */
14432
+ limit: number;
14433
+ maxEventStates: number;
14434
+ }
14435
+ export interface AttributionReportingSourceRegistration {
14436
+ time: Network.TimeSinceEpoch;
14437
+ /**
14438
+ * duration in seconds
14257
14439
  */
14258
14440
  expiry: number;
14259
14441
  triggerSpecs: AttributionReportingTriggerSpec[];
@@ -14273,8 +14455,9 @@ int, only present for source registrations
14273
14455
  triggerDataMatching: AttributionReportingTriggerDataMatching;
14274
14456
  destinationLimitPriority: SignedInt64AsBase10;
14275
14457
  aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
14458
+ scopesData?: AttributionScopesData;
14276
14459
  }
14277
- export type AttributionReportingSourceRegistrationResult = "success"|"internalError"|"insufficientSourceCapacity"|"insufficientUniqueDestinationCapacity"|"excessiveReportingOrigins"|"prohibitedByBrowserPolicy"|"successNoised"|"destinationReportingLimitReached"|"destinationGlobalLimitReached"|"destinationBothLimitsReached"|"reportingOriginsPerSiteLimitReached"|"exceedsMaxChannelCapacity"|"exceedsMaxTriggerStateCardinality"|"destinationPerDayReportingLimitReached";
14460
+ export type AttributionReportingSourceRegistrationResult = "success"|"internalError"|"insufficientSourceCapacity"|"insufficientUniqueDestinationCapacity"|"excessiveReportingOrigins"|"prohibitedByBrowserPolicy"|"successNoised"|"destinationReportingLimitReached"|"destinationGlobalLimitReached"|"destinationBothLimitsReached"|"reportingOriginsPerSiteLimitReached"|"exceedsMaxChannelCapacity"|"exceedsMaxScopesChannelCapacity"|"exceedsMaxTriggerStateCardinality"|"exceedsMaxEventStatesLimit"|"destinationPerDayReportingLimitReached";
14278
14461
  export type AttributionReportingSourceRegistrationTimeConfig = "include"|"exclude";
14279
14462
  export interface AttributionReportingAggregatableValueDictEntry {
14280
14463
  key: string;
@@ -14317,6 +14500,7 @@ int
14317
14500
  sourceRegistrationTimeConfig: AttributionReportingSourceRegistrationTimeConfig;
14318
14501
  triggerContextId?: string;
14319
14502
  aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
14503
+ scopes: string[];
14320
14504
  }
14321
14505
  export type AttributionReportingEventLevelResult = "success"|"successDroppedLowerPriority"|"internalError"|"noCapacityForAttributionDestination"|"noMatchingSources"|"deduplicated"|"excessiveAttributions"|"priorityTooLow"|"neverAttributedSource"|"excessiveReportingOrigins"|"noMatchingSourceFilterData"|"prohibitedByBrowserPolicy"|"noMatchingConfigurations"|"excessiveReports"|"falselyAttributedSource"|"reportWindowPassed"|"notRegistered"|"reportWindowNotStarted"|"noMatchingTriggerData";
14322
14506
  export type AttributionReportingAggregatableResult = "success"|"internalError"|"noCapacityForAttributionDestination"|"noMatchingSources"|"excessiveAttributions"|"excessiveReportingOrigins"|"noHistograms"|"insufficientBudget"|"noMatchingSourceFilterData"|"notRegistered"|"prohibitedByBrowserPolicy"|"deduplicated"|"reportWindowPassed"|"excessiveReports";
@@ -14337,7 +14521,6 @@ int
14337
14521
  */
14338
14522
  serviceSites: string[];
14339
14523
  }
14340
-
14341
14524
  /**
14342
14525
  * A cache's contents have been modified.
14343
14526
  */
@@ -14517,7 +14700,7 @@ presence/absence depends on `type`.
14517
14700
  eventLevel: AttributionReportingEventLevelResult;
14518
14701
  aggregatable: AttributionReportingAggregatableResult;
14519
14702
  }
14520
-
14703
+
14521
14704
  /**
14522
14705
  * Returns a storage key given a frame id.
14523
14706
  */
@@ -14921,7 +15104,7 @@ session. The effective Related Website Sets will not change during a browser ses
14921
15104
  sets: RelatedWebsiteSet[];
14922
15105
  }
14923
15106
  }
14924
-
15107
+
14925
15108
  /**
14926
15109
  * The SystemInfo domain defines methods and events for querying low-level system information.
14927
15110
  */
@@ -15096,8 +15279,8 @@ process since the process start.
15096
15279
  */
15097
15280
  cpuTime: number;
15098
15281
  }
15099
-
15100
-
15282
+
15283
+
15101
15284
  /**
15102
15285
  * Returns information about the system.
15103
15286
  */
@@ -15145,7 +15328,7 @@ supported.
15145
15328
  processInfo: ProcessInfo[];
15146
15329
  }
15147
15330
  }
15148
-
15331
+
15149
15332
  /**
15150
15333
  * Supports additional targets discovery and allows to attach to them.
15151
15334
  */
@@ -15212,7 +15395,7 @@ If filter is not specified, the one assumed is
15212
15395
  host: string;
15213
15396
  port: number;
15214
15397
  }
15215
-
15398
+
15216
15399
  /**
15217
15400
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
15218
15401
  */
@@ -15286,7 +15469,7 @@ issued multiple times per target if multiple sessions have been attached to it.
15286
15469
  export type targetInfoChangedPayload = {
15287
15470
  targetInfo: TargetInfo;
15288
15471
  }
15289
-
15472
+
15290
15473
  /**
15291
15474
  * Activates (focuses) the target.
15292
15475
  */
@@ -15589,12 +15772,12 @@ to run paused targets.
15589
15772
  export type setRemoteLocationsReturnValue = {
15590
15773
  }
15591
15774
  }
15592
-
15775
+
15593
15776
  /**
15594
15777
  * The Tethering domain defines methods and events for browser port binding.
15595
15778
  */
15596
15779
  export module Tethering {
15597
-
15780
+
15598
15781
  /**
15599
15782
  * Informs that port was successfully bound and got a specified connection id.
15600
15783
  */
@@ -15608,7 +15791,7 @@ to run paused targets.
15608
15791
  */
15609
15792
  connectionId: string;
15610
15793
  }
15611
-
15794
+
15612
15795
  /**
15613
15796
  * Request browser port binding.
15614
15797
  */
@@ -15632,7 +15815,7 @@ to run paused targets.
15632
15815
  export type unbindReturnValue = {
15633
15816
  }
15634
15817
  }
15635
-
15818
+
15636
15819
  export module Tracing {
15637
15820
  /**
15638
15821
  * Configuration for memory dump. Used only when "memory-infra" category is enabled.
@@ -15700,7 +15883,7 @@ supported on Chrome OS and uses the Perfetto system tracing service.
15700
15883
  specifies at least one non-Chrome data source; otherwise uses `chrome`.
15701
15884
  */
15702
15885
  export type TracingBackend = "auto"|"chrome"|"system";
15703
-
15886
+
15704
15887
  export type bufferUsagePayload = {
15705
15888
  /**
15706
15889
  * A number in range [0..1] that indicates the used size of event buffer as a fraction of its
@@ -15747,7 +15930,7 @@ buffer wrapped around.
15747
15930
  */
15748
15931
  streamCompression?: StreamCompression;
15749
15932
  }
15750
-
15933
+
15751
15934
  /**
15752
15935
  * Stop trace events collection.
15753
15936
  */
@@ -15846,7 +16029,7 @@ are ignored.
15846
16029
  export type startReturnValue = {
15847
16030
  }
15848
16031
  }
15849
-
16032
+
15850
16033
  /**
15851
16034
  * A domain for letting clients substitute browser's network layer with client code.
15852
16035
  */
@@ -15925,7 +16108,7 @@ ProvideCredentials.
15925
16108
  */
15926
16109
  password?: string;
15927
16110
  }
15928
-
16111
+
15929
16112
  /**
15930
16113
  * Issued when the domain is enabled and the request URL matches the
15931
16114
  specified filter. The request is paused until the client responds
@@ -16011,7 +16194,7 @@ contains AuthChallengeResponse.
16011
16194
  */
16012
16195
  authChallenge: AuthChallenge;
16013
16196
  }
16014
-
16197
+
16015
16198
  /**
16016
16199
  * Disables the fetch domain.
16017
16200
  */
@@ -16218,7 +16401,7 @@ domain before body is received results in an undefined behavior.
16218
16401
  stream: IO.StreamHandle;
16219
16402
  }
16220
16403
  }
16221
-
16404
+
16222
16405
  /**
16223
16406
  * This domain allows inspection of Web Audio API.
16224
16407
  https://webaudio.github.io/web-audio-api/
@@ -16333,7 +16516,7 @@ capacity and glitch may occur.
16333
16516
  minValue: number;
16334
16517
  maxValue: number;
16335
16518
  }
16336
-
16519
+
16337
16520
  /**
16338
16521
  * Notifies that a new BaseAudioContext has been created.
16339
16522
  */
@@ -16430,7 +16613,7 @@ capacity and glitch may occur.
16430
16613
  destinationId: GraphObjectId;
16431
16614
  sourceOutputIndex?: number;
16432
16615
  }
16433
-
16616
+
16434
16617
  /**
16435
16618
  * Enables the WebAudio domain and starts sending context lifetime events.
16436
16619
  */
@@ -16455,7 +16638,7 @@ capacity and glitch may occur.
16455
16638
  realtimeData: ContextRealtimeData;
16456
16639
  }
16457
16640
  }
16458
-
16641
+
16459
16642
  /**
16460
16643
  * This domain allows configuring virtual authenticators to test the WebAuthn
16461
16644
  API.
@@ -16568,7 +16751,7 @@ defaultBackupState value.
16568
16751
  */
16569
16752
  backupState?: boolean;
16570
16753
  }
16571
-
16754
+
16572
16755
  /**
16573
16756
  * Triggered when a credential is added to an authenticator.
16574
16757
  */
@@ -16583,7 +16766,7 @@ defaultBackupState value.
16583
16766
  authenticatorId: AuthenticatorId;
16584
16767
  credential: Credential;
16585
16768
  }
16586
-
16769
+
16587
16770
  /**
16588
16771
  * Enable the WebAuthn domain and start intercepting credential storage and
16589
16772
  retrieval with a virtual authenticator.
@@ -16726,7 +16909,7 @@ https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties
16726
16909
  export type setCredentialPropertiesReturnValue = {
16727
16910
  }
16728
16911
  }
16729
-
16912
+
16730
16913
  /**
16731
16914
  * This domain allows detailed inspection of media elements
16732
16915
  */
@@ -16801,7 +16984,7 @@ caused by an WindowsError
16801
16984
  */
16802
16985
  data: { [key: string]: string };
16803
16986
  }
16804
-
16987
+
16805
16988
  /**
16806
16989
  * This can be called multiple times, and can be used to set / override /
16807
16990
  remove player properties. A null propValue indicates removal.
@@ -16840,7 +17023,7 @@ list of player ids and all events again.
16840
17023
  export type playersCreatedPayload = {
16841
17024
  players: PlayerId[];
16842
17025
  }
16843
-
17026
+
16844
17027
  /**
16845
17028
  * Enables the Media domain
16846
17029
  */
@@ -16856,7 +17039,7 @@ list of player ids and all events again.
16856
17039
  export type disableReturnValue = {
16857
17040
  }
16858
17041
  }
16859
-
17042
+
16860
17043
  export module DeviceAccess {
16861
17044
  /**
16862
17045
  * Device request id.
@@ -16876,7 +17059,7 @@ list of player ids and all events again.
16876
17059
  */
16877
17060
  name: string;
16878
17061
  }
16879
-
17062
+
16880
17063
  /**
16881
17064
  * A device request opened a user prompt to select a device. Respond with the
16882
17065
  selectPrompt or cancelPrompt command.
@@ -16885,7 +17068,7 @@ selectPrompt or cancelPrompt command.
16885
17068
  id: RequestId;
16886
17069
  devices: PromptDevice[];
16887
17070
  }
16888
-
17071
+
16889
17072
  /**
16890
17073
  * Enable events in this domain.
16891
17074
  */
@@ -16918,7 +17101,7 @@ selectPrompt or cancelPrompt command.
16918
17101
  export type cancelPromptReturnValue = {
16919
17102
  }
16920
17103
  }
16921
-
17104
+
16922
17105
  export module Preload {
16923
17106
  /**
16924
17107
  * Unique id
@@ -17019,7 +17202,7 @@ status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
17019
17202
  * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
17020
17203
  filter out the ones that aren't necessary to the developers.
17021
17204
  */
17022
- export type PrefetchStatus = "PrefetchAllowed"|"PrefetchFailedIneligibleRedirect"|"PrefetchFailedInvalidRedirect"|"PrefetchFailedMIMENotSupported"|"PrefetchFailedNetError"|"PrefetchFailedNon2XX"|"PrefetchFailedPerPageLimitExceeded"|"PrefetchEvictedAfterCandidateRemoved"|"PrefetchEvictedForNewerPrefetch"|"PrefetchHeldback"|"PrefetchIneligibleRetryAfter"|"PrefetchIsPrivacyDecoy"|"PrefetchIsStale"|"PrefetchNotEligibleBrowserContextOffTheRecord"|"PrefetchNotEligibleDataSaverEnabled"|"PrefetchNotEligibleExistingProxy"|"PrefetchNotEligibleHostIsNonUnique"|"PrefetchNotEligibleNonDefaultStoragePartition"|"PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy"|"PrefetchNotEligibleSchemeIsNotHttps"|"PrefetchNotEligibleUserHasCookies"|"PrefetchNotEligibleUserHasServiceWorker"|"PrefetchNotEligibleBatterySaverEnabled"|"PrefetchNotEligiblePreloadingDisabled"|"PrefetchNotFinishedInTime"|"PrefetchNotStarted"|"PrefetchNotUsedCookiesChanged"|"PrefetchProxyNotAvailable"|"PrefetchResponseUsed"|"PrefetchSuccessfulButNotUsed"|"PrefetchNotUsedProbeFailed";
17205
+ export type PrefetchStatus = "PrefetchAllowed"|"PrefetchFailedIneligibleRedirect"|"PrefetchFailedInvalidRedirect"|"PrefetchFailedMIMENotSupported"|"PrefetchFailedNetError"|"PrefetchFailedNon2XX"|"PrefetchEvictedAfterCandidateRemoved"|"PrefetchEvictedForNewerPrefetch"|"PrefetchHeldback"|"PrefetchIneligibleRetryAfter"|"PrefetchIsPrivacyDecoy"|"PrefetchIsStale"|"PrefetchNotEligibleBrowserContextOffTheRecord"|"PrefetchNotEligibleDataSaverEnabled"|"PrefetchNotEligibleExistingProxy"|"PrefetchNotEligibleHostIsNonUnique"|"PrefetchNotEligibleNonDefaultStoragePartition"|"PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy"|"PrefetchNotEligibleSchemeIsNotHttps"|"PrefetchNotEligibleUserHasCookies"|"PrefetchNotEligibleUserHasServiceWorker"|"PrefetchNotEligibleBatterySaverEnabled"|"PrefetchNotEligiblePreloadingDisabled"|"PrefetchNotFinishedInTime"|"PrefetchNotStarted"|"PrefetchNotUsedCookiesChanged"|"PrefetchProxyNotAvailable"|"PrefetchResponseUsed"|"PrefetchSuccessfulButNotUsed"|"PrefetchNotUsedProbeFailed";
17023
17206
  /**
17024
17207
  * Information of headers to be displayed when the header mismatch occurred.
17025
17208
  */
@@ -17028,7 +17211,7 @@ filter out the ones that aren't necessary to the developers.
17028
17211
  initialValue?: string;
17029
17212
  activationValue?: string;
17030
17213
  }
17031
-
17214
+
17032
17215
  /**
17033
17216
  * Upsert. Currently, it is only emitted when a rule set added.
17034
17217
  */
@@ -17083,7 +17266,7 @@ that is incompatible with prerender and has caused the cancellation of the attem
17083
17266
  loaderId: Network.LoaderId;
17084
17267
  preloadingAttemptSources: PreloadingAttemptSource[];
17085
17268
  }
17086
-
17269
+
17087
17270
  export type enableParameters = {
17088
17271
  }
17089
17272
  export type enableReturnValue = {
@@ -17093,7 +17276,7 @@ that is incompatible with prerender and has caused the cancellation of the attem
17093
17276
  export type disableReturnValue = {
17094
17277
  }
17095
17278
  }
17096
-
17279
+
17097
17280
  /**
17098
17281
  * This domain allows interacting with the FedCM dialog.
17099
17282
  */
@@ -17133,7 +17316,7 @@ whether this account has ever been used to sign in to this RP before.
17133
17316
  termsOfServiceUrl?: string;
17134
17317
  privacyPolicyUrl?: string;
17135
17318
  }
17136
-
17319
+
17137
17320
  export type dialogShownPayload = {
17138
17321
  dialogId: string;
17139
17322
  dialogType: DialogType;
@@ -17152,7 +17335,7 @@ or a command below.
17152
17335
  export type dialogClosedPayload = {
17153
17336
  dialogId: string;
17154
17337
  }
17155
-
17338
+
17156
17339
  export type enableParameters = {
17157
17340
  /**
17158
17341
  * Allows callers to disable the promise rejection delay that would
@@ -17201,7 +17384,7 @@ a dialog even if one was recently dismissed by the user.
17201
17384
  export type resetCooldownReturnValue = {
17202
17385
  }
17203
17386
  }
17204
-
17387
+
17205
17388
  /**
17206
17389
  * This domain allows interacting with the browser to control PWAs.
17207
17390
  */
@@ -17227,8 +17410,8 @@ https://www.iana.org/assignments/media-types/media-types.xhtml
17227
17410
  * If user prefers opening the app in browser or an app window.
17228
17411
  */
17229
17412
  export type DisplayMode = "standalone"|"browser";
17230
-
17231
-
17413
+
17414
+
17232
17415
  /**
17233
17416
  * Returns the following OS state for the given manifest id.
17234
17417
  */
@@ -17356,7 +17539,7 @@ supported yet.
17356
17539
  export type changeAppUserSettingsReturnValue = {
17357
17540
  }
17358
17541
  }
17359
-
17542
+
17360
17543
  /**
17361
17544
  * This domain allows configuring virtual Bluetooth devices to test
17362
17545
  the web-bluetooth API.
@@ -17409,8 +17592,8 @@ manufacturer specific data.
17409
17592
  rssi: number;
17410
17593
  scanRecord: ScanRecord;
17411
17594
  }
17412
-
17413
-
17595
+
17596
+
17414
17597
  /**
17415
17598
  * Enable the BluetoothEmulation domain.
17416
17599
  */
@@ -17451,7 +17634,257 @@ the central.
17451
17634
  export type simulateAdvertisementReturnValue = {
17452
17635
  }
17453
17636
  }
17454
-
17637
+
17638
+ /**
17639
+ * This domain allows interacting with the browser to control PWAs.
17640
+ */
17641
+ export module PWA {
17642
+ /**
17643
+ * The following types are the replica of
17644
+ https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
17645
+ */
17646
+ export interface FileHandlerAccept {
17647
+ /**
17648
+ * New name of the mimetype according to
17649
+ https://www.iana.org/assignments/media-types/media-types.xhtml
17650
+ */
17651
+ mediaType: string;
17652
+ fileExtensions: string[];
17653
+ }
17654
+ export interface FileHandler {
17655
+ action: string;
17656
+ accepts: FileHandlerAccept[];
17657
+ displayName: string;
17658
+ }
17659
+ /**
17660
+ * If user prefers opening the app in browser or an app window.
17661
+ */
17662
+ export type DisplayMode = "standalone"|"browser";
17663
+
17664
+
17665
+ /**
17666
+ * Returns the following OS state for the given manifest id.
17667
+ */
17668
+ export type getOsAppStateParameters = {
17669
+ /**
17670
+ * The id from the webapp's manifest file, commonly it's the url of the
17671
+ site installing the webapp. See
17672
+ https://web.dev/learn/pwa/web-app-manifest.
17673
+ */
17674
+ manifestId: string;
17675
+ }
17676
+ export type getOsAppStateReturnValue = {
17677
+ badgeCount: number;
17678
+ fileHandlers: FileHandler[];
17679
+ }
17680
+ /**
17681
+ * Installs the given manifest identity, optionally using the given install_url
17682
+ or IWA bundle location.
17683
+
17684
+ TODO(crbug.com/337872319) Support IWA to meet the following specific
17685
+ requirement.
17686
+ IWA-specific install description: If the manifest_id is isolated-app://,
17687
+ install_url_or_bundle_url is required, and can be either an http(s) URL or
17688
+ file:// URL pointing to a signed web bundle (.swbn). The .swbn file's
17689
+ signing key must correspond to manifest_id. If Chrome is not in IWA dev
17690
+ mode, the installation will fail, regardless of the state of the allowlist.
17691
+ */
17692
+ export type installParameters = {
17693
+ manifestId: string;
17694
+ /**
17695
+ * The location of the app or bundle overriding the one derived from the
17696
+ manifestId.
17697
+ */
17698
+ installUrlOrBundleUrl?: string;
17699
+ }
17700
+ export type installReturnValue = {
17701
+ }
17702
+ /**
17703
+ * Uninstalls the given manifest_id and closes any opened app windows.
17704
+ */
17705
+ export type uninstallParameters = {
17706
+ manifestId: string;
17707
+ }
17708
+ export type uninstallReturnValue = {
17709
+ }
17710
+ /**
17711
+ * Launches the installed web app, or an url in the same web app instead of the
17712
+ default start url if it is provided. Returns a page Target.TargetID which
17713
+ can be used to attach to via Target.attachToTarget or similar APIs.
17714
+ */
17715
+ export type launchParameters = {
17716
+ manifestId: string;
17717
+ url?: string;
17718
+ }
17719
+ export type launchReturnValue = {
17720
+ /**
17721
+ * ID of the tab target created as a result.
17722
+ */
17723
+ targetId: Target.TargetID;
17724
+ }
17725
+ /**
17726
+ * Opens one or more local files from an installed web app identified by its
17727
+ manifestId. The web app needs to have file handlers registered to process
17728
+ the files. The API returns one or more page Target.TargetIDs which can be
17729
+ used to attach to via Target.attachToTarget or similar APIs.
17730
+ If some files in the parameters cannot be handled by the web app, they will
17731
+ be ignored. If none of the files can be handled, this API returns an error.
17732
+ If no files are provided as the parameter, this API also returns an error.
17733
+
17734
+ According to the definition of the file handlers in the manifest file, one
17735
+ Target.TargetID may represent a page handling one or more files. The order
17736
+ of the returned Target.TargetIDs is not guaranteed.
17737
+
17738
+ TODO(crbug.com/339454034): Check the existences of the input files.
17739
+ */
17740
+ export type launchFilesInAppParameters = {
17741
+ manifestId: string;
17742
+ files: string[];
17743
+ }
17744
+ export type launchFilesInAppReturnValue = {
17745
+ /**
17746
+ * IDs of the tab targets created as the result.
17747
+ */
17748
+ targetIds: Target.TargetID[];
17749
+ }
17750
+ /**
17751
+ * Opens the current page in its web app identified by the manifest id, needs
17752
+ to be called on a page target. This function returns immediately without
17753
+ waiting for the app to finish loading.
17754
+ */
17755
+ export type openCurrentPageInAppParameters = {
17756
+ manifestId: string;
17757
+ }
17758
+ export type openCurrentPageInAppReturnValue = {
17759
+ }
17760
+ /**
17761
+ * Changes user settings of the web app identified by its manifestId. If the
17762
+ app was not installed, this command returns an error. Unset parameters will
17763
+ be ignored; unrecognized values will cause an error.
17764
+
17765
+ Unlike the ones defined in the manifest files of the web apps, these
17766
+ settings are provided by the browser and controlled by the users, they
17767
+ impact the way the browser handling the web apps.
17768
+
17769
+ See the comment of each parameter.
17770
+ */
17771
+ export type changeAppUserSettingsParameters = {
17772
+ manifestId: string;
17773
+ /**
17774
+ * If user allows the links clicked on by the user in the app's scope, or
17775
+ extended scope if the manifest has scope extensions and the flags
17776
+ `DesktopPWAsLinkCapturingWithScopeExtensions` and
17777
+ `WebAppEnableScopeExtensions` are enabled.
17778
+
17779
+ Note, the API does not support resetting the linkCapturing to the
17780
+ initial value, uninstalling and installing the web app again will reset
17781
+ it.
17782
+
17783
+ TODO(crbug.com/339453269): Setting this value on ChromeOS is not
17784
+ supported yet.
17785
+ */
17786
+ linkCapturing?: boolean;
17787
+ displayMode?: DisplayMode;
17788
+ }
17789
+ export type changeAppUserSettingsReturnValue = {
17790
+ }
17791
+ }
17792
+
17793
+ /**
17794
+ * This domain allows configuring virtual Bluetooth devices to test
17795
+ the web-bluetooth API.
17796
+ */
17797
+ export module BluetoothEmulation {
17798
+ /**
17799
+ * Indicates the various states of Central.
17800
+ */
17801
+ export type CentralState = "absent"|"powered-off"|"powered-on";
17802
+ /**
17803
+ * Stores the manufacturer data
17804
+ */
17805
+ export interface ManufacturerData {
17806
+ /**
17807
+ * Company identifier
17808
+ https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
17809
+ https://usb.org/developers
17810
+ */
17811
+ key: number;
17812
+ /**
17813
+ * Manufacturer-specific data
17814
+ */
17815
+ data: binary;
17816
+ }
17817
+ /**
17818
+ * Stores the byte data of the advertisement packet sent by a Bluetooth device.
17819
+ */
17820
+ export interface ScanRecord {
17821
+ name?: string;
17822
+ uuids?: string[];
17823
+ /**
17824
+ * Stores the external appearance description of the device.
17825
+ */
17826
+ appearance?: number;
17827
+ /**
17828
+ * Stores the transmission power of a broadcasting device.
17829
+ */
17830
+ txPower?: number;
17831
+ /**
17832
+ * Key is the company identifier and the value is an array of bytes of
17833
+ manufacturer specific data.
17834
+ */
17835
+ manufacturerData?: ManufacturerData[];
17836
+ }
17837
+ /**
17838
+ * Stores the advertisement packet information that is sent by a Bluetooth device.
17839
+ */
17840
+ export interface ScanEntry {
17841
+ deviceAddress: string;
17842
+ rssi: number;
17843
+ scanRecord: ScanRecord;
17844
+ }
17845
+
17846
+
17847
+ /**
17848
+ * Enable the BluetoothEmulation domain.
17849
+ */
17850
+ export type enableParameters = {
17851
+ /**
17852
+ * State of the simulated central.
17853
+ */
17854
+ state: CentralState;
17855
+ }
17856
+ export type enableReturnValue = {
17857
+ }
17858
+ /**
17859
+ * Disable the BluetoothEmulation domain.
17860
+ */
17861
+ export type disableParameters = {
17862
+ }
17863
+ export type disableReturnValue = {
17864
+ }
17865
+ /**
17866
+ * Simulates a peripheral with |address|, |name| and |knownServiceUuids|
17867
+ that has already been connected to the system.
17868
+ */
17869
+ export type simulatePreconnectedPeripheralParameters = {
17870
+ address: string;
17871
+ name: string;
17872
+ manufacturerData: ManufacturerData[];
17873
+ knownServiceUuids: string[];
17874
+ }
17875
+ export type simulatePreconnectedPeripheralReturnValue = {
17876
+ }
17877
+ /**
17878
+ * Simulates an advertisement packet described in |entry| being received by
17879
+ the central.
17880
+ */
17881
+ export type simulateAdvertisementParameters = {
17882
+ entry: ScanEntry;
17883
+ }
17884
+ export type simulateAdvertisementReturnValue = {
17885
+ }
17886
+ }
17887
+
17455
17888
  /**
17456
17889
  * This domain is deprecated - use Runtime or Log instead.
17457
17890
  */
@@ -17485,7 +17918,7 @@ the central.
17485
17918
  */
17486
17919
  column?: number;
17487
17920
  }
17488
-
17921
+
17489
17922
  /**
17490
17923
  * Issued when new console message is added.
17491
17924
  */
@@ -17495,7 +17928,7 @@ the central.
17495
17928
  */
17496
17929
  message: ConsoleMessage;
17497
17930
  }
17498
-
17931
+
17499
17932
  /**
17500
17933
  * Does nothing.
17501
17934
  */
@@ -17519,7 +17952,7 @@ the central.
17519
17952
  export type enableReturnValue = {
17520
17953
  }
17521
17954
  }
17522
-
17955
+
17523
17956
  /**
17524
17957
  * Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing
17525
17958
  breakpoints, stepping through execution, exploring stack traces, etc.
@@ -17690,7 +18123,7 @@ variables as its properties.
17690
18123
  */
17691
18124
  externalURL?: string;
17692
18125
  }
17693
-
18126
+
17694
18127
  /**
17695
18128
  * Fired when breakpoint is resolved to an actual script and location.
17696
18129
  */
@@ -17896,7 +18329,7 @@ scripts upon enabling debugger.
17896
18329
  */
17897
18330
  embedderName?: string;
17898
18331
  }
17899
-
18332
+
17900
18333
  /**
17901
18334
  * Continues execution until specific location is reached.
17902
18335
  */
@@ -18508,7 +18941,7 @@ before next pause.
18508
18941
  export type stepOverReturnValue = {
18509
18942
  }
18510
18943
  }
18511
-
18944
+
18512
18945
  export module HeapProfiler {
18513
18946
  /**
18514
18947
  * Heap snapshot object id.
@@ -18560,7 +18993,7 @@ between startSampling and stopSampling.
18560
18993
  head: SamplingHeapProfileNode;
18561
18994
  samples: SamplingHeapProfileSample[];
18562
18995
  }
18563
-
18996
+
18564
18997
  export type addHeapSnapshotChunkPayload = {
18565
18998
  chunk: string;
18566
18999
  }
@@ -18590,7 +19023,7 @@ then one or more heapStatsUpdate events will be sent before a new lastSeenObject
18590
19023
  finished?: boolean;
18591
19024
  }
18592
19025
  export type resetProfilesPayload = void;
18593
-
19026
+
18594
19027
  /**
18595
19028
  * Enables console to refer to the node with given id via $x (see Command Line API for more details
18596
19029
  $x functions).
@@ -18733,7 +19166,7 @@ Deprecated in favor of `exposeInternals`.
18733
19166
  export type takeHeapSnapshotReturnValue = {
18734
19167
  }
18735
19168
  }
18736
-
19169
+
18737
19170
  export module Profiler {
18738
19171
  /**
18739
19172
  * Profile node. Holds callsite information, execution statistics and child nodes.
@@ -18855,7 +19288,7 @@ profile startTime.
18855
19288
  */
18856
19289
  functions: FunctionCoverage[];
18857
19290
  }
18858
-
19291
+
18859
19292
  export type consoleProfileFinishedPayload = {
18860
19293
  id: string;
18861
19294
  /**
@@ -18902,7 +19335,7 @@ trigger collection of coverage data immediately at a certain point in time.
18902
19335
  */
18903
19336
  result: ScriptCoverage[];
18904
19337
  }
18905
-
19338
+
18906
19339
  export type disableParameters = {
18907
19340
  }
18908
19341
  export type disableReturnValue = {
@@ -18996,7 +19429,7 @@ coverage needs to have started.
18996
19429
  timestamp: number;
18997
19430
  }
18998
19431
  }
18999
-
19432
+
19000
19433
  /**
19001
19434
  * Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects.
19002
19435
  Evaluation results are returned as mirror object that expose object type, string representation
@@ -19417,7 +19850,7 @@ allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.pau
19417
19850
  id: string;
19418
19851
  debuggerId?: UniqueDebuggerId;
19419
19852
  }
19420
-
19853
+
19421
19854
  /**
19422
19855
  * Notification is issued every time when binding is called.
19423
19856
  */
@@ -19523,7 +19956,7 @@ call).
19523
19956
  */
19524
19957
  executionContextId?: ExecutionContextId;
19525
19958
  }
19526
-
19959
+
19527
19960
  /**
19528
19961
  * Add handler to promise with given promise object id.
19529
19962
  */
@@ -20051,7 +20484,7 @@ Error was thrown.
20051
20484
  exceptionDetails?: ExceptionDetails;
20052
20485
  }
20053
20486
  }
20054
-
20487
+
20055
20488
  /**
20056
20489
  * This domain is deprecated.
20057
20490
  */
@@ -20069,8 +20502,8 @@ Error was thrown.
20069
20502
  */
20070
20503
  version: string;
20071
20504
  }
20072
-
20073
-
20505
+
20506
+
20074
20507
  /**
20075
20508
  * Returns supported domains.
20076
20509
  */
@@ -20083,7 +20516,7 @@ Error was thrown.
20083
20516
  domains: Domain[];
20084
20517
  }
20085
20518
  }
20086
-
20519
+
20087
20520
  export interface Events {
20088
20521
  "Accessibility.loadComplete": Accessibility.loadCompletePayload;
20089
20522
  "Accessibility.nodesUpdated": Accessibility.nodesUpdatedPayload;
@@ -20115,6 +20548,7 @@ Error was thrown.
20115
20548
  "DOM.inlineStyleInvalidated": DOM.inlineStyleInvalidatedPayload;
20116
20549
  "DOM.pseudoElementAdded": DOM.pseudoElementAddedPayload;
20117
20550
  "DOM.topLayerElementsUpdated": DOM.topLayerElementsUpdatedPayload;
20551
+ "DOM.scrollableFlagUpdated": DOM.scrollableFlagUpdatedPayload;
20118
20552
  "DOM.pseudoElementRemoved": DOM.pseudoElementRemovedPayload;
20119
20553
  "DOM.setChildNodes": DOM.setChildNodesPayload;
20120
20554
  "DOM.shadowRootPopped": DOM.shadowRootPoppedPayload;
@@ -20173,6 +20607,7 @@ Error was thrown.
20173
20607
  "Page.frameAttached": Page.frameAttachedPayload;
20174
20608
  "Page.frameClearedScheduledNavigation": Page.frameClearedScheduledNavigationPayload;
20175
20609
  "Page.frameDetached": Page.frameDetachedPayload;
20610
+ "Page.frameSubtreeWillBeDetached": Page.frameSubtreeWillBeDetachedPayload;
20176
20611
  "Page.frameNavigated": Page.frameNavigatedPayload;
20177
20612
  "Page.documentOpened": Page.documentOpenedPayload;
20178
20613
  "Page.frameResized": Page.frameResizedPayload;
@@ -20539,6 +20974,7 @@ Error was thrown.
20539
20974
  "Log.startViolationsReport": Log.startViolationsReportParameters;
20540
20975
  "Log.stopViolationsReport": Log.stopViolationsReportParameters;
20541
20976
  "Memory.getDOMCounters": Memory.getDOMCountersParameters;
20977
+ "Memory.getDOMCountersForLeakDetection": Memory.getDOMCountersForLeakDetectionParameters;
20542
20978
  "Memory.prepareForLeakDetection": Memory.prepareForLeakDetectionParameters;
20543
20979
  "Memory.forciblyPurgeJavaScriptMemory": Memory.forciblyPurgeJavaScriptMemoryParameters;
20544
20980
  "Memory.setPressureNotificationsSuppressed": Memory.setPressureNotificationsSuppressedParameters;
@@ -21148,6 +21584,7 @@ Error was thrown.
21148
21584
  "Log.startViolationsReport": Log.startViolationsReportReturnValue;
21149
21585
  "Log.stopViolationsReport": Log.stopViolationsReportReturnValue;
21150
21586
  "Memory.getDOMCounters": Memory.getDOMCountersReturnValue;
21587
+ "Memory.getDOMCountersForLeakDetection": Memory.getDOMCountersForLeakDetectionReturnValue;
21151
21588
  "Memory.prepareForLeakDetection": Memory.prepareForLeakDetectionReturnValue;
21152
21589
  "Memory.forciblyPurgeJavaScriptMemory": Memory.forciblyPurgeJavaScriptMemoryReturnValue;
21153
21590
  "Memory.setPressureNotificationsSuppressed": Memory.setPressureNotificationsSuppressedReturnValue;