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
@@ -4,8 +4,8 @@
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
- import * as Geometry from '../../models/geometry/geometry.js';
8
7
  import * as Buttons from '../../ui/components/buttons/buttons.js';
8
+ import * as Geometry from '../../ui/geometry/geometry.js';
9
9
  import * as UI from '../../ui/legacy/legacy.js';
10
10
  import * as Lit from '../../ui/lit/lit.js';
11
11
 
@@ -62,24 +62,24 @@ const UIStrings = {
62
62
  /**
63
63
  * @description Error header shown when an audit encounters an error.
64
64
  */
65
- ahSorryWeRanIntoAnError: 'We ran into an error.',
65
+ ahSorryWeRanIntoAnError: 'We ran into an error',
66
66
  /**
67
67
  * @description Suggestion for recovering from an audit error.
68
68
  */
69
69
  tryToNavigateToTheUrlInAFresh:
70
- 'Try to navigate to the URL in a fresh `Chrome` profile without any other tabs or extensions open and try again.',
70
+ 'Try to navigate to the URL in a fresh `Chrome` profile without any other tabs or extensions open and try again',
71
71
  /**
72
72
  * @description Instruction to report a bug if the issue is reproducible.
73
73
  */
74
- ifThisIssueIsReproduciblePlease: 'If this issue is reproducible, report it at the `Lighthouse` `GitHub` repo.',
74
+ ifThisIssueIsReproduciblePlease: 'If this issue is reproducible, report it at the `Lighthouse` `GitHub` repo',
75
75
  /**
76
76
  * @description Text in Lighthouse splash screen when loading the page for auditing.
77
77
  */
78
- lighthouseIsLoadingThePage: '`Lighthouse` is loading the page.',
78
+ lighthouseIsLoadingThePage: '`Lighthouse` is loading the page',
79
79
  /**
80
80
  * @description Text in Lighthouse splash screen when Lighthouse is gathering information for display.
81
81
  */
82
- lighthouseIsGatheringInformation: '`Lighthouse` is gathering information about the page to compute your score.',
82
+ lighthouseIsGatheringInformation: '`Lighthouse` is gathering information about the page to compute your score',
83
83
  /**
84
84
  * @description Text in Lighthouse splash screen when Lighthouse is generating a report.
85
85
  */
@@ -88,21 +88,21 @@ const UIStrings = {
88
88
  * @description Text in Lighthouse splash screen when loading the page for auditing.
89
89
  */
90
90
  lighthouseIsLoadingYourPageWith:
91
- '`Lighthouse` is loading your page with throttling to measure performance on a mobile device on 3G.',
91
+ '`Lighthouse` is loading your page with throttling to measure performance on a mobile device on 3G',
92
92
  /**
93
93
  * @description Text in Lighthouse splash screen when loading the page for auditing.
94
94
  */
95
95
  lighthouseIsLoadingYourPageWithThrottling:
96
- '`Lighthouse` is loading your page with throttling to measure performance on a slow desktop on 3G.',
96
+ '`Lighthouse` is loading your page with throttling to measure performance on a slow desktop on 3G',
97
97
  /**
98
98
  * @description Text in Lighthouse splash screen when loading the page for auditing.
99
99
  */
100
- lighthouseIsLoadingYourPageWithMobile: '`Lighthouse` is loading your page with mobile emulation.',
100
+ lighthouseIsLoadingYourPageWithMobile: '`Lighthouse` is loading your page with mobile emulation',
101
101
  /**
102
102
  * @description Fast fact in the splash screen while Lighthouse is performing an audit.
103
103
  */
104
104
  mbTakesAMinimumOfSecondsTo:
105
- '1MB takes a minimum of 5 seconds to download on a typical 3G connection [Source: `WebPageTest` and `DevTools` 3G definition].',
105
+ '1MB takes a minimum of 5 seconds to download on a typical 3G connection [Source: `WebPageTest` and `DevTools` 3G definition]',
106
106
  /**
107
107
  * @description Fast fact in the splash screen while Lighthouse is performing an audit.
108
108
  */
@@ -4,8 +4,8 @@
4
4
  /* eslint-disable @devtools/no-imperative-dom-api */
5
5
 
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
- import * as Geometry from '../../models/geometry/geometry.js';
8
7
  import * as Buttons from '../../ui/components/buttons/buttons.js';
8
+ import * as Geometry from '../../ui/geometry/geometry.js';
9
9
  import * as UI from '../../ui/legacy/legacy.js';
10
10
  import {Directives, html, render} from '../../ui/lit/lit.js';
11
11
 
@@ -24,7 +24,7 @@ const UIStrings = {
24
24
  /**
25
25
  * @description Call to action for the user to interact with the web page.
26
26
  */
27
- interactWithPage: 'Interact with the page.',
27
+ interactWithPage: 'Interact with the page',
28
28
  /**
29
29
  * @description Label for a button that ends a Lighthouse timespan. "timespan" is a Lighthouse mode that analyzes user interactions over a period of time.
30
30
  */
@@ -16,7 +16,7 @@ const UIStrings = {
16
16
  /**
17
17
  * @description Error message that shows up in the console if a buffer to be opened in the Memory inspector panel cannot be found.
18
18
  */
19
- couldNotOpenLinearMemory: 'Could not open Memory inspector: buffer not found.',
19
+ couldNotOpenLinearMemory: 'Could not open Memory inspector: buffer not found',
20
20
  /**
21
21
  * @description A context menu item in the Scope view of the Sources panel.
22
22
  */
@@ -23,7 +23,7 @@ const UIStrings = {
23
23
  * @description Label in the Memory inspector panel that serves as a placeholder if no inspections are open (i.e., nothing to see here).
24
24
  * Inspection here refers to viewing, navigating, and understanding the memory through this panel.
25
25
  */
26
- memoryInspectorExplanation: 'On this page you can inspect binary data.',
26
+ memoryInspectorExplanation: 'On this page you can inspect binary data',
27
27
  /**
28
28
  * @description Label in the Memory inspector panel for a link.
29
29
  */
@@ -24,7 +24,7 @@ const UIStrings = {
24
24
  * @description Text to instruct the user on how to view media player details.
25
25
  * A media player can be an audio and video source of a page.
26
26
  */
27
- selectToViewDetails: 'Select a media player to inspect its details.',
27
+ selectToViewDetails: 'Select a media player to inspect its details',
28
28
  /**
29
29
  * @description Text to show if no player can be shown.
30
30
  * A media player can be an audio and video source of a page.
@@ -34,7 +34,7 @@ const UIStrings = {
34
34
  * @description Text to explain this panel.
35
35
  * A media player can be an audio and video source of a page.
36
36
  */
37
- mediaPlayerDescription: 'On this page you can view and export media player details.',
37
+ mediaPlayerDescription: 'On this page you can view and export media player details',
38
38
  } as const;
39
39
  const str_ = i18n.i18n.registerUIStrings('panels/media/MainView.ts', UIStrings);
40
40
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -10,7 +10,7 @@ const UIStrings = {
10
10
  /**
11
11
  * @description Text to display to user while a calibration process is running.
12
12
  */
13
- runningCalibration: 'Running CPU calibration, don’t leave this tab or close DevTools.',
13
+ runningCalibration: 'Running CPU calibration, don’t leave this tab or close DevTools',
14
14
  } as const;
15
15
  const str_ = i18n.i18n.registerUIStrings('panels/mobile_throttling/CalibrationController.ts', UIStrings);
16
16
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -223,6 +223,7 @@ export class CalibrationController {
223
223
  this.#result = {
224
224
  low: PanelsCommon.CPUThrottlingOption.CalibrationError.DEVICE_TOO_WEAK,
225
225
  mid: PanelsCommon.CPUThrottlingOption.CalibrationError.DEVICE_TOO_WEAK,
226
+ actualScore,
226
227
  };
227
228
  return;
228
229
  }
@@ -250,6 +251,8 @@ export class CalibrationController {
250
251
  this.#result.mid = mid;
251
252
  }
252
253
 
254
+ this.#result.actualScore = actualScore;
255
+
253
256
  yield {progress: 1};
254
257
  }
255
258
 
@@ -19,7 +19,7 @@ const UIStrings = {
19
19
  /**
20
20
  * @description Icon title for warning indicator in the Network panel title.
21
21
  */
22
- requestsMayBeBlocked: 'Requests may be blocked. See the Request conditions panel',
22
+ requestsMayBeBlocked: 'Requests may be blocked. See the Request conditions panel.',
23
23
  } as const;
24
24
  const str_ = i18n.i18n.registerUIStrings('panels/mobile_throttling/NetworkPanelIndicator.ts', UIStrings);
25
25
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -15,6 +15,8 @@ import * as PanelsCommon from '../common/common.js';
15
15
 
16
16
  import {ThrottlingPresets} from './ThrottlingPresets.js';
17
17
 
18
+ export import CPUPerformanceTier = SDK.CPUThrottlingManager.CPUPerformanceTier;
19
+
18
20
  export interface CPUThrottlingSelectorWrapper {
19
21
  control: UI.Toolbar.ToolbarComboBox;
20
22
  updateRecommendedOption(recommendedOption: PanelsCommon.CPUThrottlingOption.CPUThrottlingOption|null): void;
@@ -376,6 +378,14 @@ export class ThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<void>
376
378
  this.cpuThrottlingManager.setHardwareConcurrency(concurrency);
377
379
  }
378
380
 
381
+ effectiveCPUPerformanceTier(): CPUPerformanceTier|undefined {
382
+ return this.cpuThrottlingManager.effectiveCPUPerformanceTier();
383
+ }
384
+
385
+ setCPUPerformanceTier(tier?: CPUPerformanceTier): void {
386
+ this.cpuThrottlingManager.setCPUPerformanceTier(tier);
387
+ }
388
+
379
389
  private isDirty(): boolean {
380
390
  const networkConditions = SDK.NetworkManager.MultitargetNetworkManager.instance().networkConditions();
381
391
  const knownCurrentConditions = this.#getCurrentNetworkConditions();
@@ -156,7 +156,7 @@ const UIStrings = {
156
156
  * @description Text to explain what CPU throttling presets are.
157
157
  */
158
158
  cpuCalibrationDescription:
159
- 'These presets throttle your CPU to approximate the performance of typical low or mid-tier mobile devices.',
159
+ 'These presets throttle your CPU to approximate the performance of typical low or mid-tier mobile devices',
160
160
  /**
161
161
  * @description Text to explain how the CPU calibration process will work.
162
162
  */
@@ -169,11 +169,11 @@ const UIStrings = {
169
169
  /**
170
170
  * @description Text to explain an issue that may impact the CPU calibration process.
171
171
  */
172
- calibrationWarningRunningOnBattery: 'Device is running on battery. Plug in charger for best results',
172
+ calibrationWarningRunningOnBattery: 'Device is running on battery. Plug in charger for best results.',
173
173
  /**
174
174
  * @description Text to explain an issue that may impact the CPU calibration process.
175
175
  */
176
- calibrationWarningLowBattery: 'Device battery is low (<20%). Results may be impacted by CPU throttling',
176
+ calibrationWarningLowBattery: 'Device battery is low (<20%). Results may be impacted by CPU throttling.',
177
177
  /**
178
178
  * @description Text label for a menu item indicating that a specific slowdown multiplier is applied.
179
179
  * @example {2} PH1
@@ -10,6 +10,7 @@ import * as SDK from '../../core/sdk/sdk.js';
10
10
  import type * as Protocol from '../../generated/protocol.js';
11
11
  import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
12
12
  import * as UI from '../../ui/legacy/legacy.js';
13
+ import {html, render} from '../../ui/lit/lit.js';
13
14
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
14
15
  import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
15
16
  import * as EmulationComponents from '../settings/emulation/components/components.js';
@@ -52,11 +53,11 @@ const UIStrings = {
52
53
  /**
53
54
  * @description Status message in network conditions view of the Network panel after updating user agent client hints.
54
55
  */
55
- clientHintsStatusText: 'User agent updated.',
56
+ clientHintsStatusText: 'User agent updated',
56
57
  /**
57
58
  * @description Accessible announcement when network conditions view is shown.
58
59
  */
59
- networkConditionsPanelShown: 'Network conditions shown.',
60
+ networkConditionsPanelShown: 'Network conditions shown',
60
61
  } as const;
61
62
  const str_ = i18n.i18n.registerUIStrings('panels/network/NetworkConfigView.ts', UIStrings);
62
63
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -74,9 +75,9 @@ export class NetworkConfigView extends UI.Widget.VBox {
74
75
  this.contentElement.classList.add('network-config');
75
76
 
76
77
  this.createCacheSection();
77
- this.contentElement.createChild('div').classList.add('panel-section-separator');
78
+ this.contentElement.createChild('div', 'panel-section-separator');
78
79
  this.createNetworkThrottlingSection();
79
- this.contentElement.createChild('div').classList.add('panel-section-separator');
80
+ this.contentElement.createChild('div', 'panel-section-separator');
80
81
  this.createUserAgentSection();
81
82
  }
82
83
 
@@ -105,18 +106,27 @@ export class NetworkConfigView extends UI.Widget.VBox {
105
106
  UI.ARIAUtils.setLabel(userAgentSelectElement, title);
106
107
 
107
108
  const customOverride = {title: i18nString(UIStrings.custom), value: 'custom'};
108
- userAgentSelectElement.appendChild(UI.UIUtils.createOption(customOverride.title, customOverride.value, 'custom'));
109
-
110
- for (const userAgentDescriptor of userAgentGroups) {
111
- const groupElement = userAgentSelectElement.createChild('optgroup');
112
- groupElement.label = userAgentDescriptor.title;
113
- for (const userAgentVersion of userAgentDescriptor.values) {
114
- const userAgentValue =
115
- SDK.NetworkManager.MultitargetNetworkManager.patchUserAgentWithChromeVersion(userAgentVersion.value);
116
- groupElement.appendChild(UI.UIUtils.createOption(
117
- userAgentVersion.title, userAgentValue, Platform.StringUtilities.toKebabCase(userAgentVersion.title)));
118
- }
119
- }
109
+ const {patchUserAgentWithChromeVersion} = SDK.NetworkManager.MultitargetNetworkManager;
110
+ const {toKebabCase} = Platform.StringUtilities;
111
+ // clang-format off
112
+ // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
113
+ render(html`
114
+ <option value=${customOverride.value} jslog=${VisualLogging.item('custom').track({click: true})}>
115
+ ${customOverride.title}
116
+ </option>
117
+ ${userAgentGroups.map(group => html`
118
+ <optgroup label=${group.title}>
119
+ ${group.values.map(val => html`
120
+ <option
121
+ value=${patchUserAgentWithChromeVersion(val.value)}
122
+ jslog=${VisualLogging.item(toKebabCase(val.title)).track({click: true})}>
123
+ ${val.title}
124
+ </option>
125
+ `)}
126
+ </optgroup>
127
+ `)}
128
+ `, userAgentSelectElement);
129
+ // clang-format on
120
130
 
121
131
  userAgentSelectElement.selectedIndex = 0;
122
132
 
@@ -99,7 +99,7 @@ const UIStrings = {
99
99
  /**
100
100
  * @description Tooltip text for warning icon on cookies tab in network item view of the Network panel when third-party cookies are blocked.
101
101
  */
102
- thirdPartyPhaseout: 'Cookies blocked due to third-party cookie phaseout.',
102
+ thirdPartyPhaseout: 'Cookies blocked due to third-party cookie phaseout',
103
103
  /**
104
104
  * @description Title of a tab in network item view of the Network panel for viewing Private State Tokens operation details.
105
105
  */
@@ -54,7 +54,6 @@ import * as Adorners from '../../ui/components/adorners/adorners.js';
54
54
  import * as Buttons from '../../ui/components/buttons/buttons.js';
55
55
  import * as RenderCoordinator from '../../ui/components/render_coordinator/render_coordinator.js';
56
56
  import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
57
- // eslint-disable-next-line @devtools/es-modules-import
58
57
  import dataGridAiButtonStyles from '../../ui/legacy/components/data_grid/dataGridAiButton.css.js';
59
58
  import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
60
59
  import * as Components from '../../ui/legacy/components/utils/utils.js';
@@ -148,7 +147,7 @@ const UIStrings = {
148
147
  * @example {Ctrl + R} PH2
149
148
  */
150
149
  performARequestOrHitSToRecordThe:
151
- 'Perform a request or reload the page by using the "{PH1}" button or by pressing {PH2}.',
150
+ 'Perform a request or reload the page by using the "{PH1}" button or by pressing {PH2}',
152
151
  /**
153
152
  * @description Shown in the Network Log View of the Network panel when the user has not yet
154
153
  * recorded any network activity. This is an instruction to the user to start recording in order to
@@ -157,7 +156,7 @@ const UIStrings = {
157
156
  * @example {Ctrl + E} PH2
158
157
  */
159
158
  recordToDisplayNetworkActivity:
160
- 'Record network log to display network activity by using the "{PH1}" button or by pressing {PH2}.',
159
+ 'Record network log to display network activity by using the "{PH1}" button or by pressing {PH2}',
161
160
  /**
162
161
  * @description Label of a button in the Network Log View of the Network panel.
163
162
  */
@@ -488,12 +487,12 @@ const UIStrings = {
488
487
  * context the original request was sent from.
489
488
  * @example {top} PH1
490
489
  */
491
- originallyCalledFromContext: '// Originally called from {PH1} context.',
490
+ originallyCalledFromContext: '// Originally called from {PH1} context',
492
491
  /**
493
492
  * @description Comment added before a generated fetch command, advising the user to select
494
493
  * the execution context in the Console toolbar to resend from the same context.
495
494
  */
496
- selectExecutionContextInConsole: '// To resend from the same execution context, select it in the Console’s toolbar.',
495
+ selectExecutionContextInConsole: '// To resend from the same execution context, select it in the Console’s toolbar',
497
496
  /**
498
497
  * @description Comment added after a generated fetch command, inviting the user to edit before resending.
499
498
  */
@@ -161,7 +161,7 @@ const UIStrings = {
161
161
  * @description Text in Network Panel to tell the user to reload the page to capture screenshots.
162
162
  * @example {Ctrl + R} PH1
163
163
  */
164
- hitSToReloadAndCaptureFilmstrip: 'Press {PH1} to reload and capture filmstrip.',
164
+ hitSToReloadAndCaptureFilmstrip: 'Press {PH1} to reload and capture filmstrip',
165
165
  /**
166
166
  * @description A context menu item that is shown for resources in other panels
167
167
  * to open them in the Network panel.
@@ -55,15 +55,15 @@ const UIStrings = {
55
55
  /**
56
56
  * @description Tooltip text for pattern input in request conditions tool of the Network panel.
57
57
  */
58
- textEditPattern: 'Text pattern to block or throttle matching requests; use URL Pattern syntax.',
58
+ textEditPattern: 'Text pattern to block or throttle matching requests; use URL Pattern syntax',
59
59
  /**
60
60
  * @description Error text for empty list widget input in Request Conditions tool
61
61
  */
62
- patternInputCannotBeEmpty: 'Pattern input cannot be empty.',
62
+ patternInputCannotBeEmpty: 'Pattern input cannot be empty',
63
63
  /**
64
64
  * @description Error text for duplicate list widget input in Request Conditions tool
65
65
  */
66
- patternAlreadyExists: 'Pattern already exists.',
66
+ patternAlreadyExists: 'Pattern already exists',
67
67
  /**
68
68
  * @description Tooltip message when a pattern failed to parse as a URLPattern
69
69
  */
@@ -20,7 +20,7 @@ const UIStrings = {
20
20
  /**
21
21
  * @description Text in Request Cookies View of the Network panel
22
22
  */
23
- thisRequestHasNoCookies: 'This request has no cookies.',
23
+ thisRequestHasNoCookies: 'This request has no cookies',
24
24
  /**
25
25
  * @description Title for a table which shows all of the cookies associated with a selected network
26
26
  * request, in the Network panel. Noun phrase.
@@ -37,7 +37,7 @@ const UIStrings = {
37
37
  /**
38
38
  * @description Text in Request Headers View of the Network Panel
39
39
  */
40
- noRequestCookiesWereSent: 'No request cookies were sent.',
40
+ noRequestCookiesWereSent: 'No request cookies were sent',
41
41
  /**
42
42
  * @description Text in Request Cookies View of the Network panel
43
43
  */
@@ -40,9 +40,7 @@ import * as SDK from '../../core/sdk/sdk.js';
40
40
  import * as TextUtils from '../../core/text_utils/text_utils.js';
41
41
  import * as Buttons from '../../ui/components/buttons/buttons.js';
42
42
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
43
- // eslint-disable-next-line @devtools/es-modules-import
44
43
  import objectPropertiesSectionStyles from '../../ui/legacy/components/object_ui/objectPropertiesSection.css.js';
45
- // eslint-disable-next-line @devtools/es-modules-import
46
44
  import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
47
45
  import * as UI from '../../ui/legacy/legacy.js';
48
46
  import {Directives, html, type LitTemplate, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
@@ -153,7 +153,7 @@ const UIStrings = {
153
153
  * @example {https://web.dev/custom-metrics/#server-timing-api} PH1
154
154
  */
155
155
  duringDevelopmentYouCanUseSToAdd:
156
- 'During development, you can use {PH1} to add insights into the server-side timing of this request.',
156
+ 'During development, you can use {PH1} to add insights into the server-side timing of this request',
157
157
  /**
158
158
  * @description Header for last column of network timing tab.
159
159
  */
@@ -48,7 +48,7 @@ const UIStrings = {
48
48
  /**
49
49
  * @description Text in Messages View of the Network panel
50
50
  */
51
- selectMessageToBrowseItsContent: 'Select message to browse its content.',
51
+ selectMessageToBrowseItsContent: 'Select message to browse its content',
52
52
  /**
53
53
  * @description Text in Messages View of the Network panel
54
54
  */
@@ -30,11 +30,11 @@ const UIStrings = {
30
30
  /**
31
31
  * @description Comment used in decoded X-Client-Data HTTP header output in Headers View of the Network panel
32
32
  */
33
- activeClientExperimentVariation: 'Active `client experiment variation IDs`.',
33
+ activeClientExperimentVariation: 'Active `client experiment variation IDs`',
34
34
  /**
35
35
  * @description Comment used in decoded X-Client-Data HTTP header output in Headers View of the Network panel
36
36
  */
37
- activeClientExperimentVariationIds: 'Active `client experiment variation IDs` that trigger server-side behavior.',
37
+ activeClientExperimentVariationIds: 'Active `client experiment variation IDs` that trigger server-side behavior',
38
38
  /**
39
39
  * @description Text in Headers View of the Network panel for X-Client-Data HTTP headers
40
40
  */
@@ -37,7 +37,7 @@ const UIStrings = {
37
37
  /**
38
38
  * @description Message to explain lack of raw headers for a particular network request
39
39
  */
40
- provisionalHeadersAreShown: 'Provisional headers are shown.',
40
+ provisionalHeadersAreShown: 'Provisional headers are shown',
41
41
  } as const;
42
42
 
43
43
  const str_ = i18n.i18n.registerUIStrings('panels/network/components/RequestHeaderSection.ts', UIStrings);
@@ -65,11 +65,11 @@ const UIStrings = {
65
65
  /**
66
66
  * @description Detailed text for a success status in the Network panel
67
67
  */
68
- theOperationsResultWasServedFrom: 'The operation’s result was served from cache.',
68
+ theOperationsResultWasServedFrom: 'The operation’s result was served from cache',
69
69
  /**
70
70
  * @description Detailed text for a success status in the Network panel
71
71
  */
72
- theOperationWasFulfilledLocally: 'The operation was fulfilled locally, no request was sent.',
72
+ theOperationWasFulfilledLocally: 'The operation was fulfilled locally, no request was sent',
73
73
  /**
74
74
  * @description Text for an error status in the Network panel
75
75
  */
@@ -78,24 +78,24 @@ const UIStrings = {
78
78
  /**
79
79
  * @description Text for an error status in the Network panel
80
80
  */
81
- aClientprovidedArgumentWas: 'A client-provided argument was malformed or otherwise invalid.',
81
+ aClientprovidedArgumentWas: 'A client-provided argument was malformed or otherwise invalid',
82
82
  /**
83
83
  * @description Text for an error status in the Network panel
84
84
  */
85
85
  eitherNoInputsForThisOperation:
86
- 'Either no inputs for this operation are available or the output exceeds the operations quota.',
86
+ 'Either no inputs for this operation are available or the output exceeds the operations quota',
87
87
  /**
88
88
  * @description Text for an error status in the Network panel
89
89
  */
90
- theServersResponseWasMalformedOr: 'The server’s response was malformed or otherwise invalid.',
90
+ theServersResponseWasMalformedOr: 'The server’s response was malformed or otherwise invalid',
91
91
  /**
92
92
  * @description Text for an error status in the Network panel
93
93
  */
94
- theOperationFailedForAnUnknown: 'The operation failed for an unknown reason.',
94
+ theOperationFailedForAnUnknown: 'The operation failed for an unknown reason',
95
95
  /**
96
96
  * @description Text for an error status in the Network panel
97
97
  */
98
- perSiteLimit: 'Per-site issuer limit reached.',
98
+ perSiteLimit: 'Per-site issuer limit reached',
99
99
  } as const;
100
100
  const str_ = i18n.i18n.registerUIStrings('panels/network/components/RequestTrustTokensView.ts', UIStrings);
101
101
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -41,18 +41,17 @@ const UIStrings = {
41
41
  /**
42
42
  * @description Explanation text for which cross-origin policy to set.
43
43
  */
44
- chooseThisOptionIfTheResourceAnd:
45
- 'Choose this option if the resource and the document are served from the same site.',
44
+ chooseThisOptionIfTheResourceAnd: 'Choose this option if the resource and the document are served from the same site',
46
45
  /**
47
46
  * @description Explanation text for which cross-origin policy to set.
48
47
  */
49
48
  onlyChooseThisOptionIfAn:
50
- 'Only choose this option if an arbitrary website including this resource does not impose a security risk.',
49
+ 'Only choose this option if an arbitrary website including this resource does not impose a security risk',
51
50
  /**
52
51
  * @description Message in the Headers View of the Network panel when a cross-origin opener policy blocked loading a sandbox iframe.
53
52
  */
54
53
  thisDocumentWasBlockedFrom:
55
- 'The document was blocked from loading in a popup opened by a sandboxed iframe because this document specified a cross-origin opener policy.',
54
+ 'The document was blocked from loading in a popup opened by a sandboxed iframe because this document specified a cross-origin opener policy',
56
55
  /**
57
56
  * @description Message in the Headers View of the Network panel when a cross-origin embedder policy header needs to be set.
58
57
  */
@@ -65,7 +65,7 @@ const UIStrings = {
65
65
  * @description Tooltip text for a setting that controls the network cache. Disabling the network cache can simulate the network connections of users that are visiting a page for the first time.
66
66
  */
67
67
  networkCacheExplanation:
68
- 'Disabling the network cache will simulate a network experience similar to a first time visitor.',
68
+ 'Disabling the network cache will simulate a network experience similar to a first time visitor',
69
69
  /**
70
70
  * @description Title of a setting under the Network category.
71
71
  */
@@ -30,7 +30,7 @@ const UIStrings = {
30
30
  /**
31
31
  * @description Description for the detached elements profiling option in the Memory panel.
32
32
  */
33
- detachedElementsDescription: 'Detached elements show objects retained by a JS reference.',
33
+ detachedElementsDescription: 'Detached elements show objects retained by a JS reference',
34
34
  /**
35
35
  * @description Name of a profile.
36
36
  * @example {2} PH1
@@ -86,45 +86,45 @@ const UIStrings = {
86
86
  /**
87
87
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#compiled-code.
88
88
  */
89
- compiledCodeSummary: 'Internal data which V8 uses to run functions defined by JavaScript or WebAssembly.',
89
+ compiledCodeSummary: 'Internal data which V8 uses to run functions defined by JavaScript or WebAssembly',
90
90
  /**
91
91
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#concatenated-string.
92
92
  */
93
- concatenatedStringSummary: 'A string which represents the contents of two other strings joined together.',
93
+ concatenatedStringSummary: 'A string which represents the contents of two other strings joined together',
94
94
  /**
95
95
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#system-context.
96
96
  */
97
97
  contextSummary:
98
- 'An internal object containing variables from a JavaScript scope which may be needed by a function created within that scope.',
98
+ 'An internal object containing variables from a JavaScript scope which may be needed by a function created within that scope',
99
99
  /**
100
100
  * @description A short description of the data type internal type DescriptorArray, which is described more fully at https://v8.dev/blog/fast-properties.
101
101
  */
102
- descriptorArraySummary: 'A list of the property names used by a JavaScript Object.',
102
+ descriptorArraySummary: 'A list of the property names used by a JavaScript Object',
103
103
  /**
104
104
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
105
105
  */
106
- internalArraySummary: 'An internal array-like data structure (not a JavaScript Array).',
106
+ internalArraySummary: 'An internal array-like data structure (not a JavaScript Array)',
107
107
  /**
108
108
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#internal-node.
109
109
  */
110
- internalNodeSummary: 'An object allocated by a component other than V8, such as C++ objects defined by Blink.',
110
+ internalNodeSummary: 'An object allocated by a component other than V8, such as C++ objects defined by Blink',
111
111
  /**
112
112
  * @description A short description of the data type "system / Map" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#object-shape.
113
113
  */
114
- mapSummary: 'An internal object representing the shape of a JavaScript Object (not a JavaScript Map).',
114
+ mapSummary: 'An internal object representing the shape of a JavaScript Object (not a JavaScript Map)',
115
115
  /**
116
116
  * @description A short summary of the "(object elements)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
117
117
  */
118
118
  objectElementsSummary:
119
- 'An internal object which stores the indexed properties in a JavaScript Object, such as the contents of an Array.',
119
+ 'An internal object which stores the indexed properties in a JavaScript Object, such as the contents of an Array',
120
120
  /**
121
121
  * @description A short summary of the "(object properties)[]" described at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#array.
122
122
  */
123
- objectPropertiesSummary: 'An internal object which stores the named properties in a JavaScript Object.',
123
+ objectPropertiesSummary: 'An internal object which stores the named properties in a JavaScript Object',
124
124
  /**
125
125
  * @description A short summary of the text at https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#sliced-string.
126
126
  */
127
- slicedStringSummary: 'A string which represents some of the characters from another string.',
127
+ slicedStringSummary: 'A string which represents some of the characters from another string',
128
128
  } as const;
129
129
  const str_ = i18n.i18n.registerUIStrings('panels/profiler/HeapSnapshotGridNodes.ts', UIStrings);
130
130
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -272,7 +272,7 @@ const UIStrings = {
272
272
  * @description Text of a DOM element in heap snapshot view of a profiler tool.
273
273
  */
274
274
  stackWasNotRecordedForThisObject:
275
- 'Stack wasn’t recorded for this object because it had been allocated before this profile recording started.',
275
+ 'Stack wasn’t recorded for this object because it had been allocated before this profile recording started',
276
276
  /**
277
277
  * @description Button label in the Retainers view to restore all ignored retainers.
278
278
  * This text is on a button to undo all previous "Ignore this retainer" actions.
@@ -21,11 +21,11 @@ const UIStrings = {
21
21
  * @description Tooltip for the overall page JavaScript heap size change trend over the specified time window.
22
22
  * @example {3} PH1
23
23
  */
24
- totalPageJsHeapSizeChangeTrend: 'Total page JS heap size change trend over the last {PH1} minutes.',
24
+ totalPageJsHeapSizeChangeTrend: 'Total page JS heap size change trend over the last {PH1} minutes',
25
25
  /**
26
26
  * @description Tooltip for total page JavaScript heap size across all VM instances.
27
27
  */
28
- totalPageJsHeapSizeAcrossAllVm: 'Total page JS heap size across all VM instances.',
28
+ totalPageJsHeapSizeAcrossAllVm: 'Total page JS heap size across all VM instances',
29
29
  /**
30
30
  * @description Heap size change trend measured in kB/s.
31
31
  * @example {2 kB} PH1
@@ -44,12 +44,12 @@ const UIStrings = {
44
44
  /**
45
45
  * @description Tooltip for individual VM instance heap size in use by live JavaScript objects.
46
46
  */
47
- heapSizeInUseByLiveJsObjects: 'Heap size in use by live JS objects.',
47
+ heapSizeInUseByLiveJsObjects: 'Heap size in use by live JS objects',
48
48
  /**
49
49
  * @description Tooltip for the heap size growth rate trend over the specified time window.
50
50
  * @example {3} PH1
51
51
  */
52
- heapSizeChangeTrendOverTheLastS: 'Heap size change trend over the last {PH1} minutes.',
52
+ heapSizeChangeTrendOverTheLastS: 'Heap size change trend over the last {PH1} minutes',
53
53
  /**
54
54
  * @description Text to show an item is empty.
55
55
  */