chrome-devtools-frontend 1.0.1695017 → 1.0.1696961

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 (247) hide show
  1. package/eslint.config.mjs +4 -1
  2. package/front_end/core/common/Base64.ts +14 -4
  3. package/front_end/core/common/Gzip.ts +1 -1
  4. package/front_end/core/common/Object.ts +0 -1
  5. package/front_end/core/platform/Size.ts +43 -0
  6. package/front_end/core/platform/api/HostRuntime.ts +14 -0
  7. package/front_end/core/platform/browser/HostRuntime.ts +66 -0
  8. package/front_end/core/platform/node/HostRuntime.ts +12 -3
  9. package/front_end/core/platform/platform.ts +1 -0
  10. package/front_end/core/sdk/AccessibilityModel.ts +2 -2
  11. package/front_end/core/sdk/CSSMatchedStyles.ts +2 -0
  12. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +29 -0
  13. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -2
  14. package/front_end/core/sdk/ConsoleModel.ts +3 -3
  15. package/front_end/core/sdk/DOMModel.ts +10 -6
  16. package/front_end/core/sdk/DebuggerModel.ts +6 -0
  17. package/front_end/core/sdk/NetworkRequest.ts +19 -19
  18. package/front_end/core/sdk/RuntimeModel.ts +5 -0
  19. package/front_end/core/sdk/Script.ts +2 -2
  20. package/front_end/core/sdk/ServerTiming.ts +6 -6
  21. package/front_end/core/sdk/SourceMap.ts +112 -14
  22. package/front_end/core/sdk/SourceMapRangeMappings.ts +43 -0
  23. package/front_end/core/sdk/SourceMapScopeChainEntry.ts +15 -10
  24. package/front_end/core/sdk/SourceMapScopesInfo.ts +92 -10
  25. package/front_end/core/sdk/sdk.ts +2 -0
  26. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
  27. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +6 -6
  28. package/front_end/entrypoints/main/MainImpl.ts +1 -1
  29. package/front_end/generated/InspectorBackendCommands.ts +6 -3
  30. package/front_end/generated/protocol-mapping.d.ts +7 -0
  31. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  32. package/front_end/generated/protocol.ts +36 -3
  33. package/front_end/models/ai_assistance/AiAgent2.ts +27 -27
  34. package/front_end/models/ai_assistance/agents/AiAgent.ts +4 -0
  35. package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +2 -2
  36. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +1 -0
  37. package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +5 -4
  38. package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -0
  39. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +1 -0
  40. package/front_end/models/ai_assistance/contexts/RequestContext.ts +1 -0
  41. package/front_end/models/ai_assistance/contexts/StorageContext.ts +1 -0
  42. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +5 -5
  43. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +6 -6
  44. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +5 -8
  45. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +4 -8
  46. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +7 -5
  47. package/front_end/models/ai_assistance/tools/GetStyles.ts +10 -6
  48. package/front_end/models/ai_assistance/tools/ListSources.ts +26 -7
  49. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +5 -10
  50. package/front_end/models/ai_assistance/tools/Tool.ts +8 -1
  51. package/front_end/models/bindings/FileUtils.ts +18 -40
  52. package/front_end/models/bindings/TempFile.ts +5 -12
  53. package/front_end/models/comment_manager/CommentManager.ts +30 -6
  54. package/front_end/models/crux-manager/CrUXManager.ts +8 -5
  55. package/front_end/models/emulation/DeviceModeModel.ts +55 -105
  56. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +1 -1
  57. package/front_end/models/issues_manager/CookieIssue.ts +1 -1
  58. package/front_end/models/issues_manager/DeprecationIssue.ts +2 -2
  59. package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -5
  60. package/front_end/models/live-metrics/LiveMetrics.ts +1 -1
  61. package/front_end/models/persistence/IsolatedFileSystem.ts +16 -23
  62. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -1
  63. package/front_end/models/trace/insights/INPBreakdown.ts +1 -1
  64. package/front_end/models/trace/insights/ImageDelivery.ts +3 -3
  65. package/front_end/models/trace/insights/LCPDiscovery.ts +2 -2
  66. package/front_end/models/trace/insights/NetworkDependencyTree.ts +3 -3
  67. package/front_end/models/trace/insights/Viewport.ts +1 -1
  68. package/front_end/models/trace/types/Overlays.ts +2 -2
  69. package/front_end/panels/accessibility/AccessibilityNodeView.ts +2 -2
  70. package/front_end/panels/accessibility/AccessibilitySubPane.ts +0 -1
  71. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +74 -18
  72. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +14 -3
  73. package/front_end/panels/ai_assistance/components/ChatInput.ts +1 -1
  74. package/front_end/panels/ai_assistance/components/ChatMessage.ts +1 -1
  75. package/front_end/panels/animation/AnimationUI.ts +1 -1
  76. package/front_end/panels/application/AppManifestView.ts +9 -11
  77. package/front_end/panels/application/ApplicationPanelSidebar.ts +9 -9
  78. package/front_end/panels/application/BackgroundServiceView.ts +1 -1
  79. package/front_end/panels/application/CookieItemsView.ts +1 -1
  80. package/front_end/panels/application/DOMStorageItemsView.ts +1 -1
  81. package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -2
  82. package/front_end/panels/application/FrameDetailsView.ts +5 -5
  83. package/front_end/panels/application/IndexedDBViews.ts +2 -2
  84. package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -2
  85. package/front_end/panels/application/ReportingApiView.ts +1 -1
  86. package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +1 -1
  87. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  88. package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
  89. package/front_end/panels/application/WebMCPView.ts +1 -1
  90. package/front_end/panels/application/components/AdsView.ts +136 -7
  91. package/front_end/panels/application/components/BackForwardCacheStrings.ts +116 -117
  92. package/front_end/panels/application/components/BackForwardCacheView.ts +7 -7
  93. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +2 -2
  94. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  95. package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
  96. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  97. package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
  98. package/front_end/panels/application/components/TrustTokensView.ts +3 -3
  99. package/front_end/panels/application/components/adScriptsTable.css +22 -0
  100. package/front_end/panels/application/preloading/PreloadingView.ts +20 -22
  101. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +9 -9
  102. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +31 -33
  103. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +23 -23
  104. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +4 -4
  105. package/front_end/panels/application/preloading/components/PreloadingString.ts +161 -161
  106. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -6
  107. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +8 -8
  108. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +32 -32
  109. package/front_end/panels/application/resourcesPanel.css +17 -17
  110. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  111. package/front_end/panels/changes/ChangesView.ts +1 -1
  112. package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +1 -1
  113. package/front_end/panels/common/CPUThrottlingOption.ts +0 -1
  114. package/front_end/panels/common/GdpSignUpDialog.ts +3 -4
  115. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
  116. package/front_end/panels/console/ConsoleInsightTeaser.ts +1 -1
  117. package/front_end/panels/console/ConsolePinPane.ts +0 -1
  118. package/front_end/panels/console/ConsoleView.ts +2 -3
  119. package/front_end/panels/console/ConsoleViewMessage.ts +2 -3
  120. package/front_end/panels/coverage/CoverageListView.ts +6 -6
  121. package/front_end/panels/coverage/CoverageView.ts +7 -7
  122. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
  123. package/front_end/panels/elements/CSSRuleValidator.ts +10 -10
  124. package/front_end/panels/elements/ElementsPanel.ts +3 -3
  125. package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
  126. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  127. package/front_end/panels/elements/LayoutPane.ts +1 -1
  128. package/front_end/panels/elements/StylePropertyTreeElement.ts +85 -2
  129. package/front_end/panels/elements/StylesSidebarPane.ts +3 -3
  130. package/front_end/panels/elements/stylePropertiesTreeOutline.css +2 -1
  131. package/front_end/panels/emulation/DeviceModeView.ts +1 -1
  132. package/front_end/panels/event_listeners/EventListenersView.ts +57 -89
  133. package/front_end/panels/explain/components/ConsoleInsight.ts +4 -4
  134. package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +3 -3
  135. package/front_end/panels/issues/IssuesPane.ts +1 -1
  136. package/front_end/panels/layer_viewer/Layers3DView.ts +4 -4
  137. package/front_end/panels/layers/LayerTreeModel.ts +1 -1
  138. package/front_end/panels/lighthouse/LighthouseController.ts +4 -4
  139. package/front_end/panels/lighthouse/LighthouseStatusView.ts +10 -10
  140. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +2 -2
  141. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +1 -1
  142. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
  143. package/front_end/panels/media/MainView.ts +2 -2
  144. package/front_end/panels/mobile_throttling/CalibrationController.ts +4 -1
  145. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
  146. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +10 -0
  147. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +3 -3
  148. package/front_end/panels/network/NetworkConfigView.ts +26 -16
  149. package/front_end/panels/network/NetworkItemView.ts +1 -1
  150. package/front_end/panels/network/NetworkLogView.ts +4 -5
  151. package/front_end/panels/network/NetworkPanel.ts +1 -1
  152. package/front_end/panels/network/RequestConditionsDrawer.ts +3 -3
  153. package/front_end/panels/network/RequestCookiesView.ts +2 -2
  154. package/front_end/panels/network/RequestPayloadView.ts +0 -2
  155. package/front_end/panels/network/RequestTimingView.ts +1 -1
  156. package/front_end/panels/network/ResourceChunkView.ts +1 -1
  157. package/front_end/panels/network/components/HeaderSectionRow.ts +2 -2
  158. package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
  159. package/front_end/panels/network/components/RequestTrustTokensView.ts +7 -7
  160. package/front_end/panels/network/components/ResponseHeaderSection.ts +3 -4
  161. package/front_end/panels/network/network-meta.ts +1 -1
  162. package/front_end/panels/profiler/HeapDetachedElementsView.ts +1 -1
  163. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +10 -10
  164. package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
  165. package/front_end/panels/profiler/IsolateSelector.ts +4 -4
  166. package/front_end/panels/profiler/ModuleUIStrings.ts +1 -1
  167. package/front_end/panels/profiler/ProfilesPanel.ts +2 -3
  168. package/front_end/panels/recorder/RecorderPanel.ts +1 -1
  169. package/front_end/panels/search/SearchView.ts +6 -6
  170. package/front_end/panels/security/SecurityModel.ts +4 -4
  171. package/front_end/panels/security/SecurityPanel.ts +83 -54
  172. package/front_end/panels/security/SecurityPanelSidebar.ts +41 -5
  173. package/front_end/panels/security/sidebar.css +9 -10
  174. package/front_end/panels/sensors/SensorsView.ts +1 -1
  175. package/front_end/panels/settings/AISettingsTab.ts +9 -9
  176. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +1 -1
  177. package/front_end/panels/settings/KeybindsSettingsTab.ts +2 -2
  178. package/front_end/panels/settings/SettingsScreen.ts +156 -109
  179. package/front_end/panels/settings/WorkspaceSettingsTab.ts +1 -1
  180. package/front_end/panels/settings/components/SyncSection.ts +3 -3
  181. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -13
  182. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
  183. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  184. package/front_end/panels/sources/CSSPlugin.ts +3 -3
  185. package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
  186. package/front_end/panels/sources/NavigatorView.ts +3 -3
  187. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  188. package/front_end/panels/sources/PersistenceActions.ts +2 -2
  189. package/front_end/panels/sources/SourcesNavigator.ts +5 -5
  190. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  191. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +0 -1
  192. package/front_end/panels/sources/components/HeadersView.ts +1 -1
  193. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
  194. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
  195. package/front_end/panels/timeline/TimelineUIUtils.ts +0 -1
  196. package/front_end/panels/timeline/components/ExportTraceOptions.ts +2 -2
  197. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +4 -4
  198. package/front_end/panels/timeline/components/IgnoreListSetting.ts +1 -1
  199. package/front_end/panels/timeline/components/LiveMetricsView.ts +7 -7
  200. package/front_end/panels/timeline/components/MetricCard.ts +3 -3
  201. package/front_end/panels/timeline/components/MetricCompareStrings.ts +12 -14
  202. package/front_end/panels/timeline/components/OriginMap.ts +3 -3
  203. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -4
  204. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +6 -0
  205. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
  206. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +3 -1
  207. package/front_end/panels/timeline/timelineMiniMap.css +9 -9
  208. package/front_end/panels/timeline/timelineStatusDialog.css +9 -9
  209. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  210. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  211. package/front_end/third_party/chromium/README.chromium +1 -1
  212. package/front_end/ui/comments/CommentAnchorResolver.ts +114 -3
  213. package/front_end/ui/comments/CommentOverlayManager.ts +95 -16
  214. package/front_end/ui/components/dialogs/TypeToAllowDialog.ts +1 -1
  215. package/front_end/ui/components/markdown_view/codeBlock.css +3 -8
  216. package/front_end/ui/components/markdown_view/markdownView.css +2 -7
  217. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +2 -2
  218. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  219. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
  220. package/front_end/ui/components/text_editor/AiCodeCompletionTeaser.ts +4 -4
  221. package/front_end/ui/components/text_editor/AiCodeGenerationTeaser.ts +3 -3
  222. package/front_end/{models → ui}/geometry/GeometryImpl.ts +4 -40
  223. package/front_end/ui/legacy/GlassPane.ts +1 -1
  224. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -2
  225. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  226. package/front_end/ui/legacy/SplitWidget.ts +1 -1
  227. package/front_end/ui/legacy/SuggestBox.ts +1 -1
  228. package/front_end/ui/legacy/TabbedPane.ts +1 -1
  229. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
  230. package/front_end/ui/legacy/Treeoutline.ts +5 -1
  231. package/front_end/ui/legacy/UIUtils.ts +1 -1
  232. package/front_end/ui/legacy/Widget.ts +1 -1
  233. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  234. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
  235. package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +1 -1
  236. package/front_end/ui/legacy/components/inline_editor/BezierUI.ts +1 -1
  237. package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
  238. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  239. package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.ts +204 -17
  240. package/front_end/ui/legacy/components/inline_editor/positionAreaEditor.css +6 -0
  241. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  242. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +1 -1
  243. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +7 -9
  244. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
  245. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  246. package/package.json +7 -4
  247. /package/front_end/{models → ui}/geometry/geometry.ts +0 -0
@@ -37,7 +37,7 @@ const UIStrings = {
37
37
  * @description Error message for files which cannot be parsed.
38
38
  * @example {.headers} PH1
39
39
  */
40
- errorWhenParsing: 'Error when parsing \'\'{PH1}\'\'.',
40
+ errorWhenParsing: 'Error when parsing \'\'{PH1}\'\'',
41
41
  /**
42
42
  * @description Explainer for files which cannot be parsed.
43
43
  * @example {.headers} PH1
@@ -5,9 +5,9 @@
5
5
 
6
6
  import * as Common from '../../core/common/common.js';
7
7
  import * as i18n from '../../core/i18n/i18n.js';
8
- import * as Geometry from '../../models/geometry/geometry.js';
9
8
  import * as Trace from '../../models/trace/trace.js';
10
9
  import * as ComponentHelpers from '../../ui/components/helpers/helpers.js';
10
+ import * as Geometry from '../../ui/geometry/geometry.js';
11
11
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
12
12
  import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
13
13
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  import * as SDK from '../../core/sdk/sdk.js';
7
7
  import type * as Protocol from '../../generated/protocol.js';
8
- import * as Geometry from '../../models/geometry/geometry.js';
9
8
  import * as Trace from '../../models/trace/trace.js';
9
+ import * as Geometry from '../../ui/geometry/geometry.js';
10
10
  import * as UI from '../../ui/legacy/legacy.js';
11
11
  import * as Lit from '../../ui/lit/lit.js';
12
12
  import * as LayerViewer from '../layer_viewer/layer_viewer.js';
@@ -53,7 +53,6 @@ import * as Tracing from '../../services/tracing/tracing.js';
53
53
  import * as CodeHighlighter from '../../ui/components/code_highlighter/code_highlighter.js';
54
54
  import * as uiI18n from '../../ui/i18n/i18n.js';
55
55
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
56
- // eslint-disable-next-line @devtools/es-modules-import
57
56
  import imagePreviewStyles from '../../ui/legacy/components/utils/imagePreview.css.js';
58
57
  import * as LegacyComponents from '../../ui/legacy/components/utils/utils.js';
59
58
  import * as UI from '../../ui/legacy/legacy.js';
@@ -56,11 +56,11 @@ const UIStrings = {
56
56
  /**
57
57
  * @description Tooltip text explaining the privacy implications of including resource content when saving a trace in the Performance panel.
58
58
  */
59
- resourceContentPrivacyInfo: 'Includes the full content of all loaded HTML, CSS, and scripts (except extensions).',
59
+ resourceContentPrivacyInfo: 'Includes the full content of all loaded HTML, CSS, and scripts (except extensions)',
60
60
  /**
61
61
  * @description Tooltip text explaining the privacy implications of including script source maps when saving a trace in the Performance panel.
62
62
  */
63
- sourceMapsContentPrivacyInfo: 'Includes available source maps, which may expose authored code.',
63
+ sourceMapsContentPrivacyInfo: 'Includes available source maps, which may expose authored code',
64
64
  /**
65
65
  * @description Accessible label prefix for the information button in the Performance panel.
66
66
  */
@@ -51,7 +51,7 @@ const UIStrings = {
51
51
  /**
52
52
  * @description Warning message explaining that the Chrome UX Report could not find enough real-world speed data for the page in the Performance panel.
53
53
  */
54
- doesNotHaveSufficientData: 'The Chrome UX Report doesn’t have enough real-world speed data for this page.',
54
+ doesNotHaveSufficientData: 'The Chrome UX Report doesn’t have enough real-world speed data for this page',
55
55
  /**
56
56
  * @description Title for a dialog that contains settings related to fetching field metrics in the Performance panel.
57
57
  */
@@ -61,7 +61,7 @@ const UIStrings = {
61
61
  * @example {Chrome UX Report} PH1
62
62
  */
63
63
  fetchAggregated:
64
- 'Fetch aggregated field metrics from the {PH1} to help you contextualize local measurements with what real users experience on the site.',
64
+ 'Fetch aggregated field metrics from the {PH1} to help you contextualize local measurements with what real users experience on the site',
65
65
  /**
66
66
  * @description Heading for a section that explains what user data needs to be collected to fetch field metrics in the Performance panel.
67
67
  */
@@ -79,7 +79,7 @@ const UIStrings = {
79
79
  * @description Explanation of how associating a development origin with a production origin works for fetching real user data in the Performance panel.
80
80
  */
81
81
  mapDevelopmentOrigins:
82
- 'Set a development origin to automatically get relevant field metrics for its production origin.',
82
+ 'Set a development origin to automatically get relevant field metrics for its production origin',
83
83
  /**
84
84
  * @description Button label to add a new editable row to the origin mapping table in the Performance panel.
85
85
  */
@@ -88,7 +88,7 @@ const UIStrings = {
88
88
  * @description Warning message explaining that an entered origin is not a valid origin or URL in the Performance panel.
89
89
  * @example {http//malformed.com} PH1
90
90
  */
91
- invalidOrigin: '"{PH1}" isn’t a valid origin or URL.',
91
+ invalidOrigin: '"{PH1}" isn’t a valid origin or URL',
92
92
  } as const;
93
93
 
94
94
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/FieldSettingsDialog.ts', UIStrings);
@@ -30,7 +30,7 @@ const UIStrings = {
30
30
  /**
31
31
  * @description Description text in the ignore list settings dialog of the Performance panel.
32
32
  */
33
- ignoreListDescription: 'Add regular expression rules to remove matching scripts from the flame chart.',
33
+ ignoreListDescription: 'Add regular expression rules to remove matching scripts from the flame chart',
34
34
  /**
35
35
  * @description Label for a pattern rule in the ignore list settings dialog of the Performance panel.
36
36
  * @example {ad.*?} regex
@@ -180,7 +180,7 @@ const UIStrings = {
180
180
  * @description Text block explaining how to simulate different mobile and desktop devices in the Performance panel.
181
181
  */
182
182
  useDeviceToolbar:
183
- 'Use the [device toolbar](https://developer.chrome.com/docs/devtools/device-mode) and configure throttling to simulate real user environments and identify more performance issues.',
183
+ 'Use the [device toolbar](https://developer.chrome.com/docs/devtools/device-mode) and configure throttling to simulate real user environments and identify more performance issues',
184
184
  /**
185
185
  * @description Checkbox label that controls if the network cache is disabled in the Performance panel.
186
186
  */
@@ -224,7 +224,7 @@ const UIStrings = {
224
224
  * @description Text banner explaining how to compare local metrics to real user data in the Performance panel.
225
225
  * @example {Chrome UX Report} PH1
226
226
  */
227
- seeHowYourLocalMetricsCompare: 'See how your local metrics compare to real user data in the {PH1}.',
227
+ seeHowYourLocalMetricsCompare: 'See how your local metrics compare to real user data in the {PH1}',
228
228
  /**
229
229
  * @description Link text for documentation about local and field metrics in the Performance panel.
230
230
  */
@@ -238,7 +238,7 @@ const UIStrings = {
238
238
  * @description Tooltip text explaining why an interaction was excluded from the INP calculation in the Performance panel.
239
239
  */
240
240
  interactionExcluded:
241
- 'INP is calculated using the 98th percentile of interaction delays, so some interaction delays may be larger than the INP value.',
241
+ 'INP is calculated using the 98th percentile of interaction delays, so some interaction delays may be larger than the INP value',
242
242
  /**
243
243
  * @description Tooltip for the button to clear the currently selected log in the live metrics view of the Performance panel.
244
244
  */
@@ -274,15 +274,15 @@ const UIStrings = {
274
274
  /**
275
275
  * @description Tooltip text for an interaction status chip indicating that it represents the 98th percentile INP interaction in the Performance panel.
276
276
  */
277
- inpInteraction: 'The INP interaction is at the 98th percentile of interaction delays.',
277
+ inpInteraction: 'The INP interaction is at the 98th percentile of interaction delays',
278
278
  /**
279
279
  * @description Tooltip text for the button to reveal the INP interaction in the live metrics view of the Performance panel.
280
280
  */
281
- showInpInteraction: 'Go to the INP interaction.',
281
+ showInpInteraction: 'Go to the INP interaction',
282
282
  /**
283
283
  * @description Tooltip text for the button to reveal the worst layout shift cluster in the live metrics view of the Performance panel.
284
284
  */
285
- showClsCluster: 'Go to worst layout shift cluster.',
285
+ showClsCluster: 'Go to worst layout shift cluster',
286
286
  /**
287
287
  * @description Table column header for subpart stage names in the live metrics view of the Performance panel.
288
288
  */
@@ -302,7 +302,7 @@ const UIStrings = {
302
302
  /**
303
303
  * @description Description text for recording a performance timeline of a connected Node process in the Performance panel.
304
304
  */
305
- nodeClickToRecord: 'Record a performance timeline of the connected Node process.',
305
+ nodeClickToRecord: 'Record a performance timeline of the connected Node process',
306
306
  /**
307
307
  * @description Label for the network throttling dropdown in the live metrics view of the Performance panel.
308
308
  */
@@ -78,7 +78,7 @@ const UIStrings = {
78
78
  /**
79
79
  * @description Prompt instructing the user to interact with the page to measure INP in the live metrics view of the Performance panel.
80
80
  */
81
- interactToMeasure: 'Interact with the page to measure INP.',
81
+ interactToMeasure: 'Interact with the page to measure INP',
82
82
  /**
83
83
  * @description Tooltip label to expand more details in the metric card of the Performance panel.
84
84
  */
@@ -118,11 +118,11 @@ const UIStrings = {
118
118
  /**
119
119
  * @description Recommendation explaining how dynamic content affects LCP in the Performance panel.
120
120
  */
121
- recDynamicContentLCP: 'The LCP element can vary between page loads if content is dynamic.',
121
+ recDynamicContentLCP: 'The LCP element can vary between page loads if content is dynamic',
122
122
  /**
123
123
  * @description Recommendation explaining how dynamic content affects layout shifts in the Performance panel.
124
124
  */
125
- recDynamicContentCLS: 'Dynamic content can influence what layout shifts happen.',
125
+ recDynamicContentCLS: 'Dynamic content can influence what layout shifts happen',
126
126
  /**
127
127
  * @description Table column header for subpart stage names in the live metrics view of the Performance panel.
128
128
  */
@@ -18,78 +18,76 @@ const UIStrings = {
18
18
  * @example {LCP} PH1
19
19
  * @example {500 ms} PH2
20
20
  */
21
- goodBetterCompare:
22
- 'Your local {PH1} value of {PH2} is good, but is significantly better than your users’ experience.',
21
+ goodBetterCompare: 'Your local {PH1} value of {PH2} is good, but is significantly better than your users’ experience',
23
22
  /**
24
23
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
25
24
  * @example {LCP} PH1
26
25
  * @example {500 ms} PH2
27
26
  */
28
- goodWorseCompare: 'Your local {PH1} value of {PH2} is good, but is significantly worse than your users’ experience.',
27
+ goodWorseCompare: 'Your local {PH1} value of {PH2} is good, but is significantly worse than your users’ experience',
29
28
  /**
30
29
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
31
30
  * @example {LCP} PH1
32
31
  * @example {500 ms} PH2
33
32
  */
34
- goodSimilarCompare: 'Your local {PH1} value of {PH2} is good, and is similar to your users’ experience.',
33
+ goodSimilarCompare: 'Your local {PH1} value of {PH2} is good, and is similar to your users’ experience',
35
34
  /**
36
35
  * @description Text block that summarize a local metric value. "local" refers to a developers local testing environment.
37
36
  * @example {LCP} PH1
38
37
  * @example {500 ms} PH2
39
38
  */
40
- goodSummarized: 'Your local {PH1} value of {PH2} is good.',
39
+ goodSummarized: 'Your local {PH1} value of {PH2} is good',
41
40
  /**
42
41
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
43
42
  * @example {LCP} PH1
44
43
  * @example {500 ms} PH2
45
44
  */
46
45
  needsImprovementBetterCompare:
47
- 'Your local {PH1} value of {PH2} needs improvement, but is significantly better than your users’ experience.',
46
+ 'Your local {PH1} value of {PH2} needs improvement, but is significantly better than your users’ experience',
48
47
  /**
49
48
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
50
49
  * @example {LCP} PH1
51
50
  * @example {500 ms} PH2
52
51
  */
53
52
  needsImprovementWorseCompare:
54
- 'Your local {PH1} value of {PH2} needs improvement, but is significantly worse than your users’ experience.',
53
+ 'Your local {PH1} value of {PH2} needs improvement, but is significantly worse than your users’ experience',
55
54
  /**
56
55
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
57
56
  * @example {LCP} PH1
58
57
  * @example {500 ms} PH2
59
58
  */
60
59
  needsImprovementSimilarCompare:
61
- 'Your local {PH1} value of {PH2} needs improvement, and is similar to your users’ experience.',
60
+ 'Your local {PH1} value of {PH2} needs improvement, and is similar to your users’ experience',
62
61
  /**
63
62
  * @description Text block that summarize a local metric value. "local" refers to a developers local testing environment.
64
63
  * @example {LCP} PH1
65
64
  * @example {500 ms} PH2
66
65
  */
67
- needsImprovementSummarized: 'Your local {PH1} value of {PH2} needs improvement.',
66
+ needsImprovementSummarized: 'Your local {PH1} value of {PH2} needs improvement',
68
67
  /**
69
68
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
70
69
  * @example {LCP} PH1
71
70
  * @example {500 ms} PH2
72
71
  */
73
- poorBetterCompare:
74
- 'Your local {PH1} value of {PH2} is poor, but is significantly better than your users’ experience.',
72
+ poorBetterCompare: 'Your local {PH1} value of {PH2} is poor, but is significantly better than your users’ experience',
75
73
  /**
76
74
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
77
75
  * @example {LCP} PH1
78
76
  * @example {500 ms} PH2
79
77
  */
80
- poorWorseCompare: 'Your local {PH1} value of {PH2} is poor, but is significantly worse than your users’ experience.',
78
+ poorWorseCompare: 'Your local {PH1} value of {PH2} is poor, but is significantly worse than your users’ experience',
81
79
  /**
82
80
  * @description Text block that compares a local metric value to real user experiences. "local" refers to a developers local testing environment.
83
81
  * @example {LCP} PH1
84
82
  * @example {500 ms} PH2
85
83
  */
86
- poorSimilarCompare: 'Your local {PH1} value of {PH2} is poor, and is similar to your users’ experience.',
84
+ poorSimilarCompare: 'Your local {PH1} value of {PH2} is poor, and is similar to your users’ experience',
87
85
  /**
88
86
  * @description Text block that summarize a local metric value. "local" refers to a developers local testing environment.
89
87
  * @example {LCP} PH1
90
88
  * @example {500 ms} PH2
91
89
  */
92
- poorSummarized: 'Your local {PH1} value of {PH2} is poor.',
90
+ poorSummarized: 'Your local {PH1} value of {PH2} is poor',
93
91
  /**
94
92
  * @description Text block that compares a local metric value to real user experiences. "field metrics" should be interpreted as "real user data". "local" refers to a developers local testing environment.
95
93
  * @example {LCP} PH1
@@ -28,16 +28,16 @@ const UIStrings = {
28
28
  * @description Warning message explaining that an entered origin is not a valid origin or URL in the Performance panel.
29
29
  * @example {http//malformed.com} PH1
30
30
  */
31
- invalidOrigin: '"{PH1}" isn’t a valid origin or URL.',
31
+ invalidOrigin: '"{PH1}" isn’t a valid origin or URL',
32
32
  /**
33
33
  * @description Warning message explaining that a development origin is already mapped to a production origin in the Performance panel.
34
34
  * @example {https://example.com} PH1
35
35
  */
36
- alreadyMapped: '"{PH1}" is already mapped to a production origin.',
36
+ alreadyMapped: '"{PH1}" is already mapped to a production origin',
37
37
  /**
38
38
  * @description Warning message explaining that a page does not have enough real user data in the Performance panel.
39
39
  */
40
- pageHasNoData: 'The Chrome UX Report doesn’t have enough real user data for this page.',
40
+ pageHasNoData: 'The Chrome UX Report doesn’t have enough real user data for this page',
41
41
  } as const;
42
42
 
43
43
  const str_ = i18n.i18n.registerUIStrings('panels/timeline/components/OriginMap.ts', UIStrings);
@@ -37,7 +37,7 @@ const UIStrings = {
37
37
  /**
38
38
  * @description Instructions for how to add an item label in the Performance panel.
39
39
  */
40
- entryLabelTutorialDescription: 'Double-click or press Enter on an item and type to add an item label.',
40
+ entryLabelTutorialDescription: 'Double-click or press Enter on an item and type to add an item label',
41
41
  /**
42
42
  * @description Header title for the item connection tutorial in the Performance panel sidebar.
43
43
  */
@@ -46,7 +46,7 @@ const UIStrings = {
46
46
  * @description Instructions for how to connect two items in the flame chart of the Performance panel.
47
47
  */
48
48
  entryLinkTutorialDescription:
49
- 'Double-click on an item, click on the adjacent rightward arrow, then select the destination item.',
49
+ 'Double-click on an item, click on the adjacent rightward arrow, then select the destination item',
50
50
  /**
51
51
  * @description Header title for the time range tutorial in the Performance panel sidebar.
52
52
  */
@@ -54,7 +54,7 @@ const UIStrings = {
54
54
  /**
55
55
  * @description Instructions for how to add a time range annotation in the flame chart of the Performance panel.
56
56
  */
57
- timeRangeTutorialDescription: 'Shift-drag in the flame chart, then type to add a time range annotation.',
57
+ timeRangeTutorialDescription: 'Shift-drag in the flame chart, then type to add a time range annotation',
58
58
  /**
59
59
  * @description Header title for the annotation deletion tutorial in the Performance panel sidebar.
60
60
  */
@@ -62,7 +62,7 @@ const UIStrings = {
62
62
  /**
63
63
  * @description Instructions for how to delete an annotation in the Performance panel sidebar.
64
64
  */
65
- deleteAnnotationTutorialDescription: 'Hover over the list in the sidebar Annotations tab to delete an annotation.',
65
+ deleteAnnotationTutorialDescription: 'Hover over the list in the sidebar Annotations tab to delete an annotation',
66
66
  /**
67
67
  * @description Accessible label for the delete annotation button in the Performance panel sidebar.
68
68
  * @example {A paint event annotated with the text hello world} PH1
@@ -873,6 +873,9 @@ export class Overlays extends EventTarget {
873
873
  // (it has height as now it's visible on the screen)
874
874
  // We do this by removing the default banner height (to reset our
875
875
  // calculation back to "0") and adding the actual height.
876
+ if (!(overlay.infobar.element instanceof HTMLElement)) {
877
+ return;
878
+ }
876
879
  const actualBannerHeight = overlay.infobar.element.clientHeight;
877
880
  const adjustedVisiblePixels = visiblePixelsOfBanner - defaultBannerHeight + actualBannerHeight;
878
881
  // Use Math.min here to ensure the infobar never grows beyond the size it
@@ -1720,6 +1723,9 @@ export class Overlays extends EventTarget {
1720
1723
  case 'TIMINGS_MARKER':
1721
1724
  break;
1722
1725
  case 'BOTTOM_INFO_BAR': {
1726
+ if (!(overlay.infobar.element instanceof HTMLElement)) {
1727
+ return;
1728
+ }
1723
1729
  if (element.contains(overlay.infobar.element)) {
1724
1730
  return;
1725
1731
  }
@@ -78,7 +78,7 @@ const UIStringsNotTranslate = {
78
78
  /**
79
79
  * @description The `Generate AI label button` tooltip disclaimer for when the feature is not available because the user is offline.
80
80
  */
81
- autoAnnotationNotAvailableOfflineDisclaimer: 'Auto annotations are not available because you are offline.',
81
+ autoAnnotationNotAvailableOfflineDisclaimer: 'Auto annotations are not available because you are offline',
82
82
  /**
83
83
  * @description Header text for the AI-powered annotations suggestions disclaimer dialog.
84
84
  */
@@ -32,7 +32,9 @@ const renderSection =
32
32
 
33
33
  const durationText =
34
34
  section.showDuration ? i18n.TimeUtilities.formatMicroSecondsAsMillisFixed(section.bounds.range) : '';
35
- const labelText = section.label instanceof HTMLElement ? (section.label.textContent || '') : section.label;
35
+ const labelText = section.label instanceof HTMLElement ? (section.label.textContent || '') :
36
+ typeof section.label === 'string' ? section.label :
37
+ '';
36
38
  const tooltip = durationText ? `${durationText} ${labelText}` : labelText;
37
39
 
38
40
  // clang-format off
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
  .timeline-minimap .overview-strip {
17
- margin-top: 2px;
17
+ margin-top: var(--sys-size-2);
18
18
  justify-content: center;
19
19
  }
20
20
 
@@ -24,18 +24,18 @@
24
24
  font-weight: bold;
25
25
  z-index: 100;
26
26
  background-color: var(--sys-color-cdt-base-container);
27
- padding: 0 4px;
27
+ padding: 0 var(--sys-size-3);
28
28
  position: absolute;
29
- top: -2px;
29
+ top: calc(var(--sys-size-2) * -1);
30
30
  right: 0;
31
31
  }
32
32
 
33
33
  .timeline-minimap #timeline-overview-cpu-activity {
34
- flex-basis: 20px;
34
+ flex-basis: var(--sys-size-9);
35
35
  }
36
36
 
37
37
  .timeline-minimap #timeline-overview-network {
38
- flex-basis: 8px;
38
+ flex-basis: var(--sys-size-5);
39
39
  }
40
40
 
41
41
  .timeline-minimap #timeline-overview-filmstrip {
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .timeline-minimap #timeline-overview-memory {
46
- flex-basis: 20px;
46
+ flex-basis: var(--sys-size-9);
47
47
  }
48
48
 
49
49
  .timeline-minimap #timeline-overview-network::before,
@@ -53,7 +53,7 @@
53
53
  left: 0;
54
54
  right: 0;
55
55
  bottom: 0;
56
- border-bottom: 1px solid var(--divider-line);
56
+ border-bottom: var(--sys-size-1) solid var(--divider-line);
57
57
  z-index: -200;
58
58
  }
59
59
 
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .timeline-minimap #timeline-overview-input {
70
- flex-basis: 6px;
70
+ flex-basis: var(--sys-size-4);
71
71
  }
72
72
 
73
73
  .timeline-minimap #timeline-overview-pane {
@@ -102,6 +102,6 @@
102
102
  font-size: 9px;
103
103
  color: var(--sys-color-token-subtle);
104
104
  white-space: nowrap;
105
- padding: 0 4px;
105
+ padding: 0 var(--sys-size-3);
106
106
  background-color: var(--sys-color-cdt-base-container);
107
107
  }
@@ -7,7 +7,7 @@
7
7
  .timeline-status-dialog {
8
8
  display: flex;
9
9
  flex-direction: column;
10
- padding: 16px 16px 12px;
10
+ padding: var(--sys-size-8) var(--sys-size-8) var(--sys-size-6);
11
11
  align-self: center;
12
12
  background-color: var(--sys-color-cdt-base-container);
13
13
  box-shadow: var(--drop-shadow);
@@ -15,8 +15,8 @@
15
15
  }
16
16
 
17
17
  .status-dialog-line {
18
- margin: 2px;
19
- height: 14px;
18
+ margin: var(--sys-size-2);
19
+ height: var(--sys-size-7);
20
20
  min-height: auto;
21
21
  display: flex;
22
22
  align-items: baseline;
@@ -25,7 +25,7 @@
25
25
 
26
26
  .status-dialog-line .label {
27
27
  display: inline-block;
28
- width: 80px;
28
+ width: var(--sys-size-19);
29
29
  text-align: right;
30
30
  color: var(--sys-color-on-surface);
31
31
  margin-right: 10px;
@@ -34,7 +34,7 @@
34
34
  .timeline-status-dialog .progress .indicator-container {
35
35
  display: inline-block;
36
36
  width: 200px;
37
- height: 8px;
37
+ height: var(--sys-size-5);
38
38
  background-color: var(--sys-color-surface5);
39
39
  }
40
40
 
@@ -46,22 +46,22 @@
46
46
  }
47
47
 
48
48
  .timeline-status-dialog .stop-button {
49
- margin-top: 8px;
49
+ margin-top: var(--sys-size-5);
50
50
  height: 100%;
51
51
  align-self: flex-end;
52
52
  }
53
53
 
54
54
  .timeline-status-dialog .stop-button button {
55
- border-radius: 12px;
55
+ border-radius: var(--sys-shape-corner-medium-small);
56
56
  }
57
57
 
58
58
  @media (forced-colors: active) {
59
59
  .timeline-status-dialog {
60
- border: 1px solid canvastext;
60
+ border: var(--sys-size-1) solid canvastext;
61
61
  }
62
62
 
63
63
  .timeline-status-dialog .progress .indicator-container {
64
- border: 1px solid ButtonText;
64
+ border: var(--sys-size-1) solid ButtonText;
65
65
  background-color: ButtonFace;
66
66
  }
67
67
 
@@ -27,7 +27,7 @@ const UIStrings = {
27
27
  /**
28
28
  * @description Instructions displayed in the WebAudio tool when no audio context is active.
29
29
  */
30
- openAPageThatUsesWebAudioApiTo: 'Open a page that uses Web Audio API to start monitoring.',
30
+ openAPageThatUsesWebAudioApiTo: 'Open a page that uses Web Audio API to start monitoring',
31
31
  /**
32
32
  * @description Text shown in the audio context selector when no recordings exist.
33
33
  */
@@ -76,7 +76,7 @@ const UIStrings = {
76
76
  /**
77
77
  * @description Text that shows before the virtual environment is enabled explaining the panel.
78
78
  */
79
- useWebauthnForPhishingresistant: 'Use WebAuthn for phishing-resistant authentication.',
79
+ useWebauthnForPhishingresistant: 'Use WebAuthn for phishing-resistant authentication',
80
80
  /**
81
81
  * @description Title for section of interface that allows user to add a new virtual authenticator.
82
82
  */
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 94c2d3be993e302928a7ec87401d5606b87e0833
4
+ Revision: c1d647ba9f24a713d769c2c287df3440184a5f14
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE