chrome-devtools-frontend 1.0.1526630 → 1.0.1528866

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 (319) hide show
  1. package/docs/ui_engineering.md +159 -0
  2. package/eslint.config.mjs +6 -1
  3. package/front_end/core/i18n/i18nImpl.ts +6 -1
  4. package/front_end/core/protocol_client/protocol_client.ts +1 -1
  5. package/front_end/core/root/Runtime.ts +28 -4
  6. package/front_end/core/sdk/CSSMatchedStyles.ts +50 -7
  7. package/front_end/core/sdk/CSSRule.ts +35 -6
  8. package/front_end/core/sdk/Connections.ts +2 -1
  9. package/front_end/core/sdk/DOMModel.ts +4 -0
  10. package/front_end/core/sdk/DebuggerModel.ts +5 -1
  11. package/front_end/core/sdk/NetworkManager.ts +214 -31
  12. package/front_end/core/sdk/PreloadingModel.ts +82 -17
  13. package/front_end/core/sdk/RehydratingConnection.snapshot.txt +1 -1
  14. package/front_end/core/sdk/RehydratingConnection.ts +29 -4
  15. package/front_end/core/sdk/ScopeTreeCache.ts +8 -3
  16. package/front_end/core/sdk/SourceMap.ts +37 -11
  17. package/front_end/core/sdk/SourceMapManager.ts +13 -2
  18. package/front_end/core/sdk/SourceMapScopesInfo.ts +17 -0
  19. package/front_end/core/sdk/TargetManager.ts +0 -22
  20. package/front_end/core/sdk/TraceObject.ts +8 -7
  21. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +81 -0
  22. package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
  23. package/front_end/entrypoints/main/GlobalAiButton.ts +1 -0
  24. package/front_end/entrypoints/main/MainImpl.ts +20 -25
  25. package/front_end/generated/InspectorBackendCommands.js +3 -2
  26. package/front_end/generated/protocol.ts +17 -3
  27. package/front_end/models/ai_assistance/BuiltInAi.ts +111 -0
  28. package/front_end/models/ai_assistance/ai_assistance.ts +53 -24
  29. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +105 -0
  30. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +6 -1
  31. package/front_end/models/extensions/ExtensionView.ts +3 -0
  32. package/front_end/models/javascript_metadata/NativeFunctions.js +23 -27
  33. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +31 -29
  34. package/front_end/models/persistence/EditFileSystemView.ts +1 -0
  35. package/front_end/models/source_map_scopes/NamesResolver.ts +5 -11
  36. package/front_end/models/stack_trace/Trie.ts +9 -0
  37. package/front_end/models/trace/lantern/types/Lantern.ts +1 -1
  38. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -0
  39. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -0
  40. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +120 -113
  41. package/front_end/panels/ai_assistance/PatchWidget.ts +9 -8
  42. package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +2 -0
  43. package/front_end/panels/ai_assistance/components/ChatView.ts +29 -29
  44. package/front_end/panels/ai_assistance/components/UserActionRow.ts +1 -0
  45. package/front_end/panels/animation/AnimationTimeline.ts +1 -0
  46. package/front_end/panels/application/CookieItemsView.ts +1 -0
  47. package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -0
  48. package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -0
  49. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +11 -5
  50. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +2 -2
  51. package/front_end/panels/application/preloading/components/PreloadingString.ts +7 -5
  52. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +22 -10
  53. package/front_end/panels/changes/CombinedDiffView.ts +1 -0
  54. package/front_end/panels/console/ConsoleInsightTeaser.ts +106 -0
  55. package/front_end/panels/console/ConsolePanel.ts +2 -0
  56. package/front_end/panels/console/ConsolePrompt.ts +12 -2
  57. package/front_end/panels/console/ConsoleSidebar.ts +1 -1
  58. package/front_end/panels/console/ConsoleView.ts +12 -0
  59. package/front_end/panels/console/ConsoleViewMessage.ts +27 -0
  60. package/front_end/panels/{explain → console}/PromptBuilder.ts +12 -7
  61. package/front_end/panels/console/console.ts +6 -0
  62. package/front_end/panels/console/consoleInsightTeaser.css +55 -0
  63. package/front_end/panels/coverage/CoverageListView.ts +29 -11
  64. package/front_end/panels/coverage/CoverageView.ts +292 -284
  65. package/front_end/panels/coverage/coverageView.css +17 -0
  66. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -0
  67. package/front_end/panels/elements/LayoutPane.ts +1 -0
  68. package/front_end/panels/elements/NodeStackTraceWidget.ts +1 -0
  69. package/front_end/panels/elements/StylePropertyTreeElement.ts +5 -1
  70. package/front_end/panels/elements/stylePropertiesTreeOutline.css +17 -0
  71. package/front_end/panels/emulation/DeviceModeView.ts +2 -0
  72. package/front_end/panels/explain/ActionDelegate.ts +1 -2
  73. package/front_end/panels/explain/components/ConsoleInsight.ts +14 -12
  74. package/front_end/panels/explain/explain.ts +0 -1
  75. package/front_end/panels/js_timeline/js_timeline-meta.ts +1 -1
  76. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -0
  77. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -0
  78. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -0
  79. package/front_end/panels/media/MainView.ts +1 -0
  80. package/front_end/panels/media/TickingFlameChart.ts +2 -0
  81. package/front_end/panels/network/BlockedURLsPane.ts +111 -85
  82. package/front_end/panels/network/EventSourceMessagesView.ts +1 -0
  83. package/front_end/panels/network/NetworkItemView.ts +1 -0
  84. package/front_end/panels/network/NetworkLogView.ts +9 -7
  85. package/front_end/panels/network/NetworkOverview.ts +1 -0
  86. package/front_end/panels/network/RequestCookiesView.ts +1 -0
  87. package/front_end/panels/network/RequestHTMLView.ts +1 -0
  88. package/front_end/panels/network/RequestInitiatorView.ts +1 -0
  89. package/front_end/panels/network/RequestPayloadView.ts +1 -0
  90. package/front_end/panels/network/RequestPreviewView.ts +1 -0
  91. package/front_end/panels/network/RequestResponseView.ts +1 -0
  92. package/front_end/panels/network/RequestTimingView.ts +2 -0
  93. package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -0
  94. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -0
  95. package/front_end/panels/network/components/RequestHeadersView.ts +2 -0
  96. package/front_end/panels/network/components/RequestTrustTokensView.ts +2 -0
  97. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -0
  98. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +2 -0
  99. package/front_end/panels/profiler/HeapSnapshotView.ts +7 -0
  100. package/front_end/panels/profiler/IsolateSelector.ts +1 -0
  101. package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -0
  102. package/front_end/panels/profiler/ProfileView.ts +1 -0
  103. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -0
  104. package/front_end/panels/recorder/RecorderPanel.ts +2 -0
  105. package/front_end/panels/screencast/ScreencastView.ts +1 -0
  106. package/front_end/panels/search/SearchView.ts +1 -0
  107. package/front_end/panels/settings/AISettingsTab.ts +3 -3
  108. package/front_end/panels/settings/WorkspaceSettingsTab.ts +2 -0
  109. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
  110. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +12 -0
  111. package/front_end/panels/sources/BreakpointsView.ts +1 -0
  112. package/front_end/panels/sources/DebuggerPlugin.ts +1 -0
  113. package/front_end/panels/sources/UISourceCodeFrame.ts +17 -2
  114. package/front_end/panels/timeline/README.md +2 -2
  115. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
  116. package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -3
  117. package/front_end/panels/timeline/TimelineLayersView.ts +1 -0
  118. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +114 -37
  119. package/front_end/panels/timeline/TimelinePanel.ts +43 -62
  120. package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
  121. package/front_end/panels/timeline/components/LiveMetricsView.ts +4 -8
  122. package/front_end/panels/timeline/components/Sidebar.ts +2 -0
  123. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
  124. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +7 -7
  125. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -1
  126. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -4
  127. package/front_end/panels/web_audio/WebAudioView.ts +1 -0
  128. package/front_end/third_party/chromium/README.chromium +1 -1
  129. package/front_end/third_party/lighthouse/README.chromium +2 -2
  130. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1530 -2426
  131. package/front_end/third_party/lighthouse/locales/ar-XB.json +107 -455
  132. package/front_end/third_party/lighthouse/locales/ar.json +107 -455
  133. package/front_end/third_party/lighthouse/locales/bg.json +96 -444
  134. package/front_end/third_party/lighthouse/locales/ca.json +96 -444
  135. package/front_end/third_party/lighthouse/locales/cs.json +96 -444
  136. package/front_end/third_party/lighthouse/locales/da.json +96 -444
  137. package/front_end/third_party/lighthouse/locales/de.json +96 -444
  138. package/front_end/third_party/lighthouse/locales/el.json +96 -444
  139. package/front_end/third_party/lighthouse/locales/en-GB.json +96 -444
  140. package/front_end/third_party/lighthouse/locales/en-US.json +116 -467
  141. package/front_end/third_party/lighthouse/locales/en-XA.json +93 -441
  142. package/front_end/third_party/lighthouse/locales/en-XL.json +116 -467
  143. package/front_end/third_party/lighthouse/locales/es-419.json +96 -444
  144. package/front_end/third_party/lighthouse/locales/es.json +96 -444
  145. package/front_end/third_party/lighthouse/locales/fi.json +96 -444
  146. package/front_end/third_party/lighthouse/locales/fil.json +96 -444
  147. package/front_end/third_party/lighthouse/locales/fr.json +96 -444
  148. package/front_end/third_party/lighthouse/locales/he.json +118 -466
  149. package/front_end/third_party/lighthouse/locales/hi.json +96 -444
  150. package/front_end/third_party/lighthouse/locales/hr.json +100 -448
  151. package/front_end/third_party/lighthouse/locales/hu.json +96 -444
  152. package/front_end/third_party/lighthouse/locales/id.json +96 -444
  153. package/front_end/third_party/lighthouse/locales/it.json +96 -444
  154. package/front_end/third_party/lighthouse/locales/ja.json +96 -444
  155. package/front_end/third_party/lighthouse/locales/ko.json +97 -445
  156. package/front_end/third_party/lighthouse/locales/lt.json +96 -444
  157. package/front_end/third_party/lighthouse/locales/lv.json +97 -445
  158. package/front_end/third_party/lighthouse/locales/nl.json +96 -444
  159. package/front_end/third_party/lighthouse/locales/no.json +96 -444
  160. package/front_end/third_party/lighthouse/locales/pl.json +96 -444
  161. package/front_end/third_party/lighthouse/locales/pt-PT.json +96 -444
  162. package/front_end/third_party/lighthouse/locales/pt.json +97 -445
  163. package/front_end/third_party/lighthouse/locales/ro.json +97 -445
  164. package/front_end/third_party/lighthouse/locales/ru.json +96 -444
  165. package/front_end/third_party/lighthouse/locales/sk.json +96 -444
  166. package/front_end/third_party/lighthouse/locales/sl.json +96 -444
  167. package/front_end/third_party/lighthouse/locales/sr-Latn.json +96 -444
  168. package/front_end/third_party/lighthouse/locales/sr.json +96 -444
  169. package/front_end/third_party/lighthouse/locales/sv.json +96 -444
  170. package/front_end/third_party/lighthouse/locales/ta.json +96 -444
  171. package/front_end/third_party/lighthouse/locales/te.json +97 -445
  172. package/front_end/third_party/lighthouse/locales/th.json +96 -444
  173. package/front_end/third_party/lighthouse/locales/tr.json +96 -444
  174. package/front_end/third_party/lighthouse/locales/uk.json +96 -444
  175. package/front_end/third_party/lighthouse/locales/vi.json +96 -444
  176. package/front_end/third_party/lighthouse/locales/zh-HK.json +96 -444
  177. package/front_end/third_party/lighthouse/locales/zh-TW.json +97 -445
  178. package/front_end/third_party/lighthouse/locales/zh.json +96 -444
  179. package/front_end/third_party/lighthouse/report/bundle.d.ts +8 -14
  180. package/front_end/third_party/lighthouse/report/bundle.js +10 -49
  181. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
  182. package/front_end/third_party/web-vitals/README.chromium +5 -8
  183. package/front_end/third_party/web-vitals/package/README.md +191 -152
  184. package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.d.ts +0 -1
  185. package/front_end/third_party/web-vitals/package/dist/modules/attribution/index.js +0 -1
  186. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.d.ts +2 -2
  187. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.js +45 -26
  188. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.d.ts +2 -2
  189. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +3 -3
  190. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +10 -10
  191. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +307 -206
  192. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
  193. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +69 -49
  194. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.d.ts +2 -2
  195. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +2 -2
  196. package/front_end/third_party/web-vitals/package/dist/modules/index.d.ts +0 -1
  197. package/front_end/third_party/web-vitals/package/dist/modules/index.js +0 -1
  198. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +33 -0
  199. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +111 -0
  200. package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.d.ts +4 -0
  201. package/front_end/third_party/web-vitals/package/dist/modules/{attribution/deprecated.js → lib/LCPEntryManager.js} +6 -7
  202. package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.d.ts +6 -0
  203. package/front_end/third_party/web-vitals/package/dist/modules/lib/LayoutShiftManager.js +44 -0
  204. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.js +1 -1
  205. package/front_end/third_party/web-vitals/package/dist/modules/lib/generateUniqueID.js +1 -1
  206. package/front_end/third_party/web-vitals/package/dist/modules/lib/getActivationStart.js +1 -1
  207. package/front_end/third_party/web-vitals/package/dist/modules/lib/getNavigationEntry.js +5 -7
  208. package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.d.ts +1 -1
  209. package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.js +9 -12
  210. package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.d.ts +1 -0
  211. package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +52 -33
  212. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +0 -2
  213. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.js +2 -2
  214. package/front_end/third_party/web-vitals/package/dist/modules/lib/initUnique.d.ts +6 -0
  215. package/front_end/third_party/web-vitals/package/dist/modules/{deprecated.js → lib/initUnique.js} +11 -4
  216. package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +3 -6
  217. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +6 -6
  218. package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.d.ts → whenIdleOrHidden.d.ts} +1 -1
  219. package/front_end/third_party/web-vitals/package/dist/modules/lib/{whenIdle.js → whenIdleOrHidden.js} +10 -8
  220. package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +17 -35
  221. package/front_end/third_party/web-vitals/package/dist/modules/onFCP.js +3 -5
  222. package/front_end/third_party/web-vitals/package/dist/modules/onINP.d.ts +9 -7
  223. package/front_end/third_party/web-vitals/package/dist/modules/onINP.js +27 -19
  224. package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +33 -26
  225. package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.js +2 -4
  226. package/front_end/third_party/web-vitals/package/dist/modules/types/base.d.ts +6 -5
  227. package/front_end/third_party/web-vitals/package/dist/modules/types/cls.d.ts +5 -3
  228. package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +80 -33
  229. package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +6 -2
  230. package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +28 -4
  231. package/front_end/third_party/web-vitals/package/dist/modules/types.js +0 -1
  232. package/front_end/third_party/web-vitals/package/package.json +4 -10
  233. package/front_end/third_party/web-vitals/package/src/attribution/index.ts +0 -1
  234. package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +58 -33
  235. package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +4 -4
  236. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +382 -258
  237. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +96 -69
  238. package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +3 -3
  239. package/front_end/third_party/web-vitals/package/src/index.ts +0 -1
  240. package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +146 -0
  241. package/front_end/third_party/web-vitals/package/src/{attribution/deprecated.ts → lib/LCPEntryManager.ts} +6 -9
  242. package/front_end/third_party/web-vitals/package/src/lib/LayoutShiftManager.ts +50 -0
  243. package/front_end/third_party/web-vitals/package/src/lib/bindReporter.ts +1 -1
  244. package/front_end/third_party/web-vitals/package/src/lib/generateUniqueID.ts +1 -1
  245. package/front_end/third_party/web-vitals/package/src/lib/getActivationStart.ts +1 -1
  246. package/front_end/third_party/web-vitals/package/src/lib/getNavigationEntry.ts +5 -8
  247. package/front_end/third_party/web-vitals/package/src/lib/getSelector.ts +12 -12
  248. package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +57 -35
  249. package/front_end/third_party/web-vitals/package/src/lib/initMetric.ts +2 -2
  250. package/front_end/third_party/web-vitals/package/src/{deprecated.ts → lib/initUnique.ts} +14 -8
  251. package/front_end/third_party/web-vitals/package/src/lib/observe.ts +3 -11
  252. package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +12 -6
  253. package/front_end/third_party/web-vitals/package/src/lib/{whenIdle.ts → whenIdleOrHidden.ts} +10 -8
  254. package/front_end/third_party/web-vitals/package/src/onCLS.ts +17 -38
  255. package/front_end/third_party/web-vitals/package/src/onFCP.ts +3 -6
  256. package/front_end/third_party/web-vitals/package/src/onINP.ts +33 -28
  257. package/front_end/third_party/web-vitals/package/src/onLCP.ts +36 -29
  258. package/front_end/third_party/web-vitals/package/src/onTTFB.ts +2 -5
  259. package/front_end/third_party/web-vitals/package/src/types/base.ts +5 -5
  260. package/front_end/third_party/web-vitals/package/src/types/cls.ts +5 -3
  261. package/front_end/third_party/web-vitals/package/src/types/inp.ts +88 -33
  262. package/front_end/third_party/web-vitals/package/src/types/lcp.ts +6 -2
  263. package/front_end/third_party/web-vitals/package/src/types.ts +47 -4
  264. package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +75 -0
  265. package/front_end/third_party/web-vitals/rebuild.sh +32 -18
  266. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +5 -10
  267. package/front_end/third_party/web-vitals/web-vitals.ts +0 -2
  268. package/front_end/ui/components/docs/console_insight/basic.ts +3 -2
  269. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +2 -0
  270. package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
  271. package/front_end/ui/legacy/InspectorView.ts +2 -0
  272. package/front_end/ui/legacy/SplitWidget.ts +2 -0
  273. package/front_end/ui/legacy/TabbedPane.ts +1 -0
  274. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -0
  275. package/front_end/ui/legacy/UIUtils.ts +8 -19
  276. package/front_end/ui/legacy/ViewManager.ts +1 -0
  277. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +7 -20
  278. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -0
  279. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +1 -0
  280. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +1 -0
  281. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +1 -0
  282. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -0
  283. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
  284. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
  285. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
  286. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -0
  287. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +2 -0
  288. package/front_end/ui/visual_logging/KnownContextValues.ts +17 -0
  289. package/mcp/README.md +7 -0
  290. package/mcp/mcp.ts +8 -0
  291. package/package.json +1 -1
  292. package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +0 -34
  293. package/front_end/third_party/web-vitals/package/attribution.d.ts +0 -16
  294. package/front_end/third_party/web-vitals/package/attribution.js +0 -18
  295. package/front_end/third_party/web-vitals/package/dist/modules/attribution/deprecated.d.ts +0 -7
  296. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.d.ts +0 -11
  297. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFID.js +0 -46
  298. package/front_end/third_party/web-vitals/package/dist/modules/deprecated.d.ts +0 -5
  299. package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.d.ts +0 -31
  300. package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +0 -107
  301. package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.d.ts +0 -1
  302. package/front_end/third_party/web-vitals/package/dist/modules/lib/onHidden.js +0 -22
  303. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.d.ts +0 -7
  304. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/firstInputPolyfill.js +0 -147
  305. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.d.ts +0 -1
  306. package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/getFirstHiddenTimePolyfill.js +0 -25
  307. package/front_end/third_party/web-vitals/package/dist/modules/onFID.d.ts +0 -13
  308. package/front_end/third_party/web-vitals/package/dist/modules/onFID.js +0 -70
  309. package/front_end/third_party/web-vitals/package/dist/modules/types/fid.d.ts +0 -46
  310. package/front_end/third_party/web-vitals/package/dist/modules/types/fid.js +0 -16
  311. package/front_end/third_party/web-vitals/package/src/attribution/onFID.ts +0 -62
  312. package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +0 -139
  313. package/front_end/third_party/web-vitals/package/src/lib/onHidden.ts +0 -23
  314. package/front_end/third_party/web-vitals/package/src/lib/polyfills/firstInputPolyfill.ts +0 -174
  315. package/front_end/third_party/web-vitals/package/src/onFID.ts +0 -105
  316. package/front_end/third_party/web-vitals/package/src/types/fid.ts +0 -65
  317. package/front_end/ui/components/text_editor/textEditor.css +0 -18
  318. package/front_end/ui/legacy/inlineButton.css +0 -22
  319. /package/front_end/entrypoints/{rehydrated_devtools_app/rehydrated_devtools_app.ts → trace_app/trace_app.ts} +0 -0
@@ -0,0 +1,111 @@
1
+ // Copyright 2025 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
+ import * as Root from '../../core/root/root.js';
6
+
7
+ let builtInAiInstance: BuiltInAi|undefined;
8
+ let availability = '';
9
+
10
+ const RESPONSE_SCHEMA = {
11
+ type: 'object',
12
+ properties: {
13
+ header: {type: 'string', maxLength: 60, description: 'Label for the console message which is being analyzed'},
14
+ // No hard `maxLength` for `explanation`. This would often result in responses which are cut off in the middle of a
15
+ // sentence. Instead provide a soft `maxLength` via the prompt.
16
+ explanation: {
17
+ type: 'string',
18
+ description: 'Actual explanation of the console message being analyzed',
19
+ },
20
+ },
21
+ required: ['header', 'explanation'],
22
+ additionalProperties: false,
23
+ };
24
+
25
+ interface LanguageModel {
26
+ promptStreaming: (arg0: string, opts?: {
27
+ responseConstraint: Object,
28
+ signal?: AbortSignal,
29
+ }) => AsyncGenerator<string>;
30
+ clone: () => LanguageModel;
31
+ destroy: () => void;
32
+ }
33
+
34
+ export class BuiltInAi {
35
+ #consoleInsightsSession: LanguageModel;
36
+
37
+ static async isAvailable(): Promise<boolean> {
38
+ if (!Root.Runtime.hostConfig.devToolsAiPromptApi?.enabled) {
39
+ return false;
40
+ }
41
+ // @ts-expect-error
42
+ availability = await window.LanguageModel.availability({expectedOutputs: [{type: 'text', languages: ['en']}]});
43
+ return availability === 'available';
44
+ }
45
+
46
+ static cachedIsAvailable(): boolean {
47
+ return availability === 'available';
48
+ }
49
+
50
+ private constructor(consoleInsightsSession: LanguageModel) {
51
+ this.#consoleInsightsSession = consoleInsightsSession;
52
+ }
53
+
54
+ static async instance(): Promise<BuiltInAi|undefined> {
55
+ if (builtInAiInstance === undefined) {
56
+ if (!(await BuiltInAi.isAvailable())) {
57
+ return undefined;
58
+ }
59
+ // @ts-expect-error
60
+ const consoleInsightsSession = await window.LanguageModel.create({
61
+ initialPrompts: [{
62
+ role: 'system',
63
+ content: `
64
+ You are an expert web developer. Your goal is to help a human web developer who
65
+ is using Chrome DevTools to debug a web site or web app. The Chrome DevTools
66
+ console is showing a message which is either an error or a warning. Please help
67
+ the user understand the problematic console message.
68
+
69
+ Your instructions are as follows:
70
+ - Explain the reason why the error or warning is showing up.
71
+ - The explanation has a maximum length of 200 characters. Anything beyond this
72
+ length will be cut off. Make sure that your explanation is at most 200 characters long.
73
+ - Your explanation should not end in the middle of a sentence.
74
+ - Your explanation should consist of a single paragraph only. Do not include any
75
+ headings or code blocks. Only write a single paragraph of text.
76
+ - Your response should be concise and to the point. Avoid lengthy explanations
77
+ or unnecessary details.
78
+ `
79
+ }],
80
+ expectedInputs: [{
81
+ type: 'text',
82
+ languages: ['en'],
83
+ }],
84
+ expectedOutputs: [{
85
+ type: 'text',
86
+ languages: ['en'],
87
+ }],
88
+ }) as LanguageModel;
89
+ builtInAiInstance = new BuiltInAi(consoleInsightsSession);
90
+ }
91
+ return builtInAiInstance;
92
+ }
93
+
94
+ static removeInstance(): void {
95
+ builtInAiInstance = undefined;
96
+ }
97
+
98
+ async * getConsoleInsight(prompt: string, abortController: AbortController): AsyncGenerator<string> {
99
+ // Clone the session to start a fresh conversation for each answer. Otherwise
100
+ // previous dialog would pollute the context resulting in worse answers.
101
+ const session = await this.#consoleInsightsSession.clone();
102
+ const stream = session.promptStreaming(prompt, {
103
+ signal: abortController.signal,
104
+ responseConstraint: RESPONSE_SCHEMA,
105
+ });
106
+ for await (const chunk of stream) {
107
+ yield chunk;
108
+ }
109
+ session.destroy();
110
+ }
111
+ }
@@ -2,27 +2,56 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- export * from './debug.js';
6
- export * from './AgentProject.js';
7
- export * from './agents/AiAgent.js';
8
- export * from './agents/FileAgent.js';
9
- export * from './agents/NetworkAgent.js';
10
- export * from './agents/PerformanceAgent.js';
11
- export * from './agents/PerformanceAnnotationsAgent.js';
12
- export * from './agents/StylingAgent.js';
13
- export * from './agents/PatchAgent.js';
14
- export * from './AiHistoryStorage.js';
15
- export * from './AiUtils.js';
16
- export * from './ChangeManager.js';
17
- export * from './EvaluateAction.js';
18
- export * from './ExtensionScope.js';
19
- export * from './data_formatters/FileFormatter.js';
20
- export * from './data_formatters/NetworkRequestFormatter.js';
21
- export * from './data_formatters/PerformanceInsightFormatter.js';
22
- export * from './data_formatters/PerformanceTraceFormatter.js';
23
- export * from './data_formatters/UnitFormatters.js';
24
- export * from './ConversationHandler.js';
25
- export * from './injected.js';
26
- export * from './performance/AICallTree.js';
27
- export * from './performance/AIContext.js';
28
- export * from './performance/AIQueries.js';
5
+ import * as AgentProject from './AgentProject.js';
6
+ import * as AiAgent from './agents/AiAgent.js';
7
+ import * as FileAgent from './agents/FileAgent.js';
8
+ import * as NetworkAgent from './agents/NetworkAgent.js';
9
+ import * as PatchAgent from './agents/PatchAgent.js';
10
+ import * as PerformanceAgent from './agents/PerformanceAgent.js';
11
+ import * as PerformanceAnnotationsAgent from './agents/PerformanceAnnotationsAgent.js';
12
+ import * as StylingAgent from './agents/StylingAgent.js';
13
+ import * as AiHistoryStorage from './AiHistoryStorage.js';
14
+ import * as AiUtils from './AiUtils.js';
15
+ import * as BuiltInAi from './BuiltInAi.js';
16
+ import * as ChangeManager from './ChangeManager.js';
17
+ import * as ConversationHandler from './ConversationHandler.js';
18
+ import * as FileFormatter from './data_formatters/FileFormatter.js';
19
+ import * as NetworkRequestFormatter from './data_formatters/NetworkRequestFormatter.js';
20
+ import * as PerformanceInsightFormatter from './data_formatters/PerformanceInsightFormatter.js';
21
+ import * as PerformanceTraceFormatter from './data_formatters/PerformanceTraceFormatter.js';
22
+ import * as UnitFormatters from './data_formatters/UnitFormatters.js';
23
+ import * as Debug from './debug.js';
24
+ import * as EvaluateAction from './EvaluateAction.js';
25
+ import * as ExtensionScope from './ExtensionScope.js';
26
+ import * as Injected from './injected.js';
27
+ import * as AICallTree from './performance/AICallTree.js';
28
+ import * as AIContext from './performance/AIContext.js';
29
+ import * as AIQueries from './performance/AIQueries.js';
30
+
31
+ export {
32
+ AgentProject,
33
+ AiAgent,
34
+ AICallTree,
35
+ AIContext,
36
+ AiHistoryStorage,
37
+ AIQueries,
38
+ AiUtils,
39
+ BuiltInAi,
40
+ ChangeManager,
41
+ ConversationHandler,
42
+ Debug,
43
+ EvaluateAction,
44
+ ExtensionScope,
45
+ FileAgent,
46
+ FileFormatter,
47
+ Injected,
48
+ NetworkAgent,
49
+ NetworkRequestFormatter,
50
+ PatchAgent,
51
+ PerformanceAgent,
52
+ PerformanceAnnotationsAgent,
53
+ PerformanceInsightFormatter,
54
+ PerformanceTraceFormatter,
55
+ StylingAgent,
56
+ UnitFormatters,
57
+ };
@@ -346,6 +346,51 @@ Layout shifts in this cluster:
346
346
  - https://web.dev/articles/optimize-cls
347
347
  === end content
348
348
 
349
+ Title: PerformanceInsightFormatter CLS includes iframe root causes
350
+ Content:
351
+ ## Insight Title: Layout shift culprits
352
+
353
+ ## Insight Summary:
354
+ Cumulative Layout Shifts (CLS) is a measure of the largest burst of layout shifts for every unexpected layout shift that occurs during the lifecycle of a page. This is a Core Web Vital and the thresholds for categorizing a score are:
355
+ - Good: 0.1 or less
356
+ - Needs improvement: more than 0.1 and less than or equal to 0.25
357
+ - Bad: over 0.25
358
+
359
+ ## Detailed analysis:
360
+ The worst layout shift cluster was the cluster that started at 2,712 ms and ended at 3,913 ms, with a duration of 1,200 ms.
361
+ The score for this cluster is 0.0832.
362
+
363
+ Layout shifts in this cluster:
364
+ ### Layout shift 1:
365
+ - Impacted elements:
366
+ - DIV class='max-w-6xl mx-auto bg-white shadow-lg min-h-screen relative z-[99999]'
367
+ - BUTTON class='text-gray-700 hover:text-red-600 w-6 h-6 flex items-center justify-center'
368
+ - #text
369
+
370
+ - Start time: 2,712 ms
371
+ - Score: 0.0832
372
+ - Potential root causes:
373
+ - An iframe (id: D12A05FC36C4D90C7826DDD3E9D7035B, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-top.html was injected into the page)
374
+ - An iframe (id: 8CDF5BC2F8AD1DCF04A38398E95671FC, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-right.html was injected into the page)
375
+ - An iframe (id: 022F4D6C4B361B315A1A7C18B98AA9C4, url: https://astro-news-1026410574114.us-central1.run.app/ads/fireplace-ad-left.html was injected into the page)
376
+ ### Layout shift 2:
377
+ - Impacted elements:
378
+ - #text
379
+ - A class='button'
380
+
381
+ - Start time: 2,913 ms
382
+ - Score: 0.0000
383
+ - Potential root causes:
384
+ - A font that was loaded over the network: https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2 (eventKey: s-11464, ts: 153867214727).
385
+
386
+ ## Estimated savings: none
387
+
388
+ ## External resources:
389
+ - https://developer.chrome.com/docs/performance/insights/cls-culprit
390
+ - https://web.dev/articles/cls
391
+ - https://web.dev/articles/optimize-cls
392
+ === end content
393
+
349
394
  Title: PerformanceInsightFormatter CLS serializes correctly when there are no layout shifts
350
395
  Content:
351
396
  ## Insight Title: Layout shift culprits
@@ -383,50 +428,110 @@ The score for this cluster is 0.0140.
383
428
 
384
429
  Layout shifts in this cluster:
385
430
  ### Layout shift 1:
431
+ - Impacted elements:
432
+ - P
433
+ - P
434
+ - P
435
+
386
436
  - Start time: 60 ms
387
437
  - Score: 0.0012
388
438
  - No potential root causes identified
389
439
  ### Layout shift 2:
440
+ - Impacted elements:
441
+ - P
442
+ - P
443
+ - P
444
+
390
445
  - Start time: 76 ms
391
446
  - Score: 0.0012
392
447
  - No potential root causes identified
393
448
  ### Layout shift 3:
449
+ - Impacted elements:
450
+ - P
451
+ - P
452
+ - P
453
+
394
454
  - Start time: 93 ms
395
455
  - Score: 0.0012
396
456
  - No potential root causes identified
397
457
  ### Layout shift 4:
458
+ - Impacted elements:
459
+ - P
460
+ - P
461
+ - P
462
+
398
463
  - Start time: 110 ms
399
464
  - Score: 0.0012
400
465
  - No potential root causes identified
401
466
  ### Layout shift 5:
467
+ - Impacted elements:
468
+ - P
469
+ - P
470
+ - P
471
+
402
472
  - Start time: 126 ms
403
473
  - Score: 0.0012
404
474
  - No potential root causes identified
405
475
  ### Layout shift 6:
476
+ - Impacted elements:
477
+ - P
478
+ - P
479
+ - P
480
+
406
481
  - Start time: 143 ms
407
482
  - Score: 0.0012
408
483
  - No potential root causes identified
409
484
  ### Layout shift 7:
485
+ - Impacted elements:
486
+ - P
487
+ - P
488
+ - P
489
+
410
490
  - Start time: 160 ms
411
491
  - Score: 0.0012
412
492
  - No potential root causes identified
413
493
  ### Layout shift 8:
494
+ - Impacted elements:
495
+ - P
496
+ - P
497
+ - P
498
+
414
499
  - Start time: 176 ms
415
500
  - Score: 0.0012
416
501
  - No potential root causes identified
417
502
  ### Layout shift 9:
503
+ - Impacted elements:
504
+ - P
505
+ - P
506
+ - P
507
+
418
508
  - Start time: 193 ms
419
509
  - Score: 0.0012
420
510
  - No potential root causes identified
421
511
  ### Layout shift 10:
512
+ - Impacted elements:
513
+ - P
514
+ - P
515
+ - P
516
+
422
517
  - Start time: 210 ms
423
518
  - Score: 0.0012
424
519
  - No potential root causes identified
425
520
  ### Layout shift 11:
521
+ - Impacted elements:
522
+ - P
523
+ - P
524
+ - P
525
+
426
526
  - Start time: 226 ms
427
527
  - Score: 0.0012
428
528
  - No potential root causes identified
429
529
  ### Layout shift 12:
530
+ - Impacted elements:
531
+ - P
532
+ - P
533
+ - P
534
+
430
535
  - Start time: 243 ms
431
536
  - Score: 0.0012
432
537
  - Potential root causes:
@@ -280,7 +280,12 @@ export class PerformanceInsightFormatter {
280
280
  '- No potential root causes identified';
281
281
 
282
282
  const startTime = Trace.Helpers.Timing.microToMilli(Trace.Types.Timing.Micro(shift.ts - baseTime));
283
- return `### Layout shift ${index + 1}:
283
+
284
+ const impactedNodeNames =
285
+ shift.rawSourceEvent.args.data?.impacted_nodes?.map(n => n.debug_name).filter(name => name !== undefined) ?? [];
286
+ const impactedNodeText =
287
+ impactedNodeNames.length ? `\n- Impacted elements:\n - ${impactedNodeNames.join('\n - ')}\n` : '';
288
+ return `### Layout shift ${index + 1}:${impactedNodeText}
284
289
  - Start time: ${millis(startTime)}
285
290
  - Score: ${shift.args.data?.weighted_score_delta.toFixed(4)}
286
291
  ${rootCauseText}`;
@@ -76,6 +76,7 @@ export class ExtensionView extends UI.Widget.Widget {
76
76
  }
77
77
 
78
78
  override willHide(): void {
79
+ super.willHide();
79
80
  if (typeof this.#frameIndex === 'number') {
80
81
  this.#server.notifyViewHidden(this.#id);
81
82
  }
@@ -104,10 +105,12 @@ export class ExtensionNotifierView extends UI.Widget.VBox {
104
105
  }
105
106
 
106
107
  override wasShown(): void {
108
+ super.wasShown();
107
109
  this.server.notifyViewShown(this.id);
108
110
  }
109
111
 
110
112
  override willHide(): void {
113
+ super.willHide();
111
114
  this.server.notifyViewHidden(this.id);
112
115
  }
113
116
  }
@@ -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"]]