chrome-devtools-frontend 1.0.1689415 → 1.0.1690116

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 (197) hide show
  1. package/eslint.config.mjs +8 -2
  2. package/front_end/core/common/Object.ts +10 -4
  3. package/front_end/core/i18n/collect-ui-strings.js +5 -5
  4. package/front_end/core/i18n/generate-locales-js.js +1 -1
  5. package/front_end/core/i18n/i18n.ts +6 -0
  6. package/front_end/core/root/Runtime.ts +0 -5
  7. package/front_end/core/sdk/CSSMetadata.ts +3 -5
  8. package/front_end/core/sdk/DOMModel.ts +46 -11
  9. package/front_end/core/sdk/EmulationModel.ts +18 -0
  10. package/front_end/core/sdk/SDKSettings.ts +9 -0
  11. package/front_end/core/sdk/Script.ts +0 -1
  12. package/front_end/core/sdk/SecurityOrigin.ts +135 -25
  13. package/front_end/core/sdk/Target.ts +1 -5
  14. package/front_end/models/ai_assistance/AiUtils.ts +0 -10
  15. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +6 -10
  16. package/front_end/models/ai_assistance/agents/StylingAgent.ts +0 -1
  17. package/front_end/models/ai_assistance/injected.ts +0 -2
  18. package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -1
  19. package/front_end/models/trace/insights/CLSCulprits.ts +1 -2
  20. package/front_end/models/trace/insights/Cache.ts +1 -3
  21. package/front_end/models/trace/insights/CharacterSet.ts +1 -3
  22. package/front_end/models/trace/insights/DOMSize.ts +1 -3
  23. package/front_end/models/trace/insights/DocumentLatency.ts +1 -3
  24. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -3
  25. package/front_end/models/trace/insights/FontDisplay.ts +1 -2
  26. package/front_end/models/trace/insights/ForcedReflow.ts +1 -2
  27. package/front_end/models/trace/insights/INPBreakdown.ts +1 -3
  28. package/front_end/models/trace/insights/ImageDelivery.ts +1 -3
  29. package/front_end/models/trace/insights/LCPBreakdown.ts +1 -3
  30. package/front_end/models/trace/insights/LCPDiscovery.ts +1 -3
  31. package/front_end/models/trace/insights/LegacyJavaScript.ts +1 -3
  32. package/front_end/models/trace/insights/ModernHTTP.ts +1 -2
  33. package/front_end/models/trace/insights/NetworkDependencyTree.ts +1 -2
  34. package/front_end/models/trace/insights/RenderBlocking.ts +1 -3
  35. package/front_end/models/trace/insights/SlowCSSSelector.ts +1 -3
  36. package/front_end/models/trace/insights/ThirdParties.ts +1 -3
  37. package/front_end/models/trace/insights/Viewport.ts +1 -2
  38. package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -1
  39. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +3 -3
  40. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -2
  41. package/front_end/panels/accessibility/AccessibilityStrings.ts +7 -3
  42. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -2
  43. package/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.ts +1 -3
  44. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +1 -1
  45. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  46. package/front_end/panels/animation/AnimationUI.ts +1 -1
  47. package/front_end/panels/application/AppManifestView.ts +6 -2
  48. package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
  49. package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
  50. package/front_end/panels/application/FrameDetailsView.ts +1 -1
  51. package/front_end/panels/application/IndexedDBViews.ts +3 -2
  52. package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
  53. package/front_end/panels/application/ReportingApiView.ts +2 -2
  54. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
  55. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  56. package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
  57. package/front_end/panels/application/StorageItemsToolbar.ts +6 -2
  58. package/front_end/panels/application/StorageView.ts +9 -8
  59. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  60. package/front_end/panels/application/WebMCPView.ts +2 -1
  61. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
  62. package/front_end/panels/application/components/CrashReportContextGrid.ts +1 -1
  63. package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
  64. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  65. package/front_end/panels/application/components/TrustTokensView.ts +1 -1
  66. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  67. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
  68. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -2
  69. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -0
  70. package/front_end/panels/autofill/AutofillView.ts +2 -2
  71. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -3
  72. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  73. package/front_end/panels/changes/ChangesSidebar.ts +56 -15
  74. package/front_end/panels/changes/ChangesView.ts +1 -1
  75. package/front_end/panels/console/ConsolePrompt.ts +6 -2
  76. package/front_end/panels/console/ConsoleSidebar.ts +6 -2
  77. package/front_end/panels/elements/ElementsTreeElement.ts +12 -0
  78. package/front_end/panels/elements/ElementsTreeOutline.ts +400 -128
  79. package/front_end/panels/elements/PropertyRenderer.ts +22 -15
  80. package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -2
  81. package/front_end/panels/elements/StylePropertyTreeElement.ts +75 -26
  82. package/front_end/panels/elements/StylesSidebarPane.ts +6 -2
  83. package/front_end/panels/elements/elementsTreeOutline.css +4 -0
  84. package/front_end/panels/emulation/DeviceModeView.ts +6 -1
  85. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +6 -2
  86. package/front_end/panels/layer_viewer/LayerDetailsView.ts +6 -2
  87. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +7 -2
  88. package/front_end/panels/layer_viewer/Layers3DView.ts +8 -1
  89. package/front_end/panels/layer_viewer/PaintProfilerView.ts +6 -2
  90. package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
  91. package/front_end/panels/lighthouse/lighthouseStartView.css +13 -13
  92. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +6 -2
  93. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +6 -2
  94. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +6 -2
  95. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +25 -54
  96. package/front_end/panels/network/NetworkLogView.ts +8 -3
  97. package/front_end/panels/network/components/RequestHeadersView.css +5 -0
  98. package/front_end/panels/network/networkLogView.css +4 -0
  99. package/front_end/panels/network/requestInitiatorViewTree.css +2 -0
  100. package/front_end/panels/performance_monitor/performanceMonitor.css +3 -3
  101. package/front_end/panels/profiler/HeapDetachedElementsView.ts +7 -2
  102. package/front_end/panels/profiler/HeapProfileView.ts +7 -2
  103. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -4
  104. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +8 -4
  105. package/front_end/panels/profiler/HeapSnapshotView.ts +15 -6
  106. package/front_end/panels/profiler/HeapTimelineOverview.ts +6 -2
  107. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +12 -5
  108. package/front_end/panels/profiler/ProfileLauncherView.ts +6 -2
  109. package/front_end/panels/profiler/profilesPanel.css +8 -9
  110. package/front_end/panels/profiler/profilesSidebarTree.css +13 -13
  111. package/front_end/panels/protocol_monitor/JSONEditor.css +2 -2
  112. package/front_end/panels/protocol_monitor/JSONEditor.ts +6 -1
  113. package/front_end/panels/protocol_monitor/protocolMonitor.css +2 -2
  114. package/front_end/panels/sources/SourcesView.ts +7 -2
  115. package/front_end/panels/sources/TabbedEditorContainer.ts +6 -2
  116. package/front_end/panels/sources/UISourceCodeFrame.ts +10 -3
  117. package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -1
  118. package/front_end/panels/timeline/AnnotationHelpers.ts +9 -9
  119. package/front_end/panels/timeline/CountersGraph.ts +8 -8
  120. package/front_end/panels/timeline/EventsTimelineTreeView.ts +3 -3
  121. package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
  122. package/front_end/panels/timeline/GPUTrackAppender.ts +1 -1
  123. package/front_end/panels/timeline/InteractionsTrackAppender.ts +1 -1
  124. package/front_end/panels/timeline/IsolateSelector.ts +2 -2
  125. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +3 -3
  126. package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -1
  127. package/front_end/panels/timeline/StatusDialog.ts +5 -6
  128. package/front_end/panels/timeline/ThirdPartyTreeView.ts +4 -4
  129. package/front_end/panels/timeline/ThreadAppender.ts +12 -14
  130. package/front_end/panels/timeline/TimelineController.ts +5 -8
  131. package/front_end/panels/timeline/TimelineDetailsView.ts +13 -9
  132. package/front_end/panels/timeline/TimelineEventOverview.ts +4 -4
  133. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +17 -17
  134. package/front_end/panels/timeline/TimelineFlameChartView.ts +8 -3
  135. package/front_end/panels/timeline/TimelineHistoryManager.ts +8 -8
  136. package/front_end/panels/timeline/TimelineLoader.ts +1 -1
  137. package/front_end/panels/timeline/TimelineMiniMap.ts +7 -2
  138. package/front_end/panels/timeline/TimelinePanel.ts +57 -59
  139. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +27 -27
  140. package/front_end/panels/timeline/TimelineTreeView.ts +46 -44
  141. package/front_end/panels/timeline/TimelineUIUtils.ts +142 -116
  142. package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
  143. package/front_end/panels/timeline/TrackConfigBanner.ts +4 -4
  144. package/front_end/panels/timeline/UIDevtoolsUtils.ts +15 -15
  145. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  146. package/front_end/panels/timeline/enable-easter-egg.js +1 -1
  147. package/front_end/panels/timeline/timeline-meta.ts +30 -30
  148. package/front_end/panels/timeline/timelineFlameChartView.css +10 -10
  149. package/front_end/panels/timeline/timelineFlamechartPopover.css +5 -5
  150. package/front_end/panels/timeline/timelineHistoryManager.css +7 -7
  151. package/front_end/panels/timeline/timelinePaintProfiler.css +2 -2
  152. package/front_end/panels/timeline/utils/IgnoreList.ts +4 -4
  153. package/front_end/third_party/chromium/README.chromium +1 -1
  154. package/front_end/ui/comments/CommentAnchorResolver.ts +12 -3
  155. package/front_end/ui/comments/CommentOverlayManager.ts +9 -1
  156. package/front_end/ui/components/buttons/Button.docs.ts +1 -1
  157. package/front_end/ui/components/buttons/button.css +21 -0
  158. package/front_end/ui/components/report_view/ReportView.docs.ts +1 -1
  159. package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
  160. package/front_end/ui/components/spinners/Spinner.ts +1 -1
  161. package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
  162. package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -2
  163. package/front_end/ui/components/switch/Switch.docs.ts +1 -1
  164. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +10 -8
  165. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +2 -1
  166. package/front_end/ui/components/text_editor/ExecutionPositionHighlighter.ts +2 -2
  167. package/front_end/ui/components/text_editor/TextEditor.ts +19 -0
  168. package/front_end/ui/components/text_editor/config.ts +109 -96
  169. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  170. package/front_end/ui/components/text_editor/theme.ts +1 -1
  171. package/front_end/ui/components/tooltips/Tooltip.docs.ts +1 -1
  172. package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
  173. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +4 -1
  174. package/front_end/ui/kit/cards/Card.ts +1 -1
  175. package/front_end/ui/kit/icons/Icon.ts +1 -1
  176. package/front_end/ui/kit/link/Link.docs.ts +1 -1
  177. package/front_end/ui/kit/link/Link.ts +1 -1
  178. package/front_end/ui/legacy/ContextMenu.docs.ts +1 -1
  179. package/front_end/ui/legacy/Dialog.ts +10 -2
  180. package/front_end/ui/legacy/FilterBar.ts +6 -1
  181. package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
  182. package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
  183. package/front_end/ui/legacy/Slider.docs.ts +1 -1
  184. package/front_end/ui/legacy/SplitWidget.ts +5 -1
  185. package/front_end/ui/legacy/TabbedPane.ts +5 -1
  186. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +6 -1
  187. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +6 -2
  188. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +6 -1
  189. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +6 -2
  190. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -0
  191. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -1
  192. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +6 -2
  193. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +8 -4
  194. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -3
  195. package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -1
  196. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -2
  197. package/package.json +2 -2
@@ -86,8 +86,12 @@ const HEADER_OVERRIDES_FILENAME = '.headers';
86
86
 
87
87
  let tabId = 0;
88
88
 
89
- export class TabbedEditorContainer extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Widget.VBox>(
90
- UI.Widget.VBox) {
89
+ const TabbedEditorContainerBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
90
+ Common.ObjectWrapper.eventMixin(
91
+ UI.Widget.VBox,
92
+ );
93
+
94
+ export class TabbedEditorContainer extends TabbedEditorContainerBase {
91
95
  #historyManager!: EditingLocationHistoryManager;
92
96
  set historyManager(historyManager: EditingLocationHistoryManager) {
93
97
  this.#historyManager = historyManager;
@@ -40,9 +40,13 @@ const UIStrings = {
40
40
  const str_ = i18n.i18n.registerUIStrings('panels/sources/UISourceCodeFrame.ts', UIStrings);
41
41
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
42
42
 
43
- export class UISourceCodeFrame extends Common.ObjectWrapper
44
- .eventMixin<EventTypes, typeof SourceFrame.SourceFrame.SourceFrameImpl>(
45
- SourceFrame.SourceFrame.SourceFrameImpl) {
43
+ const UISourceCodeFrameBase:
44
+ Common.ObjectWrapper.EventMixin<EventTypes, typeof SourceFrame.SourceFrame.SourceFrameImpl> =
45
+ Common.ObjectWrapper.eventMixin(
46
+ SourceFrame.SourceFrame.SourceFrameImpl,
47
+ );
48
+
49
+ export class UISourceCodeFrame extends UISourceCodeFrameBase {
46
50
  #uiSourceCode: Workspace.UISourceCode.UISourceCode;
47
51
  #muteSourceCodeEvents = false;
48
52
  #persistenceBinding: Persistence.Persistence.PersistenceBinding|null;
@@ -150,6 +154,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
150
154
  }
151
155
 
152
156
  private unloadUISourceCode(): void {
157
+ this.textEditor.removeAttribute('data-file-path');
153
158
  Common.EventTarget.removeEventListeners(this.#messageAndDecorationListeners);
154
159
  Common.EventTarget.removeEventListeners(this.#uiSourceCodeEventListeners);
155
160
  this.#uiSourceCode.removeWorkingCopyGetter();
@@ -158,6 +163,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
158
163
  }
159
164
 
160
165
  private initializeUISourceCode(): void {
166
+ this.textEditor.setAttribute('data-file-path', this.#uiSourceCode.url());
161
167
  this.#uiSourceCodeEventListeners = [
162
168
  this.#uiSourceCode.addEventListener(
163
169
  Workspace.UISourceCode.Events.WorkingCopyChanged, this.onWorkingCopyChanged, this),
@@ -333,6 +339,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
333
339
  }
334
340
 
335
341
  private onTitleChanged(): void {
342
+ this.textEditor.setAttribute('data-file-path', this.#uiSourceCode.url());
336
343
  this.updateLanguageMode('').then(() => this.reloadPlugins(), console.error);
337
344
  }
338
345
 
@@ -17,7 +17,7 @@ import {
17
17
 
18
18
  const UIStrings = {
19
19
  /**
20
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
20
+ * @description Header for the animations track in the timeline flame chart of the Performance panel.
21
21
  */
22
22
  animations: 'Animations',
23
23
  } as const;
@@ -11,44 +11,44 @@ import type {AnnotationModifiedEvent} from './ModificationsManager.js';
11
11
 
12
12
  const UIStrings = {
13
13
  /**
14
- * @description text used to announce to a screen reader that they have entered the mode to edit the label
14
+ * @description Screen reader announcement when entering label editing mode in the Performance panel.
15
15
  */
16
16
  srEnterLabelEditMode: 'Editing the annotation label text',
17
17
  /**
18
- * @description text used to announce to a screen reader that the entry label text has been updated
18
+ * @description Screen reader announcement when an entry label text has been updated in the Performance panel.
19
19
  * @example {Hello world} PH1
20
20
  */
21
21
  srLabelTextUpdated: 'Label updated to {PH1}',
22
22
  /**
23
- * @description text used to announce to a screen reader that the bounds of a time range annotation have been upodated
23
+ * @description Screen reader announcement when the bounds of a time range annotation have been updated in the Performance panel.
24
24
  * @example {13ms} PH1
25
25
  * @example {20ms} PH2
26
26
  */
27
27
  srTimeRangeBoundsUpdated: 'Time range updated, starting at {PH1} and ending at {PH2}',
28
28
  /**
29
- * @description label for a time range overlay
29
+ * @description Accessible label for a time range overlay in the timeline flame chart.
30
30
  */
31
31
  timeRange: 'time range',
32
32
  /**
33
- * @description label for a entry label overlay
33
+ * @description Accessible label for an entry label overlay in the timeline flame chart.
34
34
  */
35
35
  entryLabel: 'entry label',
36
36
  /**
37
- * @description label for a connected entries overlay
37
+ * @description Accessible label for a connected entries overlay in the timeline flame chart.
38
38
  */
39
39
  entriesLink: 'connected entries',
40
40
  /**
41
- * @description screen reader text to announce that an annotation has been removed
41
+ * @description Screen reader announcement when an annotation has been removed in the Performance panel.
42
42
  * @example {Entry Label} PH1
43
43
  */
44
44
  srAnnotationRemoved: 'The {PH1} annotation has been removed',
45
45
  /**
46
- * @description screen reader text to announce that an annotation has been added
46
+ * @description Screen reader announcement when an annotation has been added in the Performance panel.
47
47
  * @example {Entry Label} PH1
48
48
  */
49
49
  srAnnotationAdded: 'The {PH1} annotation has been added',
50
50
  /**
51
- * @description screen reader text to announce the two events that the connected entries annotation links to
51
+ * @description Screen reader announcement when the connected entries annotation links to two events in the Performance panel.
52
52
  * @example {Paint} PH1
53
53
  * @example {Function call} PH2
54
54
  */
@@ -18,35 +18,35 @@ import type {TimelineModeViewDelegate} from './TimelinePanel.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Text for a heap profile type
21
+ * @description Label for the JS heap counter in the counters graph of the Performance panel.
22
22
  */
23
23
  jsHeap: 'JS heap',
24
24
  /**
25
- * @description Text for documents, a type of resources
25
+ * @description Label for the documents counter in the counters graph of the Performance panel.
26
26
  */
27
27
  documents: 'Documents',
28
28
  /**
29
- * @description Text in Counters Graph of the Performance panel
29
+ * @description Label for the DOM nodes counter in the counters graph of the Performance panel.
30
30
  */
31
31
  nodes: 'Nodes',
32
32
  /**
33
- * @description Text in Counters Graph of the Performance panel
33
+ * @description Label for the event listeners counter in the counters graph of the Performance panel.
34
34
  */
35
35
  listeners: 'Listeners',
36
36
  /**
37
- * @description Text in Counters Graph of the Performance panel
37
+ * @description Label for the GPU memory counter in the counters graph of the Performance panel.
38
38
  */
39
39
  gpuMemory: 'GPU memory',
40
40
  /**
41
- * @description Range text content in Counters Graph of the Performance panel
41
+ * @description Range text content in the counters graph of the Performance panel.
42
42
  * @example {2} PH1
43
43
  * @example {10} PH2
44
44
  */
45
45
  ss: '[{PH1} – {PH2}]',
46
46
  /**
47
- * @description text shown when no counter events are found and the graph is empty
47
+ * @description Message displayed when no memory usage data is found in the counters graph of the Performance panel.
48
48
  */
49
- noEventsFound: 'No memory usage data found within selected events.',
49
+ noEventsFound: 'No memory usage data found within selected events',
50
50
  } as const;
51
51
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/CountersGraph.ts', UIStrings);
52
52
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -18,15 +18,15 @@ import {TimelineUIUtils} from './TimelineUIUtils.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Text for the start time of an activity
21
+ * @description Column header for start time in the event log tree view of the Performance panel.
22
22
  */
23
23
  startTime: 'Start time',
24
24
  /**
25
- * @description Screen reader label for a select box that filters the Performance panel Event Log by duration.
25
+ * @description Screen reader label for a select box that filters the event log by duration in the Performance panel.
26
26
  */
27
27
  durationFilter: 'Duration filter',
28
28
  /**
29
- * @description Text for everything
29
+ * @description Option in the duration filter dropdown to show all events in the event log of the Performance panel.
30
30
  */
31
31
  all: 'All',
32
32
  } as const;
@@ -18,7 +18,7 @@ import * as Extensions from './extensions/extensions.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description The subtitle to show (by the side of the track name).
21
+ * @description Subtitle shown next to the track name for an extension track in the timeline flame chart.
22
22
  */
23
23
  customTrackSubtitle: '— Custom',
24
24
  } as const;
@@ -16,7 +16,7 @@ import {
16
16
 
17
17
  const UIStrings = {
18
18
  /**
19
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
19
+ * @description Header for the GPU track in the timeline flame chart of the Performance panel.
20
20
  */
21
21
  gpu: 'GPU',
22
22
  } as const;
@@ -19,7 +19,7 @@ import * as Components from './components/components.js';
19
19
 
20
20
  const UIStrings = {
21
21
  /**
22
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
22
+ * @description Header for the interactions track in the timeline flame chart of the Performance panel.
23
23
  */
24
24
  interactions: 'Interactions',
25
25
  } as const;
@@ -10,11 +10,11 @@ import * as UI from '../../ui/legacy/legacy.js';
10
10
 
11
11
  const UIStrings = {
12
12
  /**
13
- * @description Text to show an item is empty
13
+ * @description Placeholder text shown when a JavaScript VM isolate has no label in the Performance panel.
14
14
  */
15
15
  empty: '(empty)',
16
16
  /**
17
- * @description Text in isolate selector in Performance panel
17
+ * @description Title for the dropdown to select a JavaScript VM instance in the Performance panel.
18
18
  */
19
19
  selectJavascriptVmInstance: 'Select JavaScript VM instance',
20
20
  } as const;
@@ -24,15 +24,15 @@ import * as Utils from './utils/utils.js';
24
24
 
25
25
  const UIStrings = {
26
26
  /**
27
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
27
+ * @description Header for the layout shifts track in the timeline flame chart of the Performance panel.
28
28
  */
29
29
  layoutShifts: 'Layout shifts',
30
30
  /**
31
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
31
+ * @description Title for a layout shift cluster event in the timeline flame chart.
32
32
  */
33
33
  layoutShiftCluster: 'Layout shift cluster',
34
34
  /**
35
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
35
+ * @description Title for a layout shift event in the timeline flame chart.
36
36
  */
37
37
  layoutShift: 'Layout shift',
38
38
  } as const;
@@ -23,7 +23,7 @@ import {InstantEventVisibleDurationMs} from './TimelineFlameChartDataProvider.js
23
23
 
24
24
  const UIStrings = {
25
25
  /**
26
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
26
+ * @description Header for the network track in the timeline flame chart of the Performance panel.
27
27
  */
28
28
  network: 'Network',
29
29
  } as const;
@@ -19,26 +19,25 @@ import timelineStatusDialogStyles from './timelineStatusDialog.css.js';
19
19
 
20
20
  const UIStrings = {
21
21
  /**
22
- * @description Text to download the trace file after an error
22
+ * @description Button label to download the trace file after an error in the status dialog.
23
23
  */
24
24
  downloadAfterError: 'Download trace',
25
25
  /**
26
- * @description Text for the status of something
26
+ * @description Label for the status field in the status dialog.
27
27
  */
28
28
  status: 'Status',
29
29
  /**
30
- * @description Text that refers to the time
30
+ * @description Label for the elapsed time field in the status dialog.
31
31
  */
32
32
  time: 'Time',
33
33
  /**
34
- * @description Text for the description of something
34
+ * @description Label for the description field in the status dialog.
35
35
  */
36
36
  description: 'Description',
37
37
  /**
38
- * @description Text of an item that stops the running task
38
+ * @description Button label to stop recording in the status dialog.
39
39
  */
40
40
  stop: 'Stop',
41
-
42
41
  } as const;
43
42
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/StatusDialog.ts', UIStrings);
44
43
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -13,19 +13,19 @@ import * as TimelineTreeView from './TimelineTreeView.js';
13
13
 
14
14
  const UIStrings = {
15
15
  /**
16
- * @description Unattributed text for an unattributed entity.
16
+ * @description Label for an unattributed entity in the 1st / 3rd party tree view.
17
17
  */
18
18
  unattributed: '[unattributed]',
19
19
  /**
20
- * @description Title for the name of either 1st or 3rd Party entities.
20
+ * @description Column header for entity names in the 1st / 3rd party tree view.
21
21
  */
22
22
  firstOrThirdPartyName: '1st / 3rd party',
23
23
  /**
24
- * @description Title referencing transfer size.
24
+ * @description Column header for the network transfer size in the 1st / 3rd party tree view.
25
25
  */
26
26
  transferSize: 'Transfer size',
27
27
  /**
28
- * @description Title referencing main thread time.
28
+ * @description Column header for the main thread time in the 1st / 3rd party tree view.
29
29
  */
30
30
  mainThreadTime: 'Main thread time',
31
31
  } as const;
@@ -29,61 +29,59 @@ import * as Utils from './utils/utils.js';
29
29
 
30
30
  const UIStrings = {
31
31
  /**
32
- * @description Text shown for an entry in the flame chart that is ignored because it matches
33
- * a predefined ignore list.
32
+ * @description Text shown for an entry in the flame chart that matches an ignore list rule.
34
33
  * @example {/analytics\.js$} rule
35
34
  */
36
35
  onIgnoreList: 'On ignore list ({rule})',
37
36
  /**
38
- * @description Refers to the "Main frame", meaning the top level frame. See https://www.w3.org/TR/html401/present/frames.html
37
+ * @description Header for the main thread track of a top-level frame in the timeline flame chart.
39
38
  * @example {example.com} PH1
40
39
  */
41
40
  mainS: 'Main — {PH1}',
42
41
  /**
43
- * @description Refers to the main thread of execution of a program. See https://developer.mozilla.org/en-US/docs/Glossary/Main_thread
42
+ * @description Header for the main thread track in the timeline flame chart.
44
43
  */
45
44
  main: 'Main',
46
45
  /**
47
- * @description Refers to any frame in the page. See https://www.w3.org/TR/html401/present/frames.html
46
+ * @description Header for a frame thread track in the timeline flame chart.
48
47
  * @example {https://example.com} PH1
49
48
  */
50
49
  frameS: 'Frame — {PH1}',
51
50
  /**
52
- * @description A web worker in the page. See https://developer.mozilla.org/en-US/docs/Web/API/Worker
51
+ * @description Header for a dedicated worker thread track in the timeline flame chart.
53
52
  * @example {https://google.com} PH1
54
53
  */
55
54
  workerS: '`Worker` — {PH1}',
56
55
  /**
57
- * @description A web worker in the page. See https://developer.mozilla.org/en-US/docs/Web/API/Worker
56
+ * @description Header for a named dedicated worker thread track in the timeline flame chart.
58
57
  * @example {FormatterWorker} PH1
59
58
  * @example {https://google.com} PH2
60
59
  */
61
60
  workerSS: '`Worker`: {PH1} — {PH2}',
62
61
  /**
63
- * @description Label for a web worker exclusively allocated for a purpose.
62
+ * @description Header for an unnamed dedicated worker thread track in the timeline flame chart.
64
63
  */
65
64
  dedicatedWorker: 'Dedicated `Worker`',
66
65
  /**
67
- * @description A generic name given for a thread running in the browser (sequence of programmed instructions).
68
- * The placeholder is an enumeration given to the thread.
66
+ * @description Generic header for a thread track in the timeline flame chart.
69
67
  * @example {1} PH1
70
68
  */
71
69
  threadS: 'Thread {PH1}',
72
70
  /**
73
- * @description Rasterization in computer graphics.
71
+ * @description Header for the rasterizer thread track in the timeline flame chart.
74
72
  */
75
73
  raster: 'Raster',
76
74
  /**
77
- * @description Threads used for background tasks.
75
+ * @description Header for the thread pool track in the timeline flame chart.
78
76
  */
79
77
  threadPool: 'Thread pool',
80
78
  /**
81
- * @description Name for a thread that rasterizes graphics in a website.
79
+ * @description Header for an indexed rasterizer thread track in the timeline flame chart.
82
80
  * @example {2} PH1
83
81
  */
84
82
  rasterizerThreadS: 'Rasterizer thread {PH1}',
85
83
  /**
86
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
84
+ * @description Header for an indexed thread pool worker track in the timeline flame chart.
87
85
  * @example {2} PH1
88
86
  */
89
87
  threadPoolThreadS: 'Thread pool worker {PH1}',
@@ -18,26 +18,23 @@ import * as RecordingMetadata from './RecordingMetadata.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Text in Timeline Panel of the Performance panel
21
+ * @description Status text shown in the Performance panel when tracing is being initialized.
22
22
  */
23
23
  initializingTracing: 'Initializing tracing…',
24
24
  /**
25
- * @description Text to indicate the progress of a trace. Informs the user that we are currently
26
- * creating a performance trace.
25
+ * @description Status text shown in the Performance panel while recording a trace.
27
26
  */
28
27
  tracing: 'Tracing…',
29
28
  /**
30
- * @description Text in Timeline Controller of the Performance panel indicating that the Performance Panel cannot
31
- * record a performance trace because the type of target (where possible types are page, service worker and shared
32
- * worker) doesn't support it.
29
+ * @description Error message shown when performance trace recording is not supported for the selected target type in the Performance panel.
33
30
  */
34
31
  tracingNotSupported: 'Performance trace recording not supported for this type of target',
35
32
  /**
36
- * @description Text in a status dialog shown during a performance trace of a web page. It indicates to the user what the tracing is currently waiting on.
33
+ * @description Status text shown in the status dialog while waiting for the page load event.
37
34
  */
38
35
  waitingForLoadEvent: 'Waiting for load event…',
39
36
  /**
40
- * @description Text in a status dialog shown during a performance trace of a web page. It indicates to the user what the tracing is currently waiting on.
37
+ * @description Status text shown in the status dialog while waiting for the page load event and five additional seconds.
41
38
  */
42
39
  waitingForLoadEventPlus5Seconds: 'Waiting for load event (+5s)…',
43
40
  } as const;
@@ -42,31 +42,31 @@ import {TracingFrameLayerTree} from './TracingLayerTree.js';
42
42
 
43
43
  const UIStrings = {
44
44
  /**
45
- * @description Text for the summary view
45
+ * @description Title for the summary tab in the details view of the Performance panel.
46
46
  */
47
47
  summary: 'Summary',
48
48
  /**
49
- * @description Text in Timeline Details View of the Performance panel
49
+ * @description Title for the bottom-up tab in the details view of the Performance panel.
50
50
  */
51
51
  bottomup: 'Bottom-up',
52
52
  /**
53
- * @description Text in Timeline Details View of the Performance panel
53
+ * @description Title for the call tree tab in the details view of the Performance panel.
54
54
  */
55
55
  callTree: 'Call tree',
56
56
  /**
57
- * @description Text in Timeline Details View of the Performance panel
57
+ * @description Title for the event log tab in the details view of the Performance panel.
58
58
  */
59
59
  eventLog: 'Event log',
60
60
  /**
61
- * @description Title of the paint profiler, old name of the performance pane
61
+ * @description Title for the paint profiler tab in the details view of the Performance panel.
62
62
  */
63
63
  paintProfiler: 'Paint profiler',
64
64
  /**
65
- * @description Title of the Layers tool
65
+ * @description Title for the layers tab in the details view of the Performance panel.
66
66
  */
67
67
  layers: 'Layers',
68
68
  /**
69
- * @description Title of the selector stats tab
69
+ * @description Title for the selector stats tab in the details view of the Performance panel.
70
70
  */
71
71
  selectorStats: 'Selector stats',
72
72
  } as const;
@@ -74,8 +74,12 @@ const str_ = i18n.i18n.registerUIStrings('panels/timeline/TimelineDetailsView.ts
74
74
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
75
75
  const {widget} = UI.Widget;
76
76
 
77
- export class TimelineDetailsPane extends
78
- Common.ObjectWrapper.eventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox>(UI.Widget.VBox) {
77
+ const TimelineDetailsPaneBase: Common.ObjectWrapper.EventMixin<TimelineTreeView.EventTypes, typeof UI.Widget.VBox> =
78
+ Common.ObjectWrapper.eventMixin(
79
+ UI.Widget.VBox,
80
+ );
81
+
82
+ export class TimelineDetailsPane extends TimelineDetailsPaneBase {
79
83
  private readonly detailsLinkifier: Components.Linkifier.Linkifier;
80
84
  private tabbedPane: UI.TabbedPane.TabbedPane;
81
85
  private readonly defaultDetailsWidget: UI.Widget.VBox;
@@ -14,19 +14,19 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
14
14
 
15
15
  const UIStrings = {
16
16
  /**
17
- * @description Short for Network. Label for the network requests section of the Performance panel.
17
+ * @description Label for the network overview strip in the Performance panel.
18
18
  */
19
19
  net: 'NET',
20
20
  /**
21
- * @description Text in Timeline Event Overview of the Performance panel
21
+ * @description Label for the CPU overview strip in the Performance panel.
22
22
  */
23
23
  cpu: 'CPU',
24
24
  /**
25
- * @description Text in Timeline Event Overview of the Performance panel
25
+ * @description Label for the heap memory overview strip in the Performance panel.
26
26
  */
27
27
  heap: 'HEAP',
28
28
  /**
29
- * @description Heap size label text content in Timeline Event Overview of the Performance panel
29
+ * @description Range label for minimum and maximum heap size in the heap memory overview strip of the Performance panel.
30
30
  * @example {10 MB} PH1
31
31
  * @example {30 MB} PH2
32
32
  */
@@ -31,71 +31,71 @@ import * as Utils from './utils/utils.js';
31
31
 
32
32
  const UIStrings = {
33
33
  /**
34
- * @description Text for rendering frames
34
+ * @description Header for the frames track in the timeline flame chart.
35
35
  */
36
36
  frames: 'Frames',
37
37
  /**
38
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
38
+ * @description Label for an idle frame in the frames track.
39
39
  */
40
40
  idleFrame: 'Idle frame',
41
41
  /**
42
- * @description Text in Timeline Frame Chart Data Provider of the Performance panel
42
+ * @description Label for a dropped frame in the frames track.
43
43
  */
44
44
  droppedFrame: 'Dropped frame',
45
45
  /**
46
- * @description Text in Timeline Frame Chart Data Provider of the Performance panel
46
+ * @description Label for a partially-presented frame in the frames track.
47
47
  */
48
48
  partiallyPresentedFrame: 'Partially-presented frame',
49
49
  /**
50
- * @description Text for a rendering frame
50
+ * @description Label for a presented frame in the frames track.
51
51
  */
52
52
  frame: 'Frame',
53
53
  /**
54
- * @description Text for Hiding a function from the Flame Chart
54
+ * @description Context menu item to hide a function in the timeline flame chart.
55
55
  */
56
56
  hideFunction: 'Hide function',
57
57
  /**
58
- * @description Text for Hiding all children of a function from the Flame Chart
58
+ * @description Context menu item to hide child entries of a function in the timeline flame chart.
59
59
  */
60
60
  hideChildren: 'Hide children',
61
61
  /**
62
- * @description Text for Hiding all child entries that are identical to the selected entry from the Flame Chart
62
+ * @description Context menu item to hide identical repeating child entries in the timeline flame chart.
63
63
  */
64
64
  hideRepeatingChildren: 'Hide repeating children',
65
65
  /**
66
- * @description Text for remove script from ignore list from the Flame Chart
66
+ * @description Context menu item to remove a script from the ignore list in the timeline flame chart.
67
67
  */
68
68
  removeScriptFromIgnoreList: 'Remove script from ignore list',
69
69
  /**
70
- * @description Text for add script to ignore list from the Flame Chart
70
+ * @description Context menu item to add a script to the ignore list in the timeline flame chart.
71
71
  */
72
72
  addScriptToIgnoreList: 'Add script to ignore list',
73
73
  /**
74
- * @description Text for an action that shows all of the hidden children of an entry
74
+ * @description Context menu item to restore hidden child entries of an entry in the timeline flame chart.
75
75
  */
76
76
  resetChildren: 'Reset children',
77
77
  /**
78
- * @description Text for an action that shows all of the hidden entries of the Flame Chart
78
+ * @description Context menu item to restore all hidden entries in the timeline flame chart.
79
79
  */
80
80
  resetTrace: 'Reset trace',
81
81
  /**
82
- * @description Text of a context menu item to redirect to the AI assistance panel and to start a chat.
82
+ * @description Context menu item to start a chat in the AI assistance panel.
83
83
  */
84
84
  startAChat: 'Start a chat',
85
85
  /**
86
- * @description Context menu item in Performance panel to label an entry.
86
+ * @description Context menu item to add a label annotation to an entry in the Performance panel.
87
87
  */
88
88
  labelEntry: 'Label entry',
89
89
  /**
90
- * @description Context menu item in Performance panel to assess the purpose of an entry via AI.
90
+ * @description Context menu item to assess the purpose of an entry using AI assistance in the Performance panel.
91
91
  */
92
92
  assessThePurpose: 'Assess the purpose',
93
93
  /**
94
- * @description Context menu item in Performance panel to identify time spent in a call tree via AI.
94
+ * @description Context menu item to identify time spent in a call tree using AI assistance in the Performance panel.
95
95
  */
96
96
  identifyTimeSpent: 'Identify time spent',
97
97
  /**
98
- * @description Context menu item in Performance panel to find improvements for a call tree via AI.
98
+ * @description Context menu item to find performance improvements for a call tree using AI assistance in the Performance panel.
99
99
  */
100
100
  findImprovements: 'Find improvements',
101
101
  } as const;
@@ -49,7 +49,7 @@ import * as Utils from './utils/utils.js';
49
49
 
50
50
  const UIStrings = {
51
51
  /**
52
- * @description Text in Timeline Flame Chart View of the Performance panel
52
+ * @description Accessible title for a timeline marker at a given timestamp in the Performance panel.
53
53
  * @example {Frame} PH1
54
54
  * @example {10ms} PH2
55
55
  */
@@ -89,8 +89,13 @@ interface FlameChartDimmer {
89
89
  outline: boolean|{main: number[] | boolean, network: number[]|boolean};
90
90
  }
91
91
 
92
- export class TimelineFlameChartView extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Widget.VBox>(
93
- UI.Widget.VBox) implements PerfUI.FlameChart.FlameChartDelegate, UI.SearchableView.Searchable {
92
+ const TimelineFlameChartViewBase: Common.ObjectWrapper.EventMixin<EventTypes, typeof UI.Widget.VBox> =
93
+ Common.ObjectWrapper.eventMixin(
94
+ UI.Widget.VBox,
95
+ );
96
+
97
+ export class TimelineFlameChartView extends TimelineFlameChartViewBase implements PerfUI.FlameChart.FlameChartDelegate,
98
+ UI.SearchableView.Searchable {
94
99
  private readonly delegate: TimelineModeViewDelegate;
95
100
  /**
96
101
  * Tracks the indexes of matched entries when the user searches the panel.