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
@@ -51,8 +51,6 @@ import * as Workspace from '../../models/workspace/workspace.js';
51
51
  import * as TraceBounds from '../../services/trace_bounds/trace_bounds.js';
52
52
  import * as Tracing from '../../services/tracing/tracing.js';
53
53
  import * as CodeHighlighter from '../../ui/components/code_highlighter/code_highlighter.js';
54
- // eslint-disable-next-line @devtools/es-modules-import
55
- import codeHighlighterStyles from '../../ui/components/code_highlighter/codeHighlighter.css.js';
56
54
  import * as uiI18n from '../../ui/i18n/i18n.js';
57
55
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
58
56
  // eslint-disable-next-line @devtools/es-modules-import
@@ -76,401 +74,428 @@ import * as Utils from './utils/utils.js';
76
74
 
77
75
  const UIStrings = {
78
76
  /**
79
- * @description Text that only contain a placeholder
77
+ * @description Format string that only contains a single placeholder value.
80
78
  * @example {100ms (at 200ms)} PH1
81
79
  */
82
80
  emptyPlaceholder: '{PH1}', // eslint-disable-line @devtools/l10n-uistrings-text-style
83
81
  /**
84
- * @description Text for timestamps of items
82
+ * @description Label for the timestamp field in the details view of the Performance panel.
85
83
  */
86
84
  timestamp: 'Timestamp',
87
85
  /**
88
- * @description Text shown next to the interaction event's ID in the detail view.
86
+ * @description Label for an interaction event ID in the details view of the Performance panel.
89
87
  */
90
88
  interactionID: 'ID',
91
89
  /**
92
- * @description Text shown next to the interaction event's input delay time in the detail view.
90
+ * @description Label for an interaction event input delay in the details view of the Performance panel.
93
91
  */
94
92
  inputDelay: 'Input delay',
95
93
  /**
96
- * @description Text shown next to the interaction event's thread processing duration in the detail view.
94
+ * @description Label for an interaction event processing duration in the details view of the Performance panel.
97
95
  */
98
96
  processingDuration: 'Processing duration',
99
97
  /**
100
- * @description Text shown next to the interaction event's presentation delay time in the detail view.
98
+ * @description Label for an interaction event presentation delay in the details view of the Performance panel.
101
99
  */
102
100
  presentationDelay: 'Presentation delay',
103
101
  /**
104
- * @description Text shown when the user has selected an event that represents script compiliation.
102
+ * @description Label for a script compilation event in the Performance panel.
105
103
  */
106
104
  compile: 'Compile',
107
105
  /**
108
- * @description Text shown when the user selects an event that represents script parsing.
106
+ * @description Label for a script parsing event in the Performance panel.
109
107
  */
110
108
  parse: 'Parse',
111
109
  /**
112
- * @description Text with two placeholders separated by a colon
110
+ * @description Format for a label and value pair separated by a colon.
113
111
  * @example {Node removed} PH1
114
112
  * @example {div#id1} PH2
115
113
  */
116
114
  sS: '{PH1}: {PH2}',
117
115
  /**
118
- * @description Text that is usually a hyperlink to more documentation
116
+ * @description Link text to open documentation.
119
117
  */
120
118
  learnMore: 'Learn more',
121
119
  /**
122
- * @description Text referring to the status of the browser's compilation cache.
120
+ * @description Label for the compilation cache status in the details view of the Performance panel.
123
121
  */
124
122
  compilationCacheStatus: 'Compilation cache status',
125
123
  /**
126
- * @description Text referring to the size of the browser's compiliation cache.
124
+ * @description Label for the compilation cache size in the details view of the Performance panel.
127
125
  */
128
126
  compilationCacheSize: 'Compilation cache size',
129
127
  /**
130
- * @description Text in Timeline UIUtils of the Performance panel. "Compilation
131
- * cache" refers to the code cache described at
132
- * https://v8.dev/blog/code-caching-for-devs . This label is followed by the
133
- * type of code cache data used, either "normal" or "full" as described in the
134
- * linked article.
128
+ * @description Label for the compilation cache kind in the details view of the Performance panel.
135
129
  */
136
130
  compilationCacheKind: 'Compilation cache kind',
137
131
  /**
138
- * @description Text used to inform the user that the script they are looking
139
- * at was loaded from the browser's cache.
132
+ * @description Status text indicating that a script was loaded from compilation cache.
140
133
  */
141
134
  scriptLoadedFromCache: 'script loaded from cache',
142
135
  /**
143
- * @description Text to inform the user that the script they are looking at
144
- * was unable to be loaded from the browser's cache.
136
+ * @description Status text indicating that a script failed to load from compilation cache.
145
137
  */
146
138
  failedToLoadScriptFromCache: 'failed to load script from cache',
147
139
  /**
148
- * @description Text to inform the user that the script they are looking at was not eligible to be loaded from the browser's cache.
140
+ * @description Status text indicating that a script wasn't eligible for compilation cache.
149
141
  */
150
142
  scriptNotEligibleToBeLoadedFromCache: 'script not eligible',
151
143
  /**
152
- * @description Label in the summary view in the Performance panel for a number which indicates how much managed memory has been reclaimed by performing Garbage Collection
144
+ * @description Label in the summary view for the amount of memory reclaimed by garbage collection in the Performance panel.
153
145
  */
154
146
  collected: 'Collected',
155
147
  /**
156
- * @description Text for a programming function
148
+ * @description Label for a function entry in the details view of the Performance panel.
157
149
  */
158
150
  function: 'Function',
159
151
  /**
160
- * @description Text for referring to the ID of a timer.
152
+ * @description Label for a timer ID in the details view of the Performance panel.
161
153
  */
162
154
  timerId: 'Timer ID',
163
155
  /**
164
- * @description Text for referring to a timer that has timed-out and therefore is being removed.
156
+ * @description Label for a timer timeout duration in the details view of the Performance panel.
165
157
  */
166
158
  timeout: 'Timeout',
167
159
  /**
168
- * @description Text used to refer to a positive timeout value that schedules the idle callback once elapsed, even if no idle time is available.
160
+ * @description Label for an idle callback timeout in the details view of the Performance panel.
169
161
  */
170
162
  requestIdleCallbackTimeout: 'Timeout',
171
163
  /**
172
- * @description Text used to indicate that a timer is repeating (e.g. every X seconds) rather than a one off.
164
+ * @description Label indicating whether a timer is repeating in the details view of the Performance panel.
173
165
  */
174
166
  repeats: 'Repeats',
175
167
  /**
176
- * @description Text for referring to the ID of a callback function installed by an event.
168
+ * @description Label for a callback function ID in the details view of the Performance panel.
177
169
  */
178
170
  callbackId: 'Callback ID',
179
171
  /**
180
- * @description Text for a module, the programming concept
172
+ * @description Label for a module file in the details view of the Performance panel.
181
173
  */
182
174
  module: 'Module',
183
175
  /**
184
- * @description Label for a group of JavaScript files
176
+ * @description Label for a script file in the details view of the Performance panel.
185
177
  */
186
178
  script: 'Script',
187
179
  /**
188
- * @description Text used to tell a user that a compilation trace event was streamed.
180
+ * @description Label indicating whether script compilation was streamed in the details view of the Performance panel.
189
181
  */
190
182
  streamed: 'Streamed',
191
183
  /**
192
- * @description Text to indicate if a compilation event was eager.
184
+ * @description Status text indicating eager compilation of all functions in the details view of the Performance panel.
193
185
  */
194
186
  eagerCompile: 'Compiling all functions eagerly',
195
187
  /**
196
- * @description Text to refer to the URL associated with a given event.
188
+ * @description Label for a URL in the details view of the Performance panel.
197
189
  */
198
190
  url: 'URL',
199
191
  /**
200
- * @description Text to indicate to the user the size of the cache (as a filesize - e.g. 5mb).
192
+ * @description Label for the size of cache produced in the details view of the Performance panel.
201
193
  */
202
194
  producedCacheSize: 'Produced cache size',
203
195
  /**
204
- * @description Text to indicate to the user the amount of the cache (as a filesize - e.g. 5mb) that has been used.
196
+ * @description Label for the size of cache consumed in the details view of the Performance panel.
205
197
  */
206
198
  consumedCacheSize: 'Consumed cache size',
207
199
  /**
208
- * @description Related node label in Timeline UIUtils of the Performance panel
200
+ * @description Label for the layer root node in the details view of the Performance panel.
209
201
  */
210
202
  layerRoot: 'Layer root',
211
203
  /**
212
- * @description Related node label in Timeline UIUtils of the Performance panel
204
+ * @description Label for the owner element in the details view of the Performance panel.
213
205
  */
214
206
  ownerElement: 'Owner element',
215
207
  /**
216
- * @description Text used to show the user the URL of the image they are viewing.
208
+ * @description Label for the image URL in the details view of the Performance panel.
217
209
  */
218
210
  imageUrl: 'Image URL',
219
211
  /**
220
- * @description Text used to show the user that the URL they are viewing is loading a CSS stylesheet.
212
+ * @description Label for the stylesheet URL in the details view of the Performance panel.
221
213
  */
222
214
  stylesheetUrl: 'Stylesheet URL',
223
215
  /**
224
- * @description Text used next to a number to show the user how many elements were affected.
216
+ * @description Label for the count of elements affected in the details view of the Performance panel.
225
217
  */
226
218
  elementsAffected: 'Elements affected',
227
219
  /**
228
- * @description Text used next to a number to show the user how many nodes required the browser to update and re-layout the page.
220
+ * @description Label for the count of nodes that need layout in the details view of the Performance panel.
229
221
  */
230
222
  nodesThatNeedLayout: 'Nodes that need layout',
231
223
  /**
232
- * @description Text used to show the amount in a subset - e.g. "2 of 10".
224
+ * @description Subset range indicator showing the count of matching items out of total items.
233
225
  * @example {2} PH1
234
226
  * @example {10} PH2
235
227
  */
236
228
  sOfS: '{PH1} of {PH2}',
237
229
  /**
238
- * @description Related node label in Timeline UIUtils of the Performance panel
230
+ * @description Label for the layout root node in the details view of the Performance panel.
239
231
  */
240
232
  layoutRoot: 'Layout root',
241
233
  /**
242
- * @description Text used when viewing an event that can have a custom message attached.
234
+ * @description Label for a message attached to an event in the details view of the Performance panel.
243
235
  */
244
236
  message: 'Message',
245
237
  /**
246
- * @description Text used to tell the user they are viewing an event that has a function embedded in it, which is referred to as the "callback function".
238
+ * @description Label for a callback function in the details view of the Performance panel.
247
239
  */
248
240
  callbackFunction: 'Callback function',
249
241
  /**
250
- * @description Text used to show the relevant range of a file - e.g. "lines 2-10".
242
+ * @description Label for a range of lines in the details view of the Performance panel.
251
243
  */
252
244
  range: 'Range',
253
245
  /**
254
- * @description Text used to refer to the amount of time some event or code was given to complete within.
246
+ * @description Label for the allotted time given to an event in the details view of the Performance panel.
255
247
  */
256
248
  allottedTime: 'Allotted time',
257
249
  /**
258
- * @description Text used to tell a user that a particular event or function was automatically run by a timeout.
250
+ * @description Label indicating that an event was invoked by a timeout in the details view of the Performance panel.
259
251
  */
260
252
  invokedByTimeout: 'Invoked by timeout',
261
253
  /**
262
- * @description Text that refers to some types
254
+ * @description Label for an event type in the details view of the Performance panel.
263
255
  */
264
256
  type: 'Type',
265
257
  /**
266
- * @description Text for the size of something
258
+ * @description Label for size in the details view of the Performance panel.
267
259
  */
268
260
  size: 'Size',
269
261
  /**
270
- * @description Text for the details of something
262
+ * @description Label for event details in the details view of the Performance panel.
271
263
  */
272
264
  details: 'Details',
273
265
  /**
274
- * @description Text to indicate an item is a warning
266
+ * @description Label for a warning in the details view of the Performance panel.
275
267
  */
276
268
  warning: 'Warning',
277
269
  /**
278
- * @description Text that indicates a particular HTML element or node is related to what the user is viewing.
270
+ * @description Label for a related node in the details view of the Performance panel.
279
271
  */
280
272
  relatedNode: 'Related node',
281
273
  /**
282
- * @description Text for previewing items
274
+ * @description Label for previewing content in the details view of the Performance panel.
283
275
  */
284
276
  preview: 'Preview',
285
277
  /**
286
- * @description Text used to refer to the total time summed up across multiple events.
278
+ * @description Label for aggregated time summed across multiple events in the Performance panel.
287
279
  */
288
280
  aggregatedTime: 'Aggregated time',
289
281
  /**
290
- * @description Text for the duration of something
282
+ * @description Label for event duration in the details view of the Performance panel.
291
283
  */
292
284
  duration: 'Duration',
293
285
  /**
294
- * @description Text for the stack trace of the initiator of something. The Initiator is the event or factor that directly triggered or precipitated a subsequent action.
286
+ * @description Label for the stack trace of an initiator in the details view of the Performance panel.
295
287
  */
296
288
  initiatorStackTrace: 'Initiator stack trace',
297
289
  /**
298
- * @description Text for the event initiated by another one
290
+ * @description Label for the initiator event in the details view of the Performance panel.
299
291
  */
300
292
  initiatedBy: 'Initiated by',
301
293
  /**
302
- * @description Text for the event that is an initiator for another one
294
+ * @description Label for the event initiated by this one in the details view of the Performance panel.
303
295
  */
304
296
  initiatorFor: 'Initiator for',
305
297
  /**
306
- * @description Text for the underlying data behing a specific flamechart selection. Trace events are the browser instrumentation that are emitted as JSON objects.
298
+ * @description Label for raw trace event data in the details view of the Performance panel.
307
299
  */
308
300
  traceEvent: 'Trace event',
309
301
  /**
310
- * @description Call site stack label in Timeline UIUtils of the Performance panel
302
+ * @description Call site stack label for timer installation in the Performance panel.
311
303
  */
312
304
  timerInstalled: 'Timer installed',
313
305
  /**
314
- * @description Call site stack label in Timeline UIUtils of the Performance panel
306
+ * @description Call site stack label for requested animation frames in the Performance panel.
315
307
  */
316
308
  animationFrameRequested: 'Animation frame requested',
317
309
  /**
318
- * @description Call site stack label in Timeline UIUtils of the Performance panel
310
+ * @description Call site stack label for requested idle callbacks in the Performance panel.
319
311
  */
320
312
  idleCallbackRequested: 'Idle callback requested',
321
313
  /**
322
- * @description Call site stack label in Timeline UIUtils of the Performance panel
314
+ * @description Call site stack label for first layout invalidation in the Performance panel.
323
315
  */
324
316
  firstLayoutInvalidation: 'First layout invalidation',
325
317
  /**
326
- * @description Label in front of CSS property (eg `opacity`) being animated or a CSS animation name (eg `layer-4-fade-in-out`)
318
+ * @description Label for an animated CSS property or animation name in the Performance panel.
327
319
  */
328
320
  animating: 'Animating',
329
321
  /**
330
- * @description Label in front of reasons why a CSS animation wasn't composited (aka hardware accelerated)
322
+ * @description Header for the list of reasons why animation compositing failed in the Performance panel.
331
323
  */
332
324
  compositingFailed: 'Compositing failed',
333
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to accelerated animations being disabled. Shown in a table with a list of other potential failure reasons. */
325
+ /**
326
+ * @description Reason why an animation wasn't composited due to accelerated animations being disabled.
327
+ */
334
328
  compositingFailedAcceleratedAnimationsDisabled: 'Accelerated animations disabled',
335
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to DevTools suppressing the effect. Shown in a table with a list of other potential failure reasons. */
336
- compositingFailedEffectSuppressedByDevtools: 'Effect suppressed by DevTools ',
337
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the animation or effect being invalid. Shown in a table with a list of other potential failure reasons. */
329
+ /**
330
+ * @description Reason why an animation wasn't composited due to DevTools suppressing the effect.
331
+ */
332
+ compositingFailedEffectSuppressedByDevtools: 'Effect suppressed by DevTools',
333
+ /**
334
+ * @description Reason why an animation wasn't composited due to an invalid animation or effect.
335
+ */
338
336
  compositingFailedInvalidAnimationOrEffect: 'Invalid animation or effect',
339
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to an effect having unsupported timing parameters. Shown in a table with a list of other potential failure reasons. */
337
+ /**
338
+ * @description Reason why an animation wasn't composited due to unsupported timing parameters.
339
+ */
340
340
  compositingFailedEffectHasUnsupportedTimingParams: 'Effect has unsupported timing parameters',
341
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to an effect having a composite mode which is not `replace`. Shown in a table with a list of other potential failure reasons. */
341
+ /**
342
+ * @description Reason why an animation wasn't composited due to having a non-replace composite mode.
343
+ */
342
344
  compositingFailedEffectHasNonReplaceCompositeMode: 'Effect has composite mode other than "replace"',
343
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the target being in an invalid compositing state. Shown in a table with a list of other potential failure reasons. */
345
+ /**
346
+ * @description Reason why an animation wasn't composited due to the target having an invalid compositing state.
347
+ */
344
348
  compositingFailedTargetHasInvalidCompositingState: 'Target has invalid compositing state',
345
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to another animation on the same target being incompatible. Shown in a table with a list of other potential failure reasons. */
349
+ /**
350
+ * @description Reason why an animation wasn't composited due to an incompatible animation on the same target.
351
+ */
346
352
  compositingFailedTargetHasIncompatibleAnimations: 'Target has another animation which is incompatible',
347
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the target having a CSS offset. Shown in a table with a list of other potential failure reasons. */
353
+ /**
354
+ * @description Reason why an animation wasn't composited due to the target having a CSS offset.
355
+ */
348
356
  compositingFailedTargetHasCSSOffset: 'Target has CSS offset',
349
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the animation affecting non-CSS properties. Shown in a table with a list of other potential failure reasons. */
357
+ /**
358
+ * @description Reason why an animation wasn't composited due to the animation affecting non-CSS properties.
359
+ */
350
360
  compositingFailedAnimationAffectsNonCSSProperties: 'Animation affects non-CSS properties',
351
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the transform-related property not being able to be animated on the target. Shown in a table with a list of other potential failure reasons. */
361
+ /**
362
+ * @description Reason why an animation wasn't composited because a transform-related property cannot be accelerated on the target.
363
+ */
352
364
  compositingFailedTransformRelatedPropertyCannotBeAcceleratedOnTarget:
353
365
  'Transform-related property cannot be accelerated on target',
354
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to a `transform` property being dependent on the size of the element itself. Shown in a table with a list of other potential failure reasons. */
366
+ /**
367
+ * @description Reason why an animation wasn't composited because a transform-related property depends on box size.
368
+ */
355
369
  compositingFailedTransformDependsBoxSize: 'Transform-related property depends on box size',
356
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to a `filter` property possibly moving pixels. Shown in a table with a list of other potential failure reasons. */
370
+ /**
371
+ * @description Reason why an animation wasn't composited because a filter-related property may move pixels.
372
+ */
357
373
  compositingFailedFilterRelatedPropertyMayMovePixels: 'Filter-related property may move pixels',
358
374
  /**
359
- * @description [ICU Syntax] Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the animated CSS property not being supported on the compositor. Shown in a table with a list of other potential failure reasons.
375
+ * @description Reason why an animation wasn't composited due to unsupported CSS properties.
360
376
  * @example {height, width} properties
361
377
  */
362
378
  compositingFailedUnsupportedCSSProperty: `{propertyCount, plural,
363
379
  =1 {Unsupported CSS property: {properties}}
364
380
  other {Unsupported CSS properties: {properties}}
365
381
  }`,
366
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to mixing keyframe value types. Shown in a table with a list of other potential failure reasons. */
382
+ /**
383
+ * @description Reason why an animation wasn't composited due to mixed keyframe value types.
384
+ */
367
385
  compositingFailedMixedKeyframeValueTypes: 'Mixed keyframe value types',
368
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the timeline source being in an invalid compositing state. Shown in a table with a list of other potential failure reasons. */
386
+ /**
387
+ * @description Reason why an animation wasn't composited because the timeline source has an invalid compositing state.
388
+ */
369
389
  compositingFailedTimelineSourceHasInvalidCompositingState: 'Timeline source has invalid compositing state',
370
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the animation having no visible change. Shown in a table with a list of other potential failure reasons. */
390
+ /**
391
+ * @description Reason why an animation wasn't composited because the animation has no visible change.
392
+ */
371
393
  compositingFailedAnimationHasNoVisibleChange: 'Animation has no visible change',
372
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to an effect affecting an important property. Shown in a table with a list of other potential failure reasons. */
394
+ /**
395
+ * @description Reason why an animation wasn't composited because the effect affects a property with !important.
396
+ */
373
397
  compositingFailedAffectsImportantProperty: 'Effect affects a property with !important',
374
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to the SVG target having an independent transfrom property. Shown in a table with a list of other potential failure reasons. */
398
+ /**
399
+ * @description Reason why an animation wasn't composited because the SVG target has an independent transform property.
400
+ */
375
401
  compositingFailedSVGTargetHasIndependentTransformProperty: 'SVG target has independent transform property',
376
- /** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to an unknown reason. Shown in a table with a list of other potential failure reasons. */
377
- compositingFailedUnknownReason: 'Unknown Reason',
402
+ /**
403
+ * @description Reason why an animation wasn't composited due to an unknown reason.
404
+ */
405
+ compositingFailedUnknownReason: 'Unknown reason',
378
406
 
379
407
  /**
380
- * @description Text for the execution "stack trace". It is not technically a stack trace, because it points to the beginning of each function
381
- * and not to each call site, so we call it a function stack instead to avoid confusion.
408
+ * @description Label for the execution function stack in the details view of the Performance panel.
382
409
  */
383
410
  functionStack: 'Function stack',
384
411
  /**
385
- * @description Text used to show any invalidations for a particular event that caused the browser to have to do more work to update the page.
412
+ * @description Label showing the total number of invalidations for an event in the Performance panel.
386
413
  * @example {2} PH1
387
414
  */
388
415
  invalidations: 'Invalidations ({PH1} total)',
389
416
  /**
390
- * @description Text in Timeline UIUtils of the Performance panel. Phrase is followed by a number of milliseconds.
391
- * Some events or tasks might have been only started, but have not ended yet. Such events or tasks are considered
392
- * "pending".
417
+ * @description Label for the pending duration of a task in the Performance panel.
393
418
  */
394
419
  pendingFor: 'Pending for',
395
420
  /**
396
- * @description Noun label for a stack trace which indicates the first time some condition was invalidated.
421
+ * @description Label for a stack trace indicating when a condition was first invalidated in the Performance panel.
397
422
  */
398
423
  firstInvalidated: 'First invalidated',
399
424
  /**
400
- * @description Title of the paint profiler, old name of the performance pane
425
+ * @description Title for the paint profiler tab in the details view of the Performance panel.
401
426
  */
402
427
  paintProfiler: 'Paint profiler',
403
428
  /**
404
- * @description Text in Timeline Flame Chart View of the Performance panel
429
+ * @description Accessible title for a frame at a given timestamp in the timeline flame chart.
405
430
  * @example {Frame} PH1
406
431
  * @example {10ms} PH2
407
432
  */
408
433
  sAtS: '{PH1} at {PH2}',
409
434
  /**
410
- * @description Text used next to a time to indicate that the particular event took that much time itself. In context this might look like "3ms blink.console (self)"
435
+ * @description Text indicating the self time spent in an event in the Performance panel.
411
436
  * @example {blink.console} PH1
412
437
  */
413
438
  sSelf: '{PH1} (self)',
414
439
  /**
415
- * @description Text used next to a time to indicate that the event's children took that much time. In context this might look like "3ms blink.console (children)"
440
+ * @description Text indicating the time spent in an event's child nodes in the Performance panel.
416
441
  * @example {blink.console} PH1
417
442
  */
418
443
  sChildren: '{PH1} (children)',
419
444
  /**
420
- * @description Text used to show the user how much time the browser spent on rendering (drawing the page onto the screen).
445
+ * @description Label for the total time spent rendering in the details view of the Performance panel.
421
446
  */
422
447
  timeSpentInRendering: 'Time spent in rendering',
423
448
  /**
424
- * @description Text for a rendering frame
449
+ * @description Label for a rendering frame in the details view of the Performance panel.
425
450
  */
426
451
  frame: 'Frame',
427
452
  /**
428
- * @description Text used to refer to the duration of an event at a given offset - e.g. "2ms at 10ms" which can be read as "2ms starting after 10ms".
453
+ * @description Text showing duration and start offset of an event in the details view of the Performance panel.
429
454
  * @example {10ms} PH1
430
455
  * @example {10ms} PH2
431
456
  */
432
457
  sAtSParentheses: '{PH1} (at {PH2})',
433
458
  /**
434
- * @description Text of a DOM element in Timeline UIUtils of the Performance panel
459
+ * @description Placeholder text for an unknown DOM node in the details view of the Performance panel.
435
460
  */
436
461
  UnknownNode: '[ unknown node ]',
437
462
  /**
438
- * @description Text used to refer to a particular element and the file it was referred to in.
463
+ * @description Text showing an invalidated element and its source call frame in the Performance panel.
439
464
  * @example {node} PH1
440
465
  * @example {app.js} PH2
441
466
  */
442
467
  invalidationWithCallFrame: '{PH1} at {PH2}',
443
468
  /**
444
- * @description Text indicating that something is outside of the Performace Panel Timeline Minimap range
469
+ * @description Status text indicating that an item is outside the breadcrumb range in the Performance panel.
445
470
  */
446
471
  outsideBreadcrumbRange: '(outside of the breadcrumb range)',
447
472
  /**
448
- * @description Text indicating that something is hidden from the Performace Panel Timeline
473
+ * @description Status text indicating that an entry is hidden in the timeline flame chart.
449
474
  */
450
475
  entryIsHidden: '(entry is hidden)',
451
476
  /**
452
- * @description Title of a row in the details view for a `Recalculate Styles` event that contains more info about selector stats tracing.
477
+ * @description Section title for CSS selector statistics in the details view of the Performance panel.
453
478
  */
454
479
  selectorStatsTitle: 'Selector stats',
455
480
  /**
456
- * @description Info text that explains to the user how to enable selector stats tracing.
481
+ * @description Explanatory text instructing the user how to enable CSS selector statistics in the Performance panel.
457
482
  * @example {Setting Name} PH1
458
483
  */
459
- sSelectorStatsInfo: 'Select "{PH1}" to collect detailed CSS selector matching statistics.',
484
+ sSelectorStatsInfo: 'Select "{PH1}" to collect detailed CSS selector matching statistics',
460
485
  /**
461
- * @description Label for a numeric value that was how long to wait before a function was run.
486
+ * @description Label for task scheduling delay in the details view of the Performance panel.
462
487
  */
463
488
  delay: 'Delay',
464
489
  /**
465
- * @description Label for a string that describes the priority at which a task was scheduled, like 'background' for low-priority tasks, and 'user-blocking' for high priority.
490
+ * @description Label for task scheduling priority in the details view of the Performance panel.
466
491
  */
467
492
  priority: 'Priority',
468
493
  /**
469
- * @description Label for the a source URL.
494
+ * @description Label for the source file in the details view of the Performance panel.
470
495
  */
471
496
  source: 'Source',
472
497
  /**
473
- * @description Label for a URL origin.
498
+ * @description Label for a URL origin in the details view of the Performance panel.
474
499
  */
475
500
  origin: 'Origin',
476
501
  } as const;
@@ -1581,7 +1606,8 @@ export class TimelineUIUtils {
1581
1606
 
1582
1607
  // Use CodeHighlighter for syntax highlighting.
1583
1608
  const highlightContainer = document.createElement('div');
1584
- const shadowRoot = UI.UIUtils.createShadowRootWithCoreStyles(highlightContainer, {cssFile: codeHighlighterStyles});
1609
+ const shadowRoot =
1610
+ UI.UIUtils.createShadowRootWithCoreStyles(highlightContainer, {cssFile: CodeHighlighter.codeHighlighterStyles});
1585
1611
  const elem = shadowRoot.createChild('div');
1586
1612
  elem.classList.add('monospace', 'source-code');
1587
1613
  elem.textContent = eventStr;
@@ -21,7 +21,7 @@ import type {TimelineMarkerStyle} from './TimelineUIUtils.js';
21
21
 
22
22
  const UIStrings = {
23
23
  /**
24
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
24
+ * @description Header for the timings track in the timeline flame chart of the Performance panel.
25
25
  */
26
26
  timings: 'Timings',
27
27
  } as const;
@@ -9,16 +9,16 @@ import * as UI from '../../ui/legacy/legacy.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Message shown in a banner when some tracks are hidden in the timeline.
12
+ * @description Message shown in a banner when some tracks are hidden in the Performance panel.
13
13
  */
14
14
  someTracksAreHidden:
15
- 'Some tracks are hidden in this trace. You can configure tracks by right clicking the track name.',
15
+ 'Some tracks are hidden in this trace. You can configure tracks by right-clicking the track name.',
16
16
  /**
17
- * @description Text for a button to show all hidden tracks.
17
+ * @description Button label to show all hidden tracks in the Performance panel.
18
18
  */
19
19
  showAll: 'Show all',
20
20
  /**
21
- * @description Text for a button that opens a view to configure which tracks are visible.
21
+ * @description Button label to open the track configuration view in the Performance panel.
22
22
  */
23
23
  configureTracks: 'Configure tracks',
24
24
  } as const;