chrome-devtools-frontend 1.0.1681091 → 1.0.1682249

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 (208) hide show
  1. package/eslint.config.mjs +8 -3
  2. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  3. package/front_end/core/sdk/DOMModel.ts +8 -0
  4. package/front_end/core/sdk/NetworkManager.ts +9 -4
  5. package/front_end/core/sdk/OverlayModel.ts +3 -2
  6. package/front_end/core/sdk/PreloadingModel.ts +44 -22
  7. package/front_end/core/sdk/RemoteObject.ts +4 -1
  8. package/front_end/core/sdk/RuntimeModel.ts +5 -5
  9. package/front_end/core/sdk/SDKSettings.ts +19 -0
  10. package/front_end/core/sdk/sdk.ts +2 -0
  11. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
  12. package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
  13. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
  14. package/front_end/entrypoints/main/MainImpl.ts +9 -10
  15. package/front_end/entrypoints/main/main-meta.ts +82 -0
  16. package/front_end/entrypoints/shell/shell.ts +0 -5
  17. package/front_end/entrypoints/trace_app/trace_app.ts +0 -5
  18. package/front_end/generated/InspectorBackendCommands.ts +2 -0
  19. package/front_end/generated/protocol-mapping.d.ts +16 -0
  20. package/front_end/generated/protocol-proxy-api.d.ts +12 -0
  21. package/front_end/generated/protocol.ts +12 -0
  22. package/front_end/models/ai_assistance/ExtensionScope.ts +11 -12
  23. package/front_end/models/ai_assistance/agents/AiAgent.ts +1 -1
  24. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +2 -1
  25. package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +1 -1
  26. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
  27. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +2 -1
  28. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +8 -8
  29. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +8 -8
  30. package/front_end/models/ai_code_completion/debug.ts +6 -3
  31. package/front_end/models/ai_code_generation/debug.ts +6 -3
  32. package/front_end/models/badges/UserBadges.ts +9 -2
  33. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -0
  34. package/front_end/models/emulation/DeviceModeModel.ts +16 -27
  35. package/front_end/models/emulation/EmulatedDevices.ts +30 -125
  36. package/front_end/models/extensions/ExtensionAPI.ts +34 -23
  37. package/front_end/models/formatter/ScriptFormatter.ts +1 -0
  38. package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
  39. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +4 -4
  40. package/front_end/models/logs/NetworkLog.ts +11 -4
  41. package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +4 -2
  42. package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
  43. package/front_end/models/stack_trace/StackTraceImpl.ts +1 -0
  44. package/front_end/models/trace/Name.ts +5 -5
  45. package/front_end/models/trace/Styles.ts +115 -115
  46. package/front_end/models/trace/extras/TraceTree.ts +2 -1
  47. package/front_end/models/trace/helpers/Network.ts +4 -1
  48. package/front_end/models/trace/insights/CLSCulprits.ts +4 -2
  49. package/front_end/models/trace/insights/CharacterSet.ts +3 -3
  50. package/front_end/models/trace/insights/DOMSize.ts +1 -1
  51. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +6 -2
  52. package/front_end/models/trace/insights/FontDisplay.ts +9 -3
  53. package/front_end/models/trace/insights/ForcedReflow.ts +4 -4
  54. package/front_end/models/trace/insights/INPBreakdown.ts +3 -4
  55. package/front_end/models/trace/insights/ImageDelivery.ts +2 -2
  56. package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
  57. package/front_end/models/trace/insights/LCPDiscovery.ts +5 -5
  58. package/front_end/models/trace/insights/LegacyJavaScript.ts +7 -3
  59. package/front_end/models/trace/insights/ModernHTTP.ts +3 -3
  60. package/front_end/models/trace/insights/NetworkDependencyTree.ts +13 -9
  61. package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
  62. package/front_end/models/trace/insights/SlowCSSSelector.ts +29 -25
  63. package/front_end/models/trace/insights/ThirdParties.ts +13 -5
  64. package/front_end/models/trace/insights/Viewport.ts +4 -2
  65. package/front_end/models/workspace/IgnoreListManager.ts +53 -17
  66. package/front_end/panels/accessibility/ARIAAttributesView.ts +11 -2
  67. package/front_end/panels/ai_assistance/components/ChatMessage.ts +67 -53
  68. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
  69. package/front_end/panels/ai_assistance/components/StylingAgentMarkdownRenderer.ts +2 -2
  70. package/front_end/panels/ai_assistance/components/WalkthroughView.ts +5 -5
  71. package/front_end/panels/animation/AnimationTimeline.ts +2 -0
  72. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  73. package/front_end/panels/application/StorageView.ts +2 -0
  74. package/front_end/panels/application/preloading/PreloadingView.ts +9 -3
  75. package/front_end/panels/application/preloading/components/components.ts +2 -0
  76. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +10 -11
  77. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  78. package/front_end/panels/common/BadgeNotification.ts +1 -1
  79. package/front_end/panels/common/ExtensionPanel.ts +12 -7
  80. package/front_end/panels/common/ExtensionServer.ts +85 -26
  81. package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
  82. package/front_end/panels/console/ConsoleView.ts +2 -1
  83. package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
  84. package/front_end/panels/console/console-meta.ts +9 -0
  85. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -4
  86. package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
  87. package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
  88. package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
  89. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
  90. package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
  91. package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
  92. package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
  93. package/front_end/panels/elements/ElementStatePaneWidget.ts +9 -6
  94. package/front_end/panels/elements/ElementsPanel.ts +10 -10
  95. package/front_end/panels/elements/ElementsTreeElement.ts +35 -29
  96. package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
  97. package/front_end/panels/elements/EventListenersWidget.ts +18 -19
  98. package/front_end/panels/elements/LayersWidget.ts +4 -4
  99. package/front_end/panels/elements/LayoutPane.ts +11 -11
  100. package/front_end/panels/elements/MarkerDecorator.ts +3 -3
  101. package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
  102. package/front_end/panels/elements/PropertiesWidget.ts +4 -4
  103. package/front_end/panels/elements/PropertyRenderer.ts +2 -2
  104. package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
  105. package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
  106. package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
  107. package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
  108. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  109. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
  110. package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
  111. package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
  112. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  113. package/front_end/panels/elements/elements-meta.ts +13 -13
  114. package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
  115. package/front_end/panels/issues/AffectedElementsView.ts +5 -0
  116. package/front_end/panels/issues/IssueView.ts +12 -8
  117. package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
  118. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
  119. package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
  120. package/front_end/panels/media/PlayerPropertiesView.ts +309 -416
  121. package/front_end/panels/media/playerPropertiesView.css +1 -1
  122. package/front_end/panels/network/NetworkLogView.ts +5 -2
  123. package/front_end/panels/network/NetworkOverview.ts +11 -5
  124. package/front_end/panels/network/NetworkPanel.ts +4 -2
  125. package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
  126. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  127. package/front_end/panels/network/components/ResponseHeaderSection.ts +7 -4
  128. package/front_end/panels/network/network-meta.ts +63 -0
  129. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -1
  130. package/front_end/panels/recorder/RecordingView.ts +89 -73
  131. package/front_end/panels/recorder/ReplaySection.ts +59 -40
  132. package/front_end/panels/recorder/injected/injected.ts +4 -0
  133. package/front_end/panels/security/SecurityPanel.ts +5 -6
  134. package/front_end/panels/security/SecurityPanelSidebar.ts +244 -204
  135. package/front_end/panels/security/security.ts +0 -4
  136. package/front_end/panels/settings/EditFileSystemView.ts +8 -7
  137. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -14
  138. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  139. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
  140. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +10 -11
  141. package/front_end/panels/sources/NavigatorView.ts +6 -2
  142. package/front_end/panels/sources/SourcesNavigator.ts +8 -4
  143. package/front_end/panels/sources/SourcesPanel.ts +4 -2
  144. package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
  145. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  146. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -3
  147. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +5 -5
  148. package/front_end/panels/timeline/components/CWVMetrics.ts +1 -2
  149. package/front_end/panels/timeline/components/IgnoreListSetting.ts +5 -5
  150. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +2 -3
  151. package/front_end/panels/timeline/components/LiveMetricsView.ts +2 -2
  152. package/front_end/panels/timeline/components/Sidebar.ts +3 -3
  153. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -2
  154. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +3 -1
  155. package/front_end/panels/timeline/components/insights/CLSCulprits.ts +1 -2
  156. package/front_end/panels/timeline/components/insights/Cache.ts +1 -2
  157. package/front_end/panels/timeline/components/insights/CharacterSet.ts +1 -2
  158. package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -2
  159. package/front_end/panels/timeline/components/insights/DocumentLatency.ts +2 -2
  160. package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
  161. package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -2
  162. package/front_end/panels/timeline/components/insights/ForcedReflow.ts +1 -2
  163. package/front_end/panels/timeline/components/insights/INPBreakdown.ts +1 -2
  164. package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -2
  165. package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +13 -13
  166. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -2
  167. package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +4 -4
  168. package/front_end/panels/timeline/components/insights/ModernHTTP.ts +1 -2
  169. package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +10 -8
  170. package/front_end/panels/timeline/components/insights/RenderBlocking.ts +2 -2
  171. package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -1
  172. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
  173. package/front_end/panels/timeline/components/insights/ThirdParties.ts +1 -2
  174. package/front_end/panels/timeline/components/insights/Viewport.ts +1 -2
  175. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -2
  176. package/front_end/panels/timeline/timeline.ts +0 -2
  177. package/front_end/panels/web_audio/WebAudioView.ts +14 -6
  178. package/front_end/panels/webauthn/WebauthnPane.ts +9 -9
  179. package/front_end/third_party/chromium/README.chromium +1 -1
  180. package/front_end/third_party/web-vitals/rebuild.sh +1 -1
  181. package/front_end/ui/components/diff_view/DiffView.ts +2 -1
  182. package/front_end/ui/components/report_view/ReportView.docs.ts +2 -2
  183. package/front_end/ui/components/text_editor/javascript.ts +12 -13
  184. package/front_end/ui/legacy/GlassPane.ts +38 -14
  185. package/front_end/ui/legacy/Treeoutline.ts +14 -3
  186. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
  187. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
  188. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
  189. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
  190. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +1 -1
  191. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +3 -3
  192. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +185 -355
  193. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +3 -8
  194. package/front_end/ui/legacy/components/utils/ImagePreview.ts +15 -16
  195. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +4 -4
  196. package/front_end/ui/legacy/components/utils/Linkifier.ts +8 -10
  197. package/front_end/ui/settings/InspectorMainSettings.ts +12 -0
  198. package/front_end/ui/settings/settings.ts +2 -0
  199. package/front_end/ui/visual_logging/KnownContextValues.ts +32 -0
  200. package/mcp/mcp.ts +0 -9
  201. package/package.json +1 -1
  202. package/front_end/core/sdk/sdk-meta.ts +0 -40
  203. package/front_end/models/badges/badges-meta.ts +0 -27
  204. package/front_end/models/logs/logs-meta.ts +0 -84
  205. package/front_end/models/persistence/persistence-meta.ts +0 -69
  206. package/front_end/models/workspace/workspace-meta.ts +0 -40
  207. package/front_end/panels/security/OriginTreeElement.ts +0 -60
  208. package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +0 -30
@@ -11,87 +11,87 @@ import * as Types from './types/types.js';
11
11
 
12
12
  const UIStrings = {
13
13
  /**
14
- * @description Category in the Summary view of the Performance panel to indicate time spent to load resources
14
+ * @description Category in the summary view of the Performance panel to indicate time spent to load resources.
15
15
  */
16
16
  loading: 'Loading',
17
17
  /**
18
- * @description Text in Timeline for the Experience title
18
+ * @description Event category in the Performance panel for user experience events, such as layout shifts and event timing.
19
19
  */
20
20
  experience: 'Experience',
21
21
  /**
22
- * @description Category in the Summary view of the Performance panel to indicate time spent in script execution
22
+ * @description Category in the summary view of the Performance panel to indicate time spent in script execution.
23
23
  */
24
24
  scripting: 'Scripting',
25
25
  /**
26
- * @description Category in the Summary view of the Performance panel to indicate time spent in rendering the web page
26
+ * @description Category in the summary view of the Performance panel to indicate time spent in rendering the web page.
27
27
  */
28
28
  rendering: 'Rendering',
29
29
  /**
30
- * @description Category in the Summary view of the Performance panel to indicate time spent to visually represent the web page
30
+ * @description Category in the summary view of the Performance panel to indicate time spent to visually represent the web page.
31
31
  */
32
32
  painting: 'Painting',
33
33
  /**
34
- * @description Event category in the Performance panel for time spent in the GPU
34
+ * @description Event category in the Performance panel for time spent in the GPU.
35
35
  */
36
36
  gpu: 'GPU',
37
37
  /**
38
- * @description Text in Timeline UIUtils of the Performance panel
38
+ * @description Event category in the Performance panel for asynchronous tasks.
39
39
  */
40
40
  async: 'Async',
41
41
  /**
42
- * @description Category in the Summary view of the Performance panel to indicate time spent in the rest of the system
42
+ * @description Category in the summary view of the Performance panel to indicate time spent in the rest of the system.
43
43
  */
44
44
  system: 'System',
45
45
  /**
46
- * @description Category in the Summary view of the Performance panel to indicate idle time
46
+ * @description Category in the summary view of the Performance panel to indicate idle time.
47
47
  */
48
48
  idle: 'Idle',
49
49
  /**
50
- * @description Text in Timeline UIUtils of the Performance panel
50
+ * @description Label for main thread tasks in the Performance panel.
51
51
  */
52
52
  task: 'Task',
53
53
  /**
54
- * @description Text in Timeline UIUtils of the Performance panel
54
+ * @description Text for running a console task in the Performance panel.
55
55
  */
56
56
  consoleTaskRun: 'Run console task',
57
57
  /**
58
- * @description Text for other types of items
58
+ * @description Text shown in the Performance panel timeline for the Program trace event, which represents uncategorized or internal browser execution time.
59
59
  */
60
60
  other: 'Other',
61
61
  /**
62
- * @description Text that refers to the animation of the web page
62
+ * @description Text that refers to the animation of the web page.
63
63
  */
64
64
  animation: 'Animation',
65
65
  /**
66
- * @description Text that refers to some events
66
+ * @description Text that refers to some events.
67
67
  */
68
68
  event: 'Event',
69
69
  /**
70
- * @description Text in Timeline UIUtils of the Performance panel
70
+ * @description Text for an event requesting a main thread frame in the Performance panel.
71
71
  */
72
72
  requestMainThreadFrame: 'Request main thread frame',
73
73
  /**
74
- * @description Text in Timeline UIUtils of the Performance panel
74
+ * @description Text indicating the start of a frame in the Performance panel.
75
75
  */
76
76
  frameStart: 'Frame start',
77
77
  /**
78
- * @description Text in Timeline UIUtils of the Performance panel
78
+ * @description Text for an event when a message is received in the Performance panel.
79
79
  */
80
80
  onMessage: 'On message',
81
81
  /**
82
- * @description Text in Timeline UIUtils of the Performance panel
82
+ * @description Text for an event scheduling a postMessage in the Performance panel.
83
83
  */
84
84
  schedulePostMessage: 'Schedule postMessage',
85
85
  /**
86
- * @description Text in Timeline UIUtils of the Performance panel
86
+ * @description Category for messaging events in the Performance panel.
87
87
  */
88
88
  messaging: 'Messaging',
89
89
  /**
90
- * @description Text in Timeline UIUtils of the Performance panel
90
+ * @description Text indicating the start of a frame on the main thread in the Performance panel.
91
91
  */
92
92
  frameStartMainThread: 'Frame start (main thread)',
93
93
  /**
94
- * @description Text in Timeline UIUtils of the Performance panel
94
+ * @description Text for drawing a frame in the Performance panel.
95
95
  */
96
96
  drawFrame: 'Draw frame',
97
97
  /**
@@ -101,57 +101,57 @@ const UIStrings = {
101
101
  profilingOverhead: 'Profiling overhead',
102
102
  /**
103
103
  * @description The process the browser uses to determine a target element for a
104
- *pointer event. Typically, this is determined by considering the pointer's
105
- *location and also the visual layout of elements on the screen.
104
+ * pointer event. Typically, this is determined by considering the pointer's
105
+ * location and also the visual layout of elements on the screen.
106
106
  */
107
107
  hitTest: 'Hit test',
108
108
  /**
109
109
  * @description Noun for an event in the Performance panel. The browser has decided
110
- *that the styles for some elements need to be recalculated and scheduled that
111
- *recalculation process at some time in the future.
110
+ * that the styles for some elements need to be recalculated and scheduled that
111
+ * recalculation process at some time in the future.
112
112
  */
113
113
  scheduleStyleRecalculation: 'Schedule style recalculation',
114
114
  /**
115
- * @description Text in Timeline UIUtils of the Performance panel
115
+ * @description Text for an event recalculating element styles in the Performance panel.
116
116
  */
117
117
  recalculateStyle: 'Recalculate style',
118
118
  /**
119
- * @description Text in Timeline UIUtils of the Performance panel
119
+ * @description Text for an event invalidating page layout in the Performance panel.
120
120
  */
121
- invalidateLayout: 'Invalidate Layout',
121
+ invalidateLayout: 'Invalidate layout',
122
122
  /**
123
123
  * @description Noun for an event in the Performance panel. Layerize is a step
124
- *where we calculate which layers to create.
124
+ * where we calculate which layers to create.
125
125
  */
126
126
  layerize: 'Layerize',
127
127
  /**
128
- * @description Text in Timeline UIUtils of the Performance panel
128
+ * @description Text for a page layout event in the Performance panel.
129
129
  */
130
130
  layout: 'Layout',
131
131
  /**
132
132
  * @description Noun for an event in the Performance panel. Paint setup is a
133
- *step before the 'Paint' event. A paint event is when the browser draws pixels
134
- *to the screen. This step is the setup beforehand.
133
+ * step before the 'Paint' event. A paint event is when the browser draws pixels
134
+ * to the screen. This step is the setup beforehand.
135
135
  */
136
136
  paintSetup: 'Paint setup',
137
137
  /**
138
138
  * @description Noun for a paint event in the Performance panel, where an image
139
- *was being painted. A paint event is when the browser draws pixels to the
140
- *screen, in this case specifically for an image in a website.
139
+ * was being painted. A paint event is when the browser draws pixels to the
140
+ * screen, in this case specifically for an image in a website.
141
141
  */
142
142
  paintImage: 'Paint image',
143
143
  /**
144
144
  * @description Noun for an event in the Performance panel. Pre-paint is a
145
- *step before the 'Paint' event. A paint event is when the browser records the
146
- *instructions for drawing the page. This step is the setup beforehand.
145
+ * step before the 'Paint' event. A paint event is when the browser records the
146
+ * instructions for drawing the page. This step is the setup beforehand.
147
147
  */
148
148
  prePaint: 'Pre-paint',
149
149
  /**
150
- * @description Text in Timeline UIUtils of the Performance panel
150
+ * @description Text for an event updating a compositing layer in the Performance panel.
151
151
  */
152
152
  updateLayer: 'Update layer',
153
153
  /**
154
- * @description Text in Timeline UIUtils of the Performance panel
154
+ * @description Text for an event updating the layer tree in the Performance panel.
155
155
  */
156
156
  updateLayerTree: 'Update layer tree',
157
157
  /**
@@ -159,46 +159,46 @@ const UIStrings = {
159
159
  */
160
160
  paint: 'Paint',
161
161
  /**
162
- * @description Text in Timeline UIUtils of the Performance panel
162
+ * @description Text for an event rasterizing paint operations in the Performance panel.
163
163
  */
164
164
  rasterizePaint: 'Rasterize paint',
165
165
  /**
166
- * @description The action to scroll
166
+ * @description Text shown in the Performance panel timeline for a scroll event, when the browser scrolls a layer.
167
167
  */
168
168
  scroll: 'Scroll',
169
169
  /**
170
170
  * @description Noun for an event in the Performance panel. Commit is a step
171
- *where we send (also known as "commit") layers to the compositor thread. This
172
- *step follows the "Layerize" step which is what calculates which layers to
173
- *create.
171
+ * where we send (also known as "commit") layers to the compositor thread. This
172
+ * step follows the "Layerize" step which is what calculates which layers to
173
+ * create.
174
174
  */
175
175
  commit: 'Commit',
176
176
  /**
177
- * @description Text in Timeline UIUtils of the Performance panel
177
+ * @description Text for an event compositing layers in the Performance panel.
178
178
  */
179
179
  compositeLayers: 'Composite layers',
180
180
  /**
181
- * @description Text in Timeline UIUtils of the Performance panel
181
+ * @description Text for an event computing element intersections in the Performance panel.
182
182
  */
183
183
  computeIntersections: 'Compute intersections',
184
184
  /**
185
- * @description Text in Timeline UIUtils of the Performance panel
185
+ * @description Text for an event parsing HTML in the Performance panel.
186
186
  */
187
187
  parseHtml: 'Parse HTML',
188
188
  /**
189
- * @description Text in Timeline UIUtils of the Performance panel
189
+ * @description Text for an event parsing a CSS stylesheet in the Performance panel.
190
190
  */
191
191
  parseStylesheet: 'Parse stylesheet',
192
192
  /**
193
- * @description Text in Timeline UIUtils of the Performance panel
193
+ * @description Text for an event installing a timer in the Performance panel.
194
194
  */
195
195
  installTimer: 'Install timer',
196
196
  /**
197
- * @description Text in Timeline UIUtils of the Performance panel
197
+ * @description Text for an event removing a timer in the Performance panel.
198
198
  */
199
199
  removeTimer: 'Remove timer',
200
200
  /**
201
- * @description Text in Timeline UIUtils of the Performance panel
201
+ * @description Text for an event when a timer fires in the Performance panel.
202
202
  */
203
203
  timerFired: 'Timer fired',
204
204
  /**
@@ -215,31 +215,31 @@ const UIStrings = {
215
215
  */
216
216
  xhrLoad: '`XHR` load',
217
217
  /**
218
- * @description Text in Timeline UIUtils of the Performance panel
218
+ * @description Text for an event compiling a script in the Performance panel.
219
219
  */
220
220
  compileScript: 'Compile script',
221
221
  /**
222
- * @description Text in Timeline UIUtils of the Performance panel
222
+ * @description Text for an event caching script code in the Performance panel.
223
223
  */
224
224
  cacheScript: 'Cache script code',
225
225
  /**
226
- * @description Text in Timeline UIUtils of the Performance panel
226
+ * @description Text for an event compiling code in the Performance panel.
227
227
  */
228
228
  compileCode: 'Compile code',
229
229
  /**
230
- * @description Text in Timeline UIUtils of the Performance panel
230
+ * @description Text for an event optimizing code in the Performance panel.
231
231
  */
232
232
  optimizeCode: 'Optimize code',
233
233
  /**
234
- * @description Text in Timeline UIUtils of the Performance panel
234
+ * @description Text for an event evaluating a script in the Performance panel.
235
235
  */
236
236
  evaluateScript: 'Evaluate script',
237
237
  /**
238
- * @description Text in Timeline UIUtils of the Performance panel
238
+ * @description Text for an event compiling a JavaScript module in the Performance panel.
239
239
  */
240
240
  compileModule: 'Compile module',
241
241
  /**
242
- * @description Text in Timeline UIUtils of the Performance panel
242
+ * @description Text for an event caching a JavaScript module in the Performance panel.
243
243
  */
244
244
  cacheModule: 'Cache module code',
245
245
  /**
@@ -254,77 +254,77 @@ const UIStrings = {
254
254
  */
255
255
  streamingCompileTask: 'Streaming compile task',
256
256
  /**
257
- * @description Text in Timeline UIUtils of the Performance panel
257
+ * @description Text for an event waiting for network responses in the Performance panel.
258
258
  */
259
259
  waitingForNetwork: 'Waiting for network',
260
260
  /**
261
- * @description Text in Timeline UIUtils of the Performance panel
261
+ * @description Text for an event parsing and compiling code in the Performance panel.
262
262
  */
263
263
  parseAndCompile: 'Parse and compile',
264
264
  /**
265
- * @description Text in Timeline UIUtils of the Performance panel.
265
+ * @description Text in the Performance panel.
266
266
  * "Code Cache" refers to JavaScript bytecode cache: https://v8.dev/blog/code-caching-for-devs
267
267
  * "Deserialize" refers to the process of reading the code cache.
268
268
  */
269
269
  deserializeCodeCache: 'Deserialize code cache',
270
270
  /**
271
- * @description Text in Timeline UIUtils of the Performance panel
271
+ * @description Text for an event streaming a WebAssembly response in the Performance panel.
272
272
  */
273
273
  streamingWasmResponse: 'Streaming Wasm response',
274
274
  /**
275
- * @description Text in Timeline UIUtils of the Performance panel
275
+ * @description Text for an event compiling a WebAssembly module in the Performance panel.
276
276
  */
277
277
  compiledWasmModule: 'Compiled Wasm module',
278
278
  /**
279
- * @description Text in Timeline UIUtils of the Performance panel
279
+ * @description Text for an event caching a WebAssembly module in the Performance panel.
280
280
  */
281
281
  cachedWasmModule: 'Cached Wasm module',
282
282
  /**
283
- * @description Text in Timeline UIUtils of the Performance panel
283
+ * @description Text for a WebAssembly module cache hit in the Performance panel.
284
284
  */
285
285
  wasmModuleCacheHit: 'Wasm module cache hit',
286
286
  /**
287
- * @description Text in Timeline UIUtils of the Performance panel
287
+ * @description Text for an invalid WebAssembly module cache in the Performance panel.
288
288
  */
289
289
  wasmModuleCacheInvalid: 'Wasm module cache invalid',
290
290
  /**
291
- * @description Text in Timeline UIUtils of the Performance panel
291
+ * @description Text for an event when a frame started loading in the Performance panel.
292
292
  */
293
293
  frameStartedLoading: 'Frame started loading',
294
294
  /**
295
- * @description Text in Timeline UIUtils of the Performance panel
295
+ * @description Text for a soft navigation start marker in the Performance panel.
296
296
  */
297
297
  softNavigationStart: 'Soft navigation start',
298
298
  /**
299
- * @description Text in Timeline UIUtils of the Performance panel
299
+ * @description Text for an onload event marker in the Performance panel.
300
300
  */
301
301
  onloadEvent: 'Onload event',
302
302
  /**
303
- * @description Text in Timeline UIUtils of the Performance panel
303
+ * @description Text for a DOMContentLoaded event marker in the Performance panel.
304
304
  */
305
305
  domcontentloadedEvent: 'DOMContentLoaded event',
306
306
  /**
307
- * @description Text in Timeline UIUtils of the Performance panel
307
+ * @description Text for the First Paint metric marker in the Performance panel.
308
308
  */
309
309
  firstPaint: 'First Paint',
310
310
  /**
311
- * @description Text in Timeline UIUtils of the Performance panel
311
+ * @description Text for the First Contentful Paint metric marker in the Performance panel.
312
312
  */
313
313
  firstContentfulPaint: 'First Contentful Paint',
314
314
  /**
315
- * @description Text in Timeline UIUtils of the Performance panel
315
+ * @description Text for the Soft First Contentful Paint metric marker in the Performance panel.
316
316
  */
317
317
  softFirstContentfulPaint: 'Soft First Contentful Paint',
318
318
  /**
319
- * @description Text in Timeline UIUtils of the Performance panel
319
+ * @description Text for the Largest Contentful Paint metric marker in the Performance panel.
320
320
  */
321
321
  largestContentfulPaint: 'Largest Contentful Paint',
322
322
  /**
323
- * @description Text in Timeline UIUtils of the Performance panel
323
+ * @description Text for the Soft Largest Contentful Paint metric marker in the Performance panel.
324
324
  */
325
325
  softLargestContentfulPaint: 'Soft Largest Contentful Paint',
326
326
  /**
327
- * @description Text for timestamps of items
327
+ * @description Text shown in the Performance panel timeline for a `console.timeStamp()` event.
328
328
  */
329
329
  timestamp: 'Timestamp',
330
330
  /**
@@ -336,7 +336,7 @@ const UIStrings = {
336
336
  */
337
337
  consoleTime: 'Console time',
338
338
  /**
339
- * @description Text in Timeline UIUtils of the Performance panel
339
+ * @description Text for a user timing entry in the Performance panel.
340
340
  */
341
341
  userTiming: 'User timing',
342
342
  /**
@@ -346,119 +346,119 @@ const UIStrings = {
346
346
  */
347
347
  willSendRequest: 'Will send request',
348
348
  /**
349
- * @description Text in Timeline UIUtils of the Performance panel
349
+ * @description Text for an event sending a network request in the Performance panel.
350
350
  */
351
351
  sendRequest: 'Send request',
352
352
  /**
353
- * @description Text in Timeline UIUtils of the Performance panel
353
+ * @description Text for an event receiving a network response in the Performance panel.
354
354
  */
355
355
  receiveResponse: 'Receive response',
356
356
  /**
357
- * @description Text in Timeline UIUtils of the Performance panel
357
+ * @description Text for an event finishing resource loading in the Performance panel.
358
358
  */
359
359
  finishLoading: 'Finish loading',
360
360
  /**
361
- * @description Text in Timeline UIUtils of the Performance panel
361
+ * @description Text for an event receiving network data in the Performance panel.
362
362
  */
363
363
  receiveData: 'Receive data',
364
364
  /**
365
- * @description Event category in the Performance panel for time spent to execute microtasks in JavaScript
365
+ * @description Event category in the Performance panel for time spent to execute microtasks in JavaScript.
366
366
  */
367
367
  runMicrotasks: 'Run microtasks',
368
368
  /**
369
- * @description Text in Timeline UIUtils of the Performance panel
369
+ * @description Text for a function call event in the Performance panel.
370
370
  */
371
371
  functionCall: 'Function call',
372
372
  /**
373
- * @description Text in Timeline UIUtils of the Performance panel
373
+ * @description Text for a garbage collection event in the Performance panel.
374
374
  */
375
375
  gcEvent: 'GC event',
376
376
  /**
377
- * @description Event category in the Performance panel for time spent to perform a full Garbage Collection pass
377
+ * @description Event category in the Performance panel for time spent to perform a full garbage collection pass.
378
378
  */
379
379
  majorGc: 'Major GC',
380
380
  /**
381
- * @description Event category in the Performance panel for time spent to perform a quick Garbage Collection pass
381
+ * @description Event category in the Performance panel for time spent to perform a quick garbage collection pass.
382
382
  */
383
383
  minorGc: 'Minor GC',
384
384
  /**
385
- * @description Text for the request animation frame event
385
+ * @description Text for the request animation frame event.
386
386
  */
387
387
  requestAnimationFrame: 'Request animation frame',
388
388
  /**
389
- * @description Text to cancel the animation frame
389
+ * @description Text to cancel the animation frame.
390
390
  */
391
391
  cancelAnimationFrame: 'Cancel animation frame',
392
392
  /**
393
- * @description Text for the event that an animation frame is fired
393
+ * @description Text for the event that an animation frame is fired.
394
394
  */
395
395
  animationFrameFired: 'Animation frame fired',
396
396
  /**
397
- * @description Text in Timeline UIUtils of the Performance panel
397
+ * @description Text for an event requesting an idle callback in the Performance panel.
398
398
  */
399
399
  requestIdleCallback: 'Request idle callback',
400
400
  /**
401
- * @description Text in Timeline UIUtils of the Performance panel
401
+ * @description Text for an event cancelling an idle callback in the Performance panel.
402
402
  */
403
403
  cancelIdleCallback: 'Cancel idle callback',
404
404
  /**
405
- * @description Text in Timeline UIUtils of the Performance panel
405
+ * @description Text for an event firing an idle callback in the Performance panel.
406
406
  */
407
407
  fireIdleCallback: 'Fire idle callback',
408
408
  /**
409
- * @description Text in Timeline UIUtils of the Performance panel
409
+ * @description Text for an event creating a WebSocket connection in the Performance panel.
410
410
  */
411
411
  createWebsocket: 'Create WebSocket',
412
412
  /**
413
- * @description Text in Timeline UIUtils of the Performance panel
413
+ * @description Text for an event sending a WebSocket handshake in the Performance panel.
414
414
  */
415
415
  sendWebsocketHandshake: 'Send WebSocket handshake',
416
416
  /**
417
- * @description Text in Timeline UIUtils of the Performance panel
417
+ * @description Text for an event receiving a WebSocket handshake in the Performance panel.
418
418
  */
419
419
  receiveWebsocketHandshake: 'Receive WebSocket handshake',
420
420
  /**
421
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
421
+ * @description Text in the flame chart of the Performance panel for receiving a WebSocket message.
422
422
  */
423
423
  wsMessageReceived: 'Receive WebSocket message',
424
424
  /**
425
- * @description Text in Timeline Flame Chart Data Provider of the Performance panel
425
+ * @description Text in the flame chart of the Performance panel for sending a WebSocket message.
426
426
  */
427
427
  wsMessageSent: 'Send WebSocket message',
428
428
  /**
429
- * @description Text in Timeline UIUtils of the Performance panel
429
+ * @description Text for an event destroying a WebSocket connection in the Performance panel.
430
430
  */
431
431
  destroyWebsocket: 'Destroy WebSocket',
432
432
  /**
433
- * @description Event category in the Performance panel for time spent in the embedder of the WebView
433
+ * @description Event category in the Performance panel for time spent in the embedder of the WebView.
434
434
  */
435
435
  embedderCallback: 'Embedder callback',
436
436
  /**
437
- * @description Event category in the Performance panel for time spent decoding an image
437
+ * @description Event category in the Performance panel for time spent decoding an image.
438
438
  */
439
439
  imageDecode: 'Image decode',
440
440
  /**
441
- * @description Event category in the Performance panel for time spent to perform Garbage Collection for the Document Object Model
441
+ * @description Event category in the Performance panel for time spent to perform garbage collection for the Document Object Model.
442
442
  */
443
443
  domGc: 'DOM GC',
444
444
  /**
445
- * @description Event category in the Performance panel for time spent to perform Garbage Collection for C++: https://chromium.googlesource.com/v8/v8/+/main/include/cppgc/README.md
445
+ * @description Event category in the Performance panel for time spent to perform garbage collection for C++: https://chromium.googlesource.com/v8/v8/+/main/include/cppgc/README.md.
446
446
  */
447
447
  cppGc: 'C++ GC',
448
448
  /**
449
- * @description Event category in the Performance panel for time spent to perform encryption
449
+ * @description Event category in the Performance panel for time spent to perform encryption.
450
450
  */
451
451
  encrypt: 'Encrypt',
452
452
  /**
453
- * @description Text in Timeline UIUtils of the Performance panel
453
+ * @description Text for an encryption reply event in the Performance panel.
454
454
  */
455
455
  encryptReply: 'Encrypt reply',
456
456
  /**
457
- * @description Event category in the Performance panel for time spent to perform decryption
457
+ * @description Event category in the Performance panel for time spent to perform decryption.
458
458
  */
459
459
  decrypt: 'Decrypt',
460
460
  /**
461
- * @description Text in Timeline UIUtils of the Performance panel
461
+ * @description Text for a decryption reply event in the Performance panel.
462
462
  */
463
463
  decryptReply: 'Decrypt reply',
464
464
  /**
@@ -468,7 +468,7 @@ const UIStrings = {
468
468
  digest: 'Digest',
469
469
  /**
470
470
  * @description Noun phrase meaning 'the browser was preparing the digest
471
- *reply'. Digest: https://developer.mozilla.org/en-US/docs/Glossary/Digest
471
+ * reply'. Digest: https://developer.mozilla.org/en-US/docs/Glossary/Digest
472
472
  */
473
473
  digestReply: 'Digest reply',
474
474
  /**
@@ -481,39 +481,39 @@ const UIStrings = {
481
481
  */
482
482
  signReply: 'Sign reply',
483
483
  /**
484
- * @description Text in Timeline UIUtils of the Performance panel
484
+ * @description Text for a verification stage event in the Performance panel.
485
485
  */
486
486
  verify: 'Verify',
487
487
  /**
488
- * @description Text in Timeline UIUtils of the Performance panel
488
+ * @description Text for a verification reply event in the Performance panel.
489
489
  */
490
490
  verifyReply: 'Verify reply',
491
491
  /**
492
- * @description Text in Timeline UIUtils of the Performance panel
492
+ * @description Text for an asynchronous task in the Performance panel.
493
493
  */
494
494
  asyncTask: 'Async task',
495
495
  /**
496
- * @description Text in Timeline for Layout Shift records
496
+ * @description Text in the Performance panel for layout shift records.
497
497
  */
498
498
  layoutShift: 'Layout shift',
499
499
  /**
500
- * @description Text in Timeline for Layout Shift records
500
+ * @description Text in the Performance panel for layout shift cluster records.
501
501
  */
502
502
  layoutShiftCluster: 'Layout shift cluster',
503
503
  /**
504
- * @description Text in Timeline for an Event Timing record
504
+ * @description Text in the Performance panel for an event timing record.
505
505
  */
506
506
  eventTiming: 'Event timing',
507
507
  /**
508
- * @description Event category in the Performance panel for JavaScript nodes in CPUProfile
508
+ * @description Event category in the Performance panel for JavaScript nodes in CPUProfile.
509
509
  */
510
510
  jsFrame: 'JS frame',
511
511
  /**
512
- * @description Text in UIDevtools Utils of the Performance panel
512
+ * @description Text in UIDevtools Utils of the Performance panel.
513
513
  */
514
514
  rasterizing: 'Rasterizing',
515
515
  /**
516
- * @description Text in UIDevtools Utils of the Performance panel
516
+ * @description Text in UIDevtools Utils of the Performance panel.
517
517
  */
518
518
  drawing: 'Drawing',
519
519
  /**
@@ -4,11 +4,12 @@
4
4
 
5
5
  import type * as Protocol from '../../../generated/protocol.js';
6
6
  import * as Helpers from '../helpers/helpers.js';
7
- import {SamplesIntegrator} from '../helpers/SamplesIntegrator.js';
8
7
  import * as Types from '../types/types.js';
9
8
 
10
9
  import type {TraceFilter} from './TraceFilter.js';
11
10
 
11
+ const SamplesIntegrator = Helpers.SamplesIntegrator.SamplesIntegrator;
12
+
12
13
  export class Node {
13
14
  /** ms */
14
15
  totalTime: number;
@@ -2,7 +2,10 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
  import * as Protocol from '../../../generated/protocol.js';
5
- import type {RenderBlocking, SyntheticNetworkRequest} from '../types/TraceEvents.js';
5
+ import type * as Types from '../types/types.js';
6
+
7
+ type RenderBlocking = Types.Events.RenderBlocking;
8
+ type SyntheticNetworkRequest = Types.Events.SyntheticNetworkRequest;
6
9
 
7
10
  // Important: we purposefully treat `potentially_blocking` as
8
11
  // non-render-blocking here because:
@@ -18,7 +18,9 @@ import {
18
18
  } from './types.js';
19
19
 
20
20
  export const UIStrings = {
21
- /** Title of an insight that provides details about why elements shift/move on the page. The causes for these shifts are referred to as culprits ("reasons"). */
21
+ /**
22
+ * @description Title of an insight that provides details about why elements shift/move on the page. The causes for these shifts are referred to as culprits ("reasons").
23
+ */
22
24
  title: 'Layout shift culprits',
23
25
  /**
24
26
  * @description Description of a DevTools insight that identifies the reasons that elements shift on the page.
@@ -64,7 +66,7 @@ export const UIStrings = {
64
66
  */
65
67
  noLayoutShifts: 'No layout shifts',
66
68
  /**
67
- * @description Text status when there no layout shifts culprits/root causes were found.
69
+ * @description Text status when no layout shift culprits or root causes were found.
68
70
  */
69
71
  noCulprits: 'Could not detect any layout shift culprits',
70
72
  } as const;