chrome-devtools-frontend 1.0.1689415 → 1.0.1690531

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 (318) hide show
  1. package/.gitmodules +4 -0
  2. package/eslint.config.mjs +8 -2
  3. package/front_end/core/common/Object.ts +10 -4
  4. package/front_end/core/i18n/collect-ui-strings.js +5 -5
  5. package/front_end/core/i18n/generate-locales-js.js +1 -1
  6. package/front_end/core/i18n/i18n.ts +6 -0
  7. package/front_end/core/root/Runtime.ts +1 -5
  8. package/front_end/core/sdk/CSSMetadata.ts +3 -5
  9. package/front_end/core/sdk/DOMModel.ts +46 -11
  10. package/front_end/core/sdk/EmulationModel.ts +18 -0
  11. package/front_end/core/sdk/NetworkRequest.ts +50 -4
  12. package/front_end/core/sdk/NetworkRequestAccess.ts +172 -0
  13. package/front_end/core/sdk/SDKSettings.ts +9 -0
  14. package/front_end/core/sdk/Script.ts +0 -1
  15. package/front_end/core/sdk/SecurityOrigin.ts +160 -25
  16. package/front_end/core/sdk/Target.ts +1 -5
  17. package/front_end/core/sdk/sdk.ts +2 -0
  18. package/front_end/generated/SupportedCSSProperties.ts +1 -1
  19. package/front_end/models/ai_assistance/AiAgent2.ts +4 -1
  20. package/front_end/models/ai_assistance/AiConversation.ts +29 -18
  21. package/front_end/models/ai_assistance/AiUtils.ts +0 -10
  22. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
  23. package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
  24. package/front_end/models/ai_assistance/injected.ts +0 -2
  25. package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
  26. package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
  27. package/front_end/models/trace/insights/Cache.ts +1 -3
  28. package/front_end/models/trace/insights/CharacterSet.ts +1 -3
  29. package/front_end/models/trace/insights/DOMSize.ts +1 -3
  30. package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
  31. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
  32. package/front_end/models/trace/insights/FontDisplay.ts +1 -2
  33. package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
  34. package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
  35. package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
  36. package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
  37. package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
  38. package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
  39. package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
  40. package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
  41. package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
  42. package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
  43. package/front_end/models/trace/insights/ThirdParties.ts +1 -3
  44. package/front_end/models/trace/insights/Viewport.ts +1 -2
  45. package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
  46. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
  47. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
  48. package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
  49. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
  50. package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
  51. package/front_end/panels/ai_assistance/components/chatMessage.css +3 -1
  52. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
  53. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  54. package/front_end/panels/animation/AnimationUI.ts +1 -1
  55. package/front_end/panels/application/AppManifestView.ts +6 -2
  56. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
  57. package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
  58. package/front_end/panels/application/FrameDetailsView.ts +1 -1
  59. package/front_end/panels/application/IndexedDBViews.ts +3 -2
  60. package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
  61. package/front_end/panels/application/ReportingApiView.ts +2 -2
  62. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
  63. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  64. package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
  65. package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
  66. package/front_end/panels/application/StorageView.ts +9 -8
  67. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  68. package/front_end/panels/application/WebMCPView.ts +2 -1
  69. package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
  70. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
  71. package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
  72. package/front_end/panels/application/components/EndpointsGrid.ts +3 -2
  73. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
  74. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  75. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
  76. package/front_end/panels/application/components/TrustTokensView.ts +2 -2
  77. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  78. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
  79. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
  80. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -1
  81. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
  82. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
  83. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
  84. package/front_end/panels/autofill/AutofillView.ts +2 -2
  85. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
  86. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  87. package/front_end/panels/changes/ChangesSidebar.ts +56 -15
  88. package/front_end/panels/changes/ChangesView.ts +1 -1
  89. package/front_end/panels/common/CPUThrottlingOption.ts +12 -6
  90. package/front_end/panels/common/DOMLinkifier.ts +1 -1
  91. package/front_end/panels/common/ExtensionView.ts +2 -1
  92. package/front_end/panels/console/ConsolePinPane.ts +4 -2
  93. package/front_end/panels/console/ConsolePrompt.ts +6 -2
  94. package/front_end/panels/console/ConsoleSidebar.ts +12 -4
  95. package/front_end/panels/console/PromptBuilder.ts +1 -1
  96. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  97. package/front_end/panels/coverage/CoverageModel.ts +6 -4
  98. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -9
  99. package/front_end/panels/css_overview/CSSOverviewPanel.ts +3 -3
  100. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +2 -2
  101. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +3 -3
  102. package/front_end/panels/css_overview/CSSOverviewStartView.ts +3 -3
  103. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  104. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  105. package/front_end/panels/elements/ElementsTreeElement.ts +16 -3
  106. package/front_end/panels/elements/ElementsTreeOutline.ts +402 -130
  107. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  108. package/front_end/panels/elements/PropertyNameCategories.ts +1 -1
  109. package/front_end/panels/elements/PropertyRenderer.ts +22 -15
  110. package/front_end/panels/elements/ShortcutTreeElement.ts +2 -1
  111. package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -3
  112. package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
  113. package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
  114. package/front_end/panels/elements/StylesSidebarPane.ts +9 -4
  115. package/front_end/panels/elements/components/StylePropertyEditor.ts +160 -148
  116. package/front_end/panels/elements/elementsTreeOutline.css +4 -0
  117. package/front_end/panels/emulation/DeviceModeView.ts +6 -1
  118. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
  119. package/front_end/panels/emulation/MediaQueryInspector.ts +2 -1
  120. package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
  121. package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
  122. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
  123. package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
  124. package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
  125. package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
  126. package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
  127. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
  128. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
  129. package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +2 -2
  130. package/front_end/panels/linear_memory_inspector/components/linearMemoryNavigator.css +1 -1
  131. package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +5 -5
  132. package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +6 -6
  133. package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +6 -6
  134. package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +2 -2
  135. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
  136. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
  137. package/front_end/panels/network/NetworkDataGridNode.ts +11 -9
  138. package/front_end/panels/network/NetworkLogView.ts +12 -4
  139. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
  140. package/front_end/panels/network/RequestHeadersView.ts +1 -1
  141. package/front_end/panels/network/RequestPayloadView.ts +1 -1
  142. package/front_end/panels/network/RequestResponseView.ts +1 -1
  143. package/front_end/panels/network/RequestTimingView.ts +1 -1
  144. package/front_end/panels/network/ShowMoreDetailsWidget.ts +1 -1
  145. package/front_end/panels/network/components/RequestHeadersView.css +5 -0
  146. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
  147. package/front_end/panels/network/networkLogView.css +4 -0
  148. package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
  149. package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
  150. package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
  151. package/front_end/panels/profiler/HeapProfileView.ts +7 -2
  152. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
  153. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
  154. package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
  155. package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
  156. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
  157. package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
  158. package/front_end/panels/profiler/profilesPanel.css +8 -9
  159. package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
  160. package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
  161. package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
  162. package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
  163. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
  164. package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
  165. package/front_end/panels/sources/DebuggerPausedMessage.ts +8 -6
  166. package/front_end/panels/sources/ProfilePlugin.ts +2 -1
  167. package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
  168. package/front_end/panels/sources/SourcesView.ts +7 -2
  169. package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
  170. package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
  171. package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
  172. package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
  173. package/front_end/panels/timeline/CountersGraph.ts +8 -8
  174. package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
  175. package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
  176. package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
  177. package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
  178. package/front_end/panels/timeline/IsolateSelector.ts +3 -3
  179. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +4 -4
  180. package/front_end/panels/timeline/NetworkTrackAppender.ts +2 -2
  181. package/front_end/panels/timeline/StatusDialog.ts +5 -6
  182. package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
  183. package/front_end/panels/timeline/ThreadAppender.ts +12 -14
  184. package/front_end/panels/timeline/TimelineController.ts +5 -8
  185. package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
  186. package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
  187. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +18 -18
  188. package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
  189. package/front_end/panels/timeline/TimelineHistoryManager.ts +9 -9
  190. package/front_end/panels/timeline/TimelineLoader.ts +1 -1
  191. package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
  192. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +7 -3
  193. package/front_end/panels/timeline/TimelinePanel.ts +60 -62
  194. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
  195. package/front_end/panels/timeline/TimelineTreeView.ts +47 -45
  196. package/front_end/panels/timeline/TimelineUIUtils.ts +146 -120
  197. package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
  198. package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
  199. package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
  200. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
  201. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  202. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +25 -24
  203. package/front_end/panels/timeline/components/RelatedInsightChips.ts +4 -3
  204. package/front_end/panels/timeline/components/Sidebar.ts +1 -1
  205. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -3
  206. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  207. package/front_end/panels/timeline/enable-easter-egg.js +1 -1
  208. package/front_end/panels/timeline/timeline-meta.ts +30 -30
  209. package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
  210. package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
  211. package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
  212. package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
  213. package/front_end/panels/timeline/utils/Helpers.ts +1 -1
  214. package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
  215. package/front_end/panels/timeline/utils/ImageCache.ts +5 -3
  216. package/front_end/panels/web_audio/WebAudioView.ts +3 -3
  217. package/front_end/panels/webauthn/WebauthnPane.ts +5 -11
  218. package/front_end/third_party/acorn/acorn.ts +3 -3
  219. package/front_end/third_party/chromium/README.chromium +1 -1
  220. package/front_end/third_party/chromium/ahem/ahem.d.ts +1 -0
  221. package/front_end/third_party/csp_evaluator/package/csp.ts +4 -4
  222. package/front_end/third_party/csp_evaluator/package/parser.ts +3 -1
  223. package/front_end/third_party/csp_evaluator/package/utils.ts +1 -1
  224. package/front_end/third_party/diff/diff_match_patch.d.ts +10 -0
  225. package/front_end/third_party/json5/json5.ts +2 -2
  226. package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
  227. package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
  228. package/front_end/ui/components/buttons/Button.docs.ts +1 -1
  229. package/front_end/ui/components/buttons/button.css +21 -0
  230. package/front_end/ui/components/buttons/floatingButton.css +25 -0
  231. package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
  232. package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
  233. package/front_end/ui/components/spinners/Spinner.ts +1 -1
  234. package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
  235. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
  236. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +46 -27
  237. package/front_end/ui/components/switch/Switch.docs.ts +1 -1
  238. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
  239. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
  240. package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
  241. package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
  242. package/front_end/ui/components/text_editor/config.ts +109 -96
  243. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  244. package/front_end/ui/components/text_editor/theme.ts +1 -1
  245. package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
  246. package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
  247. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
  248. package/front_end/ui/kit/cards/Card.ts +1 -1
  249. package/front_end/ui/kit/icons/Icon.ts +1 -1
  250. package/front_end/ui/kit/link/Link.docs.ts +1 -1
  251. package/front_end/ui/kit/link/Link.ts +1 -1
  252. package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
  253. package/front_end/ui/legacy/ContextMenu.ts +2 -2
  254. package/front_end/ui/legacy/Dialog.ts +10 -2
  255. package/front_end/ui/legacy/DropTarget.ts +6 -1
  256. package/front_end/ui/legacy/EmptyWidget.ts +1 -1
  257. package/front_end/ui/legacy/FilterBar.ts +6 -1
  258. package/front_end/ui/legacy/GlassPane.ts +1 -1
  259. package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
  260. package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
  261. package/front_end/ui/legacy/ShortcutRegistry.ts +2 -2
  262. package/front_end/ui/legacy/Slider.docs.ts +1 -1
  263. package/front_end/ui/legacy/SplitWidget.ts +7 -2
  264. package/front_end/ui/legacy/StackedPane.ts +1 -1
  265. package/front_end/ui/legacy/TabbedPane.ts +5 -1
  266. package/front_end/ui/legacy/TargetCrashedScreen.ts +1 -1
  267. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  268. package/front_end/ui/legacy/Toolbar.ts +1 -1
  269. package/front_end/ui/legacy/Treeoutline.ts +13 -37
  270. package/front_end/ui/legacy/UIUtils.ts +6 -3
  271. package/front_end/ui/legacy/ViewManager.ts +1 -1
  272. package/front_end/ui/legacy/Widget.ts +1 -1
  273. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +13 -2
  274. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  275. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -2
  276. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
  277. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
  278. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +54 -45
  279. package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
  280. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
  281. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +141 -106
  282. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  283. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -10
  284. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
  285. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
  286. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
  287. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
  288. package/front_end/ui/legacy/components/perf_ui/pieChart.css +7 -5
  289. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
  290. package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
  291. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -7
  292. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  293. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  294. package/front_end/ui/legacy/inspectorCommon.css +11 -0
  295. package/front_end/ui/visual_logging/Debugging.ts +2 -1
  296. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -1
  297. package/front_end/ui/visual_logging/LoggingDriver.ts +3 -3
  298. package/front_end/ui/visual_logging/LoggingEvents.ts +5 -5
  299. package/front_end/ui/visual_logging/LoggingState.ts +1 -1
  300. package/front_end/ui/visual_logging/visual_logging.ts +67 -56
  301. package/package.json +3 -2
  302. package/front_end/third_party/acorn/acorn-tsconfig.json +0 -12
  303. package/front_end/third_party/acorn/estree-tsconfig.json +0 -8
  304. package/front_end/third_party/chromium/client-variations/client-variations-tsconfig.json +0 -8
  305. package/front_end/third_party/codemirror/codemirror-legacy-types-tsconfig.json +0 -8
  306. package/front_end/third_party/codemirror/codemirror-tsconfig.json +0 -15
  307. package/front_end/third_party/codemirror.next/bundle-tsconfig.json +0 -24
  308. package/front_end/third_party/intl-messageformat/intl-messageformat-tsconfig.json +0 -16
  309. package/front_end/third_party/json5/json5-tsconfig.json +0 -8
  310. package/front_end/third_party/legacy-javascript/legacy-javascript-tsconfig.json +0 -8
  311. package/front_end/third_party/lighthouse/lighthouse-tsconfig.json +0 -11
  312. package/front_end/third_party/lighthouse/report/bundle-tsconfig.json +0 -8
  313. package/front_end/third_party/lit/lit-tsconfig.json +0 -15
  314. package/front_end/third_party/marked/marked-tsconfig.json +0 -8
  315. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +0 -191
  316. package/front_end/third_party/third-party-web/third-party-web-tsconfig.json +0 -8
  317. package/front_end/third_party/wasmparser/wasmparser-tsconfig.json +0 -9
  318. package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +0 -47
@@ -95,160 +95,155 @@ import type * as Utils from './utils/utils.js';
95
95
 
96
96
  const UIStrings = {
97
97
  /**
98
- * @description Text that appears when user drag and drop something (for example, a file) in Timeline Panel of the Performance panel
98
+ * @description Text shown on the drag-and-drop overlay in the Performance panel.
99
99
  */
100
100
  dropTimelineFileOrUrlHere: 'Drop trace file or URL here',
101
101
  /**
102
- * @description Dropdown option in the performance panel for the default screenshot capture preset (500 x 500 pixels,
103
- * up to 450 frames).
102
+ * @description Dropdown option in the Performance panel for the default screenshot capture preset (500 x 500 pixels, up to 450 frames).
104
103
  */
105
104
  screenshotPresetDefault: '500 x 500 px, up to 450 frames',
106
105
  /**
107
- * @description Dropdown option in the performance panel for a screenshot capture preset that uses smaller frames so
108
- * more of them fit in the per-session memory budget (250 x 250 pixels, up to 1800 frames).
106
+ * @description Dropdown option in the Performance panel for a screenshot capture preset that uses smaller frames so more fit in memory (250 x 250 pixels, up to 1800 frames).
109
107
  */
110
108
  screenshotPresetMedium: '250 x 250 px, up to 1800 frames',
111
109
  /**
112
- * @description Dropdown option in the performance panel for a screenshot capture preset that uses higher-resolution
113
- * frames at the cost of capturing fewer of them (1000 x 1000 pixels, up to 100 frames).
110
+ * @description Dropdown option in the Performance panel for a screenshot capture preset that uses higher-resolution frames (1000 x 1000 pixels, up to 100 frames).
114
111
  */
115
112
  screenshotPresetLarge: '1000 x 1000 px, up to 100 frames',
116
113
  /**
117
- * @description Dropdown option in the performance panel for a screenshot capture preset that uses very small frames
118
- * so many of them fit in the per-session memory budget (100 x 100 pixels, up to 11250 frames).
114
+ * @description Dropdown option in the Performance panel for a screenshot capture preset that uses very small frames (100 x 100 pixels, up to 11250 frames).
119
115
  */
120
116
  screenshotPresetTiny: '100 x 100 px, up to 11250 frames',
121
117
  /**
122
- * @description Text to clear content
118
+ * @description Tooltip for the clear button in the Performance panel toolbar.
123
119
  */
124
120
  clear: 'Clear',
125
121
  /**
126
- * @description A label for a button that fixes something.
122
+ * @description Adorner label for a trace event that needs attention.
127
123
  */
128
124
  fixMe: 'Fix me',
129
125
  /**
130
- * @description Tooltip text that appears when hovering over the largeicon load button
126
+ * @description Tooltip for the load trace button in the Performance panel toolbar.
131
127
  */
132
128
  loadTrace: 'Load trace…',
133
129
  /**
134
- * @description Text to take screenshots
130
+ * @description Label for the capture screenshots checkbox in the Performance panel settings.
135
131
  */
136
132
  captureScreenshots: 'Capture screenshots',
137
133
  /**
138
- * @description Text in Timeline Panel of the Performance panel
134
+ * @description Label for the show memory timeline checkbox in the Performance panel toolbar.
139
135
  */
140
136
  showMemoryTimeline: 'Show memory timeline',
141
137
  /**
142
- * @description Tooltip text that appears when hovering over the largeicon settings gear in show settings pane setting in timeline panel of the performance panel
138
+ * @description Tooltip for the capture settings button in the Performance panel toolbar.
143
139
  */
144
140
  captureSettings: 'Capture settings',
145
141
  /**
146
- * @description Text in Timeline Panel of the Performance panel
142
+ * @description Tooltip for the checkbox that disables JavaScript sampling in the capture settings of the Performance panel.
147
143
  */
148
144
  disablesJavascriptSampling: 'Disables JavaScript sampling, reduces overhead when running against mobile devices',
149
145
  /**
150
- *@description Text in Timeline Panel of the Performance panel
146
+ * @description Tooltip for the checkbox that captures advanced paint instrumentation in the capture settings of the Performance panel.
151
147
  */
152
148
  capturesAdvancedPaint: 'Captures advanced paint instrumentation, introduces significant performance overhead',
153
149
  /**
154
- * @description Text in Timeline Panel of the Performance panel
150
+ * @description Tooltip for the checkbox that captures CSS selector statistics in the capture settings of the Performance panel.
155
151
  */
156
152
  capturesSelectorStats: 'Captures CSS selector statistics',
157
153
  /**
158
- * @description Text in Timeline Panel of the Performance panel
154
+ * @description Label for the network throttling setting in the capture settings of the Performance panel.
159
155
  */
160
156
  network: 'Network:',
161
157
  /**
162
- * @description Text in Timeline Panel of the Performance panel
158
+ * @description Label for the CPU throttling setting in the capture settings of the Performance panel.
163
159
  */
164
160
  cpu: 'CPU:',
165
161
  /**
166
- * @description Text in Timeline Panel of the Performance panel
162
+ * @description Status message indicating that CPU throttling is enabled in the Performance panel.
167
163
  */
168
164
  CpuThrottlingIsEnabled: '- CPU throttling is enabled',
169
165
  /**
170
- * @description Text in Timeline Panel of the Performance panel
166
+ * @description Status message indicating that network throttling is enabled in the Performance panel.
171
167
  */
172
168
  NetworkThrottlingIsEnabled: '- Network throttling is enabled',
173
169
  /**
174
- * @description Text in Timeline Panel of the Performance panel
170
+ * @description Status message indicating that advanced paint instrumentation is active in the Performance panel.
175
171
  */
176
172
  SignificantOverheadDueToPaint: '- Significant overhead due to paint instrumentation',
177
173
  /**
178
- * @description Text in Timeline Panel of the Performance panel
174
+ * @description Status message indicating that CSS selector statistics capture is enabled in the Performance panel.
179
175
  */
180
176
  SelectorStatsEnabled: '- Selector stats is enabled',
181
177
  /**
182
- * @description Text in Timeline Panel of the Performance panel
178
+ * @description Status message indicating that JavaScript sampling is disabled in the Performance panel.
183
179
  */
184
180
  JavascriptSamplingIsDisabled: '- JavaScript sampling is disabled',
185
181
  /**
186
- *@description Text in Timeline Panel of the Performance panel
182
+ * @description Status text shown while stopping a timeline recording in the Performance panel.
187
183
  */
188
184
  stoppingTimeline: 'Stopping timeline…',
189
185
  /**
190
- * @description Text in Timeline Panel of the Performance panel
186
+ * @description Status label for received data during trace recording in the Performance panel.
191
187
  */
192
188
  received: 'Received',
193
189
  /**
194
- * @description Text in Timeline Panel of the Performance panel
190
+ * @description Status label for processed data during trace recording in the Performance panel.
195
191
  */
196
192
  processed: 'Processed',
197
193
  /**
198
- * @description Text to close something
194
+ * @description Button label to close the status dialog in the Performance panel.
199
195
  */
200
196
  close: 'Close',
201
197
  /**
202
- * @description Status text to indicate the recording has failed in the Performance panel
198
+ * @description Status text indicating that trace recording failed in the Performance panel.
203
199
  */
204
200
  recordingFailed: 'Recording failed',
205
201
  /**
206
- * @description Status text to indicate that exporting the trace has failed
202
+ * @description Status text indicating that exporting the trace failed in the Performance panel.
207
203
  */
208
204
  exportingFailed: 'Exporting the trace failed',
209
205
  /**
210
- * @description Text in Timeline Panel of the Performance panel
206
+ * @description Status text shown while initializing trace recording in the Performance panel.
211
207
  */
212
208
  initializingTracing: 'Initializing tracing…',
213
209
  /**
214
- * @description Text to indicate the progress of a trace. Informs the user that we are currently
215
- * creating a performance trace.
210
+ * @description Status text shown while recording a trace in the Performance panel.
216
211
  */
217
212
  tracing: 'Tracing…',
218
213
  /**
219
- * @description Text in Timeline Panel of the Performance panel
214
+ * @description Label for trace buffer usage progress in the status dialog of the Performance panel.
220
215
  */
221
216
  bufferUsage: 'Buffer usage',
222
217
  /**
223
- * @description Text in Timeline Panel of the Performance panel
218
+ * @description Status text shown while loading a trace file in the Performance panel.
224
219
  */
225
220
  loadingTrace: 'Loading trace…',
226
221
  /**
227
- * @description Text in Timeline Panel of the Performance panel
222
+ * @description Status text shown while processing a trace in the Performance panel.
228
223
  */
229
224
  processingTrace: 'Processing trace…',
230
225
  /**
231
- * @description Text in Timeline Panel of the Performance panel. Shown to the user after they request to download the trace.
226
+ * @description Status text shown while preparing a trace for download in the Performance panel.
232
227
  */
233
228
  preparingTraceForDownload: 'Preparing…',
234
229
  /**
235
- * @description Text in Timeline Panel of the Performance panel. Shown to the user after they request to download the trace.
230
+ * @description Status text shown while compressing a trace for download in the Performance panel.
236
231
  */
237
232
  compressingTraceForDownload: 'Compressing…',
238
233
  /**
239
- * @description Text in Timeline Panel of the Performance panel. Shown to the user after they request to download the trace.
234
+ * @description Status text shown while encoding a trace for download in the Performance panel.
240
235
  */
241
236
  encodingTraceForDownload: 'Encoding…',
242
237
  /**
243
- * @description Tooltip description for a checkbox that toggles the visibility of data added by extensions of this panel (Performance).
238
+ * @description Label for the checkbox to show data added by extensions in the Performance panel.
244
239
  */
245
240
  showDataAddedByExtensions: 'Show data added by extensions of the Performance panel',
246
241
  /**
247
- * @description Tooltip for the the sidebar toggle in the Performance panel. Command to open/show the sidebar.
242
+ * @description Tooltip for the button to show the sidebar in the Performance panel.
248
243
  */
249
244
  showSidebar: 'Show sidebar',
250
245
  /**
251
- * @description Tooltip for the the sidebar toggle in the Performance panel. Command to close the sidebar.
246
+ * @description Tooltip for the button to hide the sidebar in the Performance panel.
252
247
  */
253
248
  hideSidebar: 'Hide sidebar',
254
249
  /**
@@ -260,49 +255,48 @@ const UIStrings = {
260
255
  */
261
256
  sidebarHidden: 'Performance sidebar hidden',
262
257
  /**
263
- * @description Screen reader announcement when the user clears their selection
258
+ * @description Screen reader announcement when the selection is cleared in the Performance panel.
264
259
  */
265
260
  selectionCleared: 'Selection cleared',
266
261
  /**
267
- * @description Screen reader announcement when the user selects a frame.
262
+ * @description Screen reader announcement when a frame is selected in the Performance panel.
268
263
  */
269
264
  frameSelected: 'Frame selected',
270
265
  /**
271
- * @description Screen reader announcement when the user selects a trace event.
266
+ * @description Screen reader announcement when a trace event is selected in the Performance panel.
272
267
  * @example {Paint} PH1
273
268
  */
274
269
  eventSelected: 'Event {PH1} selected',
275
270
  /**
276
- * @description Text of a hyperlink to documentation.
271
+ * @description Link text to open documentation in the Performance panel.
277
272
  */
278
273
  learnMore: 'Learn more',
279
274
  /**
280
- * @description Tooltip text for a button that takes the user back to the default view which shows performance metrics that are live.
275
+ * @description Tooltip for the button to return to the live metrics page in the Performance panel.
281
276
  */
282
277
  backToLiveMetrics: 'Go back to the live metrics page',
283
278
  /**
284
- * @description Description of the Timeline zoom keyboard instructions that appear in the shortcuts dialog
279
+ * @description Label for zoom keyboard shortcuts in the shortcuts dialog of the Performance panel.
285
280
  */
286
281
  timelineZoom: 'Zoom',
287
282
  /**
288
- * @description Description of the Timeline scrolling & panning instructions that appear in the shortcuts dialog.
283
+ * @description Label for scroll and pan keyboard shortcuts in the shortcuts dialog of the Performance panel.
289
284
  */
290
- timelineScrollPan: 'Scroll & Pan',
285
+ timelineScrollPan: 'Scroll & pan',
291
286
  /**
292
- * @description Description for the Dim 3rd Parties checkbox tooltip describing how 3rd parties are classified.
287
+ * @description Tooltip describing that third-party entities are classified by the third-party-web database.
293
288
  */
294
289
  thirdPartiesByThirdPartyWeb: '3rd parties classified by third-party-web',
295
290
  /**
296
- * @description Title of the shortcuts dialog shown to the user that lists keyboard shortcuts.
291
+ * @description Title of the shortcuts dialog listing keyboard shortcuts for the timeline flame chart.
297
292
  */
298
- shortcutsDialogTitle: 'Keyboard shortcuts for flamechart',
293
+ shortcutsDialogTitle: 'Keyboard shortcuts for flame chart',
299
294
  /**
300
- * @description Header for the confirmation dialog asking the user whether
301
- * to load a CPU profile recorded by console.profile().
295
+ * @description Header for the confirmation dialog asking whether to load a CPU profile in the Performance panel.
302
296
  */
303
297
  loadCpuProfileHeader: 'Load CPU profile?',
304
298
  /**
305
- * @description Confirmation message asking the user whether to load a CPU profile recorded by console.profile().
299
+ * @description Confirmation message asking whether to load a recorded CPU profile into the Performance panel.
306
300
  * @example {Profile 1} PH1
307
301
  */
308
302
  loadCpuProfileConfirmation: 'Do you want to load the recorded CPU profile "{PH1}" into the Performance panel?',
@@ -372,8 +366,12 @@ type ViewMode = {
372
366
  mode: 'STATUS_PANE_OVERLAY',
373
367
  };
374
368
 
375
- export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Panel.Panel>(UI.Panel.Panel)
376
- implements Client, TimelineModeViewDelegate {
369
+ const TimelinePanelBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Panel.Panel> =
370
+ Common.ObjectWrapper.eventMixin(
371
+ UI.Panel.Panel,
372
+ );
373
+
374
+ export class TimelinePanel extends TimelinePanelBase implements Client, TimelineModeViewDelegate {
377
375
  private readonly dropTarget: UI.DropTarget.DropTarget;
378
376
  private readonly recordingOptionUIControls: UI.Toolbar.ToolbarItem[];
379
377
  private state: State;
@@ -2562,9 +2560,9 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
2562
2560
  * run when the user switches to an existing trace, please @see
2563
2561
  * #setModelForActiveTrace and put your code in there.
2564
2562
  **/
2565
- async loadingComplete(
2566
- collectedEvents: Trace.Types.Events.Event[], exclusiveFilter: Trace.Extras.TraceFilter.TraceFilter|null = null,
2567
- metadata: Trace.Types.File.MetaData|null): Promise<void> {
2563
+ async loadingComplete(collectedEvents: Trace.Types.Events.Event[],
2564
+ exclusiveFilter: Trace.Extras.TraceFilter.TraceFilter|null|undefined = null,
2565
+ metadata: Trace.Types.File.MetaData|null): Promise<void> {
2568
2566
  this.#traceEngineModel.resetProcessor();
2569
2567
 
2570
2568
  delete this.loader;
@@ -19,92 +19,92 @@ import * as Utils from './utils/utils.js';
19
19
 
20
20
  const UIStrings = {
21
21
  /**
22
- * @description Label for selector stats data table
22
+ * @description Accessible name for the selector stats data grid in the Performance panel.
23
23
  */
24
24
  selectorStats: 'Selector stats',
25
25
  /**
26
- * @description Column name and time unit for elapsed time spent computing a style rule
26
+ * @description Column header for elapsed time in the selector stats data grid.
27
27
  */
28
28
  elapsed: 'Elapsed (ms)',
29
29
  /**
30
- * @description Tooltip description 'Elapsed (ms)'
30
+ * @description Tooltip explanation for the elapsed time column in the selector stats data grid.
31
31
  */
32
- elapsedExplanation: 'Elapsed time spent matching a selector against the DOM in milliseconds.',
32
+ elapsedExplanation: 'Elapsed time spent matching a selector against the DOM in milliseconds',
33
33
  /**
34
- * @description Column name and percentage of slow mach non-matches computing a style rule
34
+ * @description Column header for the percentage of slow-path non-matches in the selector stats data grid.
35
35
  */
36
36
  slowPathNonMatches: '% of slow-path non-matches',
37
37
  /**
38
- * @description Tooltip description '% of slow-path non-matches'
38
+ * @description Tooltip explanation for the slow-path non-matches column in the selector stats data grid.
39
39
  */
40
40
  slowPathNonMatchesExplanation:
41
- 'The percentage of non-matching nodes (Match Attempts - Match Count) that couldn’t be quickly ruled out by the bloom filter due to high selector complexity. Lower is better.',
41
+ 'The percentage of non-matching nodes (match attempts − match count) that couldn’t be quickly ruled out by the bloom filter due to high selector complexity. Lower is better.',
42
42
  /**
43
- * @description Column name for count of elements that the engine attempted to match against a style rule
43
+ * @description Column header for match attempts in the selector stats data grid.
44
44
  */
45
45
  matchAttempts: 'Match attempts',
46
46
  /**
47
- * @description Tooltip description 'Match attempts'
47
+ * @description Tooltip explanation for the match attempts column in the selector stats data grid.
48
48
  */
49
- matchAttemptsExplanation: 'Count of nodes that the engine attempted to match against a style rule.',
49
+ matchAttemptsExplanation: 'Count of nodes that the engine attempted to match against a style rule',
50
50
  /**
51
- * @description Column name for count of elements that matched a style rule
51
+ * @description Column header for match count in the selector stats data grid.
52
52
  */
53
53
  matchCount: 'Match count',
54
54
  /**
55
- * @description Tooltip description 'Match count'
55
+ * @description Tooltip explanation for the match count column in the selector stats data grid.
56
56
  */
57
- matchCountExplanation: 'Count of nodes that matched a style rule.',
57
+ matchCountExplanation: 'Count of nodes that matched a style rule',
58
58
  /**
59
- * @description Column name for a style rule's CSS selector text
59
+ * @description Column header for the CSS selector in the selector stats data grid.
60
60
  */
61
61
  selector: 'Selector',
62
62
  /**
63
- * @description Tooltip description 'Selector'
63
+ * @description Tooltip explanation for the selector column in the selector stats data grid.
64
64
  */
65
- selectorExplanation: 'CSS selector text of a style rule.',
65
+ selectorExplanation: 'CSS selector text of a style rule',
66
66
  /**
67
- * @description Column name for a style rule's CSS selector text
67
+ * @description Column header for the stylesheet link in the selector stats data grid.
68
68
  */
69
- styleSheetId: 'Style Sheet',
69
+ styleSheetId: 'Style sheet',
70
70
  /**
71
- * @description Tooltip description 'Style Sheet'
71
+ * @description Tooltip explanation for the style sheet column in the selector stats data grid.
72
72
  */
73
73
  styleSheetIdExplanation:
74
74
  'Links to the selector rule definition in the style sheets. Note that a selector rule could be defined in multiple places in a style sheet or defined in multiple style sheets. Selector rules from browser user-agent style sheet or dynamic style sheets don’t have a link.',
75
75
  /**
76
- * @description A context menu item in data grids to copy entire table to clipboard
76
+ * @description Context menu item to copy the selector stats table to clipboard.
77
77
  */
78
78
  copyTable: 'Copy table',
79
79
  /**
80
- * @description A cell value displayed in table when no source file can be traced via css style
80
+ * @description Cell value displayed when a stylesheet source file cannot be linked.
81
81
  */
82
82
  unableToLink: 'Unable to link',
83
83
  /**
84
- * @description Tooltip for the cell that no source file can be traced via style sheet id
84
+ * @description Tooltip displayed when a stylesheet source file cannot be linked via its ID.
85
85
  * @example {style-sheet-4} PH1
86
86
  */
87
87
  unableToLinkViaStyleSheetId: 'Unable to link via {PH1}',
88
88
  /**
89
- * @description Text for announcing that the entire table was copied to clipboard
89
+ * @description Screen reader announcement when the selector stats table is copied to clipboard.
90
90
  */
91
91
  tableCopiedToClipboard: 'Table copied to clipboard',
92
92
  /**
93
- * @description Text shown as the "Selectelector" cell value for one row of the Selector Stats table, however this particular row is the totals. While normally the Selector cell is values like "div.container", the parenthesis can denote this description is not an actual selector, but a general row description.
93
+ * @description Row description for the aggregated totals of all selectors in the selector stats data grid.
94
94
  */
95
95
  totalForAllSelectors: '(Totals for all selectors)',
96
96
  /**
97
- * @description Text for showing the location of a selector in the style sheet
97
+ * @description Link text showing the line and column number of a selector rule in a stylesheet.
98
98
  * @example {256} PH1
99
99
  * @example {14} PH2
100
100
  */
101
101
  lineNumber: 'Line {PH1}:{PH2}',
102
102
  /**
103
- * @description Count of invalidation for a specific selector. Note that a node can be invalidated multiple times.
103
+ * @description Column header for invalidation count in the selector stats data grid.
104
104
  */
105
105
  invalidationCount: 'Invalidation count',
106
106
  /**
107
- * @description Tooltip description 'Invalidation count'
107
+ * @description Tooltip explanation for the invalidation count column in the selector stats data grid.
108
108
  */
109
109
  invalidationCountExplanation:
110
110
  'Aggregated count of invalidations on nodes and subsequently had style recalculated, all of which are matched by this selector. Note that a node can be invalidated multiple times and by multiple selectors.',
@@ -27,97 +27,92 @@ import {TimelineUIUtils} from './TimelineUIUtils.js';
27
27
 
28
28
  const UIStrings = {
29
29
  /**
30
- * @description Text for the performance of something
30
+ * @description Data grid name for timeline tree view tables in the Performance panel.
31
31
  */
32
32
  performance: 'Performance',
33
33
  /**
34
- * @description Time of a single activity, as opposed to the total time
34
+ * @description Column header for self time in timeline tree views.
35
35
  */
36
36
  selfTime: 'Self time',
37
37
  /**
38
- * @description Text for the total time of something
38
+ * @description Column header for total time in timeline tree views.
39
39
  */
40
40
  totalTime: 'Total time',
41
41
  /**
42
- * @description Text in Timeline Tree View of the Performance panel
42
+ * @description Column header for the activity name in timeline tree views.
43
43
  */
44
44
  activity: 'Activity',
45
45
  /**
46
- * @description Text of a DOM element in Timeline Tree View of the Performance panel
46
+ * @description Banner message shown when no tree item is selected for details in the Performance panel.
47
47
  */
48
- selectItemForDetails: 'Select item for details.',
48
+ selectItemForDetails: 'Select item for details',
49
49
  /**
50
- * @description Number followed by percent sign
50
+ * @description Percentage format in timeline tree views.
51
51
  * @example {20} PH1
52
52
  */
53
53
  percentPlaceholder: '{PH1} %',
54
54
  /**
55
- * @description Text in Timeline Tree View of the Performance panel
55
+ * @description Row label for Chrome extensions overhead in timeline tree views.
56
56
  */
57
57
  chromeExtensionsOverhead: '[`Chrome` extensions overhead]',
58
58
  /**
59
- * @description Text in Timeline Tree View of the Performance panel. The text is presented
60
- * when developers investigate the performance of a page. 'V8 Runtime' labels the time
61
- * spent in (i.e. runtime) the V8 JavaScript engine.
59
+ * @description Row label for V8 runtime overhead in timeline tree views.
62
60
  */
63
- vRuntime: '[`V8` Runtime]',
61
+ vRuntime: '[`V8` runtime]',
64
62
  /**
65
- * @description Text in Timeline Tree View of the Performance panel
63
+ * @description Row label for unattributed activity in timeline tree views.
66
64
  */
67
65
  unattributed: '[unattributed]',
68
66
  /**
69
- * @description Text that refers to one or a group of webpages
67
+ * @description Label for the main frame page in grouping options.
70
68
  */
71
69
  page: 'Page',
72
70
  /**
73
- * @description Text in Timeline Tree View of the Performance panel
71
+ * @description Option in the grouping dropdown for no grouping in timeline tree views.
74
72
  */
75
73
  noGrouping: 'No grouping',
76
74
  /**
77
- * @description Text in Timeline Tree View of the Performance panel
75
+ * @description Option in the grouping dropdown to group by activity in timeline tree views.
78
76
  */
79
77
  groupByActivity: 'Group by activity',
80
78
  /**
81
- * @description Text in Timeline Tree View of the Performance panel
79
+ * @description Option in the grouping dropdown to group by category in timeline tree views.
82
80
  */
83
81
  groupByCategory: 'Group by category',
84
82
  /**
85
- * @description Text in Timeline Tree View of the Performance panel
83
+ * @description Option in the grouping dropdown to group by domain in timeline tree views.
86
84
  */
87
85
  groupByDomain: 'Group by domain',
88
86
  /**
89
- * @description Text in Timeline Tree View of the Performance panel
87
+ * @description Option in the grouping dropdown to group by frame in timeline tree views.
90
88
  */
91
89
  groupByFrame: 'Group by frame',
92
90
  /**
93
- * @description Text in Timeline Tree View of the Performance panel
91
+ * @description Option in the grouping dropdown to group by subdomain in timeline tree views.
94
92
  */
95
93
  groupBySubdomain: 'Group by subdomain',
96
94
  /**
97
- * @description Text in Timeline Tree View of the Performance panel
95
+ * @description Option in the grouping dropdown to group by URL in timeline tree views.
98
96
  */
99
97
  groupByUrl: 'Group by URL',
100
98
  /**
101
- * @description Text in Timeline Tree View of the Performance panel
99
+ * @description Option in the grouping dropdown to group by third parties in timeline tree views.
102
100
  */
103
- groupByThirdParties: 'Group by Third Parties',
101
+ groupByThirdParties: 'Group by 3rd parties',
104
102
  /**
105
- * @description Aria-label for grouping combo box in Timeline Details View
103
+ * @description Accessible label for the grouping dropdown in timeline tree views.
106
104
  */
107
105
  groupBy: 'Group by',
108
106
  /**
109
- * @description Title of the sidebar pane in the Performance panel which shows the stack (call
110
- * stack) where the program spent the most time (out of all the call stacks) while executing.
107
+ * @description Title for the heaviest stack sidebar in timeline tree views.
111
108
  */
112
109
  heaviestStack: 'Heaviest stack',
113
110
  /**
114
- * @description Tooltip for the the Heaviest stack sidebar toggle in the Timeline Tree View of the
115
- * Performance panel. Command to open/show the sidebar.
111
+ * @description Tooltip for the button to show the heaviest stack sidebar in timeline tree views.
116
112
  */
117
113
  showHeaviestStack: 'Show heaviest stack',
118
114
  /**
119
- * @description Tooltip for the the Heaviest stack sidebar toggle in the Timeline Tree View of the
120
- * Performance panel. Command to close/hide the sidebar.
115
+ * @description Tooltip for the button to hide the heaviest stack sidebar in timeline tree views.
121
116
  */
122
117
  hideHeaviestStack: 'Hide heaviest stack',
123
118
  /**
@@ -129,35 +124,35 @@ const UIStrings = {
129
124
  */
130
125
  heaviestStackHidden: 'Heaviest stack sidebar hidden',
131
126
  /**
132
- * @description Data grid name for Timeline Stack data grids
127
+ * @description Data grid name for heaviest stack tables in the Performance panel.
133
128
  */
134
129
  timelineStack: 'Timeline stack',
135
130
  /**
136
- * /*@description Text to search by matching case of the input button
131
+ * @description Tooltip for the match case search button in timeline tree views.
137
132
  */
138
133
  matchCase: 'Match case',
139
134
  /**
140
- * @description Text for searching with regular expression button
135
+ * @description Tooltip for the regular expression search button in timeline tree views.
141
136
  */
142
137
  useRegularExpression: 'Use regular expression',
143
138
  /**
144
- * @description Text for Match whole word button
139
+ * @description Tooltip for the match whole word search button in timeline tree views.
145
140
  */
146
141
  matchWholeWord: 'Match whole word',
147
142
  /**
148
- * @description Text for bottom up tree button
143
+ * @description Tooltip for the button to switch to the bottom-up view in timeline tree views.
149
144
  */
150
145
  bottomUp: 'Bottom-up',
151
146
  /**
152
- * @description Text referring to view bottom up tree
147
+ * @description Accessible label for the button to switch to the bottom-up view in timeline tree views.
153
148
  */
154
- viewBottomUp: 'View Bottom-up',
149
+ viewBottomUp: 'View bottom-up',
155
150
  /**
156
- * @description Text referring to a 1st party entity
151
+ * @description Badge text for a 1st party entity in timeline tree views.
157
152
  */
158
153
  firstParty: '1st party',
159
154
  /**
160
- * @description Text referring to an entity that is an extension
155
+ * @description Badge text for an extension entity in timeline tree views.
161
156
  */
162
157
  extension: 'Extension',
163
158
  } as const;
@@ -167,9 +162,12 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
167
162
  /**
168
163
  * For an overview, read: https://chromium.googlesource.com/devtools/devtools-frontend/+/refs/heads/main/front_end/panels/timeline/README.md#timeline-tree-views
169
164
  */
170
- export class TimelineTreeView extends
171
- Common.ObjectWrapper.eventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox>(UI.Widget.VBox)
172
- implements UI.SearchableView.Searchable {
165
+ const TimelineTreeViewBase: Common.ObjectWrapper.EventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox> =
166
+ Common.ObjectWrapper.eventMixin(
167
+ UI.Widget.VBox,
168
+ );
169
+
170
+ export class TimelineTreeView extends TimelineTreeViewBase implements UI.SearchableView.Searchable {
173
171
  /** This is sorted by ts. */
174
172
  #selectedEvents: Trace.Types.Events.Event[]|null;
175
173
  private searchResults: Trace.Extras.TraceTree.Node[];
@@ -196,7 +194,7 @@ export class TimelineTreeView extends
196
194
  #parsedTrace: Trace.TraceModel.ParsedTrace|null = null;
197
195
  #entityMapper: Trace.EntityMapper.EntityMapper|null = null;
198
196
  #lastHighlightedEvent: HTMLElement|null = null;
199
- eventToTreeNode = new WeakMap<Trace.Types.Events.Event, Trace.Extras.TraceTree.Node>();
197
+ eventToTreeNode: WeakMap<Trace.Types.Events.Event, Trace.Extras.TraceTree.Node> = new WeakMap();
200
198
  // Compact mode is used to render the tree view in a more compact UI,
201
199
  // suitable for AI assistance widgets. It removes sidebars and toolbars.
202
200
  #compactMode = false;
@@ -1418,8 +1416,12 @@ export class BottomUpTimelineTreeView extends AggregatedTimelineTreeView {
1418
1416
  }
1419
1417
  }
1420
1418
 
1421
- export class TimelineStackView extends
1422
- Common.ObjectWrapper.eventMixin<TimelineStackView.EventTypes, typeof UI.Widget.VBox>(UI.Widget.VBox) {
1419
+ const TimelineStackViewBase: Common.ObjectWrapper.EventMixin<TimelineStackView.EventTypes, typeof UI.Widget.VBox> =
1420
+ Common.ObjectWrapper.eventMixin(
1421
+ UI.Widget.VBox,
1422
+ );
1423
+
1424
+ export class TimelineStackView extends TimelineStackViewBase {
1423
1425
  private readonly treeView: TimelineTreeView;
1424
1426
  private readonly dataGrid: DataGrid.ViewportDataGrid.ViewportDataGrid<unknown>;
1425
1427