chrome-devtools-frontend 1.0.1526630 → 1.0.1529186

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 (339) hide show
  1. package/docs/ui_engineering.md +159 -0
  2. package/eslint.config.mjs +6 -1
  3. package/front_end/core/host/UserMetrics.ts +2 -1
  4. package/front_end/core/i18n/i18nImpl.ts +6 -1
  5. package/front_end/core/protocol_client/protocol_client.ts +1 -1
  6. package/front_end/core/root/Runtime.ts +38 -4
  7. package/front_end/core/sdk/CSSMatchedStyles.ts +50 -7
  8. package/front_end/core/sdk/CSSRule.ts +35 -6
  9. package/front_end/core/sdk/Connections.ts +2 -1
  10. package/front_end/core/sdk/DOMModel.ts +4 -0
  11. package/front_end/core/sdk/DebuggerModel.ts +5 -1
  12. package/front_end/core/sdk/NetworkManager.ts +267 -34
  13. package/front_end/core/sdk/PreloadingModel.ts +82 -17
  14. package/front_end/core/sdk/RehydratingConnection.snapshot.txt +1 -1
  15. package/front_end/core/sdk/RehydratingConnection.ts +29 -4
  16. package/front_end/core/sdk/ScopeTreeCache.ts +8 -3
  17. package/front_end/core/sdk/SourceMap.ts +41 -11
  18. package/front_end/core/sdk/SourceMapManager.ts +13 -2
  19. package/front_end/core/sdk/SourceMapScopesInfo.ts +49 -2
  20. package/front_end/core/sdk/TargetManager.ts +0 -22
  21. package/front_end/core/sdk/TraceObject.ts +8 -7
  22. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +81 -0
  23. package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
  24. package/front_end/entrypoints/main/GlobalAiButton.ts +1 -0
  25. package/front_end/entrypoints/main/MainImpl.ts +42 -28
  26. package/front_end/generated/InspectorBackendCommands.js +3 -2
  27. package/front_end/generated/SupportedCSSProperties.js +2 -0
  28. package/front_end/generated/protocol.ts +17 -3
  29. package/front_end/models/ai_assistance/BuiltInAi.ts +111 -0
  30. package/front_end/models/ai_assistance/ConversationHandler.ts +15 -14
  31. package/front_end/models/ai_assistance/ai_assistance.ts +53 -24
  32. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +105 -0
  33. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +6 -1
  34. package/front_end/models/extensions/ExtensionView.ts +3 -0
  35. package/front_end/models/javascript_metadata/NativeFunctions.js +31 -27
  36. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +31 -29
  37. package/front_end/models/persistence/NetworkPersistenceManager.ts +3 -5
  38. package/front_end/models/persistence/PersistenceImpl.ts +0 -5
  39. package/front_end/models/persistence/persistence-meta.ts +0 -31
  40. package/front_end/models/persistence/persistence.ts +0 -6
  41. package/front_end/models/source_map_scopes/NamesResolver.ts +5 -11
  42. package/front_end/models/stack_trace/Trie.ts +9 -0
  43. package/front_end/models/trace/lantern/types/Lantern.ts +1 -1
  44. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -0
  45. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -0
  46. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +120 -113
  47. package/front_end/panels/ai_assistance/PatchWidget.ts +9 -8
  48. package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +2 -0
  49. package/front_end/panels/ai_assistance/components/ChatView.ts +29 -29
  50. package/front_end/panels/ai_assistance/components/UserActionRow.ts +1 -0
  51. package/front_end/panels/animation/AnimationTimeline.ts +1 -0
  52. package/front_end/panels/application/CookieItemsView.ts +1 -0
  53. package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -0
  54. package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -0
  55. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +11 -5
  56. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +2 -2
  57. package/front_end/panels/application/preloading/components/PreloadingString.ts +7 -5
  58. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +22 -10
  59. package/front_end/panels/changes/CombinedDiffView.ts +1 -0
  60. package/front_end/{models/persistence → panels/common}/PersistenceUtils.ts +15 -17
  61. package/front_end/panels/common/common.ts +1 -0
  62. package/front_end/panels/console/ConsoleInsightTeaser.ts +369 -0
  63. package/front_end/panels/console/ConsolePanel.ts +2 -0
  64. package/front_end/panels/console/ConsolePrompt.ts +12 -2
  65. package/front_end/panels/console/ConsoleSidebar.ts +1 -1
  66. package/front_end/panels/console/ConsoleView.ts +12 -0
  67. package/front_end/panels/console/ConsoleViewMessage.ts +44 -0
  68. package/front_end/panels/{explain → console}/PromptBuilder.ts +12 -7
  69. package/front_end/panels/console/console-meta.ts +14 -0
  70. package/front_end/panels/console/console.ts +6 -0
  71. package/front_end/panels/console/consoleInsightTeaser.css +83 -0
  72. package/front_end/panels/coverage/CoverageListView.ts +29 -11
  73. package/front_end/panels/coverage/CoverageView.ts +292 -284
  74. package/front_end/panels/coverage/coverageView.css +17 -0
  75. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -0
  76. package/front_end/panels/elements/LayoutPane.ts +1 -0
  77. package/front_end/panels/elements/NodeStackTraceWidget.ts +1 -0
  78. package/front_end/panels/elements/StylePropertyTreeElement.ts +5 -1
  79. package/front_end/panels/elements/stylePropertiesTreeOutline.css +17 -0
  80. package/front_end/panels/emulation/DeviceModeView.ts +2 -0
  81. package/front_end/panels/explain/ActionDelegate.ts +4 -2
  82. package/front_end/panels/explain/components/ConsoleInsight.ts +14 -12
  83. package/front_end/panels/explain/explain-meta.ts +7 -0
  84. package/front_end/panels/explain/explain.ts +0 -1
  85. package/front_end/panels/js_timeline/js_timeline-meta.ts +1 -1
  86. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -0
  87. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -0
  88. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -0
  89. package/front_end/panels/media/MainView.ts +1 -0
  90. package/front_end/panels/media/TickingFlameChart.ts +2 -0
  91. package/front_end/panels/network/BlockedURLsPane.ts +237 -108
  92. package/front_end/panels/network/EventSourceMessagesView.ts +1 -0
  93. package/front_end/panels/network/NetworkItemView.ts +1 -0
  94. package/front_end/panels/network/NetworkLogView.ts +9 -7
  95. package/front_end/panels/network/NetworkOverview.ts +1 -0
  96. package/front_end/panels/network/RequestCookiesView.ts +1 -0
  97. package/front_end/panels/network/RequestHTMLView.ts +1 -0
  98. package/front_end/panels/network/RequestInitiatorView.ts +1 -0
  99. package/front_end/panels/network/RequestPayloadView.ts +1 -0
  100. package/front_end/panels/network/RequestPreviewView.ts +1 -0
  101. package/front_end/panels/network/RequestResponseView.ts +1 -0
  102. package/front_end/panels/network/RequestTimingView.ts +2 -0
  103. package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -0
  104. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -0
  105. package/front_end/panels/network/components/RequestHeadersView.ts +2 -0
  106. package/front_end/panels/network/components/RequestTrustTokensView.ts +2 -0
  107. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -0
  108. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +2 -0
  109. package/front_end/panels/profiler/HeapSnapshotView.ts +7 -0
  110. package/front_end/panels/profiler/IsolateSelector.ts +1 -0
  111. package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -0
  112. package/front_end/panels/profiler/ProfileView.ts +1 -0
  113. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -0
  114. package/front_end/panels/recorder/RecorderPanel.ts +2 -0
  115. package/front_end/panels/screencast/ScreencastView.ts +1 -0
  116. package/front_end/panels/search/SearchView.ts +1 -0
  117. package/front_end/panels/settings/AISettingsTab.ts +3 -3
  118. package/front_end/{models/persistence → panels/settings}/EditFileSystemView.ts +3 -6
  119. package/front_end/panels/settings/WorkspaceSettingsTab.ts +4 -1
  120. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
  121. package/front_end/panels/settings/settings.ts +2 -0
  122. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +12 -0
  123. package/front_end/panels/sources/BreakpointsView.ts +1 -0
  124. package/front_end/panels/sources/DebuggerPlugin.ts +1 -0
  125. package/front_end/{models/persistence → panels/sources}/PersistenceActions.ts +8 -12
  126. package/front_end/panels/sources/TabbedEditorContainer.ts +2 -1
  127. package/front_end/panels/sources/UISourceCodeFrame.ts +17 -2
  128. package/front_end/panels/sources/sources-meta.ts +15 -0
  129. package/front_end/panels/sources/sources.ts +2 -0
  130. package/front_end/panels/timeline/README.md +2 -2
  131. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
  132. package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -3
  133. package/front_end/panels/timeline/TimelineLayersView.ts +1 -0
  134. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +114 -37
  135. package/front_end/panels/timeline/TimelinePanel.ts +43 -62
  136. package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
  137. package/front_end/panels/timeline/components/LiveMetricsView.ts +4 -8
  138. package/front_end/panels/timeline/components/Sidebar.ts +2 -0
  139. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
  140. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +7 -7
  141. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -1
  142. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -4
  143. package/front_end/panels/utils/utils.ts +2 -1
  144. package/front_end/panels/web_audio/WebAudioView.ts +1 -0
  145. package/front_end/third_party/chromium/README.chromium +1 -1
  146. package/front_end/third_party/diff/diff_match_patch.js +1 -1
  147. package/front_end/third_party/lighthouse/README.chromium +2 -2
  148. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1530 -2426
  149. package/front_end/third_party/lighthouse/locales/ar-XB.json +107 -455
  150. package/front_end/third_party/lighthouse/locales/ar.json +107 -455
  151. package/front_end/third_party/lighthouse/locales/bg.json +96 -444
  152. package/front_end/third_party/lighthouse/locales/ca.json +96 -444
  153. package/front_end/third_party/lighthouse/locales/cs.json +96 -444
  154. package/front_end/third_party/lighthouse/locales/da.json +96 -444
  155. package/front_end/third_party/lighthouse/locales/de.json +96 -444
  156. package/front_end/third_party/lighthouse/locales/el.json +96 -444
  157. package/front_end/third_party/lighthouse/locales/en-GB.json +96 -444
  158. package/front_end/third_party/lighthouse/locales/en-US.json +116 -467
  159. package/front_end/third_party/lighthouse/locales/en-XA.json +93 -441
  160. package/front_end/third_party/lighthouse/locales/en-XL.json +116 -467
  161. package/front_end/third_party/lighthouse/locales/es-419.json +96 -444
  162. package/front_end/third_party/lighthouse/locales/es.json +96 -444
  163. package/front_end/third_party/lighthouse/locales/fi.json +96 -444
  164. package/front_end/third_party/lighthouse/locales/fil.json +96 -444
  165. package/front_end/third_party/lighthouse/locales/fr.json +96 -444
  166. package/front_end/third_party/lighthouse/locales/he.json +118 -466
  167. package/front_end/third_party/lighthouse/locales/hi.json +96 -444
  168. package/front_end/third_party/lighthouse/locales/hr.json +100 -448
  169. package/front_end/third_party/lighthouse/locales/hu.json +96 -444
  170. package/front_end/third_party/lighthouse/locales/id.json +96 -444
  171. package/front_end/third_party/lighthouse/locales/it.json +96 -444
  172. package/front_end/third_party/lighthouse/locales/ja.json +96 -444
  173. package/front_end/third_party/lighthouse/locales/ko.json +97 -445
  174. package/front_end/third_party/lighthouse/locales/lt.json +96 -444
  175. package/front_end/third_party/lighthouse/locales/lv.json +97 -445
  176. package/front_end/third_party/lighthouse/locales/nl.json +96 -444
  177. package/front_end/third_party/lighthouse/locales/no.json +96 -444
  178. package/front_end/third_party/lighthouse/locales/pl.json +96 -444
  179. package/front_end/third_party/lighthouse/locales/pt-PT.json +96 -444
  180. package/front_end/third_party/lighthouse/locales/pt.json +97 -445
  181. package/front_end/third_party/lighthouse/locales/ro.json +97 -445
  182. package/front_end/third_party/lighthouse/locales/ru.json +96 -444
  183. package/front_end/third_party/lighthouse/locales/sk.json +96 -444
  184. package/front_end/third_party/lighthouse/locales/sl.json +96 -444
  185. package/front_end/third_party/lighthouse/locales/sr-Latn.json +96 -444
  186. package/front_end/third_party/lighthouse/locales/sr.json +96 -444
  187. package/front_end/third_party/lighthouse/locales/sv.json +96 -444
  188. package/front_end/third_party/lighthouse/locales/ta.json +96 -444
  189. package/front_end/third_party/lighthouse/locales/te.json +97 -445
  190. package/front_end/third_party/lighthouse/locales/th.json +96 -444
  191. package/front_end/third_party/lighthouse/locales/tr.json +96 -444
  192. package/front_end/third_party/lighthouse/locales/uk.json +96 -444
  193. package/front_end/third_party/lighthouse/locales/vi.json +96 -444
  194. package/front_end/third_party/lighthouse/locales/zh-HK.json +96 -444
  195. package/front_end/third_party/lighthouse/locales/zh-TW.json +97 -445
  196. package/front_end/third_party/lighthouse/locales/zh.json +96 -444
  197. package/front_end/third_party/lighthouse/report/bundle.d.ts +8 -14
  198. package/front_end/third_party/lighthouse/report/bundle.js +10 -49
  199. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
  200. package/front_end/third_party/web-vitals/README.chromium +5 -8
  201. package/front_end/third_party/web-vitals/package/README.md +191 -152
  202. package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.d.ts +0 -1
  203. package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.js +0 -1
  204. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.d.ts +2 -2
  205. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.js +45 -26
  206. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.d.ts +2 -2
  207. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +3 -3
  208. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +10 -10
  209. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +307 -206
  210. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
  211. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +69 -49
  212. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.d.ts +2 -2
  213. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +2 -2
  214. package/front_end/third_party/web-vitals/package/dist/modules/index.d.ts +0 -1
  215. package/front_end/third_party/web-vitals/package/dist/modules/index.js +0 -1
  216. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +33 -0
  217. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +111 -0
  218. package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.d.ts +4 -0
  219. package/front_end/third_party/web-vitals/package/dist/modules/{attribution/deprecated.js → lib/LCPEntryManager.js} +6 -7
  220. package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.d.ts +6 -0
  221. package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.js +44 -0
  222. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.js +1 -1
  223. package/front_end/third_party/web-vitals/package/dist/modules/lib/generateUniqueID.js +1 -1
  224. package/front_end/third_party/web-vitals/package/dist/modules/lib/getActivationStart.js +1 -1
  225. package/front_end/third_party/web-vitals/package/dist/modules/lib/getNavigationEntry.js +5 -7
  226. package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.d.ts +1 -1
  227. package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.js +9 -12
  228. package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.d.ts +1 -0
  229. package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +52 -33
  230. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +0 -2
  231. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.js +2 -2
  232. package/front_end/third_party/web-vitals/package/dist/modules/lib/initUnique.d.ts +6 -0
  233. package/front_end/third_party/web-vitals/package/dist/modules/{deprecated.js → lib/initUnique.js} +11 -4
  234. package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +3 -6
  235. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +6 -6
  236. package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.d.ts → whenIdleOrHidden.d.ts} +1 -1
  237. package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.js → whenIdleOrHidden.js} +10 -8
  238. package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +17 -35
  239. package/front_end/third_party/web-vitals/package/dist/modules/onFCP.js +3 -5
  240. package/front_end/third_party/web-vitals/package/dist/modules/onINP.d.ts +9 -7
  241. package/front_end/third_party/web-vitals/package/dist/modules/onINP.js +27 -19
  242. package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +33 -26
  243. package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.js +2 -4
  244. package/front_end/third_party/web-vitals/package/dist/modules/types/base.d.ts +6 -5
  245. package/front_end/third_party/web-vitals/package/dist/modules/types/cls.d.ts +5 -3
  246. package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +80 -33
  247. package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +6 -2
  248. package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +28 -4
  249. package/front_end/third_party/web-vitals/package/dist/modules/types.js +0 -1
  250. package/front_end/third_party/web-vitals/package/package.json +4 -10
  251. package/front_end/third_party/web-vitals/package/src/attribution/index.ts +0 -1
  252. package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +58 -33
  253. package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +4 -4
  254. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +382 -258
  255. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +96 -69
  256. package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +3 -3
  257. package/front_end/third_party/web-vitals/package/src/index.ts +0 -1
  258. package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +146 -0
  259. package/front_end/third_party/web-vitals/package/src/{attribution/deprecated.ts → lib/LCPEntryManager.ts} +6 -9
  260. package/front_end/third_party/web-vitals/package/src/lib/LayoutShiftManager.ts +50 -0
  261. package/front_end/third_party/web-vitals/package/src/lib/bindReporter.ts +1 -1
  262. package/front_end/third_party/web-vitals/package/src/lib/generateUniqueID.ts +1 -1
  263. package/front_end/third_party/web-vitals/package/src/lib/getActivationStart.ts +1 -1
  264. package/front_end/third_party/web-vitals/package/src/lib/getNavigationEntry.ts +5 -8
  265. package/front_end/third_party/web-vitals/package/src/lib/getSelector.ts +12 -12
  266. package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +57 -35
  267. package/front_end/third_party/web-vitals/package/src/lib/initMetric.ts +2 -2
  268. package/front_end/third_party/web-vitals/package/src/{deprecated.ts → lib/initUnique.ts} +14 -8
  269. package/front_end/third_party/web-vitals/package/src/lib/observe.ts +3 -11
  270. package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +12 -6
  271. package/front_end/third_party/web-vitals/package/src/lib/{whenIdle.ts → whenIdleOrHidden.ts} +10 -8
  272. package/front_end/third_party/web-vitals/package/src/onCLS.ts +17 -38
  273. package/front_end/third_party/web-vitals/package/src/onFCP.ts +3 -6
  274. package/front_end/third_party/web-vitals/package/src/onINP.ts +33 -28
  275. package/front_end/third_party/web-vitals/package/src/onLCP.ts +36 -29
  276. package/front_end/third_party/web-vitals/package/src/onTTFB.ts +2 -5
  277. package/front_end/third_party/web-vitals/package/src/types/base.ts +5 -5
  278. package/front_end/third_party/web-vitals/package/src/types/cls.ts +5 -3
  279. package/front_end/third_party/web-vitals/package/src/types/inp.ts +88 -33
  280. package/front_end/third_party/web-vitals/package/src/types/lcp.ts +6 -2
  281. package/front_end/third_party/web-vitals/package/src/types.ts +47 -4
  282. package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +75 -0
  283. package/front_end/third_party/web-vitals/rebuild.sh +32 -18
  284. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +5 -10
  285. package/front_end/third_party/web-vitals/web-vitals.ts +0 -2
  286. package/front_end/ui/components/docs/console_insight/basic.ts +3 -2
  287. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +2 -0
  288. package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
  289. package/front_end/ui/legacy/InspectorView.ts +2 -0
  290. package/front_end/ui/legacy/ListWidget.ts +2 -2
  291. package/front_end/ui/legacy/SplitWidget.ts +2 -0
  292. package/front_end/ui/legacy/TabbedPane.ts +1 -0
  293. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -0
  294. package/front_end/ui/legacy/UIUtils.ts +8 -19
  295. package/front_end/ui/legacy/ViewManager.ts +1 -0
  296. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +7 -20
  297. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -0
  298. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +1 -0
  299. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +1 -0
  300. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +1 -0
  301. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -0
  302. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
  303. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
  304. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
  305. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -0
  306. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +2 -0
  307. package/front_end/ui/visual_logging/KnownContextValues.ts +25 -0
  308. package/mcp/README.md +7 -0
  309. package/mcp/mcp.ts +8 -0
  310. package/package.json +1 -1
  311. package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +0 -34
  312. package/front_end/third_party/web-vitals/package/attribution.d.ts +0 -16
  313. package/front_end/third_party/web-vitals/package/attribution.js +0 -18
  314. package/front_end/third_party/web-vitals/package/dist/modules/attribution/deprecated.d.ts +0 -7
  315. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.d.ts +0 -11
  316. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.js +0 -46
  317. package/front_end/third_party/web-vitals/package/dist/modules/deprecated.d.ts +0 -5
  318. package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.d.ts +0 -31
  319. package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +0 -107
  320. package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.d.ts +0 -1
  321. package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.js +0 -22
  322. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.d.ts +0 -7
  323. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.js +0 -147
  324. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.d.ts +0 -1
  325. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.js +0 -25
  326. package/front_end/third_party/web-vitals/package/dist/modules/onFID.d.ts +0 -13
  327. package/front_end/third_party/web-vitals/package/dist/modules/onFID.js +0 -70
  328. package/front_end/third_party/web-vitals/package/dist/modules/types/fid.d.ts +0 -46
  329. package/front_end/third_party/web-vitals/package/dist/modules/types/fid.js +0 -16
  330. package/front_end/third_party/web-vitals/package/src/attribution/onFID.ts +0 -62
  331. package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +0 -139
  332. package/front_end/third_party/web-vitals/package/src/lib/onHidden.ts +0 -23
  333. package/front_end/third_party/web-vitals/package/src/lib/polyfills/firstInputPolyfill.ts +0 -174
  334. package/front_end/third_party/web-vitals/package/src/onFID.ts +0 -105
  335. package/front_end/third_party/web-vitals/package/src/types/fid.ts +0 -65
  336. package/front_end/ui/components/text_editor/textEditor.css +0 -18
  337. package/front_end/ui/legacy/inlineButton.css +0 -22
  338. /package/front_end/entrypoints/{rehydrated_devtools_app/rehydrated_devtools_app.ts → trace_app/trace_app.ts} +0 -0
  339. /package/front_end/{models/persistence → panels/settings}/editFileSystemView.css +0 -0
@@ -2346,7 +2346,7 @@ export const NativeFunctions = [
2346
2346
  {
2347
2347
  name: "clear",
2348
2348
  signatures: [["mask"]],
2349
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
2349
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
2350
2350
  },
2351
2351
  {
2352
2352
  name: "adoptNode",
@@ -3370,12 +3370,12 @@ export const NativeFunctions = [
3370
3370
  {
3371
3371
  name: "disable",
3372
3372
  signatures: [["cap"]],
3373
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
3373
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
3374
3374
  },
3375
3375
  {
3376
3376
  name: "enable",
3377
3377
  signatures: [["cap"]],
3378
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
3378
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
3379
3379
  },
3380
3380
  {
3381
3381
  name: "setHeaderValue",
@@ -4556,7 +4556,7 @@ export const NativeFunctions = [
4556
4556
  {
4557
4557
  name: "bufferData",
4558
4558
  signatures: [["target","size","usage"],["target","data","usage"]],
4559
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4559
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4560
4560
  },
4561
4561
  {
4562
4562
  name: "bufferData",
@@ -4571,7 +4571,7 @@ export const NativeFunctions = [
4571
4571
  {
4572
4572
  name: "bufferSubData",
4573
4573
  signatures: [["target","offset","data"]],
4574
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4574
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4575
4575
  },
4576
4576
  {
4577
4577
  name: "bufferSubData",
@@ -4586,7 +4586,7 @@ export const NativeFunctions = [
4586
4586
  {
4587
4587
  name: "compressedTexImage2D",
4588
4588
  signatures: [["target","level","internalformat","width","height","border","data"]],
4589
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4589
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4590
4590
  },
4591
4591
  {
4592
4592
  name: "compressedTexImage2D",
@@ -4601,7 +4601,7 @@ export const NativeFunctions = [
4601
4601
  {
4602
4602
  name: "compressedTexSubImage2D",
4603
4603
  signatures: [["target","level","xoffset","yoffset","width","height","format","data"]],
4604
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4604
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4605
4605
  },
4606
4606
  {
4607
4607
  name: "compressedTexSubImage2D",
@@ -4616,7 +4616,7 @@ export const NativeFunctions = [
4616
4616
  {
4617
4617
  name: "readPixels",
4618
4618
  signatures: [["x","y","width","height","format","type","pixels"]],
4619
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4619
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4620
4620
  },
4621
4621
  {
4622
4622
  name: "readPixels",
@@ -4636,7 +4636,7 @@ export const NativeFunctions = [
4636
4636
  {
4637
4637
  name: "texImage2D",
4638
4638
  signatures: [["target","level","internalformat","format","type","pixels"],["target","level","internalformat","format","type","image"],["target","level","internalformat","format","type","canvas"],["target","level","internalformat","format","type","offscreenCanvas"],["target","level","internalformat","format","type","video"],["target","level","internalformat","format","type","bitmap"],["target","level","internalformat","format","type","frame"],["target","level","internalformat","width","height","border","format","type","pixels"]],
4639
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4639
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4640
4640
  },
4641
4641
  {
4642
4642
  name: "texImage2D",
@@ -4656,7 +4656,7 @@ export const NativeFunctions = [
4656
4656
  {
4657
4657
  name: "texSubImage2D",
4658
4658
  signatures: [["target","level","xoffset","yoffset","format","type","pixels"],["target","level","xoffset","yoffset","format","type","image"],["target","level","xoffset","yoffset","format","type","canvas"],["target","level","xoffset","yoffset","format","type","offscreenCanvas"],["target","level","xoffset","yoffset","format","type","video"],["target","level","xoffset","yoffset","format","type","bitmap"],["target","level","xoffset","yoffset","format","type","frame"],["target","level","xoffset","yoffset","width","height","format","type","pixels"]],
4659
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4659
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4660
4660
  },
4661
4661
  {
4662
4662
  name: "texSubImage2D",
@@ -4671,7 +4671,7 @@ export const NativeFunctions = [
4671
4671
  {
4672
4672
  name: "uniform1fv",
4673
4673
  signatures: [["location","v"]],
4674
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4674
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4675
4675
  },
4676
4676
  {
4677
4677
  name: "uniform1fv",
@@ -4686,7 +4686,7 @@ export const NativeFunctions = [
4686
4686
  {
4687
4687
  name: "uniform1iv",
4688
4688
  signatures: [["location","v"]],
4689
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4689
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4690
4690
  },
4691
4691
  {
4692
4692
  name: "uniform1iv",
@@ -4701,7 +4701,7 @@ export const NativeFunctions = [
4701
4701
  {
4702
4702
  name: "uniform2fv",
4703
4703
  signatures: [["location","v"]],
4704
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4704
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4705
4705
  },
4706
4706
  {
4707
4707
  name: "uniform2fv",
@@ -4716,7 +4716,7 @@ export const NativeFunctions = [
4716
4716
  {
4717
4717
  name: "uniform2iv",
4718
4718
  signatures: [["location","v"]],
4719
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4719
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4720
4720
  },
4721
4721
  {
4722
4722
  name: "uniform2iv",
@@ -4731,7 +4731,7 @@ export const NativeFunctions = [
4731
4731
  {
4732
4732
  name: "uniform3fv",
4733
4733
  signatures: [["location","v"]],
4734
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4734
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4735
4735
  },
4736
4736
  {
4737
4737
  name: "uniform3fv",
@@ -4746,7 +4746,7 @@ export const NativeFunctions = [
4746
4746
  {
4747
4747
  name: "uniform3iv",
4748
4748
  signatures: [["location","v"]],
4749
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4749
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4750
4750
  },
4751
4751
  {
4752
4752
  name: "uniform3iv",
@@ -4761,7 +4761,7 @@ export const NativeFunctions = [
4761
4761
  {
4762
4762
  name: "uniform4fv",
4763
4763
  signatures: [["location","v"]],
4764
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4764
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4765
4765
  },
4766
4766
  {
4767
4767
  name: "uniform4fv",
@@ -4776,7 +4776,7 @@ export const NativeFunctions = [
4776
4776
  {
4777
4777
  name: "uniform4iv",
4778
4778
  signatures: [["location","v"]],
4779
- receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4779
+ receivers: ["WebGLRenderingContextOverloads","WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4780
4780
  },
4781
4781
  {
4782
4782
  name: "uniform4iv",
@@ -4796,7 +4796,7 @@ export const NativeFunctions = [
4796
4796
  {
4797
4797
  name: "uniformMatrix2fv",
4798
4798
  signatures: [["location","transpose","array"]],
4799
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4799
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4800
4800
  },
4801
4801
  {
4802
4802
  name: "uniformMatrix2fv",
@@ -4816,7 +4816,7 @@ export const NativeFunctions = [
4816
4816
  {
4817
4817
  name: "uniformMatrix3fv",
4818
4818
  signatures: [["location","transpose","array"]],
4819
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4819
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4820
4820
  },
4821
4821
  {
4822
4822
  name: "uniformMatrix3fv",
@@ -4836,7 +4836,7 @@ export const NativeFunctions = [
4836
4836
  {
4837
4837
  name: "uniformMatrix4fv",
4838
4838
  signatures: [["location","transpose","array"]],
4839
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4839
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
4840
4840
  },
4841
4841
  {
4842
4842
  name: "uniformMatrix4fv",
@@ -5039,7 +5039,7 @@ export const NativeFunctions = [
5039
5039
  {
5040
5040
  name: "getParameter",
5041
5041
  signatures: [["pname"]],
5042
- receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextBase","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
5042
+ receivers: ["WebGLRenderingContextWebGPU","WebGLRenderingContext","WebGL2RenderingContextWebGPU","WebGL2RenderingContext"]
5043
5043
  },
5044
5044
  {
5045
5045
  name: "getParameter",
@@ -6083,7 +6083,7 @@ export const NativeFunctions = [
6083
6083
  },
6084
6084
  {
6085
6085
  name: "addAnimation",
6086
- signatures: [["animation","action","behavior"]]
6086
+ signatures: [["animation","activateBehavior","?deactivateBehavior"]]
6087
6087
  },
6088
6088
  {
6089
6089
  name: "removeAnimation",
@@ -6606,10 +6606,6 @@ export const NativeFunctions = [
6606
6606
  name: "when",
6607
6607
  signatures: [["type","?options"]]
6608
6608
  },
6609
- {
6610
- name: "Event",
6611
- signatures: [["type","?eventInitDict"]]
6612
- },
6613
6609
  {
6614
6610
  name: "setFormControlRange",
6615
6611
  signatures: [["element","start","end"]]
@@ -8443,6 +8439,14 @@ export const NativeFunctions = [
8443
8439
  name: "sendPackets",
8444
8440
  signatures: [["packets"]]
8445
8441
  },
8442
+ {
8443
+ name: "addRemoteCandidate",
8444
+ signatures: [["candidate"]]
8445
+ },
8446
+ {
8447
+ name: "setRemoteDtlsParameters",
8448
+ signatures: [["params"]]
8449
+ },
8446
8450
  {
8447
8451
  name: "revoke",
8448
8452
  signatures: [["permission"]]
@@ -5,12 +5,10 @@
5
5
  import * as WebVitals from '../../../third_party/web-vitals/web-vitals.js';
6
6
  import type * as Trace from '../../trace/trace.js';
7
7
 
8
- import * as OnEachInteraction from './OnEachInteraction.js';
9
8
  import * as OnEachLayoutShift from './OnEachLayoutShift.js';
10
9
  import * as Spec from './spec/spec.js';
11
10
 
12
11
  const {onLCP, onCLS, onINP} = WebVitals.Attribution;
13
- const {onEachInteraction} = OnEachInteraction;
14
12
  const {onEachLayoutShift} = OnEachLayoutShift;
15
13
 
16
14
  declare const window: Window&{
@@ -184,30 +182,7 @@ function initialize(): void {
184
182
  sendEventToDevTools(event);
185
183
  }, {reportAllChanges: true});
186
184
 
187
- onINP(metric => {
188
- // TODO(b/376777343): Remove this line when `interactionTargetElement` is removed from web-vitals.js
189
- // The `metric` emitted in this callback is stored within web-vitals.js closures.
190
- // This can lead to `interactionTargetElement` persisting in memory after it has been removed.
191
- // We don't use `interactionTargetElement` here, and `onEachInteraction` will interaction
192
- // elements separately so it is safe to remove here and prevent memory leaks.
193
- metric.attribution.interactionTargetElement = undefined;
194
-
195
- const event: Spec.InpChangeEvent = {
196
- name: 'INP',
197
- value: metric.value as Trace.Types.Timing.Milli,
198
- phases: {
199
- inputDelay: metric.attribution.inputDelay as Trace.Types.Timing.Milli,
200
- processingDuration: metric.attribution.processingDuration as Trace.Types.Timing.Milli,
201
- presentationDelay: metric.attribution.presentationDelay as Trace.Types.Timing.Milli,
202
- },
203
- startTime: metric.entries[0].startTime,
204
- entryGroupId: metric.entries[0].interactionId as Spec.InteractionEntryGroupId,
205
- interactionType: metric.attribution.interactionType,
206
- };
207
- sendEventToDevTools(event);
208
- }, {reportAllChanges: true, durationThreshold: 0});
209
-
210
- onEachInteraction(interaction => {
185
+ function onEachInteraction(interaction: WebVitals.INPMetricWithAttribution): void {
211
186
  // Multiple `InteractionEntry` events can be emitted for the same `uniqueInteractionId`
212
187
  // However, it is easier to combine these entries in the DevTools client rather than in
213
188
  // this injected code.
@@ -228,11 +203,38 @@ function initialize(): void {
228
203
  longAnimationFrameEntries: limitScripts(
229
204
  interaction.attribution.longAnimationFrameEntries.slice(-Spec.LOAF_LIMIT).map(loaf => loaf.toJSON())),
230
205
  };
231
- const node = interaction.attribution.interactionTargetElement;
232
- if (node) {
233
- event.nodeIndex = establishNodeIndex(node);
206
+ const target = interaction.attribution.interactionTarget;
207
+ if (target) {
208
+ event.nodeIndex = Number(target);
234
209
  }
235
210
  sendEventToDevTools(event);
211
+ }
212
+
213
+ onINP(metric => {
214
+ const event: Spec.InpChangeEvent = {
215
+ name: 'INP',
216
+ value: metric.value as Trace.Types.Timing.Milli,
217
+ phases: {
218
+ inputDelay: metric.attribution.inputDelay as Trace.Types.Timing.Milli,
219
+ processingDuration: metric.attribution.processingDuration as Trace.Types.Timing.Milli,
220
+ presentationDelay: metric.attribution.presentationDelay as Trace.Types.Timing.Milli,
221
+ },
222
+ startTime: metric.entries[0].startTime,
223
+ entryGroupId: metric.entries[0].interactionId as Spec.InteractionEntryGroupId,
224
+ interactionType: metric.attribution.interactionType,
225
+ };
226
+ sendEventToDevTools(event);
227
+ }, {
228
+ reportAllChanges: true,
229
+ durationThreshold: 0,
230
+ onEachInteraction,
231
+ generateTarget(el) {
232
+ if (el) {
233
+ return String(establishNodeIndex(el));
234
+ }
235
+
236
+ return undefined;
237
+ },
236
238
  });
237
239
 
238
240
  onEachLayoutShift(layoutShift => {
@@ -7,9 +7,6 @@ import * as Host from '../../core/host/host.js';
7
7
  import * as Platform from '../../core/platform/platform.js';
8
8
  import * as SDK from '../../core/sdk/sdk.js';
9
9
  import * as Protocol from '../../generated/protocol.js';
10
- // TODO(crbug.com/442509324): remove UI dependency
11
- // eslint-disable-next-line rulesdir/no-imports-in-directory
12
- import * as UI from '../../ui/legacy/legacy.js';
13
10
  import * as Breakpoints from '../breakpoints/breakpoints.js';
14
11
  import * as TextUtils from '../text_utils/text_utils.js';
15
12
  import * as Workspace from '../workspace/workspace.js';
@@ -400,8 +397,7 @@ export class NetworkPersistenceManager extends Common.ObjectWrapper.ObjectWrappe
400
397
  // No overrides folder, set it up
401
398
  if (this.#shouldPromptSaveForOverridesDialog(uiSourceCode)) {
402
399
  Host.userMetrics.actionTaken(Host.UserMetrics.Action.OverrideContentContextMenuSetup);
403
- await new Promise<void>(
404
- resolve => UI.InspectorView.InspectorView.instance().displaySelectOverrideFolderInfobar(resolve));
400
+ await new Promise<void>(resolve => this.dispatchEventToListeners(Events.LOCAL_OVERRIDES_REQUESTED, resolve));
405
401
  await IsolatedFileSystemManager.instance().addFileSystem('overrides');
406
402
  }
407
403
 
@@ -980,12 +976,14 @@ export const enum Events {
980
976
  PROJECT_CHANGED = 'ProjectChanged',
981
977
  REQUEST_FOR_HEADER_OVERRIDES_FILE_CHANGED = 'RequestsForHeaderOverridesFileChanged',
982
978
  LOCAL_OVERRIDES_PROJECT_UPDATED = 'LocalOverridesProjectUpdated',
979
+ LOCAL_OVERRIDES_REQUESTED = 'LocalOverridesRequested',
983
980
  }
984
981
 
985
982
  export interface EventTypes {
986
983
  [Events.PROJECT_CHANGED]: Workspace.Workspace.Project|null;
987
984
  [Events.REQUEST_FOR_HEADER_OVERRIDES_FILE_CHANGED]: Workspace.UISourceCode.UISourceCode;
988
985
  [Events.LOCAL_OVERRIDES_PROJECT_UPDATED]: boolean;
986
+ [Events.LOCAL_OVERRIDES_REQUESTED]: () => void;
989
987
  }
990
988
 
991
989
  export interface HeaderOverride {
@@ -6,14 +6,12 @@ import * as Common from '../../core/common/common.js';
6
6
  import * as Host from '../../core/host/host.js';
7
7
  import * as Platform from '../../core/platform/platform.js';
8
8
  import * as SDK from '../../core/sdk/sdk.js';
9
- import * as Components from '../../ui/legacy/components/utils/utils.js';
10
9
  import * as Bindings from '../bindings/bindings.js';
11
10
  import * as BreakpointManager from '../breakpoints/breakpoints.js';
12
11
  import * as TextUtils from '../text_utils/text_utils.js';
13
12
  import * as Workspace from '../workspace/workspace.js';
14
13
 
15
14
  import {Automapping, type AutomappingStatus} from './Automapping.js';
16
- import {LinkDecorator} from './PersistenceUtils.js';
17
15
 
18
16
  let persistenceInstance: PersistenceImpl;
19
17
 
@@ -33,9 +31,6 @@ export class PersistenceImpl extends Common.ObjectWrapper.ObjectWrapper<EventTyp
33
31
  this.#breakpointManager = breakpointManager;
34
32
  this.#breakpointManager.addUpdateBindingsCallback(this.#setupBindings.bind(this));
35
33
 
36
- const linkDecorator = new LinkDecorator(this);
37
- Components.Linkifier.Linkifier.setLinkDecorator(linkDecorator);
38
-
39
34
  this.#mapping = new Automapping(this.#workspace, this.onStatusAdded.bind(this), this.onStatusRemoved.bind(this));
40
35
  }
41
36
 
@@ -4,13 +4,6 @@
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
- import * as SDK from '../../core/sdk/sdk.js';
8
- import * as Workspace from '../../models/workspace/workspace.js';
9
- // TODO(crbug.com/442509324): remove UI dependency
10
- // eslint-disable-next-line rulesdir/no-imports-in-directory
11
- import * as UI from '../../ui/legacy/legacy.js';
12
-
13
- import type * as Persistence from './persistence.js';
14
7
 
15
8
  const UIStrings = {
16
9
  /**
@@ -50,15 +43,6 @@ const UIStrings = {
50
43
  const str_ = i18n.i18n.registerUIStrings('models/persistence/persistence-meta.ts', UIStrings);
51
44
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
52
45
 
53
- let loadedPersistenceModule: (typeof Persistence|undefined);
54
-
55
- async function loadPersistenceModule(): Promise<typeof Persistence> {
56
- if (!loadedPersistenceModule) {
57
- loadedPersistenceModule = await import('./persistence.js');
58
- }
59
- return loadedPersistenceModule;
60
- }
61
-
62
46
  Common.Settings.registerSettingExtension({
63
47
  category: Common.Settings.SettingCategory.PERSISTENCE,
64
48
  title: i18nLazyString(UIStrings.enableLocalOverrides),
@@ -83,18 +67,3 @@ Common.Settings.registerSettingExtension({
83
67
  },
84
68
  ],
85
69
  });
86
-
87
- UI.ContextMenu.registerProvider({
88
- contextTypes() {
89
- return [
90
- Workspace.UISourceCode.UISourceCode,
91
- SDK.Resource.Resource,
92
- SDK.NetworkRequest.NetworkRequest,
93
- ];
94
- },
95
- async loadProvider() {
96
- const Persistence = await loadPersistenceModule();
97
- return new Persistence.PersistenceActions.ContextMenuProvider();
98
- },
99
- experiment: undefined,
100
- });
@@ -5,27 +5,21 @@
5
5
  import * as Automapping from './Automapping.js';
6
6
  import * as AutomaticFileSystemManager from './AutomaticFileSystemManager.js';
7
7
  import * as AutomaticFileSystemWorkspaceBinding from './AutomaticFileSystemWorkspaceBinding.js';
8
- import * as EditFileSystemView from './EditFileSystemView.js';
9
8
  import * as FileSystemWorkspaceBinding from './FileSystemWorkspaceBinding.js';
10
9
  import * as IsolatedFileSystem from './IsolatedFileSystem.js';
11
10
  import * as IsolatedFileSystemManager from './IsolatedFileSystemManager.js';
12
11
  import * as NetworkPersistenceManager from './NetworkPersistenceManager.js';
13
- import * as PersistenceActions from './PersistenceActions.js';
14
12
  import * as Persistence from './PersistenceImpl.js';
15
- import * as PersistenceUtils from './PersistenceUtils.js';
16
13
  import * as PlatformFileSystem from './PlatformFileSystem.js';
17
14
 
18
15
  export {
19
16
  Automapping,
20
17
  AutomaticFileSystemManager,
21
18
  AutomaticFileSystemWorkspaceBinding,
22
- EditFileSystemView,
23
19
  FileSystemWorkspaceBinding,
24
20
  IsolatedFileSystem,
25
21
  IsolatedFileSystemManager,
26
22
  NetworkPersistenceManager,
27
23
  Persistence,
28
- PersistenceActions,
29
- PersistenceUtils,
30
24
  PlatformFileSystem,
31
25
  };
@@ -3,6 +3,7 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
+ import * as Root from '../../core/root/root.js';
6
7
  import * as SDK from '../../core/sdk/sdk.js';
7
8
  import * as Protocol from '../../generated/protocol.js';
8
9
  import * as Bindings from '../bindings/bindings.js';
@@ -48,16 +49,7 @@ scopeTree:
48
49
  return null;
49
50
  }
50
51
 
51
- const text = await getTextFor(script);
52
- if (!text) {
53
- return null;
54
- }
55
-
56
- const scopeTree = await SDK.ScopeTreeCache.scopeTreeForScript(script);
57
- if (!scopeTree) {
58
- return null;
59
- }
60
- return {scopeTree, text};
52
+ return await SDK.ScopeTreeCache.scopeTreeForScript(script);
61
53
  };
62
54
 
63
55
  /**
@@ -379,7 +371,9 @@ export const resolveScopeChain =
379
371
  return scopeChain;
380
372
  }
381
373
 
382
- scopeChain = callFrame.script.sourceMap()?.resolveScopeChain(callFrame);
374
+ scopeChain = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.USE_SOURCE_MAP_SCOPES) ?
375
+ callFrame.script.sourceMap()?.resolveScopeChain(callFrame) :
376
+ null;
383
377
  if (scopeChain) {
384
378
  return scopeChain;
385
379
  }
@@ -17,6 +17,15 @@ export interface RawFrame {
17
17
  readonly columnNumber: number;
18
18
  }
19
19
 
20
+ /**
21
+ * @returns whether the frame is a V8 builtin frame e.g. Array.map. Builtin frames
22
+ * have neither source position nor script or URL. They only have a name.
23
+ */
24
+ export function isBuiltinFrame(rawFrame: RawFrame): boolean {
25
+ return rawFrame.lineNumber === -1 && rawFrame.columnNumber === -1 && !Boolean(rawFrame.scriptId) &&
26
+ !Boolean(rawFrame.url);
27
+ }
28
+
20
29
  interface FrameNodeBase<ChildT, ParentT> {
21
30
  readonly parent: ParentT;
22
31
  readonly children: ChildT[];
@@ -50,7 +50,7 @@ export interface Trace {
50
50
  }
51
51
  export type ResourcePriority = ('VeryLow'|'Low'|'Medium'|'High'|'VeryHigh');
52
52
  export type ResourceType = keyof typeof NetworkRequestTypes;
53
- type InitiatorType = ('parser'|'script'|'preload'|'SignedExchange'|'preflight'|'other');
53
+ type InitiatorType = ('parser'|'script'|'preload'|'SignedExchange'|'preflight'|'FedCM'|'other');
54
54
  export type ResourceTiming = Protocol.Network.ResourceTiming;
55
55
  export interface CallStack {
56
56
  callFrames: Array<{
@@ -188,6 +188,7 @@ export class AXBreadcrumbsPane extends AccessibilitySubPane {
188
188
  }
189
189
 
190
190
  override willHide(): void {
191
+ super.willHide();
191
192
  this.setPreselectedBreadcrumb(null);
192
193
  }
193
194
 
@@ -122,6 +122,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
122
122
  }
123
123
 
124
124
  override willHide(): void {
125
+ super.willHide();
125
126
  SDK.TargetManager.TargetManager.instance().removeModelListener(
126
127
  SDK.DOMModel.DOMModel, SDK.DOMModel.Events.AttrModified, this.onNodeChange, this);
127
128
  SDK.TargetManager.TargetManager.instance().removeModelListener(