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
@@ -30,42 +30,42 @@ export const LANDING_PAGE_INDEX_DROPDOWN_CHOICE = Infinity;
30
30
 
31
31
  const UIStrings = {
32
32
  /**
33
- * @description Screen reader label for the Timeline History dropdown button
33
+ * @description Screen reader announcement for the current session in the timeline history dropdown button.
34
34
  * @example {example.com #3} PH1
35
35
  * @example {Show recent timeline sessions} PH2
36
36
  */
37
37
  currentSessionSS: 'Current session: {PH1}. {PH2}',
38
38
  /**
39
- * @description the title shown when the user is viewing the landing page which is showing live performance metrics that are updated automatically.
39
+ * @description Title shown when viewing the live metrics landing page in the Performance panel.
40
40
  */
41
41
  landingPageTitle: 'Live metrics',
42
42
  /**
43
- * @description the title shown when the user is viewing the landing page which can be used to make a new performance recording.
43
+ * @description Title shown when viewing the new recording landing page for Node.js in the Performance panel.
44
44
  */
45
45
  nodeLandingPageTitle: 'New recording',
46
46
  /**
47
- * @description Text in Timeline History Manager of the Performance panel
47
+ * @description Format for a trace title with domain and sequence number in the timeline history dropdown.
48
48
  * @example {example.com} PH1
49
49
  * @example {2} PH2
50
50
  */
51
51
  sD: '{PH1} #{PH2}',
52
52
  /**
53
- * @description Text in Timeline History Manager showing custom title alongside domain sequence number
53
+ * @description Format for a custom trace title with sequence number in the timeline history dropdown.
54
54
  * @example {Custom Profile} PH1
55
55
  * @example {example.com #2} PH2
56
56
  */
57
57
  customTitleWithSequence: '{PH1} ({PH2})',
58
58
  /**
59
- * @description Accessible label for the timeline session selection menu
59
+ * @description Accessible label for the timeline session selection dropdown in the Performance panel.
60
60
  */
61
61
  selectTimelineSession: 'Select timeline session',
62
62
  /**
63
- * @description Text label for a menu item indicating that a specific slowdown multiplier is applied.
63
+ * @description Label indicating a CPU slowdown multiplier applied to a recording in the timeline history dropdown.
64
64
  * @example {2} PH1
65
65
  */
66
66
  dSlowdown: '{PH1}× slowdown',
67
67
  /**
68
- * @description Tooltip text that appears when hovering over the Back arrow inside the 'Select Timeline Session' dropdown in the Performance pane.
68
+ * @description Tooltip for the back button in the timeline session selection dropdown in the Performance panel.
69
69
  */
70
70
  backButtonTooltip: 'View live metrics page',
71
71
  } as const;
@@ -15,7 +15,7 @@ import type {Client} from './TimelineController.js';
15
15
 
16
16
  const UIStrings = {
17
17
  /**
18
- * @description Text in Timeline Loader of the Performance panel
18
+ * @description Error message displayed when timeline trace data cannot be parsed in the Performance panel.
19
19
  * @example {Unknown JSON format} PH1
20
20
  */
21
21
  malformedTimelineDataS: 'Malformed timeline data: {PH1}',
@@ -40,8 +40,13 @@ export interface OverviewData {
40
40
  * update the visible trace window, and when this happens it will update the
41
41
  * TraceBounds service with the new values.
42
42
  */
43
- export class TimelineMiniMap extends
44
- Common.ObjectWrapper.eventMixin<PerfUI.TimelineOverviewPane.EventTypes, typeof UI.Widget.VBox>(UI.Widget.VBox) {
43
+ const TimelineMiniMapBase:
44
+ Common.ObjectWrapper.EventMixin<PerfUI.TimelineOverviewPane.EventTypes, typeof UI.Widget.VBox> =
45
+ Common.ObjectWrapper.eventMixin(
46
+ UI.Widget.VBox,
47
+ );
48
+
49
+ export class TimelineMiniMap extends TimelineMiniMapBase {
45
50
  #overviewComponent = new PerfUI.TimelineOverviewPane.TimelineOverviewPane('timeline');
46
51
  #controls: TimelineEventOverview[] = [];
47
52
  breadcrumbs: TimelineComponents.Breadcrumbs.Breadcrumbs|null = null;
@@ -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;
@@ -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.',