chrome-devtools-frontend 1.0.1690116 → 1.0.1695017

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 (421) hide show
  1. package/.agents/skills/devtools-model-management/SKILL.md +3 -3
  2. package/.agents/skills/foundation-test-migration/SKILL.md +2 -2
  3. package/.agents/skills/merging-devtools-module/SKILL.md +5 -5
  4. package/AUTHORS +3 -0
  5. package/config/typescript/tsconfig.base.json +1 -0
  6. package/docs/get_the_code.md +4 -9
  7. package/front_end/Images/src/comment-mode-cursor.svg +23 -0
  8. package/front_end/Tests.js +1 -1
  9. package/front_end/application_tokens.css +5 -0
  10. package/front_end/core/common/ColorConverter.ts +3 -3
  11. package/front_end/core/host/UserMetrics.ts +27 -0
  12. package/front_end/core/protocol_client/DevToolsCDPConnection.ts +0 -46
  13. package/front_end/core/protocol_client/InspectorBackend.ts +6 -6
  14. package/front_end/core/root/Runtime.ts +1 -0
  15. package/front_end/core/sdk/CSSLocation.ts +32 -0
  16. package/front_end/core/sdk/CSSModel.ts +2 -22
  17. package/front_end/core/sdk/CSSQuery.ts +2 -1
  18. package/front_end/core/sdk/CSSRule.ts +29 -0
  19. package/front_end/core/sdk/DebuggerModel.ts +5 -1
  20. package/front_end/core/sdk/NetworkManager.ts +2 -0
  21. package/front_end/core/sdk/NetworkRequest.ts +63 -4
  22. package/front_end/core/sdk/NetworkRequestAccess.ts +191 -0
  23. package/front_end/core/sdk/ResourceTreeModel.ts +72 -23
  24. package/front_end/core/sdk/SecurityOrigin.ts +97 -12
  25. package/front_end/core/sdk/Target.ts +18 -0
  26. package/front_end/core/sdk/sdk.ts +4 -0
  27. package/front_end/entrypoints/main/MainImpl.ts +8 -1
  28. package/front_end/foundation/Universe.ts +14 -11
  29. package/front_end/generated/Deprecation.ts +8 -0
  30. package/front_end/generated/InspectorBackendCommands.ts +9 -8
  31. package/front_end/generated/SupportedCSSProperties.ts +14 -4
  32. package/front_end/generated/protocol.ts +24 -0
  33. package/front_end/models/ai_assistance/AiAgent2.ts +46 -10
  34. package/front_end/models/ai_assistance/AiConversation.ts +35 -24
  35. package/front_end/models/ai_assistance/README.md +5 -3
  36. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +1 -0
  37. package/front_end/models/ai_assistance/agents/AiAgent.ts +28 -34
  38. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +13 -17
  39. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +5 -3
  40. package/front_end/models/ai_assistance/agents/StorageAgent.ts +16 -10
  41. package/front_end/models/ai_assistance/agents/StylingAgent.ts +3 -4
  42. package/front_end/models/ai_assistance/ai_assistance.ts +0 -2
  43. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +11 -2
  44. package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +17 -5
  45. package/front_end/models/ai_assistance/contexts/FileContext.ts +13 -6
  46. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +52 -25
  47. package/front_end/models/ai_assistance/contexts/RequestContext.ts +18 -34
  48. package/front_end/models/ai_assistance/contexts/StorageContext.ts +14 -3
  49. package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +2 -5
  50. package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +135 -58
  51. package/front_end/models/ai_assistance/tools/CookieUtils.ts +25 -35
  52. package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +6 -3
  53. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +9 -2
  54. package/front_end/models/ai_assistance/tools/GetCookieValues.ts +1 -1
  55. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +3 -2
  56. package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +3 -5
  57. package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +1 -1
  58. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +8 -11
  59. package/front_end/models/ai_assistance/tools/GetResourceContent.ts +2 -4
  60. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +6 -13
  61. package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +1 -1
  62. package/front_end/models/ai_assistance/tools/GetStorageValues.ts +9 -9
  63. package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -2
  64. package/front_end/models/ai_assistance/tools/ListCookies.ts +1 -1
  65. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +6 -14
  66. package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +10 -15
  67. package/front_end/models/ai_assistance/tools/ListSources.ts +5 -7
  68. package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +9 -9
  69. package/front_end/models/ai_assistance/tools/README.md +4 -2
  70. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +3 -2
  71. package/front_end/models/ai_assistance/tools/Tool.ts +27 -3
  72. package/front_end/models/comment_manager/CD4ABridge.ts +128 -0
  73. package/front_end/models/comment_manager/CommentManager.ts +50 -8
  74. package/front_end/models/comment_manager/comment_manager.ts +2 -0
  75. package/front_end/models/emulation/DeviceModeModel.ts +37 -47
  76. package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -1
  77. package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
  78. package/front_end/models/source_map_scopes/NamesResolver.ts +9 -7
  79. package/front_end/models/trace/ModelImpl.ts +2 -0
  80. package/front_end/models/trace/Processor.ts +6 -4
  81. package/front_end/models/trace/handlers/LayerTreeHandler.ts +3 -3
  82. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +1 -1
  83. package/front_end/models/trace/helpers/SyntheticEvents.ts +23 -1
  84. package/front_end/models/trace/types/Configuration.ts +7 -0
  85. package/front_end/models/trace/types/TraceEvents.ts +20 -4
  86. package/front_end/panels/accessibility/ARIAAttributesView.ts +3 -0
  87. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingListView.ts +177 -0
  88. package/front_end/panels/accessibility/accessibility.ts +2 -0
  89. package/front_end/panels/accessibility/accessibilityAnnouncementRecordingListView.css +33 -0
  90. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +25 -15
  91. package/front_end/panels/ai_assistance/components/ChatMessage.ts +6 -35
  92. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +4 -3
  93. package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
  94. package/front_end/panels/animation/AnimationTimeline.ts +1 -0
  95. package/front_end/panels/application/CrashReportContextView.ts +0 -1
  96. package/front_end/panels/application/FrameDetailsView.ts +5 -4
  97. package/front_end/panels/application/IndexedDBViews.ts +4 -4
  98. package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
  99. package/front_end/panels/application/components/EndpointsGrid.ts +2 -1
  100. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
  101. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
  102. package/front_end/panels/application/components/TrustTokensView.ts +1 -1
  103. package/front_end/panels/application/indexedDBViews.css +0 -14
  104. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
  105. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
  106. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
  107. package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
  108. package/front_end/panels/common/DOMLinkifier.ts +1 -1
  109. package/front_end/panels/common/ExtensionView.ts +2 -1
  110. package/front_end/panels/console/ConsoleContextSelector.ts +12 -5
  111. package/front_end/panels/console/ConsolePinPane.ts +4 -2
  112. package/front_end/panels/console/ConsoleSidebar.ts +6 -2
  113. package/front_end/panels/console/ConsoleViewMessage.ts +12 -8
  114. package/front_end/panels/console/PromptBuilder.ts +1 -1
  115. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  116. package/front_end/panels/coverage/CoverageModel.ts +6 -4
  117. package/front_end/panels/coverage/coverageView.css +8 -8
  118. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +13 -14
  119. package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
  120. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
  121. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
  122. package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
  123. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  124. package/front_end/panels/developer_resources/developerResourcesView.css +3 -3
  125. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  126. package/front_end/panels/elements/ElementsTreeElement.ts +43 -15
  127. package/front_end/panels/elements/ElementsTreeOutline.ts +185 -109
  128. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  129. package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
  130. package/front_end/panels/elements/ShortcutTreeElement.ts +6 -1
  131. package/front_end/panels/elements/StandaloneStylesContainer.ts +1 -1
  132. package/front_end/panels/elements/StylePropertiesSection.ts +2 -35
  133. package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
  134. package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +5 -4
  135. package/front_end/panels/elements/components/StylePropertyEditor.ts +161 -148
  136. package/front_end/panels/elements/components/computedStyleProperty.css +5 -5
  137. package/front_end/panels/elements/components/computedStyleTrace.css +5 -5
  138. package/front_end/panels/elements/components/cssHintDetailsView.css +1 -1
  139. package/front_end/panels/elements/components/cssPropertyDocsView.css +3 -3
  140. package/front_end/panels/elements/components/cssVariableValueView.css +4 -4
  141. package/front_end/panels/elements/components/elementsBreadcrumbs.css +3 -3
  142. package/front_end/panels/elements/components/elementsTreeExpandButton.css +5 -5
  143. package/front_end/panels/elements/components/queryContainer.css +2 -2
  144. package/front_end/panels/elements/elementsTreeOutline.css +20 -4
  145. package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
  146. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  147. package/front_end/panels/issues/AffectedElementsView.ts +3 -0
  148. package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
  149. package/front_end/panels/issues/issues.ts +2 -0
  150. package/front_end/panels/layer_viewer/LayerDetailsView.ts +12 -10
  151. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +1 -0
  152. package/front_end/panels/layer_viewer/Layers3DView.ts +13 -11
  153. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -1
  154. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspectorUtils.ts +2 -2
  155. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplayUtils.ts +1 -1
  156. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -1
  157. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +11 -11
  158. package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
  159. package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
  160. package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
  161. package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
  162. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
  163. package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
  164. package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
  165. package/front_end/panels/media/TickingFlameChart.ts +3 -2
  166. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +2 -1
  167. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -1
  168. package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +2 -1
  169. package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
  170. package/front_end/panels/network/NetworkLogView.ts +4 -1
  171. package/front_end/panels/network/NetworkLogViewColumns.ts +5 -2
  172. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
  173. package/front_end/panels/network/RequestHeadersView.ts +47 -11
  174. package/front_end/panels/network/RequestPayloadView.ts +1 -1
  175. package/front_end/panels/network/RequestResponseView.ts +1 -1
  176. package/front_end/panels/network/RequestTimingView.ts +1 -1
  177. package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
  178. package/front_end/panels/network/components/RequestHeadersView.css +12 -0
  179. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
  180. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +3 -3
  181. package/front_end/panels/profiler/HeapProfileView.ts +1 -1
  182. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +1 -1
  183. package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
  184. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  185. package/front_end/panels/recorder/RecordingListView.ts +0 -6
  186. package/front_end/panels/recorder/RecordingView.ts +0 -6
  187. package/front_end/panels/recorder/controlButton.css +10 -10
  188. package/front_end/panels/recorder/startView.css +1 -1
  189. package/front_end/panels/screencast/ScreencastView.ts +4 -2
  190. package/front_end/panels/search/SearchView.ts +1 -1
  191. package/front_end/panels/security/SecurityPanel.ts +46 -35
  192. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
  193. package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
  194. package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
  195. package/front_end/panels/sources/ProfilePlugin.ts +2 -1
  196. package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
  197. package/front_end/panels/timeline/IsolateSelector.ts +1 -1
  198. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
  199. package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
  200. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
  201. package/front_end/panels/timeline/TimelineFlameChartView.ts +0 -32
  202. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  203. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
  204. package/front_end/panels/timeline/TimelinePanel.ts +3 -20
  205. package/front_end/panels/timeline/TimelineTreeView.ts +1 -1
  206. package/front_end/panels/timeline/TimelineUIUtils.ts +4 -4
  207. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
  208. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  209. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
  210. package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
  211. package/front_end/panels/timeline/components/Sidebar.ts +1 -1
  212. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
  213. package/front_end/panels/timeline/components/cwvMetrics.css +2 -2
  214. package/front_end/panels/timeline/components/insights/checklist.css +1 -1
  215. package/front_end/panels/timeline/components/insights/table.css +3 -3
  216. package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +4 -4
  217. package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +4 -4
  218. package/front_end/panels/timeline/overlays/components/timeRangeOverlay.css +2 -2
  219. package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +4 -4
  220. package/front_end/panels/timeline/timelinePanel.css +0 -74
  221. package/front_end/panels/timeline/utils/Helpers.ts +1 -1
  222. package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
  223. package/front_end/panels/web_audio/WebAudioView.ts +3 -3
  224. package/front_end/panels/web_audio/webAudio.css +5 -5
  225. package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
  226. package/front_end/third_party/acorn/acorn.ts +3 -3
  227. package/front_end/third_party/chromium/README.chromium +1 -1
  228. package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
  229. package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
  230. package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
  231. package/front_end/third_party/csp_evaluator/package/tsconfig.json +1 -0
  232. package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
  233. package/front_end/third_party/diff/DiffWrapper.ts +1 -8
  234. package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
  235. package/front_end/third_party/json5/json5.ts +2 -2
  236. package/front_end/third_party/puppeteer/README.chromium +2 -2
  237. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +183 -4
  238. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +708 -122
  239. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +85 -3
  240. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  241. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +84 -11
  242. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  243. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.d.ts +75 -0
  244. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.d.ts.map +1 -0
  245. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.js +102 -0
  246. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/ScreenRecording.js.map +1 -0
  247. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.d.ts +1 -0
  248. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.d.ts.map +1 -1
  249. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.js +1 -0
  250. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/api.js.map +1 -1
  251. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +6 -1
  252. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
  253. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +7 -0
  254. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
  255. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.d.ts +31 -0
  256. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.d.ts.map +1 -0
  257. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.js +138 -0
  258. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/ScreenRecording.js.map +1 -0
  259. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.d.ts +1 -0
  260. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.d.ts.map +1 -1
  261. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.js +1 -0
  262. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/bidi.js.map +1 -1
  263. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +6 -0
  264. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  265. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +23 -0
  266. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  267. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +6 -1
  268. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
  269. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +7 -0
  270. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
  271. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.d.ts +31 -0
  272. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.d.ts.map +1 -0
  273. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js +131 -0
  274. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ScreenRecording.js.map +1 -0
  275. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
  276. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
  278. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
  279. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js +7 -4
  280. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
  281. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
  282. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js +5 -1
  284. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
  285. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts +42 -0
  286. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  287. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.d.ts +2 -2
  288. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.d.ts.map +1 -1
  289. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.js +265 -1
  290. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/Device.js.map +1 -1
  291. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +4 -0
  292. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  293. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +24 -3
  294. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
  295. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.d.ts +23 -2
  296. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
  297. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.js +49 -3
  298. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
  299. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  300. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  301. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  302. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts.map +1 -1
  303. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  304. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js.map +1 -1
  305. package/front_end/third_party/puppeteer/package/lib/types.d.ts +183 -4
  306. package/front_end/third_party/puppeteer/package/package.json +4 -4
  307. package/front_end/third_party/puppeteer/package/src/api/Page.ts +143 -11
  308. package/front_end/third_party/puppeteer/package/src/api/ScreenRecording.ts +145 -0
  309. package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -0
  310. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +11 -0
  311. package/front_end/third_party/puppeteer/package/src/bidi/ScreenRecording.ts +106 -0
  312. package/front_end/third_party/puppeteer/package/src/bidi/bidi.ts +1 -0
  313. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +41 -0
  314. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +11 -0
  315. package/front_end/third_party/puppeteer/package/src/cdp/ScreenRecording.ts +101 -0
  316. package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
  317. package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +17 -9
  318. package/front_end/third_party/puppeteer/package/src/common/BrowserWebSocketTransport.ts +4 -0
  319. package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +46 -0
  320. package/front_end/third_party/puppeteer/package/src/common/Device.ts +287 -1
  321. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +30 -1
  322. package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +73 -2
  323. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  324. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  325. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +3 -0
  326. package/front_end/tsconfig.json +1 -2
  327. package/front_end/ui/comments/CommentAnchorResolver.ts +8 -3
  328. package/front_end/ui/comments/CommentOverlayManager.ts +53 -12
  329. package/front_end/ui/comments/CommentsOverlayWidget.ts +3 -3
  330. package/front_end/ui/comments/CommentsStatusBarPill.ts +96 -0
  331. package/front_end/ui/comments/comments-meta.ts +21 -0
  332. package/front_end/ui/comments/comments.ts +2 -0
  333. package/front_end/ui/comments/commentsOverlay.css +22 -3
  334. package/front_end/ui/components/buttons/floatingButton.css +25 -0
  335. package/front_end/ui/components/markdown_view/MarkdownView.ts +31 -1
  336. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
  337. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +45 -25
  338. package/front_end/ui/kit/icons/Icon.ts +0 -1
  339. package/front_end/ui/kit/link/Link.ts +8 -1
  340. package/front_end/ui/legacy/ContextMenu.ts +2 -2
  341. package/front_end/ui/legacy/DropTarget.ts +6 -1
  342. package/front_end/ui/legacy/EmptyWidget.ts +1 -1
  343. package/front_end/ui/legacy/GlassPane.ts +1 -1
  344. package/front_end/ui/legacy/InspectorView.ts +17 -1
  345. package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
  346. package/front_end/ui/legacy/SplitWidget.ts +18 -3
  347. package/front_end/ui/legacy/StackedPane.ts +1 -1
  348. package/front_end/ui/legacy/StatusBar.ts +78 -0
  349. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
  350. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  351. package/front_end/ui/legacy/Toolbar.ts +5 -1
  352. package/front_end/ui/legacy/Treeoutline.ts +91 -48
  353. package/front_end/ui/legacy/UIUtils.ts +8 -4
  354. package/front_end/ui/legacy/ViewManager.ts +1 -1
  355. package/front_end/ui/legacy/ViewRegistration.ts +1 -0
  356. package/front_end/ui/legacy/Widget.ts +1 -1
  357. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -1
  358. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  359. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
  360. package/front_end/ui/legacy/components/data_grid/dataGrid.css +23 -23
  361. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
  362. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +48 -44
  363. package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
  364. package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.docs.ts +83 -0
  365. package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.ts +600 -0
  366. package/front_end/ui/legacy/components/inline_editor/animationNameSwatch.css +1 -1
  367. package/front_end/ui/legacy/components/inline_editor/colorMixSwatch.css +4 -4
  368. package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +3 -3
  369. package/front_end/ui/legacy/components/inline_editor/inline_editor.ts +2 -0
  370. package/front_end/ui/legacy/components/inline_editor/linkSwatch.css +1 -1
  371. package/front_end/ui/legacy/components/inline_editor/positionAreaEditor.css +154 -0
  372. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +224 -127
  373. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +10 -7
  374. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +25 -106
  375. package/front_end/ui/legacy/components/object_ui/customPreviewComponent.css +7 -3
  376. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +1 -1
  377. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +0 -66
  378. package/front_end/ui/legacy/components/perf_ui/perf_ui.ts +0 -2
  379. package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
  380. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +8 -5
  381. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  382. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  383. package/front_end/ui/legacy/inspectorCommon.css +41 -6
  384. package/front_end/ui/legacy/legacy.ts +2 -0
  385. package/front_end/ui/legacy/statusBar.css +18 -0
  386. package/front_end/ui/visual_logging/Debugging.ts +2 -1
  387. package/front_end/ui/visual_logging/KnownContextValues.ts +3 -1
  388. package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
  389. package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
  390. package/front_end/ui/visual_logging/LoggingState.ts +1 -1
  391. package/front_end/ui/visual_logging/visual_logging.ts +67 -56
  392. package/inspector_overlay/main.ts +8 -8
  393. package/mcp/mcp.ts +5 -0
  394. package/package.json +2 -8
  395. package/front_end/Images/generate-css-vars.js +0 -52
  396. package/front_end/Images/rollup.config.mjs +0 -36
  397. package/front_end/models/ai_assistance/AiOrigins.ts +0 -107
  398. package/front_end/models/live-metrics/web-vitals-injected/rollup.config.mjs +0 -20
  399. package/front_end/panels/recorder/injected/rollup.config.mjs +0 -20
  400. package/front_end/panels/timeline/EasterEgg.d.ts +0 -6
  401. package/front_end/panels/timeline/easter-egg-tsconfig.json +0 -8
  402. package/front_end/panels/timeline/enable-easter-egg.js +0 -20
  403. package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
  404. package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
  405. package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
  406. package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
  407. package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
  408. package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
  409. package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
  410. package/front_end/third_party/json5/json5-tsconfig.json +0 -8
  411. package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
  412. package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
  413. package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
  414. package/front_end/third_party/lit/lit-tsconfig.json +0 -15
  415. package/front_end/third_party/marked/marked-tsconfig.json +0 -8
  416. package/front_end/third_party/puppeteer-replay/puppeteer-replay-tsconfig.json +0 -8
  417. package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
  418. package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
  419. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
  420. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +0 -606
  421. package/inspector_overlay/loadCSS.rollup.js +0 -29
@@ -76,14 +76,14 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
76
76
  const WEBAUDIO_EXPLANATION_URL =
77
77
  'https://developer.chrome.com/docs/devtools/webaudio' as Platform.DevToolsPath.UrlString;
78
78
 
79
- interface ViewInput {
79
+ export interface ViewInput {
80
80
  contexts: Protocol.WebAudio.BaseAudioContext[];
81
81
  selectedContextIndex: number;
82
82
  onContextSelectorSelectionChanged: (contextId: string) => void;
83
83
  contextRealtimeData: Protocol.WebAudio.ContextRealtimeData|null;
84
84
  }
85
85
 
86
- type View = (input: ViewInput, output: object, target: HTMLElement|DocumentFragment) => void;
86
+ export type View = (input: ViewInput, output: object, target: HTMLElement|DocumentFragment) => void;
87
87
 
88
88
  export const DEFAULT_VIEW: View = (input, _output, target) => {
89
89
  const {
@@ -189,7 +189,7 @@ export class WebAudioView extends UI.Widget.VBox<ShadowRoot> implements
189
189
  private selectedContextIndex = -1;
190
190
  private readonly pollRealtimeDataThrottler: Common.Throttler.Throttler;
191
191
 
192
- constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
192
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
193
193
  super({useShadowDom: 'pure'});
194
194
  this.view = view;
195
195
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  .web-audio-toolbar-container {
12
12
  background-color: var(--sys-color-cdt-base-container);
13
- border-bottom: 1px solid var(--sys-color-divider);
13
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
14
14
  min-height: fit-content;
15
15
  }
16
16
 
@@ -20,7 +20,7 @@
20
20
  justify-content: center;
21
21
  align-items: center;
22
22
  overflow: auto;
23
- font-size: 13px;
23
+ font-size: var(--sys-typescale-body3-size);
24
24
  color: var(--sys-color-on-surface);
25
25
  }
26
26
 
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  .context-detail-header {
57
- border-bottom: 1px solid var(--sys-color-divider);
57
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
58
58
  padding: var(--sys-size-7) var(--sys-size-9);
59
59
  margin-bottom: var(--sys-size-5);
60
60
  }
@@ -95,12 +95,12 @@
95
95
  line-height: 27px;
96
96
  padding-left: 5px;
97
97
  background-color: var(--sys-color-cdt-base-container);
98
- border-top: 1px solid var(--sys-color-divider);
98
+ border-top: var(--sys-size-1) solid var(--sys-color-divider);
99
99
  white-space: nowrap;
100
100
  text-overflow: ellipsis;
101
101
  overflow: hidden;
102
102
  }
103
103
 
104
104
  .context-summary-container span {
105
- margin-right: 6px;
105
+ margin-right: var(--sys-size-4);
106
106
  }
@@ -240,19 +240,13 @@ const PROTOCOL_AUTHENTICATOR_VALUES: Protocol.EnumerableEnum<typeof Protocol.Web
240
240
  U2f: Protocol.WebAuthn.AuthenticatorProtocol.U2f,
241
241
  };
242
242
 
243
- interface Authenticator {
243
+ export interface Authenticator {
244
244
  name: string;
245
245
  options: Protocol.WebAuthn.VirtualAuthenticatorOptions;
246
246
  credentials: Protocol.WebAuthn.Credential[];
247
247
  }
248
248
 
249
- interface Authenticator {
250
- name: string;
251
- options: Protocol.WebAuthn.VirtualAuthenticatorOptions;
252
- credentials: Protocol.WebAuthn.Credential[];
253
- }
254
-
255
- interface ViewInput {
249
+ export interface ViewInput {
256
250
  enabled: boolean;
257
251
  onToggleEnabled: () => void;
258
252
  authenticators: Map<Protocol.WebAuthn.AuthenticatorId, Authenticator>;
@@ -270,11 +264,11 @@ interface ViewInput {
270
264
  onRemoveCredential: (id: Protocol.WebAuthn.AuthenticatorId, credentialId: string) => void;
271
265
  }
272
266
 
273
- interface ViewOutput {
267
+ export interface ViewOutput {
274
268
  revealSection: Map<string, () => void>;
275
269
  }
276
270
 
277
- type ViewFunction = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
271
+ export type ViewFunction = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
278
272
 
279
273
  function renderToolbar(enabled: boolean, onToggle: () => void): Lit.TemplateResult {
280
274
  const enableCheckboxTitle = i18nString(UIStrings.enableVirtualAuthenticator);
@@ -629,7 +623,7 @@ export class WebauthnPaneImpl extends UI.Panel.Panel implements
629
623
  revealSection: new Map(),
630
624
  };
631
625
 
632
- constructor(view = DEFAULT_VIEW) {
626
+ constructor(view: ViewFunction = DEFAULT_VIEW) {
633
627
  super('webauthn');
634
628
 
635
629
  this.#view = view;
@@ -9,6 +9,6 @@ export {ESTree};
9
9
 
10
10
  export { type Comment, defaultOptions, getLineInfo, Node, SourceLocation, Token, tokTypes} from './package/dist/acorn.mjs';
11
11
 
12
- export const Parser = acorn.Parser;
13
- export const tokenizer = acorn.Parser.tokenizer.bind(acorn.Parser);
14
- export const parse = acorn.Parser.parse.bind(acorn.Parser);
12
+ export const Parser: typeof acorn.Parser = acorn.Parser;
13
+ export const tokenizer: typeof acorn.Parser.tokenizer = acorn.Parser.tokenizer.bind(acorn.Parser);
14
+ export const parse: typeof acorn.Parser.parse = acorn.Parser.parse.bind(acorn.Parser);
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: c7a932d772cd4948f6199ee2b70c5e149ef4b357
4
+ Revision: 94c2d3be993e302928a7ec87401d5606b87e0833
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -0,0 +1 @@
1
+ export {};
@@ -343,12 +343,12 @@ export function isUrlScheme(urlScheme: string): boolean {
343
343
  /**
344
344
  * A regex pattern to check nonce prefix and Base64 formatting of a nonce value.
345
345
  */
346
- export const STRICT_NONCE_PATTERN =
346
+ export const STRICT_NONCE_PATTERN: RegExp =
347
347
  new RegExp('^\'nonce-[a-zA-Z0-9+/_-]+[=]{0,2}\'$');
348
348
 
349
349
 
350
350
  /** A regex pattern for checking if nonce prefix. */
351
- export const NONCE_PATTERN = new RegExp('^\'nonce-(.+)\'$');
351
+ export const NONCE_PATTERN: RegExp = new RegExp('^\'nonce-(.+)\'$');
352
352
 
353
353
 
354
354
  /**
@@ -367,12 +367,12 @@ export function isNonce(nonce: string, strictCheck?: boolean): boolean {
367
367
  /**
368
368
  * A regex pattern to check hash prefix and Base64 formatting of a hash value.
369
369
  */
370
- export const STRICT_HASH_PATTERN =
370
+ export const STRICT_HASH_PATTERN: RegExp =
371
371
  new RegExp('^\'(sha256|sha384|sha512)-[a-zA-Z0-9+/]+[=]{0,2}\'$');
372
372
 
373
373
 
374
374
  /** A regex pattern to check hash prefix. */
375
- export const HASH_PATTERN = new RegExp('^\'(sha256|sha384|sha512)-(.+)\'$');
375
+ export const HASH_PATTERN: RegExp = new RegExp('^\'(sha256|sha384|sha512)-(.+)\'$');
376
376
 
377
377
 
378
378
  /**
@@ -97,4 +97,6 @@ function normalizeDirectiveValue(directiveValue: string): string {
97
97
  return directiveValue;
98
98
  }
99
99
 
100
- export const TEST_ONLY = {normalizeDirectiveValue};
100
+ export const TEST_ONLY: {
101
+ normalizeDirectiveValue: typeof normalizeDirectiveValue,
102
+ } = {normalizeDirectiveValue};
@@ -3,6 +3,7 @@
3
3
  "target": "ES2020",
4
4
  "module": "commonjs",
5
5
  "declaration": true,
6
+ "isolatedDeclarations": true,
6
7
  "declarationMap": true,
7
8
  "sourceMap": true,
8
9
  "outDir": "dist",
@@ -136,7 +136,7 @@ export function matchWildcardUrls(
136
136
  export function applyCheckFunktionToDirectives(
137
137
  parsedCsp: csp.Csp,
138
138
  check: (directive: string, directiveValues: string[]) => void,
139
- ) {
139
+ ): void {
140
140
  const directiveNames = Object.keys(parsedCsp.directives);
141
141
 
142
142
  for (const directive of directiveNames) {
@@ -4,14 +4,7 @@
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
6
 
7
- declare global {
8
- /* eslint-disable @typescript-eslint/naming-convention */
9
- class diff_match_patch {
10
- diff_main(text1: string, text2: string): Array<{0: number, 1: string}>;
11
- diff_cleanupSemantic(diff: Array<{0: number, 1: string}>): void;
12
- }
13
- /* eslint-enable @typescript-eslint/naming-convention */
14
- }
7
+ import './diff_match_patch.js';
15
8
 
16
9
  export const DiffWrapper = {
17
10
  charDiff: function(text1: string, text2: string, cleanup?: boolean): {0: number, 1: string}[] {
@@ -0,0 +1,10 @@
1
+ // Copyright 2026 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ /* eslint-disable @typescript-eslint/naming-convention */
6
+ declare class diff_match_patch {
7
+ diff_main(text1: string, text2: string): Array<{0: number, 1: string}>;
8
+ diff_cleanupSemantic(diff: Array<{0: number, 1: string}>): void;
9
+ }
10
+ /* eslint-enable @typescript-eslint/naming-convention */
@@ -1,4 +1,4 @@
1
1
  import JSON5 from './lib/index.js';
2
2
 
3
- export const parse = JSON5.parse;
4
- export const stringify = JSON5.stringify;
3
+ export const parse: typeof JSON5.parse = JSON5.parse;
4
+ export const stringify: typeof JSON5.stringify = JSON5.stringify;
@@ -1,10 +1,10 @@
1
1
  Name: Puppeteer Core
2
2
  Short Name: Puppeteer Core
3
3
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
4
- Version: 25.9.0
4
+ Version: 25.10.0
5
5
  License: Apache-2.0
6
6
  License File: LICENSE
7
- Revision: 21efe834b7094d53a1c0d633dc69deced17702d8
7
+ Revision: 88b517ab3beb4a237b541cd18ada98ba43de71a7
8
8
  Security Critical: no
9
9
  Shipped: yes
10
10
  Update Mechanism: Autoroll
@@ -1401,6 +1401,14 @@ export declare interface ConnectOptions {
1401
1401
  * @defaultValue `180_000`
1402
1402
  */
1403
1403
  protocolTimeout?: number;
1404
+ /**
1405
+ * Options for the WebSocket connection to the browser.
1406
+ *
1407
+ * @remarks
1408
+ * Only used in the Node.js environment. The browser build has no ping frame
1409
+ * API, so the keep-alive options are ignored there.
1410
+ */
1411
+ wsOptions?: WsOptions;
1404
1412
  browserWSEndpoint?: string;
1405
1413
  browserURL?: string;
1406
1414
  transport?: ConnectionTransport;
@@ -1408,6 +1416,10 @@ export declare interface ConnectOptions {
1408
1416
  * Headers to use for the web socket connection.
1409
1417
  * @remarks
1410
1418
  * Only works in the Node.js environment.
1419
+ *
1420
+ * @deprecated Use {@link WsOptions.headers} via
1421
+ * {@link ConnectOptions.wsOptions} instead. When both are set,
1422
+ * `wsOptions.headers` wins.
1411
1423
  */
1412
1424
  headers?: Record<string, string>;
1413
1425
  /**
@@ -4954,7 +4966,7 @@ export declare type KeyPressOptions = KeyDownOptions & KeyboardTypeOptions;
4954
4966
  *
4955
4967
  * ```ts
4956
4968
  * import {KnownDevices} from 'puppeteer';
4957
- * const iPhone = KnownDevices['iPhone 15 Pro'];
4969
+ * const iPhone = KnownDevices['iPhone 17 Pro'];
4958
4970
  *
4959
4971
  * const browser = await puppeteer.launch();
4960
4972
  * const page = await browser.newPage();
@@ -5016,6 +5028,8 @@ export declare const KnownDevices: Readonly<
5016
5028
  | 'iPhone 8 Plus landscape'
5017
5029
  | 'iPhone SE'
5018
5030
  | 'iPhone SE landscape'
5031
+ | 'iPhone SE (3rd gen)'
5032
+ | 'iPhone SE (3rd gen) landscape'
5019
5033
  | 'iPhone X'
5020
5034
  | 'iPhone X landscape'
5021
5035
  | 'iPhone XR'
@@ -5058,6 +5072,26 @@ export declare const KnownDevices: Readonly<
5058
5072
  | 'iPhone 15 Pro landscape'
5059
5073
  | 'iPhone 15 Pro Max'
5060
5074
  | 'iPhone 15 Pro Max landscape'
5075
+ | 'iPhone 16'
5076
+ | 'iPhone 16 landscape'
5077
+ | 'iPhone 16 Plus'
5078
+ | 'iPhone 16 Plus landscape'
5079
+ | 'iPhone 16 Pro'
5080
+ | 'iPhone 16 Pro landscape'
5081
+ | 'iPhone 16 Pro Max'
5082
+ | 'iPhone 16 Pro Max landscape'
5083
+ | 'iPhone 16e'
5084
+ | 'iPhone 16e landscape'
5085
+ | 'iPhone 17'
5086
+ | 'iPhone 17 landscape'
5087
+ | 'iPhone Air'
5088
+ | 'iPhone Air landscape'
5089
+ | 'iPhone 17 Pro'
5090
+ | 'iPhone 17 Pro landscape'
5091
+ | 'iPhone 17 Pro Max'
5092
+ | 'iPhone 17 Pro Max landscape'
5093
+ | 'iPhone 17e'
5094
+ | 'iPhone 17e landscape'
5061
5095
  | 'JioPhone 2'
5062
5096
  | 'JioPhone 2 landscape'
5063
5097
  | 'Kindle Fire HDX'
@@ -6984,7 +7018,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
6984
7018
  *
6985
7019
  * ```ts
6986
7020
  * import {KnownDevices} from 'puppeteer';
6987
- * const iPhone = KnownDevices['iPhone 15 Pro'];
7021
+ * const iPhone = KnownDevices['iPhone 17 Pro'];
6988
7022
  *
6989
7023
  * const browser = await puppeteer.launch();
6990
7024
  * const page = await browser.newPage();
@@ -7317,7 +7351,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
7317
7351
  */
7318
7352
  abstract setCacheEnabled(enabled?: boolean): Promise<void>;
7319
7353
  /**
7320
- * Captures a screencast of this {@link Page | page}.
7354
+ * Captures a screencast of this {@link Page | page}. Works in Chrome 153+.
7321
7355
  *
7322
7356
  * @example
7323
7357
  * Recording a {@link Page | page}:
@@ -7347,7 +7381,7 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
7347
7381
  *
7348
7382
  * @param options - Configures screencast behavior.
7349
7383
  *
7350
- * @experimental
7384
+ * @deprecated Use {@link Page.record} instead.
7351
7385
  *
7352
7386
  * @remarks
7353
7387
  *
@@ -7357,6 +7391,44 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
7357
7391
  * You must have {@link https://ffmpeg.org/ | ffmpeg} installed on your system.
7358
7392
  */
7359
7393
  screencast(options?: Readonly<ScreencastOptions>): Promise<ScreenRecorder>;
7394
+ /**
7395
+ * Records this {@link Page | page} using the Chrome DevTools Protocol
7396
+ * {@link https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-startScreenRecording | Page.startScreenRecording}
7397
+ * API.
7398
+ *
7399
+ * Outputs mp4 video stream.
7400
+ *
7401
+ * @example
7402
+ * Recording a {@link Page | page}:
7403
+ *
7404
+ * ```ts
7405
+ * import puppeteer from 'puppeteer';
7406
+ *
7407
+ * // Launch a browser
7408
+ * const browser = await puppeteer.launch();
7409
+ *
7410
+ * // Create a new page
7411
+ * const page = await browser.newPage();
7412
+ *
7413
+ * // Go to your site.
7414
+ * await page.goto('https://www.example.com');
7415
+ *
7416
+ * // Start recording.
7417
+ * const recorder = await page.record({path: 'recording.mp4'});
7418
+ *
7419
+ * // Do something.
7420
+ *
7421
+ * // Stop recording.
7422
+ * await recorder.stop();
7423
+ *
7424
+ * await browser.close();
7425
+ * ```
7426
+ *
7427
+ * @param options - Configures recording behavior.
7428
+ *
7429
+ * @experimental
7430
+ */
7431
+ record(options?: Readonly<RecordOptions>): Promise<ScreenRecording>;
7360
7432
  /**
7361
7433
  * Captures a screenshot of this {@link Page | page}.
7362
7434
  *
@@ -8493,11 +8565,13 @@ declare namespace Puppeteer_2 {
8493
8565
  VideoFormat,
8494
8566
  ScreenshotOptions,
8495
8567
  ScreencastOptions,
8568
+ RecordOptions,
8496
8569
  QueryOptions,
8497
8570
  PageEvents,
8498
8571
  NewDocumentScriptEvaluation,
8499
8572
  ReloadOptions,
8500
8573
  HeapSnapshotOptions,
8574
+ WritableDestination,
8501
8575
  WebWorkerEvents,
8502
8576
  VisibilityOption,
8503
8577
  ActionOptions,
@@ -8533,6 +8607,7 @@ declare namespace Puppeteer_2 {
8533
8607
  SupportedWebDriverCapability,
8534
8608
  SupportedWebDriverCapabilities,
8535
8609
  ChromeReleaseChannel,
8610
+ WsOptions,
8536
8611
  ConnectOptions,
8537
8612
  ConsoleMessageLocation,
8538
8613
  ConsoleMessageType,
@@ -8603,6 +8678,7 @@ declare namespace Puppeteer_2 {
8603
8678
  PageEvent,
8604
8679
  Page,
8605
8680
  Realm,
8681
+ ScreenRecording,
8606
8682
  TargetType,
8607
8683
  Target,
8608
8684
  WebWorkerEvent,
@@ -8982,6 +9058,46 @@ export declare abstract class Realm {
8982
9058
  [disposeSymbol](): void;
8983
9059
  }
8984
9060
 
9061
+ /**
9062
+ * @public
9063
+ * @experimental
9064
+ */
9065
+ export declare interface RecordOptions {
9066
+ /**
9067
+ * File path to save the recording to.
9068
+ */
9069
+ path?: string;
9070
+ /**
9071
+ * Specifies whether to overwrite output file,
9072
+ * or exit immediately if it already exists.
9073
+ *
9074
+ * @defaultValue `true`
9075
+ */
9076
+ overwrite?: boolean;
9077
+ /**
9078
+ * Whether to record audio.
9079
+ *
9080
+ * @defaultValue `false`
9081
+ */
9082
+ audio?: boolean;
9083
+ /**
9084
+ * Maximum frame width in pixels.
9085
+ */
9086
+ maxWidth?: number;
9087
+ /**
9088
+ * Maximum frame height in pixels.
9089
+ */
9090
+ maxHeight?: number;
9091
+ /**
9092
+ * Maximum frame rate in frames per second.
9093
+ */
9094
+ frameRate?: number;
9095
+ /**
9096
+ * Frame rate in frames per second (alias for frameRate).
9097
+ */
9098
+ fps?: number;
9099
+ }
9100
+
8985
9101
  /**
8986
9102
  * @public
8987
9103
  */
@@ -9166,6 +9282,26 @@ export declare class ScreenRecorder extends PassThrough {
9166
9282
  [asyncDisposeSymbol](): Promise<void>;
9167
9283
  }
9168
9284
 
9285
+ /**
9286
+ * @public
9287
+ */
9288
+ export declare abstract class ScreenRecording extends ReadableStream<Uint8Array> {
9289
+ /**
9290
+ * Pipes the recorded stream to a destination stream.
9291
+ *
9292
+ * @public
9293
+ */
9294
+ pipe<T extends WritableStream<Uint8Array>>(destination: T): Promise<void>;
9295
+ pipe<T extends WritableDestination>(destination: T): T;
9296
+ /**
9297
+ * Stops the screen recording.
9298
+ *
9299
+ * @public
9300
+ */
9301
+ abstract stop(): Promise<void>;
9302
+ [asyncDisposeSymbol](): Promise<void>;
9303
+ }
9304
+
9169
9305
  /**
9170
9306
  * @public
9171
9307
  */
@@ -10186,4 +10322,47 @@ export declare interface WorkAreaInsets {
10186
10322
  right?: number;
10187
10323
  }
10188
10324
 
10325
+ /**
10326
+ * @public
10327
+ */
10328
+ export declare interface WritableDestination {
10329
+ write(chunk: Uint8Array): boolean;
10330
+ end(): unknown;
10331
+ writableFinished?: boolean;
10332
+ closed?: boolean;
10333
+ destroyed?: boolean;
10334
+ once?(event: string, cb: (arg?: unknown) => void): unknown;
10335
+ }
10336
+
10337
+ /**
10338
+ * Options for the WebSocket connection to the browser.
10339
+ *
10340
+ * @remarks
10341
+ * Only used in the Node.js environment.
10342
+ *
10343
+ * @public
10344
+ */
10345
+ export declare interface WsOptions {
10346
+ /**
10347
+ * Headers to use for the web socket connection.
10348
+ */
10349
+ headers?: Record<string, string>;
10350
+ /**
10351
+ * Whether to send WebSocket pings and drop the connection when a pong does
10352
+ * not come back within the same interval. Detects a connection that died
10353
+ * without a close frame, which otherwise leaves calls hanging until
10354
+ * `protocolTimeout`.
10355
+ *
10356
+ * @defaultValue `false`
10357
+ */
10358
+ keepAlive?: boolean;
10359
+ /**
10360
+ * Ping period in milliseconds. Only used when {@link WsOptions.keepAlive} is
10361
+ * set.
10362
+ *
10363
+ * @defaultValue `30_000`
10364
+ */
10365
+ keepAliveIntervalMs?: number;
10366
+ }
10367
+
10189
10368
  export {};