chrome-devtools-frontend 1.0.1040337 → 1.0.1070764

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 (1002) hide show
  1. package/AUTHORS +4 -1
  2. package/README.md +4 -10
  3. package/config/gni/devtools_grd_files.gni +41 -25
  4. package/config/gni/devtools_image_files.gni +4 -0
  5. package/docs/README.md +81 -0
  6. package/{ARCHITECTURE.md → docs/architecture_of_devtools.md} +5 -6
  7. package/docs/{images/architecture-lazy-loading-features.png → architecture_of_devtools_lazy_loading_features.png} +0 -0
  8. package/docs/{images/module-visibility-rules.png → architecture_of_devtools_module_visibility_rules.png} +0 -0
  9. package/docs/design_guidelines.md +3 -1
  10. package/docs/{images/DevToolsDesignGuidelines.png → design_guidelines.png} +0 -0
  11. package/docs/l10n.md +293 -0
  12. package/docs/navbar.md +13 -0
  13. package/docs/third_party_guidelines.md +78 -0
  14. package/docs/workflows.md +6 -1
  15. package/extension-api/ExtensionAPI.d.ts +1 -0
  16. package/front_end/Images/src/edit-icon.svg +3 -0
  17. package/front_end/Images/src/frame-embedded-icon.svg +61 -0
  18. package/front_end/Images/src/frame-icon.svg +54 -0
  19. package/front_end/Images/src/trash_bin_material_icon.svg +1 -0
  20. package/front_end/Images/src/triangle-expanded.svg +1 -1
  21. package/front_end/Tests.js +0 -25
  22. package/front_end/core/common/ResourceType.ts +7 -1
  23. package/front_end/core/common/Revealer.ts +3 -0
  24. package/front_end/core/common/common.ts +2 -0
  25. package/front_end/core/dom_extension/DOMExtension.ts +1 -138
  26. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
  27. package/front_end/core/host/ResourceLoader.ts +15 -5
  28. package/front_end/core/host/UserMetrics.ts +43 -10
  29. package/front_end/core/i18n/locales/af.json +194 -110
  30. package/front_end/core/i18n/locales/am.json +205 -121
  31. package/front_end/core/i18n/locales/ar.json +196 -112
  32. package/front_end/core/i18n/locales/as.json +195 -111
  33. package/front_end/core/i18n/locales/az.json +196 -112
  34. package/front_end/core/i18n/locales/be.json +193 -109
  35. package/front_end/core/i18n/locales/bg.json +193 -109
  36. package/front_end/core/i18n/locales/bn.json +197 -113
  37. package/front_end/core/i18n/locales/bs.json +194 -110
  38. package/front_end/core/i18n/locales/ca.json +197 -113
  39. package/front_end/core/i18n/locales/cs.json +192 -108
  40. package/front_end/core/i18n/locales/cy.json +193 -109
  41. package/front_end/core/i18n/locales/da.json +194 -110
  42. package/front_end/core/i18n/locales/de.json +199 -115
  43. package/front_end/core/i18n/locales/el.json +191 -107
  44. package/front_end/core/i18n/locales/en-GB.json +193 -109
  45. package/front_end/core/i18n/locales/en-US.json +323 -233
  46. package/front_end/core/i18n/locales/en-XL.json +323 -233
  47. package/front_end/core/i18n/locales/es-419.json +195 -111
  48. package/front_end/core/i18n/locales/es.json +192 -108
  49. package/front_end/core/i18n/locales/et.json +195 -111
  50. package/front_end/core/i18n/locales/eu.json +197 -113
  51. package/front_end/core/i18n/locales/fa.json +243 -159
  52. package/front_end/core/i18n/locales/fi.json +192 -108
  53. package/front_end/core/i18n/locales/fil.json +193 -109
  54. package/front_end/core/i18n/locales/fr-CA.json +198 -114
  55. package/front_end/core/i18n/locales/fr.json +220 -136
  56. package/front_end/core/i18n/locales/gl.json +196 -112
  57. package/front_end/core/i18n/locales/gu.json +196 -112
  58. package/front_end/core/i18n/locales/he.json +201 -117
  59. package/front_end/core/i18n/locales/hi.json +200 -116
  60. package/front_end/core/i18n/locales/hr.json +192 -108
  61. package/front_end/core/i18n/locales/hu.json +195 -111
  62. package/front_end/core/i18n/locales/hy.json +193 -109
  63. package/front_end/core/i18n/locales/id.json +198 -114
  64. package/front_end/core/i18n/locales/is.json +193 -109
  65. package/front_end/core/i18n/locales/it.json +194 -110
  66. package/front_end/core/i18n/locales/ja.json +192 -108
  67. package/front_end/core/i18n/locales/ka.json +194 -110
  68. package/front_end/core/i18n/locales/kk.json +194 -110
  69. package/front_end/core/i18n/locales/km.json +196 -112
  70. package/front_end/core/i18n/locales/kn.json +193 -109
  71. package/front_end/core/i18n/locales/ko.json +196 -112
  72. package/front_end/core/i18n/locales/ky.json +196 -112
  73. package/front_end/core/i18n/locales/lo.json +196 -112
  74. package/front_end/core/i18n/locales/lt.json +192 -108
  75. package/front_end/core/i18n/locales/lv.json +194 -110
  76. package/front_end/core/i18n/locales/mk.json +194 -110
  77. package/front_end/core/i18n/locales/ml.json +194 -110
  78. package/front_end/core/i18n/locales/mn.json +194 -110
  79. package/front_end/core/i18n/locales/mr.json +193 -109
  80. package/front_end/core/i18n/locales/ms.json +193 -109
  81. package/front_end/core/i18n/locales/my.json +198 -114
  82. package/front_end/core/i18n/locales/ne.json +197 -113
  83. package/front_end/core/i18n/locales/nl.json +193 -109
  84. package/front_end/core/i18n/locales/no.json +195 -111
  85. package/front_end/core/i18n/locales/or.json +197 -113
  86. package/front_end/core/i18n/locales/pa.json +195 -111
  87. package/front_end/core/i18n/locales/pl.json +195 -111
  88. package/front_end/core/i18n/locales/pt-PT.json +195 -111
  89. package/front_end/core/i18n/locales/pt.json +194 -110
  90. package/front_end/core/i18n/locales/ro.json +189 -105
  91. package/front_end/core/i18n/locales/ru.json +191 -107
  92. package/front_end/core/i18n/locales/si.json +194 -110
  93. package/front_end/core/i18n/locales/sk.json +192 -108
  94. package/front_end/core/i18n/locales/sl.json +193 -109
  95. package/front_end/core/i18n/locales/sq.json +193 -109
  96. package/front_end/core/i18n/locales/sr-Latn.json +192 -108
  97. package/front_end/core/i18n/locales/sr.json +192 -108
  98. package/front_end/core/i18n/locales/sv.json +191 -107
  99. package/front_end/core/i18n/locales/sw.json +195 -111
  100. package/front_end/core/i18n/locales/ta.json +193 -109
  101. package/front_end/core/i18n/locales/te.json +198 -114
  102. package/front_end/core/i18n/locales/th.json +194 -110
  103. package/front_end/core/i18n/locales/tr.json +192 -108
  104. package/front_end/core/i18n/locales/uk.json +192 -108
  105. package/front_end/core/i18n/locales/ur.json +194 -110
  106. package/front_end/core/i18n/locales/uz.json +190 -106
  107. package/front_end/core/i18n/locales/vi.json +195 -111
  108. package/front_end/core/i18n/locales/zh-HK.json +193 -109
  109. package/front_end/core/i18n/locales/zh-TW.json +195 -111
  110. package/front_end/core/i18n/locales/zh.json +194 -110
  111. package/front_end/core/i18n/locales/zu.json +193 -109
  112. package/front_end/core/platform/dom-utilities.ts +107 -0
  113. package/front_end/core/platform/keyboard-utilities.ts +8 -0
  114. package/front_end/core/platform/string-utilities.ts +10 -0
  115. package/front_end/core/root/Runtime.ts +0 -2
  116. package/front_end/core/sdk/CPUProfileDataModel.ts +11 -4
  117. package/front_end/core/sdk/CPUThrottlingManager.ts +1 -1
  118. package/front_end/core/sdk/CSSMatchedStyles.ts +11 -12
  119. package/front_end/core/sdk/ChildTargetManager.ts +1 -1
  120. package/front_end/core/sdk/ConsoleModel.ts +3 -3
  121. package/front_end/core/sdk/DOMModel.ts +0 -1
  122. package/front_end/core/sdk/DebuggerModel.ts +4 -36
  123. package/front_end/core/sdk/FrameManager.ts +12 -33
  124. package/front_end/core/sdk/NetworkManager.ts +50 -16
  125. package/front_end/core/sdk/NetworkRequest.ts +49 -0
  126. package/front_end/core/sdk/ProfileTreeModel.ts +19 -6
  127. package/front_end/core/sdk/ResourceTreeModel.ts +31 -32
  128. package/front_end/core/sdk/RuntimeModel.ts +1 -1
  129. package/front_end/core/sdk/ScreenCaptureModel.ts +27 -3
  130. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +3 -0
  131. package/front_end/core/sdk/SourceMap.ts +14 -8
  132. package/front_end/core/sdk/SourceMapManager.ts +8 -6
  133. package/front_end/core/sdk/Target.ts +3 -3
  134. package/front_end/core/sdk/TargetManager.ts +12 -1
  135. package/front_end/core/sdk/sdk-legacy.ts +3 -0
  136. package/front_end/core/sdk/sdk-meta.ts +21 -0
  137. package/front_end/devtools_compatibility.js +17 -13
  138. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -3
  139. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -53
  140. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +1 -0
  141. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +0 -9
  142. package/front_end/entrypoints/formatter_worker/formatter_worker.ts +0 -4
  143. package/front_end/entrypoints/inspector_main/InspectorMain.ts +5 -3
  144. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +35 -0
  145. package/front_end/entrypoints/js_app/js_app.ts +1 -0
  146. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +17 -9
  147. package/front_end/entrypoints/main/ExecutionContextSelector.ts +1 -1
  148. package/front_end/entrypoints/main/MainImpl.ts +31 -38
  149. package/front_end/entrypoints/main/main-meta.ts +0 -2
  150. package/front_end/entrypoints/node_app/node_app.ts +2 -1
  151. package/front_end/entrypoints/shell/shell.ts +1 -2
  152. package/front_end/generated/ARIAProperties.js +8 -0
  153. package/front_end/generated/InspectorBackendCommands.js +32 -23
  154. package/front_end/generated/SupportedCSSProperties.js +97 -48
  155. package/front_end/generated/protocol-mapping.d.ts +67 -34
  156. package/front_end/generated/protocol-proxy-api.d.ts +52 -29
  157. package/front_end/generated/protocol.ts +344 -89
  158. package/front_end/legacy/legacy-defs.d.ts +1 -3
  159. package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -1
  160. package/front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js +10 -18
  161. package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +3 -3
  162. package/front_end/legacy_test_runner/test_runner/TestRunner.js +24 -0
  163. package/front_end/legacy_test_runner/test_runner/test_runner.js +15 -13
  164. package/front_end/models/bindings/BreakpointManager.ts +38 -21
  165. package/front_end/models/bindings/CSSWorkspaceBinding.ts +19 -18
  166. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -0
  167. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +32 -37
  168. package/front_end/models/bindings/FileUtils.ts +3 -3
  169. package/front_end/models/bindings/IgnoreListManager.ts +14 -3
  170. package/front_end/models/bindings/ResourceMapping.ts +5 -28
  171. package/front_end/models/bindings/ResourceScriptMapping.ts +2 -13
  172. package/front_end/models/bindings/ResourceUtils.ts +1 -2
  173. package/front_end/models/emulation/DeviceModeModel.ts +11 -13
  174. package/front_end/models/extensions/ExtensionAPI.ts +22 -5
  175. package/front_end/models/extensions/ExtensionServer.ts +31 -14
  176. package/front_end/models/formatter/FormatterWorkerPool.ts +0 -31
  177. package/front_end/models/har/HARFormat.ts +68 -5
  178. package/front_end/models/har/Importer.ts +3 -5
  179. package/front_end/models/har/Log.ts +3 -0
  180. package/front_end/models/issues_manager/AttributionReportingIssue.ts +24 -1
  181. package/front_end/models/issues_manager/DeprecationIssue.ts +113 -33
  182. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +0 -10
  183. package/front_end/models/issues_manager/IssuesManager.ts +3 -12
  184. package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +5 -6
  185. package/front_end/models/issues_manager/descriptions/arPermissionPolicyNotDelegated.md +11 -0
  186. package/front_end/models/javascript_metadata/NativeFunctions.js +121 -97
  187. package/front_end/models/logs/NetworkLog.ts +11 -11
  188. package/front_end/models/persistence/IsolatedFileSystemManager.ts +5 -1
  189. package/front_end/models/persistence/NetworkPersistenceManager.ts +13 -5
  190. package/front_end/models/persistence/PersistenceImpl.ts +2 -1
  191. package/front_end/models/source_map_scopes/NamesResolver.ts +99 -56
  192. package/front_end/models/text_utils/TextUtils.ts +18 -34
  193. package/front_end/models/text_utils/text_utils-legacy.ts +0 -3
  194. package/front_end/models/timeline_model/TimelineModel.ts +2 -2
  195. package/front_end/models/timeline_model/timeline_model-legacy.ts +0 -9
  196. package/front_end/models/timeline_model/timeline_model.ts +0 -3
  197. package/front_end/models/workspace/UISourceCode.ts +12 -6
  198. package/front_end/panels/accessibility/ARIAAttributesView.ts +2 -1
  199. package/front_end/panels/application/AppManifestView.ts +15 -7
  200. package/front_end/panels/application/ApplicationPanelCacheSection.ts +2 -1
  201. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -9
  202. package/front_end/panels/application/DOMStorageModel.ts +16 -18
  203. package/front_end/panels/application/IndexedDBModel.ts +97 -134
  204. package/front_end/panels/application/IndexedDBViews.ts +1 -3
  205. package/front_end/panels/application/InterestGroupStorageModel.ts +3 -0
  206. package/front_end/panels/application/InterestGroupTreeElement.ts +1 -1
  207. package/front_end/panels/application/ReportingApiTreeElement.ts +2 -1
  208. package/front_end/panels/application/ReportingApiView.ts +5 -4
  209. package/front_end/panels/application/StorageView.ts +30 -26
  210. package/front_end/panels/application/TrustTokensTreeElement.ts +5 -4
  211. package/front_end/panels/application/application.ts +6 -0
  212. package/front_end/panels/application/components/BackForwardCacheStrings.ts +6 -1
  213. package/front_end/panels/application/components/BackForwardCacheView.ts +149 -92
  214. package/front_end/panels/application/components/FrameDetailsView.ts +66 -7
  215. package/front_end/panels/application/components/OriginTrialTreeView.ts +0 -5
  216. package/front_end/panels/application/components/Prerender2.ts +74 -14
  217. package/front_end/panels/application/components/ProtocolHandlersView.ts +6 -1
  218. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +184 -0
  219. package/front_end/panels/application/components/SharedStorageMetadataView.ts +173 -0
  220. package/front_end/panels/application/components/backForwardCacheView.css +2 -3
  221. package/front_end/panels/application/components/components.ts +4 -0
  222. package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
  223. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  224. package/front_end/panels/application/components/protocolHandlersView.css +5 -1
  225. package/front_end/panels/application/components/sharedStorageAccessGrid.css +26 -0
  226. package/front_end/panels/application/components/sharedStorageMetadataView.css +11 -0
  227. package/front_end/panels/application/components/stackTraceLinkButton.css +1 -1
  228. package/front_end/panels/application/components/stackTraceRow.css +1 -1
  229. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -1
  230. package/front_end/panels/console/ConsoleFormat.ts +2 -2
  231. package/front_end/panels/console/ConsolePinPane.ts +1 -1
  232. package/front_end/panels/console/ConsolePrompt.ts +1 -1
  233. package/front_end/panels/console/ConsoleView.ts +1 -0
  234. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  235. package/front_end/panels/console/consoleView.css +5 -0
  236. package/front_end/panels/coverage/CoverageView.ts +2 -2
  237. package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +1 -1
  238. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -24
  239. package/front_end/panels/developer_resources/developer_resources-meta.ts +1 -1
  240. package/front_end/panels/elements/CSSRuleValidator.ts +147 -65
  241. package/front_end/panels/elements/CSSRuleValidatorHelper.ts +32 -2
  242. package/front_end/panels/elements/ClassesPaneWidget.ts +2 -2
  243. package/front_end/panels/elements/ElementsPanel.ts +19 -1
  244. package/front_end/panels/elements/StylePropertiesSection.ts +3 -1
  245. package/front_end/panels/elements/StylePropertyTreeElement.ts +9 -3
  246. package/front_end/panels/elements/StylesSidebarPane.ts +46 -19
  247. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -2
  248. package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +2 -3
  249. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +19 -2
  250. package/front_end/panels/elements/components/computedStyleProperty.css +3 -3
  251. package/front_end/panels/elements/components/computedStyleTrace.css +8 -4
  252. package/front_end/panels/elements/components/cssHintDetailsView.css +2 -8
  253. package/front_end/panels/elements/elements-meta.ts +28 -0
  254. package/front_end/panels/elements/stylesSectionTree.css +2 -1
  255. package/front_end/panels/elements/stylesSidebarPane.css +7 -0
  256. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -0
  257. package/front_end/panels/issues/IssueView.ts +5 -4
  258. package/front_end/panels/js_profiler/js_profiler-meta.ts +139 -0
  259. package/front_end/panels/lighthouse/LighthouseController.ts +4 -9
  260. package/front_end/panels/lighthouse/LighthousePanel.ts +38 -32
  261. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +16 -15
  262. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +3 -3
  263. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +6 -1
  264. package/front_end/panels/lighthouse/LighthouseReporterTypes.ts +3 -2
  265. package/front_end/panels/lighthouse/LighthouseStartView.ts +162 -89
  266. package/front_end/panels/lighthouse/lighthouseStartView.css +7 -36
  267. package/front_end/panels/media/TickingFlameChart.ts +9 -3
  268. package/front_end/panels/network/NetworkDataGridNode.ts +79 -9
  269. package/front_end/panels/network/NetworkItemView.ts +4 -3
  270. package/front_end/panels/network/NetworkLogView.ts +40 -42
  271. package/front_end/panels/network/NetworkLogViewColumns.ts +2 -1
  272. package/front_end/panels/network/RequestCookiesView.ts +28 -0
  273. package/front_end/panels/network/components/HeaderSectionRow.css +176 -0
  274. package/front_end/panels/network/components/HeaderSectionRow.ts +477 -0
  275. package/front_end/panels/network/components/RequestHeaderSection.css +59 -0
  276. package/front_end/panels/network/components/RequestHeaderSection.ts +133 -0
  277. package/front_end/panels/network/components/RequestHeadersView.css +1 -59
  278. package/front_end/panels/network/components/RequestHeadersView.ts +43 -417
  279. package/front_end/panels/network/components/ResponseHeaderSection.css +21 -0
  280. package/front_end/panels/network/components/ResponseHeaderSection.ts +635 -0
  281. package/front_end/panels/network/components/components.ts +6 -0
  282. package/front_end/panels/network/network-meta.ts +0 -16
  283. package/front_end/panels/network/requestPayloadTree.css +0 -1
  284. package/front_end/panels/profiler/HeapProfileView.ts +7 -6
  285. package/front_end/panels/profiler/LiveHeapProfileView.ts +2 -2
  286. package/front_end/panels/sensors/sensors-meta.ts +0 -10
  287. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +61 -43
  288. package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
  289. package/front_end/panels/settings/SettingsScreen.ts +1 -3
  290. package/front_end/panels/settings/components/syncSection.css +1 -1
  291. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +38 -35
  292. package/front_end/panels/sources/BreakpointsSidebarPane.ts +433 -14
  293. package/front_end/panels/sources/CallStackSidebarPane.ts +10 -1
  294. package/front_end/panels/sources/CoveragePlugin.ts +1 -1
  295. package/front_end/panels/sources/DebuggerPlugin.ts +316 -109
  296. package/front_end/panels/sources/GoToLineQuickOpen.ts +22 -49
  297. package/front_end/panels/sources/NavigatorView.ts +2 -10
  298. package/front_end/panels/sources/OpenFileQuickOpen.ts +0 -13
  299. package/front_end/panels/sources/OutlineQuickOpen.ts +274 -45
  300. package/front_end/panels/sources/SourcesNavigator.ts +2 -2
  301. package/front_end/panels/sources/SourcesPanel.ts +13 -9
  302. package/front_end/panels/sources/SourcesView.ts +8 -2
  303. package/front_end/panels/sources/TabbedEditorContainer.ts +8 -0
  304. package/front_end/panels/sources/UISourceCodeFrame.ts +81 -34
  305. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  306. package/front_end/panels/sources/components/BreakpointsView.ts +472 -28
  307. package/front_end/panels/sources/components/BreakpointsViewUtils.ts +195 -0
  308. package/front_end/panels/sources/components/HeadersView.css +5 -1
  309. package/front_end/panels/sources/components/HeadersView.ts +18 -11
  310. package/front_end/panels/sources/components/breakpointsView.css +136 -11
  311. package/front_end/panels/sources/sources-legacy.ts +0 -5
  312. package/front_end/panels/sources/sources-meta.ts +114 -5
  313. package/front_end/panels/sources/sources.ts +0 -2
  314. package/front_end/panels/sources/watchExpressionsSidebarPane.css +10 -6
  315. package/front_end/panels/timeline/PerformanceModel.ts +65 -18
  316. package/front_end/panels/timeline/TimelineController.ts +11 -5
  317. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -49
  318. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
  319. package/front_end/panels/timeline/TimelineLoader.ts +41 -24
  320. package/front_end/panels/timeline/TimelinePanel.ts +155 -57
  321. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -263
  322. package/front_end/panels/webauthn/WebauthnPane.ts +2 -2
  323. package/front_end/panels/webauthn/webauthnPane.css +1 -0
  324. package/front_end/services/puppeteer/PuppeteerConnection.ts +51 -42
  325. package/front_end/third_party/additional_readme_paths.json +0 -1
  326. package/front_end/third_party/chromium/client-variations/ClientVariations.js +1 -1
  327. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  328. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  329. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  330. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +7 -1
  331. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  332. package/front_end/third_party/codemirror.next/package.json +4 -2
  333. package/front_end/third_party/i18n/localized-string-set.ts +9 -1
  334. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +431 -434
  335. package/front_end/third_party/lighthouse/locales/en-US.json +144 -186
  336. package/front_end/third_party/lighthouse/locales/en-XL.json +144 -186
  337. package/front_end/third_party/puppeteer/README.chromium +14 -6
  338. package/front_end/third_party/puppeteer/package/README.md +134 -316
  339. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +337 -0
  340. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -0
  341. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +248 -0
  342. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -0
  343. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +148 -0
  344. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -0
  345. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +135 -0
  346. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -0
  347. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +2100 -0
  348. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -0
  349. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +536 -0
  350. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -0
  351. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  352. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  353. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +39 -23
  354. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  355. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +17 -199
  356. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  357. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +112 -202
  358. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  359. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +9 -3
  360. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  361. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -6
  362. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  363. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  364. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  365. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +0 -6
  366. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
  367. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts +133 -0
  368. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts.map +1 -0
  369. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/initializePuppeteer.d.ts → cjs/puppeteer/common/Configuration.js} +4 -7
  370. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.js.map +1 -0
  371. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +24 -0
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +67 -28
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +11 -2
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +7 -5
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +52 -0
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -0
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DeviceDescriptors.js → Device.js} +17 -11
  382. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -0
  383. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +29 -6
  384. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
  385. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +69 -46
  386. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
  387. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +27 -3
  388. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  389. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +47 -2
  390. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  391. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +16 -1
  392. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
  393. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +16 -1
  394. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  395. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +2 -36
  396. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  397. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +20 -59
  398. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  399. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  400. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  401. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +47 -21
  402. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +155 -43
  404. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +7 -2
  406. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +47 -97
  408. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts +39 -0
  410. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts.map +1 -0
  411. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js +120 -0
  412. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js.map +1 -0
  413. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -2
  414. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +2 -2
  415. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts +13 -67
  416. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  417. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js +124 -511
  418. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -1
  419. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +5 -5
  420. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  421. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +7 -9
  422. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  423. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node/install.d.ts → cjs/puppeteer/common/LazyArg.d.ts} +7 -7
  424. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts.map +1 -0
  425. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js +45 -0
  426. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js.map +1 -0
  427. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  428. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +12 -2
  429. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  430. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +15 -0
  431. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  432. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +15 -0
  433. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  434. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -4
  435. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  436. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -2
  437. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  438. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node → cjs/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  439. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  440. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  441. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  442. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +35 -496
  443. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  444. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +287 -414
  445. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  446. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/common/NetworkConditions.d.ts → cjs/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  447. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  448. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +12 -8
  449. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  450. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +36 -61
  451. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  452. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +32 -66
  453. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  454. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +26 -34
  455. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
  456. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +57 -94
  457. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  458. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -2
  459. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  460. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +2 -2
  461. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  462. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts +52 -0
  463. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -0
  464. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +204 -0
  465. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -0
  466. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +4 -5
  467. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
  468. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +23 -27
  469. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
  470. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts +45 -0
  471. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  472. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js +75 -0
  473. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js.map +1 -0
  474. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  475. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  476. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js +52 -0
  477. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  478. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/puppeteer.js → cjs/puppeteer/common/bidi/Connection.d.ts} +20 -10
  479. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  480. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js +133 -0
  481. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js.map +1 -0
  482. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts +28 -0
  483. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts.map +1 -0
  484. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js +61 -0
  485. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js.map +1 -0
  486. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +11 -0
  487. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -1
  488. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +0 -4
  489. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  490. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +25 -59
  491. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  492. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +4 -0
  493. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
  494. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +8 -1
  495. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
  496. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +8 -2
  497. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -1
  498. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +8 -2
  499. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -1
  500. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  501. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  502. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  503. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  504. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js +71 -0
  505. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  506. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +32 -6
  507. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -1
  508. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +30 -7
  509. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -1
  510. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts +39 -0
  511. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts.map +1 -0
  512. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js +133 -0
  513. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js.map +1 -0
  514. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  515. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  516. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js +80 -0
  517. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js.map +1 -0
  518. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  519. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  520. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js +42 -0
  521. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  522. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +44 -1
  523. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
  524. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +52 -3
  525. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
  526. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts +26 -0
  527. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts.map +1 -0
  528. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +58 -0
  529. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -0
  530. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +50 -14
  531. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  532. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +137 -154
  533. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  534. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +6 -0
  535. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  536. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +16 -7
  537. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  538. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +6 -18
  539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +88 -28
  541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +40 -33
  545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +15 -0
  547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
  548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -16
  549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts +24 -22
  551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js +94 -130
  553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js.map +1 -1
  554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +271 -0
  557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -0
  558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +21 -5
  559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
  560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +22 -6
  561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
  562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +1 -1
  563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +24 -18
  565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
  566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +25 -22
  567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
  568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js +22 -0
  571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +12 -10
  573. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  574. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +17 -44
  575. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -1
  576. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.d.ts +23 -0
  577. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.js +5 -0
  578. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +337 -0
  579. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -0
  580. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +244 -0
  581. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -0
  582. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +148 -0
  583. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -0
  584. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +131 -0
  585. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -0
  586. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2100 -0
  587. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -0
  588. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +532 -0
  589. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -0
  590. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  591. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  592. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +39 -23
  593. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  594. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +17 -199
  595. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  596. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +108 -198
  597. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  598. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +9 -3
  599. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  600. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +4 -5
  601. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  602. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  603. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  604. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +0 -6
  605. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
  606. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts +133 -0
  607. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts.map +1 -0
  608. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/initializePuppeteer.d.ts → esm/puppeteer/common/Configuration.js} +3 -7
  609. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.js.map +1 -0
  610. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +24 -0
  611. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  612. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +63 -26
  613. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  614. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +11 -2
  615. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  616. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +7 -5
  617. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  618. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +52 -0
  619. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -0
  620. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DeviceDescriptors.js → Device.js} +16 -10
  621. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -0
  622. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +29 -6
  623. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
  624. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +69 -46
  625. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
  626. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +27 -3
  627. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  628. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +47 -2
  629. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  630. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +16 -1
  631. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
  632. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +16 -1
  633. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
  634. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +2 -36
  635. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  636. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +20 -59
  637. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
  638. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  639. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  640. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +47 -21
  641. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -1
  642. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +132 -43
  643. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -1
  644. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +7 -2
  645. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  646. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +47 -97
  647. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  648. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts +39 -0
  649. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts.map +1 -0
  650. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js +116 -0
  651. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js.map +1 -0
  652. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -2
  653. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -2
  654. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts +13 -67
  655. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  656. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js +124 -487
  657. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -1
  658. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +5 -5
  659. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  660. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +7 -9
  661. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  662. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node/install.d.ts → esm/puppeteer/common/LazyArg.d.ts} +7 -7
  663. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts.map +1 -0
  664. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js +41 -0
  665. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js.map +1 -0
  666. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  667. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +12 -2
  668. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  669. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +15 -0
  670. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  671. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +15 -0
  672. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  673. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -4
  674. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  675. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +2 -2
  676. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  677. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node → esm/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  678. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  679. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  680. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  681. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +35 -496
  682. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  683. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +287 -414
  684. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  685. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/common/NetworkConditions.d.ts → esm/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  686. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  687. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +11 -7
  688. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  689. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +36 -61
  690. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  691. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +33 -67
  692. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  693. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +26 -34
  694. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
  695. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +57 -94
  696. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  697. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -2
  698. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  699. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +2 -2
  700. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  701. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts +52 -0
  702. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -0
  703. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +199 -0
  704. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -0
  705. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +4 -5
  706. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
  707. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +23 -27
  708. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
  709. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts +45 -0
  710. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  711. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js +71 -0
  712. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js.map +1 -0
  713. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  714. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  715. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js +48 -0
  716. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  717. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts +37 -0
  718. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  719. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js +129 -0
  720. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js.map +1 -0
  721. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts +28 -0
  722. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts.map +1 -0
  723. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js +57 -0
  724. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js.map +1 -0
  725. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +11 -0
  726. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -1
  727. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +0 -4
  728. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  729. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +24 -57
  730. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  731. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +4 -0
  732. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
  733. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +7 -0
  734. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
  735. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +8 -2
  736. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -1
  737. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +8 -2
  738. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -1
  739. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  740. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  741. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  742. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  743. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js +66 -0
  744. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  745. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +32 -6
  746. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -1
  747. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +30 -7
  748. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -1
  749. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts +39 -0
  750. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts.map +1 -0
  751. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js +128 -0
  752. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js.map +1 -0
  753. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  754. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  755. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js +75 -0
  756. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js.map +1 -0
  757. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  758. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  759. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js +37 -0
  760. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  761. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +44 -1
  762. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
  763. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +41 -1
  764. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -1
  765. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts +26 -0
  766. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts.map +1 -0
  767. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js +53 -0
  768. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js.map +1 -0
  769. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +50 -14
  770. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  771. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +137 -154
  772. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  773. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +6 -0
  774. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  775. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +14 -5
  776. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  777. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +6 -18
  778. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  779. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +89 -29
  780. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  781. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  782. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  783. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +41 -34
  784. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  785. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +15 -0
  786. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
  787. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -16
  788. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  789. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts +24 -22
  790. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  791. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js +70 -124
  792. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js.map +1 -1
  793. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  794. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  795. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +267 -0
  796. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -0
  797. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +21 -5
  798. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
  799. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +22 -6
  800. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
  801. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +1 -1
  802. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  803. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +24 -18
  804. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
  805. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +25 -22
  806. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
  807. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  808. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  809. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js +18 -0
  810. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  811. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +12 -10
  812. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  813. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +16 -42
  814. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -1
  815. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.d.ts +23 -0
  816. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.js +3 -0
  817. package/front_end/third_party/puppeteer/package/lib/types.d.ts +548 -513
  818. package/front_end/third_party/puppeteer/package/package.json +125 -104
  819. package/front_end/third_party/puppeteer/puppeteer.ts +3 -3
  820. package/front_end/ui/components/buttons/Button.ts +30 -1
  821. package/front_end/ui/components/buttons/button.css +21 -0
  822. package/front_end/ui/components/chrome_link/ChromeLink.ts +3 -2
  823. package/front_end/ui/components/chrome_link/chromeLink.css +1 -1
  824. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +21 -2
  825. package/front_end/ui/components/docs/button/basic.ts +43 -10
  826. package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +2 -0
  827. package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +10 -3
  828. package/front_end/ui/components/docs/two_states_counter/basic.html +27 -0
  829. package/front_end/ui/components/docs/two_states_counter/basic.ts +45 -0
  830. package/front_end/ui/components/expandable_list/expandableList.css +1 -1
  831. package/front_end/ui/components/helpers/scheduled-render.ts +5 -2
  832. package/front_end/ui/components/icon_button/iconButton.css +2 -0
  833. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +23 -12
  834. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -0
  835. package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -4
  836. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +4 -0
  837. package/front_end/ui/components/markdown_view/MarkdownView.ts +39 -38
  838. package/front_end/ui/components/markdown_view/markdownLink.css +1 -0
  839. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +12 -6
  840. package/front_end/ui/components/survey_link/surveyLink.css +1 -0
  841. package/front_end/ui/components/text_editor/TextEditor.ts +75 -9
  842. package/front_end/ui/components/text_editor/config.ts +58 -2
  843. package/front_end/ui/components/text_editor/position.ts +2 -0
  844. package/front_end/ui/components/text_editor/theme.ts +10 -0
  845. package/front_end/ui/components/text_prompt/textPrompt.css +4 -0
  846. package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -8
  847. package/front_end/ui/components/tree_outline/treeOutline.css +20 -0
  848. package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +103 -0
  849. package/front_end/ui/components/two_states_counter/twoStatesCounter.css +37 -0
  850. package/front_end/ui/components/two_states_counter/two_states_counter.ts +9 -0
  851. package/front_end/ui/legacy/ARIAUtils.ts +4 -1
  852. package/front_end/ui/legacy/Context.ts +5 -1
  853. package/front_end/ui/legacy/DockController.ts +19 -0
  854. package/front_end/ui/legacy/FilterBar.ts +3 -1
  855. package/front_end/ui/legacy/InspectorView.ts +6 -2
  856. package/front_end/ui/legacy/ListWidget.ts +5 -1
  857. package/front_end/ui/legacy/SearchableView.ts +6 -19
  858. package/front_end/ui/legacy/SoftContextMenu.ts +20 -6
  859. package/front_end/ui/legacy/TabbedPane.ts +7 -5
  860. package/front_end/ui/legacy/TextPrompt.ts +1 -2
  861. package/front_end/ui/legacy/Toolbar.ts +6 -4
  862. package/front_end/ui/legacy/UIUtils.ts +8 -8
  863. package/front_end/ui/legacy/XLink.ts +3 -3
  864. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +9 -10
  865. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  866. package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -6
  867. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +9 -2
  868. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +10 -2
  869. package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +22 -9
  870. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +3 -2
  871. package/front_end/ui/legacy/components/inline_editor/cssLength.css +4 -0
  872. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +15 -9
  873. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +9 -1
  874. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +75 -377
  875. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +3 -14
  876. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +2 -14
  877. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +9 -41
  878. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -2
  879. package/front_end/ui/legacy/inspectorCommon.css +23 -0
  880. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +1 -0
  881. package/front_end/ui/legacy/reportView.css +10 -0
  882. package/front_end/ui/legacy/softContextMenu.css +11 -1
  883. package/front_end/ui/legacy/splitWidget.css +1 -1
  884. package/front_end/ui/legacy/tabbedPane.css +26 -4
  885. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -5
  886. package/front_end/ui/legacy/toolbar.css +7 -1
  887. package/package.json +2 -1
  888. package/scripts/eslint_rules/lib/no_only.js +27 -0
  889. package/scripts/eslint_rules/tests/no_only_test.js +95 -0
  890. package/docs/localization/README.md +0 -6
  891. package/docs/localization/adding_strings.md +0 -133
  892. package/docs/localization/descriptions.md +0 -30
  893. package/docs/localization/localization_apis.md +0 -80
  894. package/docs/localization/locked_terms.md +0 -38
  895. package/docs/testing_guidelines.md +0 -4
  896. package/docs/triage_guidelines.md +0 -3
  897. package/front_end/entrypoints/formatter_worker/HTMLOutline.ts +0 -53
  898. package/front_end/entrypoints/formatter_worker/JavaScriptOutline.ts +0 -153
  899. package/front_end/legacy_test_runner/lighthouse_test_runner/lighthouse_test_runner.js +0 -155
  900. package/front_end/models/timeline_model/TimelineIRModel.ts +0 -317
  901. package/front_end/panels/application/components/originTrialTreeView.css +0 -9
  902. package/front_end/panels/input/InputModel.ts +0 -213
  903. package/front_end/panels/input/InputTimeline.ts +0 -407
  904. package/front_end/panels/input/input-legacy.ts +0 -32
  905. package/front_end/panels/input/input-meta.ts +0 -130
  906. package/front_end/panels/input/input.ts +0 -11
  907. package/front_end/panels/input/inputTimeline.css +0 -16
  908. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +0 -179
  909. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +0 -145
  910. package/front_end/third_party/acorn-loose/README.chromium +0 -22
  911. package/front_end/third_party/acorn-loose/acorn-loose-tsconfig.json +0 -8
  912. package/front_end/third_party/acorn-loose/acorn-loose.ts +0 -9
  913. package/front_end/third_party/acorn-loose/package/CHANGELOG.md +0 -123
  914. package/front_end/third_party/acorn-loose/package/LICENSE +0 -21
  915. package/front_end/third_party/acorn-loose/package/README.md +0 -66
  916. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.d.ts +0 -16
  917. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +0 -1538
  918. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js.map +0 -1
  919. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +0 -1528
  920. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.d.ts +0 -10
  921. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.map +0 -1
  922. package/front_end/third_party/acorn-loose/package/package.json +0 -47
  923. package/front_end/third_party/puppeteer/package/LICENSE +0 -202
  924. package/front_end/third_party/puppeteer/package/install.js +0 -89
  925. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  926. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  927. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +0 -1
  928. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  929. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js.map +0 -1
  930. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +0 -6
  931. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +0 -1
  932. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +0 -21
  933. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +0 -1
  934. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +0 -5
  935. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +0 -1
  936. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +0 -10
  937. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +0 -1
  938. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +0 -1
  939. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +0 -47
  940. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +0 -1
  941. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  942. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  943. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +0 -1
  944. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +0 -213
  945. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +0 -1
  946. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +0 -1
  947. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +0 -198
  948. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +0 -1
  949. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts +0 -10
  950. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts.map +0 -1
  951. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js +0 -40
  952. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js.map +0 -1
  953. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +0 -27
  954. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +0 -1
  955. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js +0 -44
  956. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +0 -1
  957. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +0 -2
  958. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  959. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +0 -19
  960. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +0 -1
  961. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts +0 -27
  962. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js +0 -56
  963. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  964. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  965. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +0 -1
  966. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  967. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js.map +0 -1
  968. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +0 -6
  969. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +0 -1
  970. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +0 -20
  971. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +0 -1
  972. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +0 -5
  973. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +0 -1
  974. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +0 -7
  975. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +0 -1
  976. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +0 -1
  977. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +0 -43
  978. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +0 -1
  979. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  980. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  981. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +0 -1
  982. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +0 -209
  983. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +0 -1
  984. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +0 -1
  985. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +0 -190
  986. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +0 -1
  987. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts +0 -10
  988. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts.map +0 -1
  989. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js +0 -13
  990. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js.map +0 -1
  991. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +0 -27
  992. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +0 -1
  993. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +0 -1
  994. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +0 -2
  995. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  996. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +0 -15
  997. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +0 -1
  998. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +0 -27
  999. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +0 -53
  1000. package/front_end/third_party/puppeteer/package/typescript-if-required.js +0 -70
  1001. package/scripts/eslint_rules/lib/render_coordinator_write.js +0 -58
  1002. package/scripts/eslint_rules/tests/render_coordinator_write_test.js +0 -55
@@ -60,13 +60,14 @@ const path = __importStar(require("path"));
60
60
  const readline = __importStar(require("readline"));
61
61
  const rimraf_1 = __importDefault(require("rimraf"));
62
62
  const util_1 = require("util");
63
- const assert_js_1 = require("../util/assert.js");
64
- const Connection_js_1 = require("../common/Connection.js");
63
+ const Connection_js_1 = require("../common/bidi/Connection.js");
64
+ const Connection_js_2 = require("../common/Connection.js");
65
65
  const Debug_js_1 = require("../common/Debug.js");
66
66
  const Errors_js_1 = require("../common/Errors.js");
67
+ const NodeWebSocketTransport_js_1 = require("../common/NodeWebSocketTransport.js");
67
68
  const util_js_1 = require("../common/util.js");
69
+ const assert_js_1 = require("../util/assert.js");
68
70
  const ErrorLike_js_1 = require("../util/ErrorLike.js");
69
- const NodeWebSocketTransport_js_1 = require("../node/NodeWebSocketTransport.js");
70
71
  const PipeTransport_js_1 = require("./PipeTransport.js");
71
72
  const removeFolderAsync = (0, util_1.promisify)(rimraf_1.default);
72
73
  const renameAsync = (0, util_1.promisify)(fs.rename);
@@ -247,27 +248,35 @@ class BrowserRunner {
247
248
  // perform this earlier, then the previous function calls would not happen.
248
249
  (0, util_js_1.removeEventListeners)(__classPrivateFieldGet(this, _BrowserRunner_listeners, "f"));
249
250
  }
251
+ async setupWebDriverBiDiConnection(options) {
252
+ (0, assert_js_1.assert)(this.proc, 'BrowserRunner not started.');
253
+ const { timeout, slowMo, preferredRevision } = options;
254
+ let browserWSEndpoint = await waitForWSEndpoint(this.proc, timeout, preferredRevision, /^WebDriver BiDi listening on (ws:\/\/.*)$/);
255
+ browserWSEndpoint += '/session';
256
+ const transport = await NodeWebSocketTransport_js_1.NodeWebSocketTransport.create(browserWSEndpoint);
257
+ return new Connection_js_1.Connection(transport, slowMo);
258
+ }
250
259
  async setupConnection(options) {
251
260
  (0, assert_js_1.assert)(this.proc, 'BrowserRunner not started.');
252
261
  const { usePipe, timeout, slowMo, preferredRevision } = options;
253
262
  if (!usePipe) {
254
263
  const browserWSEndpoint = await waitForWSEndpoint(this.proc, timeout, preferredRevision);
255
264
  const transport = await NodeWebSocketTransport_js_1.NodeWebSocketTransport.create(browserWSEndpoint);
256
- this.connection = new Connection_js_1.Connection(browserWSEndpoint, transport, slowMo);
265
+ this.connection = new Connection_js_2.Connection(browserWSEndpoint, transport, slowMo);
257
266
  }
258
267
  else {
259
268
  // stdio was assigned during start(), and the 'pipe' option there adds the
260
269
  // 4th and 5th items to stdio array
261
270
  const { 3: pipeWrite, 4: pipeRead } = this.proc.stdio;
262
271
  const transport = new PipeTransport_js_1.PipeTransport(pipeWrite, pipeRead);
263
- this.connection = new Connection_js_1.Connection('', transport, slowMo);
272
+ this.connection = new Connection_js_2.Connection('', transport, slowMo);
264
273
  }
265
274
  return this.connection;
266
275
  }
267
276
  }
268
277
  exports.BrowserRunner = BrowserRunner;
269
278
  _BrowserRunner_product = new WeakMap(), _BrowserRunner_executablePath = new WeakMap(), _BrowserRunner_processArguments = new WeakMap(), _BrowserRunner_userDataDir = new WeakMap(), _BrowserRunner_isTempUserDataDir = new WeakMap(), _BrowserRunner_closed = new WeakMap(), _BrowserRunner_listeners = new WeakMap(), _BrowserRunner_processClosing = new WeakMap();
270
- function waitForWSEndpoint(browserProcess, timeout, preferredRevision) {
279
+ function waitForWSEndpoint(browserProcess, timeout, preferredRevision, regex = /^DevTools listening on (ws:\/\/.*)$/) {
271
280
  (0, assert_js_1.assert)(browserProcess.stderr, '`browserProcess` does not have stderr.');
272
281
  const rl = readline.createInterface(browserProcess.stderr);
273
282
  let stderr = '';
@@ -302,7 +311,7 @@ function waitForWSEndpoint(browserProcess, timeout, preferredRevision) {
302
311
  }
303
312
  function onLine(line) {
304
313
  stderr += line + '\n';
305
- const match = line.match(/^DevTools listening on (ws:\/\/.*)$/);
314
+ const match = line.match(regex);
306
315
  if (!match) {
307
316
  return;
308
317
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserRunner.js","sourceRoot":"","sources":["../../../../src/node/BrowserRunner.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAA8C;AAC9C,uCAAyB;AACzB,2CAA6B;AAC7B,mDAAqC;AACrC,oDAAkC;AAClC,+BAA+B;AAC/B,iDAAyC;AACzC,2DAAmD;AACnD,iDAAyC;AACzC,mDAAiD;AACjD,+CAK2B;AAC3B,uDAAmE;AAEnE,iFAA+F;AAE/F,yDAAiD;AAEjD,MAAM,iBAAiB,GAAG,IAAA,gBAAS,EAAC,gBAAY,CAAC,CAAC;AAClD,MAAM,WAAW,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;AACzC,MAAM,WAAW,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;AAEzC,MAAM,aAAa,GAAG,IAAA,gBAAK,EAAC,oBAAoB,CAAC,CAAC;AAElD,MAAM,yBAAyB,GAAG;;;6EAG2C,CAAC;AAE9E;;GAEG;AACH,MAAa,aAAa;IAaxB,YACE,OAAgB,EAChB,cAAsB,EACtB,gBAA0B,EAC1B,WAAmB,EACnB,iBAA2B;QAjB7B,yCAAkB;QAClB,gDAAwB;QACxB,kDAA4B;QAC5B,6CAAqB;QACrB,mDAA6B;QAC7B,gCAAU,IAAI,EAAC;QACf,mCAAuC,EAAE,EAAC;QAC1C,gDAAgC;QAY9B,uBAAA,IAAI,0BAAY,OAAO,MAAA,CAAC;QACxB,uBAAA,IAAI,iCAAmB,cAAc,MAAA,CAAC;QACtC,uBAAA,IAAI,mCAAqB,gBAAgB,MAAA,CAAC;QAC1C,uBAAA,IAAI,8BAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,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FAA2F;gBAC3F,EAAE;aACH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CACF,CAAC;QACJ,CAAC;QAED,SAAS,SAAS;YAChB,OAAO,EAAE,CAAC;YACV,MAAM,CACJ,IAAI,wBAAY,CACd,mBAAmB,OAAO,wEAAwE,iBAAiB,yBAAyB,CAC7I,CACF,CAAC;QACJ,CAAC;QAED,SAAS,MAAM,CAAC,IAAY;YAC1B,MAAM,IAAI,IAAI,GAAG,IAAI,CAAC;YACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAChC,IAAI,CAAC,KAAK,EAAE;gBACV,OAAO;aACR;YACD,OAAO,EAAE,CAAC;YACV,oDAAoD;YACpD,OAAO,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;QACrB,CAAC;QAED,SAAS,OAAO;YACd,IAAI,SAAS,EAAE;gBACb,YAAY,CAAC,SAAS,CAAC,CAAC;aACzB;YACD,IAAA,8BAAoB,EAAC,SAAS,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;KAC7B;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,IAAA,+BAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;gBACxC,OAAO,KAAK,CAAC;aACd;SACF;QACD,MAAM,KAAK,CAAC;KACb;AACH,CAAC"}
@@ -1,27 +1,15 @@
1
- import { Browser } from '../common/Browser.js';
2
- import { Product } from '../common/Product.js';
1
+ import { CDPBrowser } from '../common/Browser.js';
3
2
  import { BrowserLaunchArgumentOptions, ChromeReleaseChannel, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
4
3
  import { ProductLauncher } from './ProductLauncher.js';
4
+ import { PuppeteerNode } from './PuppeteerNode.js';
5
5
  /**
6
6
  * @internal
7
7
  */
8
- export declare class ChromeLauncher implements ProductLauncher {
9
- /**
10
- * @internal
11
- */
12
- _projectRoot: string | undefined;
13
- /**
14
- * @internal
15
- */
16
- _preferredRevision: string;
17
- /**
18
- * @internal
19
- */
20
- _isPuppeteerCore: boolean;
21
- constructor(projectRoot: string | undefined, preferredRevision: string, isPuppeteerCore: boolean);
22
- launch(options?: PuppeteerNodeLaunchOptions): Promise<Browser>;
8
+ export declare class ChromeLauncher extends ProductLauncher {
9
+ #private;
10
+ constructor(puppeteer: PuppeteerNode);
11
+ launch(options?: PuppeteerNodeLaunchOptions): Promise<CDPBrowser>;
23
12
  defaultArgs(options?: BrowserLaunchArgumentOptions): string[];
24
13
  executablePath(channel?: ChromeReleaseChannel): string;
25
- get product(): Product;
26
14
  }
27
15
  //# sourceMappingURL=ChromeLauncher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChromeLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAG9B;;GAEG;AACH,qBAAa,cAAe,YAAW,eAAe;IACpD;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;gBAGxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,OAAO;IAOpB,MAAM,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,OAAO,CAAC;IA+IxE,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;IAgEjE,cAAc,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,MAAM;IAStD,IAAI,OAAO,IAAI,OAAO,CAErB;CACF"}
1
+ {"version":3,"file":"ChromeLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,qBAAa,cAAe,SAAQ,eAAe;;gBACrC,SAAS,EAAE,aAAa;IAIrB,MAAM,CACnB,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,UAAU,CAAC;IAqIb,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;IAgEjE,cAAc,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,MAAM;CAoFhE"}
@@ -1,24 +1,30 @@
1
1
  "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
2
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
9
  };
10
+ var _ChromeLauncher_instances, _ChromeLauncher_executablePathForChannel;
5
11
  Object.defineProperty(exports, "__esModule", { value: true });
6
12
  exports.ChromeLauncher = void 0;
7
- const fs_1 = __importDefault(require("fs"));
13
+ const fs_1 = require("fs");
14
+ const promises_1 = require("fs/promises");
15
+ const os_1 = __importDefault(require("os"));
8
16
  const path_1 = __importDefault(require("path"));
9
- const assert_js_1 = require("../util/assert.js");
10
17
  const Browser_js_1 = require("../common/Browser.js");
18
+ const assert_js_1 = require("../util/assert.js");
11
19
  const BrowserRunner_js_1 = require("./BrowserRunner.js");
12
20
  const ProductLauncher_js_1 = require("./ProductLauncher.js");
13
- const util_js_1 = require("./util.js");
14
21
  /**
15
22
  * @internal
16
23
  */
17
- class ChromeLauncher {
18
- constructor(projectRoot, preferredRevision, isPuppeteerCore) {
19
- this._projectRoot = projectRoot;
20
- this._preferredRevision = preferredRevision;
21
- this._isPuppeteerCore = isPuppeteerCore;
24
+ class ChromeLauncher extends ProductLauncher_js_1.ProductLauncher {
25
+ constructor(puppeteer) {
26
+ super(puppeteer, 'chrome');
27
+ _ChromeLauncher_instances.add(this);
22
28
  }
23
29
  async launch(options = {}) {
24
30
  const { ignoreDefaultArgs = false, args = [], dumpio = false, channel, executablePath, pipe = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, ignoreHTTPSErrors = false, defaultViewport = { width: 800, height: 600 }, slowMo = 0, timeout = 30000, waitForInitialPage = true, debuggingPort, } = options;
@@ -53,23 +59,15 @@ class ChromeLauncher {
53
59
  });
54
60
  if (userDataDirIndex < 0) {
55
61
  isTempUserDataDir = true;
56
- chromeArguments.push(`--user-data-dir=${await fs_1.default.promises.mkdtemp(path_1.default.join((0, util_js_1.tmpdir)(), 'puppeteer_dev_chrome_profile-'))}`);
62
+ chromeArguments.push(`--user-data-dir=${await (0, promises_1.mkdtemp)(this.getProfilePath())}`);
57
63
  userDataDirIndex = chromeArguments.length - 1;
58
64
  }
59
65
  const userDataDir = chromeArguments[userDataDirIndex].split('=', 2)[1];
60
66
  (0, assert_js_1.assert)(typeof userDataDir === 'string', '`--user-data-dir` is malformed');
61
67
  let chromeExecutable = executablePath;
62
- if (channel) {
63
- // executablePath is detected by channel, so it should not be specified by user.
64
- (0, assert_js_1.assert)(!chromeExecutable, '`executablePath` must not be specified when `channel` is given.');
65
- chromeExecutable = (0, ProductLauncher_js_1.executablePathForChannel)(channel);
66
- }
67
- else if (!chromeExecutable) {
68
- const { missingText, executablePath } = (0, ProductLauncher_js_1.resolveExecutablePath)(this);
69
- if (missingText) {
70
- throw new Error(missingText);
71
- }
72
- chromeExecutable = executablePath;
68
+ if (!chromeExecutable) {
69
+ (0, assert_js_1.assert)(channel || !this.puppeteer._isPuppeteerCore, `An \`executablePath\` or \`channel\` must be specified for \`puppeteer-core\``);
70
+ chromeExecutable = this.executablePath(channel);
73
71
  }
74
72
  const usePipe = chromeArguments.includes('--remote-debugging-pipe');
75
73
  const runner = new BrowserRunner_js_1.BrowserRunner(this.product, chromeExecutable, chromeArguments, userDataDir, isTempUserDataDir);
@@ -87,9 +85,9 @@ class ChromeLauncher {
87
85
  usePipe,
88
86
  timeout,
89
87
  slowMo,
90
- preferredRevision: this._preferredRevision,
88
+ preferredRevision: this.puppeteer.browserRevision,
91
89
  });
92
- browser = await Browser_js_1.Browser._create(this.product, connection, [], ignoreHTTPSErrors, defaultViewport, runner.proc, runner.close.bind(runner), options.targetFilter);
90
+ browser = await Browser_js_1.CDPBrowser._create(this.product, connection, [], ignoreHTTPSErrors, defaultViewport, runner.proc, runner.close.bind(runner), options.targetFilter);
93
91
  }
94
92
  catch (error) {
95
93
  runner.kill();
@@ -162,16 +160,78 @@ class ChromeLauncher {
162
160
  }
163
161
  executablePath(channel) {
164
162
  if (channel) {
165
- return (0, ProductLauncher_js_1.executablePathForChannel)(channel);
163
+ return __classPrivateFieldGet(this, _ChromeLauncher_instances, "m", _ChromeLauncher_executablePathForChannel).call(this, channel);
166
164
  }
167
165
  else {
168
- const results = (0, ProductLauncher_js_1.resolveExecutablePath)(this);
169
- return results.executablePath;
166
+ return this.resolveExecutablePath();
170
167
  }
171
168
  }
172
- get product() {
173
- return 'chrome';
174
- }
175
169
  }
176
170
  exports.ChromeLauncher = ChromeLauncher;
171
+ _ChromeLauncher_instances = new WeakSet(), _ChromeLauncher_executablePathForChannel = function _ChromeLauncher_executablePathForChannel(channel) {
172
+ const platform = os_1.default.platform();
173
+ let chromePath;
174
+ switch (platform) {
175
+ case 'win32':
176
+ switch (channel) {
177
+ case 'chrome':
178
+ chromePath = `${process.env['PROGRAMFILES']}\\Google\\Chrome\\Application\\chrome.exe`;
179
+ break;
180
+ case 'chrome-beta':
181
+ chromePath = `${process.env['PROGRAMFILES']}\\Google\\Chrome Beta\\Application\\chrome.exe`;
182
+ break;
183
+ case 'chrome-canary':
184
+ chromePath = `${process.env['PROGRAMFILES']}\\Google\\Chrome SxS\\Application\\chrome.exe`;
185
+ break;
186
+ case 'chrome-dev':
187
+ chromePath = `${process.env['PROGRAMFILES']}\\Google\\Chrome Dev\\Application\\chrome.exe`;
188
+ break;
189
+ }
190
+ break;
191
+ case 'darwin':
192
+ switch (channel) {
193
+ case 'chrome':
194
+ chromePath =
195
+ '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
196
+ break;
197
+ case 'chrome-beta':
198
+ chromePath =
199
+ '/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta';
200
+ break;
201
+ case 'chrome-canary':
202
+ chromePath =
203
+ '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary';
204
+ break;
205
+ case 'chrome-dev':
206
+ chromePath =
207
+ '/Applications/Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev';
208
+ break;
209
+ }
210
+ break;
211
+ case 'linux':
212
+ switch (channel) {
213
+ case 'chrome':
214
+ chromePath = '/opt/google/chrome/chrome';
215
+ break;
216
+ case 'chrome-beta':
217
+ chromePath = '/opt/google/chrome-beta/chrome';
218
+ break;
219
+ case 'chrome-dev':
220
+ chromePath = '/opt/google/chrome-unstable/chrome';
221
+ break;
222
+ }
223
+ break;
224
+ }
225
+ if (!chromePath) {
226
+ throw new Error(`Unable to detect browser executable path for '${channel}' on ${platform}.`);
227
+ }
228
+ // Check if Chrome exists and is accessible.
229
+ try {
230
+ (0, fs_1.accessSync)(chromePath);
231
+ }
232
+ catch (error) {
233
+ throw new Error(`Could not find Google Chrome executable for channel '${channel}' at '${chromePath}'.`);
234
+ }
235
+ return chromePath;
236
+ };
177
237
  //# sourceMappingURL=ChromeLauncher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,iDAAyC;AACzC,qDAA6C;AAE7C,yDAAiD;AAMjD,6DAI8B;AAC9B,uCAAiC;AAEjC;;GAEG;AACH,MAAa,cAAc;IAczB,YACE,WAA+B,EAC/B,iBAAyB,EACzB,eAAwB;QAExB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,UAAsC,EAAE;QACnD,MAAM,EACJ,iBAAiB,GAAG,KAAK,EACzB,IAAI,GAAG,EAAE,EACT,MAAM,GAAG,KAAK,EACd,OAAO,EACP,cAAc,EACd,IAAI,GAAG,KAAK,EACZ,GAAG,GAAG,OAAO,CAAC,GAAG,EACjB,YAAY,GAAG,IAAI,EACnB,aAAa,GAAG,IAAI,EACpB,YAAY,GAAG,IAAI,EACnB,iBAAiB,GAAG,KAAK,EACzB,eAAe,GAAG,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,EAC3C,MAAM,GAAG,CAAC,EACV,OAAO,GAAG,KAAK,EACf,kBAAkB,GAAG,IAAI,EACzB,aAAa,GACd,GAAG,OAAO,CAAC;QAEZ,MAAM,eAAe,GAAG,EAAE,CA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KAAK,aAAa;oBAChB,UAAU,GAAG,gCAAgC,CAAC;oBAC9C,MAAM;gBACR,KAAK,YAAY;oBACf,UAAU,GAAG,oCAAoC,CAAC;oBAClD,MAAM;aACT;YACD,MAAM;KACT;IAED,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,KAAK,CACb,iDAAiD,OAAO,QAAQ,QAAQ,GAAG,CAC5E,CAAC;KACH;IAED,4CAA4C;IAC5C,IAAI;QACF,IAAA,eAAU,EAAC,UAAU,CAAC,CAAC;KACxB;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,SAAS,UAAU,IAAI,CACvF,CAAC;KACH;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1,28 +1,14 @@
1
- import { Browser } from '../common/Browser.js';
2
- import { Product } from '../common/Product.js';
1
+ import { Browser } from '../api/Browser.js';
3
2
  import { BrowserLaunchArgumentOptions, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
4
3
  import { ProductLauncher } from './ProductLauncher.js';
4
+ import { PuppeteerNode } from './PuppeteerNode.js';
5
5
  /**
6
6
  * @internal
7
7
  */
8
- export declare class FirefoxLauncher implements ProductLauncher {
9
- /**
10
- * @internal
11
- */
12
- _projectRoot: string | undefined;
13
- /**
14
- * @internal
15
- */
16
- _preferredRevision: string;
17
- /**
18
- * @internal
19
- */
20
- _isPuppeteerCore: boolean;
21
- constructor(projectRoot: string | undefined, preferredRevision: string, isPuppeteerCore: boolean);
8
+ export declare class FirefoxLauncher extends ProductLauncher {
9
+ constructor(puppeteer: PuppeteerNode);
22
10
  launch(options?: PuppeteerNodeLaunchOptions): Promise<Browser>;
23
11
  executablePath(): string;
24
- _updateRevision(): Promise<void>;
25
- get product(): Product;
26
12
  defaultArgs(options?: BrowserLaunchArgumentOptions): string[];
27
13
  defaultPreferences(extraPrefs: {
28
14
  [x: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"FirefoxLauncher.d.ts","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+ {"version":3,"file":"FirefoxLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAM1C,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,eAAe;gBACtC,SAAS,EAAE,aAAa;IAIrB,MAAM,CACnB,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,OAAO,CAAC;IAkKV,cAAc,IAAI,MAAM;IAexB,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;IAuC1E,kBAAkB,CAAC,UAAU,EAAE;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG;QACtD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAgND;;;;;;;;;OASG;IACG,gBAAgB,CACpB,KAAK,EAAE;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,EAC7B,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAkBV,cAAc,CAAC,UAAU,EAAE;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAU1E"}
@@ -7,23 +7,21 @@ exports.FirefoxLauncher = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const os_1 = __importDefault(require("os"));
9
9
  const path_1 = __importDefault(require("path"));
10
+ const Browser_js_1 = require("../common/bidi/Browser.js");
11
+ const Browser_js_2 = require("../common/Browser.js");
10
12
  const assert_js_1 = require("../util/assert.js");
11
- const Browser_js_1 = require("../common/Browser.js");
12
13
  const BrowserFetcher_js_1 = require("./BrowserFetcher.js");
13
14
  const BrowserRunner_js_1 = require("./BrowserRunner.js");
14
15
  const ProductLauncher_js_1 = require("./ProductLauncher.js");
15
- const util_js_1 = require("./util.js");
16
16
  /**
17
17
  * @internal
18
18
  */
19
- class FirefoxLauncher {
20
- constructor(projectRoot, preferredRevision, isPuppeteerCore) {
21
- this._projectRoot = projectRoot;
22
- this._preferredRevision = preferredRevision;
23
- this._isPuppeteerCore = isPuppeteerCore;
19
+ class FirefoxLauncher extends ProductLauncher_js_1.ProductLauncher {
20
+ constructor(puppeteer) {
21
+ super(puppeteer, 'firefox');
24
22
  }
25
23
  async launch(options = {}) {
26
- const { ignoreDefaultArgs = false, args = [], dumpio = false, executablePath = null, pipe = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, ignoreHTTPSErrors = false, defaultViewport = { width: 800, height: 600 }, slowMo = 0, timeout = 30000, extraPrefsFirefox = {}, waitForInitialPage = true, debuggingPort = null, } = options;
24
+ const { ignoreDefaultArgs = false, args = [], dumpio = false, executablePath, pipe = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, ignoreHTTPSErrors = false, defaultViewport = { width: 800, height: 600 }, slowMo = 0, timeout = 30000, extraPrefsFirefox = {}, waitForInitialPage = true, debuggingPort = null, protocol = 'cdp', } = options;
27
25
  const firefoxArguments = [];
28
26
  if (!ignoreDefaultArgs) {
29
27
  firefoxArguments.push(...this.defaultArgs(options));
@@ -67,17 +65,13 @@ class FirefoxLauncher {
67
65
  firefoxArguments.push('--profile');
68
66
  firefoxArguments.push(userDataDir);
69
67
  }
70
- await this._updateRevision();
71
- let firefoxExecutable = executablePath;
72
- if (!executablePath) {
73
- const { missingText, executablePath } = (0, ProductLauncher_js_1.resolveExecutablePath)(this);
74
- if (missingText) {
75
- throw new Error(missingText);
76
- }
68
+ let firefoxExecutable;
69
+ if (this.puppeteer._isPuppeteerCore || executablePath) {
70
+ (0, assert_js_1.assert)(executablePath, `An \`executablePath\` must be specified for \`puppeteer-core\``);
77
71
  firefoxExecutable = executablePath;
78
72
  }
79
- if (!firefoxExecutable) {
80
- throw new Error('firefoxExecutable is not found.');
73
+ else {
74
+ firefoxExecutable = this.executablePath();
81
75
  }
82
76
  const runner = new BrowserRunner_js_1.BrowserRunner(this.product, firefoxExecutable, firefoxArguments, userDataDir, isTempUserDataDir);
83
77
  runner.start({
@@ -88,15 +82,35 @@ class FirefoxLauncher {
88
82
  env,
89
83
  pipe,
90
84
  });
85
+ if (protocol === 'webDriverBiDi') {
86
+ let browser;
87
+ try {
88
+ const connection = await runner.setupWebDriverBiDiConnection({
89
+ timeout,
90
+ slowMo,
91
+ preferredRevision: this.puppeteer.browserRevision,
92
+ });
93
+ browser = await Browser_js_1.Browser.create({
94
+ connection,
95
+ closeCallback: runner.close.bind(runner),
96
+ process: runner.proc,
97
+ });
98
+ }
99
+ catch (error) {
100
+ runner.kill();
101
+ throw error;
102
+ }
103
+ return browser;
104
+ }
91
105
  let browser;
92
106
  try {
93
107
  const connection = await runner.setupConnection({
94
108
  usePipe: pipe,
95
109
  timeout,
96
110
  slowMo,
97
- preferredRevision: this._preferredRevision,
111
+ preferredRevision: this.puppeteer.browserRevision,
98
112
  });
99
- browser = await Browser_js_1.Browser._create(this.product, connection, [], ignoreHTTPSErrors, defaultViewport, runner.proc, runner.close.bind(runner), options.targetFilter);
113
+ browser = await Browser_js_2.CDPBrowser._create(this.product, connection, [], ignoreHTTPSErrors, defaultViewport, runner.proc, runner.close.bind(runner), options.targetFilter);
100
114
  }
101
115
  catch (error) {
102
116
  runner.kill();
@@ -116,25 +130,18 @@ class FirefoxLauncher {
116
130
  return browser;
117
131
  }
118
132
  executablePath() {
119
- return (0, ProductLauncher_js_1.resolveExecutablePath)(this).executablePath;
120
- }
121
- async _updateRevision() {
122
133
  // replace 'latest' placeholder with actual downloaded revision
123
- if (this._preferredRevision === 'latest') {
124
- if (!this._projectRoot) {
125
- throw new Error('_projectRoot is undefined. Unable to create a BrowserFetcher.');
126
- }
127
- const browserFetcher = new BrowserFetcher_js_1.BrowserFetcher(this._projectRoot, {
134
+ if (this.puppeteer.browserRevision === 'latest') {
135
+ const browserFetcher = new BrowserFetcher_js_1.BrowserFetcher({
128
136
  product: this.product,
137
+ path: this.puppeteer.defaultDownloadPath,
129
138
  });
130
- const localRevisions = await browserFetcher.localRevisions();
139
+ const localRevisions = browserFetcher.localRevisions();
131
140
  if (localRevisions[0]) {
132
- this._preferredRevision = localRevisions[0];
141
+ this.puppeteer.configuration.browserRevision = localRevisions[0];
133
142
  }
134
143
  }
135
- }
136
- get product() {
137
- return 'firefox';
144
+ return this.resolveExecutablePath();
138
145
  }
139
146
  defaultArgs(options = {}) {
140
147
  const { devtools = false, headless = !devtools, args = [], userDataDir = null, } = options;
@@ -351,7 +358,7 @@ class FirefoxLauncher {
351
358
  }
352
359
  }
353
360
  async _createProfile(extraPrefs) {
354
- const temporaryProfilePath = await fs_1.default.promises.mkdtemp(path_1.default.join((0, util_js_1.tmpdir)(), 'puppeteer_dev_firefox_profile-'));
361
+ const temporaryProfilePath = await fs_1.default.promises.mkdtemp(this.getProfilePath());
355
362
  const prefs = this.defaultPreferences(extraPrefs);
356
363
  await this.writePreferences(prefs, temporaryProfilePath);
357
364
  return temporaryProfilePath;
@@ -1 +1 @@
1
- {"version":3,"file":"FirefoxLauncher.js","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,iDAAyC;AACzC,qDAA6C;AAE7C,2DAAmD;AACnD,yDAAiD;AAKjD,6DAA4E;AAC5E,uCAAiC;AAEjC;;GAEG;AACH,MAAa,eAAe;IAc1B,YACE,WAA+B,EAC/B,iBAAyB,EACzB,eAAwB;QAExB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAA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AG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACvD,OAAO,aAAa,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,MAAM,YAAE,CAAC,QAAQ,CAAC,SAAS,CACzB,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,EACjC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CACjB,CAAC;QAEF,iEAAiE;QACjE,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACrD,IAAI,YAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC5B,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;YACrE,MAAM,YAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;SACxD;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,UAAkC;QACrD,MAAM,oBAAoB,GAAG,MAAM,YAAE,CAAC,QAAQ,CAAC,OAAO,CACpD,IAAI,CAAC,cAAc,EAAE,CACtB,CAAC;QAEF,MAAM,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;QAEzD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;CACF;AA1dD,0CA0dC"}
@@ -1,4 +1,19 @@
1
1
  /// <reference types="node" />
2
+ /**
3
+ * Copyright 2018 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import { ConnectionTransport } from '../common/ConnectionTransport.js';
3
18
  /**
4
19
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"PipeTransport.d.ts","sourceRoot":"","sources":["../../../../src/node/PipeTransport.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAQrE;;GAEG;AACH,qBAAa,aAAc,YAAW,mBAAmB;;IAOvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;gBAGlC,SAAS,EAAE,MAAM,CAAC,cAAc,EAChC,QAAQ,EAAE,MAAM,CAAC,cAAc;IAiBjC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAgC3B,KAAK,IAAI,IAAI;CAId"}
1
+ {"version":3,"file":"PipeTransport.d.ts","sourceRoot":"","sources":["../../../../src/node/PipeTransport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AASrE;;GAEG;AACH,qBAAa,aAAc,YAAW,mBAAmB;;IAOvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;gBAGlC,SAAS,EAAE,MAAM,CAAC,cAAc,EAChC,QAAQ,EAAE,MAAM,CAAC,cAAc;IAiBjC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAgC3B,KAAK,IAAI,IAAI;CAId"}
@@ -13,23 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  var _PipeTransport_instances, _PipeTransport_pipeWrite, _PipeTransport_eventListeners, _PipeTransport_isClosed, _PipeTransport_pendingMessage, _PipeTransport_dispatch;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.PipeTransport = void 0;
16
- /**
17
- * Copyright 2018 Google Inc. All rights reserved.
18
- *
19
- * Licensed under the Apache License, Version 2.0 (the "License");
20
- * you may not use this file except in compliance with the License.
21
- * You may obtain a copy of the License at
22
- *
23
- * http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software
26
- * distributed under the License is distributed on an "AS IS" BASIS,
27
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
- * See the License for the specific language governing permissions and
29
- * limitations under the License.
30
- */
31
- const assert_js_1 = require("../util/assert.js");
32
16
  const util_js_1 = require("../common/util.js");
17
+ const assert_js_1 = require("../util/assert.js");
33
18
  /**
34
19
  * @internal
35
20
  */