chrome-devtools-frontend 1.0.1657110 → 1.0.1660788

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 (317) hide show
  1. package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +125 -0
  2. package/.agents/skills/migrate-chromium-test/SKILL.md +15 -70
  3. package/.agents/skills/repro-flaky-tests/SKILL.md +53 -0
  4. package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +37 -18
  5. package/.agents/skills/version-control/SKILL.md +8 -1
  6. package/AUTHORS +1 -0
  7. package/SECURITY.md +3 -0
  8. package/docs/get_the_code.md +6 -0
  9. package/front_end/Images/src/ads.svg +1 -0
  10. package/front_end/Tests.js +6 -6
  11. package/front_end/core/common/Gzip.ts +12 -5
  12. package/front_end/core/common/ResourceType.ts +19 -19
  13. package/front_end/core/common/Revealer.ts +15 -15
  14. package/front_end/core/common/SettingRegistration.ts +19 -19
  15. package/front_end/core/host/AidaClient.ts +35 -9
  16. package/front_end/core/host/GdpClient.ts +10 -7
  17. package/front_end/core/platform/StringUtilities.ts +35 -0
  18. package/front_end/core/sdk/AccessibilityModel.snapshot.txt +17 -0
  19. package/front_end/core/sdk/AccessibilityModel.ts +132 -2
  20. package/front_end/core/sdk/CPUThrottlingManager.ts +8 -5
  21. package/front_end/core/sdk/CSSMetadata.ts +110 -16
  22. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -5
  23. package/front_end/core/sdk/ConsoleModel.ts +5 -5
  24. package/front_end/core/sdk/DOMDebuggerModel.ts +5 -1
  25. package/front_end/core/sdk/DOMModel.ts +32 -18
  26. package/front_end/core/sdk/NetworkManager.ts +58 -14
  27. package/front_end/core/sdk/NetworkRequest.ts +37 -1
  28. package/front_end/core/sdk/OverlayModel.ts +45 -6
  29. package/front_end/core/sdk/ResourceTreeModel.ts +6 -7
  30. package/front_end/core/sdk/ScreenCaptureModel.ts +2 -2
  31. package/front_end/core/sdk/ServerTiming.ts +17 -13
  32. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +4 -2
  33. package/front_end/core/sdk/ServiceWorkerManager.ts +19 -5
  34. package/front_end/core/sdk/TargetManager.ts +10 -1
  35. package/front_end/core/sdk/TraceObject.ts +4 -2
  36. package/front_end/core/sdk/sdk-meta.ts +170 -0
  37. package/front_end/design_system_tokens.css +0 -5
  38. package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -1
  39. package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +13 -4
  40. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +5 -2
  41. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +23 -4
  42. package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +33 -10
  43. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +8 -3
  44. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  45. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -2
  46. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +36 -37
  47. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +15 -33
  48. package/front_end/entrypoints/js_app/js_app.ts +6 -5
  49. package/front_end/entrypoints/main/GlobalAiButton.ts +4 -4
  50. package/front_end/entrypoints/main/MainImpl.ts +25 -55
  51. package/front_end/entrypoints/main/main-meta.ts +50 -50
  52. package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +5 -5
  53. package/front_end/entrypoints/node_app/app/NodeMain.ts +3 -3
  54. package/front_end/entrypoints/node_app/node_app.ts +10 -9
  55. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  56. package/front_end/foundation/Universe.ts +76 -6
  57. package/front_end/generated/InspectorBackendCommands.ts +3 -3
  58. package/front_end/generated/SupportedCSSProperties.js +19 -12
  59. package/front_end/generated/protocol.ts +7 -1
  60. package/front_end/models/ai_assistance/AiConversation.ts +19 -17
  61. package/front_end/models/ai_assistance/AiHistoryStorage.ts +37 -14
  62. package/front_end/models/ai_assistance/AiUtils.ts +38 -42
  63. package/front_end/models/ai_assistance/agents/AiAgent.ts +5 -1
  64. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +3 -2
  65. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
  66. package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
  67. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +270 -286
  68. package/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts +20 -0
  69. package/front_end/models/ai_assistance/performance/AICallTree.ts +3 -1
  70. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +3 -2
  71. package/front_end/models/autofill_manager/AutofillManager.ts +3 -1
  72. package/front_end/models/bindings/CSSWorkspaceBinding.ts +8 -5
  73. package/front_end/models/bindings/CompilerScriptMapping.ts +2 -1
  74. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +15 -16
  75. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +6 -4
  76. package/front_end/models/bindings/FileUtils.ts +11 -12
  77. package/front_end/models/bindings/NetworkProject.ts +4 -0
  78. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  79. package/front_end/models/bindings/ResourceUtils.ts +1 -1
  80. package/front_end/models/bindings/SASSSourceMapping.ts +8 -5
  81. package/front_end/models/emulation/DeviceModeModel.ts +14 -14
  82. package/front_end/models/emulation/EmulatedDevices.ts +392 -11
  83. package/front_end/models/extensions/ExtensionAPI.ts +6 -6
  84. package/front_end/models/extensions/LanguageExtensionEndpoint.ts +13 -12
  85. package/front_end/models/issues_manager/BounceTrackingIssue.ts +1 -1
  86. package/front_end/models/issues_manager/ClientHintIssue.ts +1 -1
  87. package/front_end/models/issues_manager/ConnectionAllowlistIssue.ts +1 -1
  88. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +7 -7
  89. package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +2 -2
  90. package/front_end/models/issues_manager/CookieIssue.ts +6 -7
  91. package/front_end/models/issues_manager/CorsIssue.ts +3 -3
  92. package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +2 -2
  93. package/front_end/models/issues_manager/DeprecationIssue.ts +3 -3
  94. package/front_end/models/issues_manager/EmailVerificationRequestIssue.ts +1 -1
  95. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +1 -1
  96. package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +1 -1
  97. package/front_end/models/issues_manager/GenericIssue.ts +7 -7
  98. package/front_end/models/issues_manager/HeavyAdIssue.ts +3 -3
  99. package/front_end/models/issues_manager/Issue.ts +8 -8
  100. package/front_end/models/issues_manager/MixedContentIssue.ts +1 -1
  101. package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +3 -3
  102. package/front_end/models/issues_manager/QuirksModeIssue.ts +1 -1
  103. package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -2
  104. package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +2 -2
  105. package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +2 -2
  106. package/front_end/models/issues_manager/SharedDictionaryIssue.ts +1 -1
  107. package/front_end/models/issues_manager/UnencodedDigestIssue.ts +3 -3
  108. package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
  109. package/front_end/models/stack_trace/StackTraceModel.ts +3 -3
  110. package/front_end/models/text_utils/ContentData.ts +27 -0
  111. package/front_end/models/trace/helpers/SamplesIntegrator.ts +21 -5
  112. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +29 -14
  113. package/front_end/models/web_mcp/WebMCPModel.ts +24 -6
  114. package/front_end/models/workspace/IgnoreListManager.ts +6 -6
  115. package/front_end/models/workspace/UISourceCode.ts +3 -3
  116. package/front_end/models/workspace_diff/WorkspaceDiff.ts +23 -12
  117. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +25 -22
  118. package/front_end/panels/ai_assistance/ExportConversation.ts +3 -4
  119. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +3 -3
  120. package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -2
  121. package/front_end/panels/ai_assistance/components/ChatMessage.ts +7 -0
  122. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +2 -2
  123. package/front_end/panels/animation/AnimationTimeline.ts +17 -19
  124. package/front_end/panels/animation/AnimationUI.ts +5 -5
  125. package/front_end/panels/animation/animation-meta.ts +2 -2
  126. package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -4
  127. package/front_end/panels/application/BackgroundServiceView.ts +2 -1
  128. package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -6
  129. package/front_end/panels/application/IndexedDBViews.ts +245 -262
  130. package/front_end/panels/application/OpenedWindowDetailsView.ts +1 -1
  131. package/front_end/panels/application/ResourcesPanel.ts +9 -2
  132. package/front_end/panels/application/ServiceWorkersView.ts +252 -211
  133. package/front_end/panels/application/StorageView.ts +97 -33
  134. package/front_end/panels/application/WebMCPView.ts +15 -1
  135. package/front_end/panels/application/components/AdsView.ts +1 -1
  136. package/front_end/panels/application/indexedDBViews.css +38 -9
  137. package/front_end/panels/application/preloading/helper/PreloadingForward.ts +2 -1
  138. package/front_end/panels/application/resourcesSidebar.css +5 -0
  139. package/front_end/panels/application/storageView.css +26 -9
  140. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +5 -1
  141. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +8 -6
  142. package/front_end/panels/common/DOMLinkifier.ts +1 -1
  143. package/front_end/panels/common/ExtensionServer.ts +119 -14
  144. package/front_end/panels/console/ConsoleContextSelector.ts +4 -4
  145. package/front_end/panels/console/ConsolePinPane.ts +12 -12
  146. package/front_end/panels/console/ConsolePrompt.ts +6 -6
  147. package/front_end/panels/console/ConsoleSidebar.ts +7 -7
  148. package/front_end/panels/console/ConsoleView.ts +45 -44
  149. package/front_end/panels/console/ConsoleViewMessage.ts +40 -40
  150. package/front_end/panels/console/SymbolizedErrorWidget.ts +2 -1
  151. package/front_end/panels/console/console-meta.ts +34 -34
  152. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  153. package/front_end/panels/coverage/CoverageListView.ts +28 -28
  154. package/front_end/panels/coverage/CoverageModel.ts +2 -1
  155. package/front_end/panels/coverage/CoverageView.ts +23 -23
  156. package/front_end/panels/coverage/coverage-meta.ts +5 -5
  157. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +36 -36
  158. package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +1 -1
  159. package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +2 -2
  160. package/front_end/panels/css_overview/CSSOverviewStartView.ts +6 -6
  161. package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +6 -6
  162. package/front_end/panels/css_overview/css_overview-meta.ts +2 -2
  163. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +20 -21
  164. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -8
  165. package/front_end/panels/developer_resources/developer_resources-meta.ts +2 -2
  166. package/front_end/panels/elements/AccessibilityTreeUtils.ts +8 -102
  167. package/front_end/panels/elements/AccessibilityTreeView.ts +163 -70
  168. package/front_end/panels/elements/ElementsPanel.ts +17 -11
  169. package/front_end/panels/elements/ElementsTreeElement.ts +49 -2
  170. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  171. package/front_end/panels/elements/LayoutPane.ts +1 -1
  172. package/front_end/panels/elements/MetricsSidebarPane.ts +100 -34
  173. package/front_end/panels/elements/StylePropertiesSection.ts +2 -2
  174. package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -2
  175. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  176. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +7 -18
  177. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +2 -2
  178. package/front_end/panels/elements/components/QueryContainer.ts +1 -1
  179. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  180. package/front_end/panels/issues/AffectedResourcesView.ts +2 -1
  181. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  182. package/front_end/panels/media/EventDisplayTable.ts +2 -2
  183. package/front_end/panels/media/EventTimelineView.ts +4 -4
  184. package/front_end/panels/media/MainView.ts +4 -4
  185. package/front_end/panels/media/PlayerDetailView.ts +5 -5
  186. package/front_end/panels/media/PlayerListView.ts +1 -1
  187. package/front_end/panels/media/PlayerMessagesView.ts +12 -12
  188. package/front_end/panels/media/PlayerPropertiesView.ts +17 -17
  189. package/front_end/panels/network/NetworkDataGridNode.ts +124 -36
  190. package/front_end/panels/network/NetworkLogView.ts +11 -2
  191. package/front_end/panels/network/NetworkLogViewColumns.ts +18 -0
  192. package/front_end/panels/network/NetworkPanel.ts +2 -1
  193. package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -3
  194. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
  195. package/front_end/panels/network/RequestPayloadView.ts +53 -7
  196. package/front_end/panels/network/RequestPreviewView.ts +7 -1
  197. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
  198. package/front_end/panels/network/forward/UIFilter.ts +1 -0
  199. package/front_end/panels/network/networkPanel.css +1 -0
  200. package/front_end/panels/network/networkTimingTable.css +1 -1
  201. package/front_end/panels/network/requestPayloadView.css +10 -0
  202. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +12 -12
  203. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +7 -7
  204. package/front_end/panels/profiler/HeapDetachedElementsView.ts +2 -2
  205. package/front_end/panels/profiler/HeapProfileView.ts +563 -51
  206. package/front_end/panels/profiler/HeapSnapshotView.ts +15 -9
  207. package/front_end/panels/profiler/ProfilesPanel.ts +13 -7
  208. package/front_end/panels/profiler/WritableProfileHeader.ts +152 -0
  209. package/front_end/panels/profiler/profiler.ts +2 -2
  210. package/front_end/panels/protocol_monitor/JSONEditor.ts +10 -10
  211. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +28 -32
  212. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +1 -1
  213. package/front_end/panels/recorder/RecorderController.ts +15 -15
  214. package/front_end/panels/recorder/RecorderEvents.ts +8 -0
  215. package/front_end/panels/recorder/components/CreateRecordingView.ts +11 -11
  216. package/front_end/panels/recorder/components/ExtensionView.ts +74 -83
  217. package/front_end/panels/recorder/components/RecordingListView.ts +3 -3
  218. package/front_end/panels/recorder/components/RecordingView.ts +13 -10
  219. package/front_end/panels/recorder/components/ReplaySection.ts +9 -9
  220. package/front_end/panels/recorder/components/StepEditor.ts +352 -321
  221. package/front_end/panels/recorder/components/StepView.ts +36 -37
  222. package/front_end/panels/recorder/components/recordingView.css +1 -1
  223. package/front_end/panels/recorder/models/RecorderSettings.ts +2 -2
  224. package/front_end/panels/recorder/recorder-meta.ts +7 -7
  225. package/front_end/panels/screencast/ScreencastApp.ts +1 -1
  226. package/front_end/panels/screencast/ScreencastView.ts +12 -12
  227. package/front_end/panels/search/SearchResultsPane.ts +4 -4
  228. package/front_end/panels/search/SearchView.ts +20 -20
  229. package/front_end/panels/security/SecurityModel.ts +7 -7
  230. package/front_end/panels/security/SecurityPanel.ts +99 -107
  231. package/front_end/panels/security/SecurityPanelSidebar.ts +7 -7
  232. package/front_end/panels/security/security-meta.ts +2 -2
  233. package/front_end/panels/sensors/LocationsSettingsTab.ts +19 -19
  234. package/front_end/panels/sensors/SensorsView.ts +27 -27
  235. package/front_end/panels/sensors/sensors-meta.ts +13 -167
  236. package/front_end/panels/settings/AISettingsTab.ts +98 -56
  237. package/front_end/panels/settings/EditFileSystemView.ts +2 -2
  238. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -20
  239. package/front_end/panels/settings/KeybindsSettingsTab.ts +20 -21
  240. package/front_end/panels/settings/SettingsScreen.ts +11 -11
  241. package/front_end/panels/settings/WorkspaceSettingsTab.ts +5 -5
  242. package/front_end/panels/settings/components/SyncSection.ts +12 -12
  243. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -13
  244. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +31 -31
  245. package/front_end/panels/settings/emulation/emulation-meta.ts +1 -1
  246. package/front_end/panels/settings/settings-meta.ts +14 -14
  247. package/front_end/panels/sources/NavigatorView.ts +7 -6
  248. package/front_end/panels/sources/ScopeChainSidebarPane.ts +83 -37
  249. package/front_end/panels/sources/SourcesNavigator.ts +20 -18
  250. package/front_end/panels/sources/SourcesView.ts +10 -1
  251. package/front_end/panels/sources/scopeChainSidebarPane.css +12 -4
  252. package/front_end/panels/sources/sources-meta.ts +4 -4
  253. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +5 -2
  254. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -1
  255. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +2 -1
  256. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
  257. package/front_end/panels/timeline/TimelinePanel.ts +2 -1
  258. package/front_end/panels/timeline/TimelineUIUtils.ts +5 -2
  259. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +4 -2
  260. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +4 -2
  261. package/front_end/panels/timeline/components/insights/ImageRef.ts +2 -1
  262. package/front_end/panels/utils/utils.ts +7 -3
  263. package/front_end/panels/web_audio/WebAudioView.ts +17 -18
  264. package/front_end/panels/web_audio/web_audio-meta.ts +3 -3
  265. package/front_end/panels/webauthn/WebauthnPane.ts +10 -10
  266. package/front_end/panels/whats_new/ReleaseNoteView.ts +1 -1
  267. package/front_end/panels/whats_new/whats_new-meta.ts +11 -11
  268. package/front_end/third_party/chromium/README.chromium +1 -1
  269. package/front_end/third_party/lit/lib/async-directive.d.ts +2 -1
  270. package/front_end/third_party/lit/lib/async-directive.js +1 -1
  271. package/front_end/third_party/lit/lib/async-directive.js.map +1 -1
  272. package/front_end/third_party/lit/lib/decorators.d.ts +2 -1
  273. package/front_end/third_party/lit/lib/decorators.js.map +1 -1
  274. package/front_end/third_party/lit/lib/directive.d.ts +2 -1
  275. package/front_end/third_party/lit/lib/directive.js.map +1 -1
  276. package/front_end/third_party/lit/lib/directives.d.ts +2 -1
  277. package/front_end/third_party/lit/lib/directives.js +8 -8
  278. package/front_end/third_party/lit/lib/directives.js.map +1 -1
  279. package/front_end/third_party/lit/lib/lit.d.ts +2 -1
  280. package/front_end/third_party/lit/lib/lit.js +1 -1
  281. package/front_end/third_party/lit/lib/lit.js.map +1 -1
  282. package/front_end/third_party/lit/lib/static-html.d.ts +2 -1
  283. package/front_end/third_party/lit/lib/static-html.js +1 -1
  284. package/front_end/third_party/lit/lib/static-html.js.map +1 -1
  285. package/front_end/third_party/lit/package.json +2 -2
  286. package/front_end/third_party/lit/rebuild.sh +1 -1
  287. package/front_end/third_party/lit/src/async-directive.ts +5 -0
  288. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  289. package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -1
  290. package/front_end/ui/components/dialogs/shortcutDialog.css +15 -12
  291. package/front_end/ui/components/diff_view/DiffView.ts +2 -2
  292. package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
  293. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +5 -5
  294. package/front_end/ui/components/lists/List.ts +2 -2
  295. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  296. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +5 -5
  297. package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
  298. package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
  299. package/front_end/ui/components/survey_link/SurveyLink.ts +3 -3
  300. package/front_end/ui/components/text_editor/config.ts +2 -2
  301. package/front_end/ui/components/tree_outline/TreeOutline.ts +34 -1
  302. package/front_end/ui/legacy/ReportView.ts +5 -0
  303. package/front_end/ui/legacy/Treeoutline.ts +18 -0
  304. package/front_end/ui/legacy/View.ts +1 -1
  305. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
  306. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -3
  307. package/front_end/ui/legacy/components/data_grid/data_grid.ts +1 -0
  308. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  309. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +100 -36
  310. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +7 -1
  311. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -0
  312. package/front_end/ui/legacy/components/utils/ImagePreview.ts +4 -2
  313. package/front_end/ui/legacy/inspectorCommon.css +5 -0
  314. package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
  315. package/mcp/mcp.ts +2 -0
  316. package/package.json +4 -4
  317. package/front_end/panels/profiler/ProfileView.ts +0 -610
@@ -15,15 +15,15 @@ import consoleContextSelectorStyles from './consoleContextSelector.css.js';
15
15
  const {render, nothing, html} = Lit;
16
16
  const UIStrings = {
17
17
  /**
18
- * @description Title of toolbar item in console context selector of the console panel
18
+ * @description Title of toolbar item in Console context selector of the Console panel.
19
19
  */
20
20
  javascriptContextNotSelected: 'JavaScript context: Not selected',
21
21
  /**
22
- * @description Text in Console Context Selector of the Console panel
22
+ * @description Text in Console context selector of the Console panel.
23
23
  */
24
24
  extension: 'Extension',
25
25
  /**
26
- * @description Text in Console Context Selector of the Console panel
26
+ * @description Text in Console context selector of the Console panel.
27
27
  * @example {top} PH1
28
28
  */
29
29
  javascriptContextS: 'JavaScript context: {PH1}',
@@ -78,7 +78,7 @@ export class ConsoleContextSelector implements SDK.TargetManager.SDKModelObserve
78
78
  highlightedItemChanged(
79
79
  _from: SDK.RuntimeModel.ExecutionContext|null, to: SDK.RuntimeModel.ExecutionContext|null,
80
80
  fromElement: Element|null, toElement: Element|null): void {
81
- SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
81
+ SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
82
82
  if (to?.frameId) {
83
83
  const frame = SDK.FrameManager.FrameManager.instance().getFrame(to.frameId);
84
84
  if (frame && !frame.isOutermostFrame()) {
@@ -26,36 +26,36 @@ const {widget} = UI.Widget;
26
26
 
27
27
  const UIStrings = {
28
28
  /**
29
- * @description A context menu item in the Console Pin Pane of the Console panel
29
+ * @description A context menu item in the live expressions section of the Console panel.
30
30
  */
31
31
  removeExpression: 'Remove expression',
32
32
  /**
33
- * @description A context menu item in the Console Pin Pane of the Console panel
33
+ * @description A context menu item in the live expressions section of the Console panel.
34
34
  */
35
35
  removeAllExpressions: 'Remove all expressions',
36
36
  /**
37
- * @description Screen reader label for delete button on a non-blank live expression
37
+ * @description Screen reader label for delete button on a non-blank live expression.
38
38
  * @example {document} PH1
39
39
  */
40
40
  removeExpressionS: 'Remove expression: {PH1}',
41
41
  /**
42
- * @description Screen reader label for delete button on a blank live expression
42
+ * @description Screen reader label for delete button on a blank live expression.
43
43
  */
44
44
  removeBlankExpression: 'Remove blank expression',
45
45
  /**
46
- * @description Text in Console Pin Pane of the Console panel
46
+ * @description Text in the live expressions section of the Console panel.
47
47
  */
48
48
  liveExpressionEditor: 'Live expression editor',
49
49
  /**
50
- * @description Text in Console Pin Pane of the Console panel
50
+ * @description Text in the live expressions section of the Console panel.
51
51
  */
52
52
  expression: 'Expression',
53
53
  /**
54
- * @description Side effect label title in Console Pin Pane of the Console panel
54
+ * @description Side effect label title in the live expressions section of the Console panel.
55
55
  */
56
56
  evaluateAllowingSideEffects: 'Evaluate, allowing side effects',
57
57
  /**
58
- * @description Text of a DOM element in Console Pin Pane of the Console panel
58
+ * @description Text of a DOM element in the live expressions section of the Console panel.
59
59
  */
60
60
  notAvailable: 'not available',
61
61
  /**
@@ -67,9 +67,9 @@ const UIStrings = {
67
67
  * @example {allow pasting} PH1
68
68
  */
69
69
  doNotPaste:
70
- 'Don\'t paste code you do not understand or have not reviewed yourself into DevTools. This could allow attackers to steal your identity or take control of your computer. Please type “{PH1}” below to allow pasting.',
70
+ 'Dont paste code you don’t understand or haven’t reviewed yourself into DevTools. This could allow attackers to steal your identity or take control of your computer. Type “{PH1}” below to allow pasting.',
71
71
  /**
72
- * @description Text a user needs to type in order to confirm that they are aware of the danger of pasting code into the DevTools console.
72
+ * @description Text a user needs to type in order to confirm that they are aware of the danger of pasting code into the DevTools Console.
73
73
  */
74
74
  allowPasting: 'allow pasting',
75
75
  /**
@@ -459,7 +459,7 @@ export class ConsolePinPresenter extends UI.Widget.Widget {
459
459
  }
460
460
  this.#hovered = hovered;
461
461
  if (!hovered && this.#lastNode) {
462
- SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
462
+ SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
463
463
  }
464
464
  }
465
465
 
@@ -520,7 +520,7 @@ export class ConsolePinPresenter extends UI.Widget.Widget {
520
520
  if (node) {
521
521
  SDK.OverlayModel.OverlayModel.highlightObjectAsDOMNode(node);
522
522
  } else if (this.#lastNode) {
523
- SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
523
+ SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
524
524
  }
525
525
  }
526
526
  this.#lastNode = node || null;
@@ -25,17 +25,17 @@ const {Direction} = TextEditor.TextEditorHistory;
25
25
 
26
26
  const UIStrings = {
27
27
  /**
28
- * @description Text in Console Prompt of the Console panel
28
+ * @description Text in Console prompt of the Console panel.
29
29
  */
30
30
  consolePrompt: 'Console prompt',
31
31
  /**
32
- * @description Warning shown to users when pasting text into the DevTools console. IMPORTANT: keep double quotes around PH1 and do not use single quotes.
32
+ * @description Warning shown to users when pasting text into the DevTools Console. IMPORTANT: keep double quotes around PH1 and do not use single quotes.
33
33
  * @example {allow pasting} PH1
34
34
  */
35
35
  selfXssWarning:
36
- 'Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type “{PH1}” below and press Enter to allow pasting.',
36
+ 'Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Type “{PH1}” below and press Enter to allow pasting.',
37
37
  /**
38
- * @description Text a user needs to type in order to confirm that they are aware of the danger of pasting code into the DevTools console.
38
+ * @description Text a user needs to type in order to confirm that they are aware of the danger of pasting code into the DevTools Console.
39
39
  */
40
40
  allowPasting: 'allow pasting',
41
41
  } as const;
@@ -236,7 +236,7 @@ export class ConsolePrompt extends Common.ObjectWrapper.eventMixin<EventTypes, t
236
236
  SDK.OverlayModel.OverlayModel.highlightObjectAsDOMNode(result.object);
237
237
  } else if (this.highlightingNode) {
238
238
  this.highlightingNode = false;
239
- SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
239
+ SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
240
240
  }
241
241
  if (result && executionContext) {
242
242
  executionContext.runtimeModel.releaseEvaluationResult(result);
@@ -247,7 +247,7 @@ export class ConsolePrompt extends Common.ObjectWrapper.eventMixin<EventTypes, t
247
247
  super.willHide();
248
248
  if (this.highlightingNode) {
249
249
  this.highlightingNode = false;
250
- SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
250
+ SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
251
251
  }
252
252
  }
253
253
 
@@ -17,34 +17,34 @@ import type {ConsoleViewMessage} from './ConsoleViewMessage.js';
17
17
 
18
18
  const UIStrings = {
19
19
  /**
20
- * @description Filter name in Console Sidebar of the Console panel. This is shown when we fail to
20
+ * @description Filter name in Console sidebar of the Console panel. This is shown when we fail to
21
21
  * parse a URL when trying to display console messages from each URL separately. This might be
22
22
  * because the console message does not come from any particular URL. This should be translated as
23
23
  * a term that indicates 'not one of the other URLs listed here'.
24
24
  */
25
25
  other: '<other>',
26
26
  /**
27
- * @description Text in Console Sidebar of the Console panel to show how many user messages exist.
27
+ * @description Text in Console sidebar of the Console panel to show how many user messages exist.
28
28
  */
29
29
  dUserMessages: '{n, plural, =0 {No user messages} =1 {# user message} other {# user messages}}',
30
30
  /**
31
- * @description Text in Console Sidebar of the Console panel to show how many messages exist.
31
+ * @description Text in Console sidebar of the Console panel to show how many messages exist.
32
32
  */
33
33
  dMessages: '{n, plural, =0 {No messages} =1 {# message} other {# messages}}',
34
34
  /**
35
- * @description Text in Console Sidebar of the Console panel to show how many errors exist.
35
+ * @description Text in Console sidebar of the Console panel to show how many errors exist.
36
36
  */
37
37
  dErrors: '{n, plural, =0 {No errors} =1 {# error} other {# errors}}',
38
38
  /**
39
- * @description Text in Console Sidebar of the Console panel to show how many warnings exist.
39
+ * @description Text in Console sidebar of the Console panel to show how many warnings exist.
40
40
  */
41
41
  dWarnings: '{n, plural, =0 {No warnings} =1 {# warning} other {# warnings}}',
42
42
  /**
43
- * @description Text in Console Sidebar of the Console panel to show how many info messages exist.
43
+ * @description Text in Console sidebar of the Console panel to show how many info messages exist.
44
44
  */
45
45
  dInfo: '{n, plural, =0 {No info} =1 {# info} other {# info}}',
46
46
  /**
47
- * @description Text in Console Sidebar of the Console panel to show how many verbose messages exist.
47
+ * @description Text in Console sidebar of the Console panel to show how many verbose messages exist.
48
48
  */
49
49
  dVerbose: '{n, plural, =0 {No verbose} =1 {# verbose} other {# verbose}}',
50
50
  } as const;
@@ -47,6 +47,7 @@ import * as Bindings from '../../models/bindings/bindings.js';
47
47
  import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
48
48
  import * as Logs from '../../models/logs/logs.js';
49
49
  import * as TextUtils from '../../models/text_utils/text_utils.js';
50
+ import * as Workspace from '../../models/workspace/workspace.js';
50
51
  import * as CodeHighlighter from '../../ui/components/code_highlighter/code_highlighter.js';
51
52
  import * as Highlighting from '../../ui/components/highlighting/highlighting.js';
52
53
  import * as IssueCounter from '../../ui/components/issue_counter/issue_counter.js';
@@ -81,11 +82,11 @@ const UIStrings = {
81
82
  /**
82
83
  * @description Label for button which links to Issues tab, specifying how many issues there are.
83
84
  */
84
- issuesWithColon: '{n, plural, =0 {No Issues} =1 {# Issue:} other {# Issues:}}',
85
+ issuesWithColon: '{n, plural, =0 {No issues} =1 {# issue:} other {# issues:}}',
85
86
  /**
86
- * @description Text for the tooltip of the issue counter toolbar item
87
+ * @description Text for the tooltip of the issue counter toolbar item.
87
88
  */
88
- issueToolbarTooltipGeneral: 'Some problems no longer generate console messages, but are surfaced in the issues tab.',
89
+ issueToolbarTooltipGeneral: 'Some problems no longer generate console messages, but are surfaced in the Issues tab.',
89
90
  /**
90
91
  * @description Text for the tooltip of the issue counter toolbar item. The placeholder indicates how many issues
91
92
  * there are in the Issues tab broken down by kind.
@@ -96,33 +97,33 @@ const UIStrings = {
96
97
  * @description Text for the tooltip of the issue counter toolbar item. The placeholder indicates how many issues
97
98
  * there are in the Issues tab broken down by kind.
98
99
  */
99
- issueToolbarClickToGoToTheIssuesTab: 'Click to go to the issues tab',
100
+ issueToolbarClickToGoToTheIssuesTab: 'Click to go to the Issues tab',
100
101
  /**
101
- * @description Text in Console View of the Console panel
102
+ * @description Label for the search box input field in the Console view.
102
103
  */
103
104
  findStringInLogs: 'Find string in logs',
104
105
  /**
105
- * @description Tooltip text that appears when hovering over the largeicon settings gear in show settings pane setting in console view of the console panel
106
+ * @description Tooltip text that appears when hovering over the largeicon settings gear in show settings pane setting in Console view of the Console panel.
106
107
  */
107
108
  consoleSettings: 'Console settings',
108
109
  /**
109
- * @description Title of a setting under the Console category that can be invoked through the Command Menu
110
+ * @description Title of a setting under the Console category that can be invoked through the command menu.
110
111
  */
111
112
  groupSimilarMessagesInConsole: 'Group similar messages',
112
113
  /**
113
- * @description Title of a setting under the Console category that can be invoked through the Command Menu
114
+ * @description Title of a setting under the Console category that can be invoked through the command menu.
114
115
  */
115
116
  showCorsErrorsInConsole: 'CORS errors in console',
116
117
  /**
117
- * @description Tooltip for the the console sidebar toggle in the Console panel. Command to
118
+ * @description Tooltip for the the Console sidebar toggle in the Console panel. Command to
118
119
  * open/show the sidebar.
119
120
  */
120
- showConsoleSidebar: 'Show console sidebar',
121
+ showConsoleSidebar: 'Show Console sidebar',
121
122
  /**
122
- * @description Tooltip for the the console sidebar toggle in the Console panel. Command to
123
+ * @description Tooltip for the the Console sidebar toggle in the Console panel. Command to
123
124
  * open/show the sidebar.
124
125
  */
125
- hideConsoleSidebar: 'Hide console sidebar',
126
+ hideConsoleSidebar: 'Hide Console sidebar',
126
127
  /**
127
128
  * @description Screen reader announcement when the sidebar is shown in the Console panel.
128
129
  */
@@ -132,24 +133,24 @@ const UIStrings = {
132
133
  */
133
134
  consoleSidebarHidden: 'Console sidebar hidden',
134
135
  /**
135
- * @description Tooltip text that appears on the setting to preserve log when hovering over the item
136
+ * @description Tooltip text that appears on the setting to preserve log when hovering over the item.
136
137
  */
137
- doNotClearLogOnPageReload: 'Do not clear log on page reload / navigation',
138
+ doNotClearLogOnPageReload: 'Don’t clear log on page reload / navigation',
138
139
  /**
139
- * @description Text to preserve the log after refreshing
140
+ * @description Text to preserve the log after refreshing.
140
141
  */
141
- preserveLog: 'Preserve log',
142
+ preserveLog: 'Keep log',
142
143
  /**
143
- * @description Text in Console View of the Console panel
144
+ * @description Title of a setting under the Console category to show network requests in the console.
144
145
  */
145
146
  networkMessages: 'Network messages',
146
147
  /**
147
- * @description Tooltip text that appears on the setting when hovering over it in Console View of the Console panel
148
+ * @description Tooltip text that appears on the setting when hovering over it in Console view of the Console panel.
148
149
  */
149
150
  onlyShowMessagesFromTheCurrentContext:
150
151
  'Only show messages from the current context (`top`, `iframe`, `worker`, extension)',
151
152
  /**
152
- * @description Alternative title text of a setting in Console View of the Console panel
153
+ * @description Alternative title text of a setting in Console view of the Console panel.
153
154
  */
154
155
  selectedContextOnly: 'Selected context only',
155
156
  /**
@@ -157,7 +158,7 @@ const UIStrings = {
157
158
  */
158
159
  logXMLHttpRequests: 'Log XMLHttpRequests',
159
160
  /**
160
- * @description Tooltip text that appears on the setting when hovering over it in Console View of the Console panel
161
+ * @description Tooltip text that appears on the setting when hovering over it in Console view of the Console panel.
161
162
  */
162
163
  eagerlyEvaluateTextInThePrompt: 'Eagerly evaluate text in the prompt',
163
164
  /**
@@ -169,96 +170,96 @@ const UIStrings = {
169
170
  */
170
171
  treatEvaluationAsUserActivation: 'Treat evaluation as user activation',
171
172
  /**
172
- * @description Text in Console View of the Console panel, indicating that a number of console
173
+ * @description Text in Console view of the Console panel, indicating that a number of console
173
174
  * messages have been hidden.
174
175
  */
175
176
  sHidden: '{n, plural, =1 {# hidden} other {# hidden}}',
176
177
  /**
177
- * @description Alert message for screen readers when the console is cleared
178
+ * @description Alert message for screen readers when the console is cleared.
178
179
  */
179
180
  consoleCleared: 'Console cleared',
180
181
  /**
181
- * @description Text in Console View of the Console panel
182
+ * @description Context menu item to filter out console messages originating from a specific script or file.
182
183
  * @example {index.js} PH1
183
184
  */
184
185
  hideMessagesFromS: 'Hide messages from {PH1}',
185
186
  /**
186
- * @description Text to save content as a specific file type
187
+ * @description Text to save content as a specific file type.
187
188
  */
188
189
  saveAs: 'Save as…',
189
190
  /**
190
- * @description Text to copy Console log to clipboard
191
+ * @description Text to copy console log to clipboard.
191
192
  */
192
193
  copyConsole: 'Copy console',
193
194
  /**
194
- * @description A context menu item in the Console View of the Console panel
195
+ * @description A context menu item in the Console view of the Console panel.
195
196
  */
196
197
  copyVisibleStyledSelection: 'Copy visible styled selection',
197
198
  /**
198
- * @description Text to replay an XHR request
199
+ * @description Text to replay an XHR request.
199
200
  */
200
201
  replayXhr: 'Replay XHR',
201
202
  /**
202
- * @description Text to indicate DevTools is writing to a file
203
+ * @description Text to indicate DevTools is writing to a file.
203
204
  */
204
205
  writingFile: 'Writing file…',
205
206
  /**
206
- * @description Text to indicate the searching is in progress
207
+ * @description Text to indicate the searching is in progress.
207
208
  */
208
209
  searching: 'Searching…',
209
210
  /**
210
- * @description Text in Console View of the Console panel
211
+ * @description Placeholder hint text inside the filter input box in the Console view.
211
212
  */
212
213
  egEventdCdnUrlacom: 'e.g. `/event\d/ -cdn url:a.com`',
213
214
  /**
214
- * @description Sdk console message message level verbose of level Labels in Console View of the Console panel
215
+ * @description Label for the verbose log level option in the filter dropdown in the Console view.
215
216
  */
216
217
  verbose: 'Verbose',
217
218
  /**
218
- * @description Sdk console message message level info of level Labels in Console View of the Console panel
219
+ * @description Label for the info log level option in the filter dropdown in the Console view.
219
220
  */
220
221
  info: 'Info',
221
222
  /**
222
- * @description Sdk console message message level warning of level Labels in Console View of the Console panel
223
+ * @description Label for the warning log level option in the filter dropdown in the Console view.
223
224
  */
224
225
  warnings: 'Warnings',
225
226
  /**
226
- * @description Text for errors
227
+ * @description Label for the error log level option in the filter dropdown in the Console view.
227
228
  */
228
229
  errors: 'Errors',
229
230
  /**
230
231
  * @description Tooltip text of the info icon shown next to the filter drop down
231
232
  * in the Console panels main toolbar when the sidebar is active.
232
233
  */
233
- overriddenByFilterSidebar: 'Log levels are controlled by the console sidebar.',
234
+ overriddenByFilterSidebar: 'Log levels are controlled by the Console sidebar.',
234
235
  /**
235
- * @description Text in Console View of the Console panel
236
+ * @description Label for the custom log levels option in the filter dropdown in the Console view.
236
237
  */
237
238
  customLevels: 'Custom levels',
238
239
  /**
239
- * @description Text in Console View of the Console panel
240
+ * @description Option in the log level filter menu to show only a specific log level.
240
241
  * @example {Warnings} PH1
241
242
  */
242
243
  sOnly: '{PH1} only',
243
244
  /**
244
- * @description Text in Console View of the Console panel
245
+ * @description Option in the log level filter menu to show all log levels.
245
246
  */
246
247
  allLevels: 'All levels',
247
248
  /**
248
- * @description Text in Console View of the Console panel
249
+ * @description Option in the log level filter menu to show default log levels.
249
250
  */
250
251
  defaultLevels: 'Default levels',
251
252
  /**
252
- * @description Text in Console View of the Console panel
253
+ * @description Option in the log level filter menu to hide all log levels.
253
254
  */
254
255
  hideAll: 'Hide all',
255
256
  /**
256
- * @description Title of level menu button in console view of the console panel
257
+ * @description Title of level menu button in Console view of the Console panel.
257
258
  * @example {All levels} PH1
258
259
  */
259
260
  logLevelS: 'Log level: {PH1}',
260
261
  /**
261
- * @description A context menu item in the Console View of the Console panel
262
+ * @description A context menu item in the Console view of the Console panel.
262
263
  */
263
264
  default: 'Default',
264
265
  /**
@@ -700,7 +701,7 @@ export class ConsoleView extends UI.Widget.VBox implements
700
701
  }
701
702
 
702
703
  clearConsole(): void {
703
- SDK.ConsoleModel.ConsoleModel.requestClearMessages();
704
+ SDK.ConsoleModel.ConsoleModel.requestClearMessages(SDK.TargetManager.TargetManager.instance());
704
705
  this.prompt.clearAiCodeCompletionCache();
705
706
  }
706
707
 
@@ -1352,7 +1353,7 @@ export class ConsoleView extends UI.Widget.VBox implements
1352
1353
  const filename =
1353
1354
  Platform.StringUtilities.sprintf('%s-%d.log', parsedURL ? parsedURL.host : 'console', Date.now()) as
1354
1355
  Platform.DevToolsPath.RawPathString;
1355
- const stream = new Bindings.FileUtils.FileOutputStream();
1356
+ const stream = new Bindings.FileUtils.FileOutputStream(Workspace.FileManager.FileManager.instance());
1356
1357
 
1357
1358
  const progressIndicator = document.createElement('devtools-progress');
1358
1359
  progressIndicator.title = i18nString(UIStrings.writingFile);
@@ -68,50 +68,50 @@ import {SymbolizedErrorWidget} from './SymbolizedErrorWidget.js';
68
68
 
69
69
  const UIStrings = {
70
70
  /**
71
- * @description Message element text content in Console View Message of the Console panel. Shown
72
- * when the user tried to run console.clear() but the 'Preserve log' option is enabled, which stops
71
+ * @description Message element text content in Console view message of the Console panel. Shown
72
+ * when the user tried to run console.clear() but the 'Keep log' option is enabled, which stops
73
73
  * the log from being cleared.
74
74
  */
75
- consoleclearWasPreventedDueTo: '`console.clear()` was prevented due to \'Preserve log\'',
75
+ consoleclearWasPreventedDueTo: '`console.clear()` was prevented due to \'Keep log\'',
76
76
  /**
77
77
  * @description Text shown in the Console panel after the user has cleared the console, which
78
78
  * removes all messages from the console so that it is empty.
79
79
  */
80
80
  consoleWasCleared: 'Console was cleared',
81
81
  /**
82
- * @description Message element title in Console View Message of the Console panel
82
+ * @description Message element title in Console view message of the Console panel.
83
83
  * @example {Ctrl+L} PH1
84
84
  */
85
85
  clearAllMessagesWithS: 'Clear all messages with {PH1}',
86
86
  /**
87
- * @description Message prefix in Console View Message of the Console panel
87
+ * @description Message prefix in Console view message of the Console panel.
88
88
  */
89
89
  assertionFailed: 'Assertion failed: ',
90
90
  /**
91
- * @description Message text in Console View Message of the Console panel
91
+ * @description Message text in Console view message of the Console panel.
92
92
  * @example {console.log(1)} PH1
93
93
  */
94
94
  violationS: '`[Violation]` {PH1}',
95
95
  /**
96
- * @description Message text in Console View Message of the Console panel
96
+ * @description Message text in Console view message of the Console panel.
97
97
  * @example {console.log(1)} PH1
98
98
  */
99
99
  interventionS: '`[Intervention]` {PH1}',
100
100
  /**
101
- * @description Message text in Console View Message of the Console panel
101
+ * @description Message text in Console view message of the Console panel.
102
102
  * @example {console.log(1)} PH1
103
103
  */
104
104
  deprecationS: '`[Deprecation]` {PH1}',
105
105
  /**
106
- * @description Note title in Console View Message of the Console panel
106
+ * @description Note title in Console view message of the Console panel.
107
107
  */
108
- thisValueWillNotBeCollectedUntil: 'This value will not be collected until console is cleared.',
108
+ thisValueWillNotBeCollectedUntil: 'This value won’t be collected until console is cleared.',
109
109
  /**
110
- * @description Note title in Console View Message of the Console panel
110
+ * @description Note title in Console view message of the Console panel.
111
111
  */
112
112
  thisValueWasEvaluatedUponFirst: 'This value was evaluated upon first expanding. It may have changed since then.',
113
113
  /**
114
- * @description Note title in Console View Message of the Console panel
114
+ * @description Note title in Console view message of the Console panel.
115
115
  */
116
116
  functionWasResolvedFromBound: 'Function was resolved from bound function.',
117
117
  /**
@@ -120,24 +120,24 @@ const UIStrings = {
120
120
  */
121
121
  exception: '<exception>',
122
122
  /**
123
- * @description Text to indicate an item is a warning
123
+ * @description Text to indicate an item is a warning.
124
124
  */
125
125
  warning: 'Warning',
126
126
  /**
127
- * @description Text for errors
127
+ * @description Text for errors.
128
128
  */
129
129
  error: 'Error',
130
130
  /**
131
131
  * @description Accessible label for an icon. The icon is used to mark console messages that
132
132
  * originate from a logpoint. Logpoints are special breakpoints that log a user-provided JavaScript
133
- * expression to the DevTools console.
133
+ * expression to the DevTools Console.
134
134
  */
135
135
  logpoint: 'Logpoint',
136
136
  /**
137
137
  * @description Accessible label for an icon. The icon is used to mark console messages that
138
138
  * originate from conditional breakpoints.
139
139
  */
140
- cndBreakpoint: 'Conditional Breakpoint',
140
+ cndBreakpoint: 'Conditional breakpoint',
141
141
  /**
142
142
  * @description Announced by the screen reader to indicate how many times a particular message in
143
143
  * the console was repeated.
@@ -154,87 +154,87 @@ const UIStrings = {
154
154
  */
155
155
  errorS: '{n, plural, =1 {Error, Repeated # time} other {Error, Repeated # times}}',
156
156
  /**
157
- * @description Text appended to grouped console messages that are related to URL requests
157
+ * @description Text appended to grouped console messages that are related to URL requests.
158
158
  */
159
159
  url: '<URL>',
160
160
  /**
161
- * @description Text appended to grouped console messages about tasks that took longer than N ms
161
+ * @description Text appended to grouped console messages about tasks that took longer than N ms.
162
162
  */
163
163
  tookNms: 'took <N>ms',
164
164
  /**
165
- * @description Text appended to grouped console messages about tasks that are related to some DOM event
165
+ * @description Text appended to grouped console messages about tasks that are related to some DOM event.
166
166
  */
167
167
  someEvent: '<some> event',
168
168
  /**
169
- * @description Text appended to grouped console messages about tasks that are related to a particular milestone
169
+ * @description Text appended to grouped console messages about tasks that are related to a particular milestone.
170
170
  */
171
171
  Mxx: ' M<XX>',
172
172
  /**
173
- * @description Text appended to grouped console messages about tasks that are related to autofill completions
173
+ * @description Text appended to grouped console messages about tasks that are related to autofill completions.
174
174
  */
175
175
  attribute: '<attribute>',
176
176
  /**
177
- * @description Text for the index of something
177
+ * @description Text for the index of something.
178
178
  */
179
179
  index: '(index)',
180
180
  /**
181
- * @description Text for the value of something
181
+ * @description Text for the value of something.
182
182
  */
183
183
  value: 'Value',
184
184
  /**
185
- * @description Title of the Console tool
185
+ * @description Title of the Console tool.
186
186
  */
187
187
  console: 'Console',
188
188
  /**
189
- * @description Message to indicate a console message with a stack table is expanded
189
+ * @description Message to indicate a console message with a stack table is expanded.
190
190
  */
191
191
  stackMessageExpanded: 'Stack table expanded',
192
192
  /**
193
- * @description Message to indicate a console message with a stack table is collapsed
193
+ * @description Message to indicate a console message with a stack table is collapsed.
194
194
  */
195
195
  stackMessageCollapsed: 'Stack table collapsed',
196
196
  /**
197
- * @description Message to offer insights for a console error message
197
+ * @description Message to offer insights for a console error message.
198
198
  */
199
199
  explainThisError: 'Understand this error',
200
200
  /**
201
- * @description Message to offer insights for a console warning message
201
+ * @description Message to offer insights for a console warning message.
202
202
  */
203
203
  explainThisWarning: 'Understand this warning',
204
204
  /**
205
- * @description Message to offer insights for a console message
205
+ * @description Message to offer insights for a console message.
206
206
  */
207
207
  explainThisMessage: 'Understand this message',
208
208
  /**
209
- * @description Message to offer insights for a console error message
209
+ * @description Message to offer insights for a console error message.
210
210
  */
211
- explainThisErrorWithAI: 'Understand this error. Powered by AI.',
211
+ explainThisErrorWithAI: 'Understand this error',
212
212
  /**
213
- * @description Message to offer insights for a console warning message
213
+ * @description Message to offer insights for a console warning message.
214
214
  */
215
- explainThisWarningWithAI: 'Understand this warning. Powered by AI.',
215
+ explainThisWarningWithAI: 'Understand this warning',
216
216
  /**
217
- * @description Message to offer insights for a console message
217
+ * @description Message to offer insights for a console message.
218
218
  */
219
- explainThisMessageWithAI: 'Understand this message. Powered by AI',
219
+ explainThisMessageWithAI: 'Understand this message',
220
220
  /**
221
- * @description Element text content in Object Properties Section
221
+ * @description Element text content in Object properties section.
222
222
  */
223
223
  dots: '(...)',
224
224
  /**
225
- * @description Element title in Object Properties Section
225
+ * @description Element title in Object properties section.
226
226
  */
227
227
  invokePropertyGetter: 'Invoke property getter',
228
228
  /**
229
- * @description Context menu item to copy table data
229
+ * @description Context menu item to copy table data.
230
230
  */
231
231
  copyTableAs: 'Copy table as',
232
232
  /**
233
- * @description Submenu item to copy table as Markdown
233
+ * @description Submenu item to copy table as Markdown.
234
234
  */
235
235
  copyAsMarkdown: 'Copy as Markdown',
236
236
  /**
237
- * @description Submenu item to copy table as CSV
237
+ * @description Submenu item to copy table as CSV.
238
238
  */
239
239
  copyAsCsv: 'Copy as CSV',
240
240
  } as const;
@@ -97,7 +97,8 @@ function renderFrameSuffix(frame: StackTrace.StackTrace.ParsedErrorStackFrame):
97
97
  if (frame.promiseIndex !== undefined) {
98
98
  return Lit.nothing;
99
99
  }
100
- if (frame.name) {
100
+ const name = formatName(frame);
101
+ if (name) {
101
102
  return html`)`;
102
103
  }
103
104
  return Lit.nothing;