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
@@ -47,7 +47,6 @@ import * as Badges from '../../models/badges/badges.js';
47
47
  import * as Bindings from '../../models/bindings/bindings.js';
48
48
  import * as CrUXManager from '../../models/crux-manager/crux-manager.js';
49
49
  import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
50
- import * as LiveMetrics from '../../models/live-metrics/live-metrics.js';
51
50
  import * as Persistence from '../../models/persistence/persistence.js';
52
51
  import * as Workspace from '../../models/workspace/workspace.js';
53
52
  import * as PanelCommon from '../../panels/common/common.js';
@@ -65,56 +64,56 @@ import {ExecutionContextSelector} from './ExecutionContextSelector.js';
65
64
 
66
65
  const UIStrings = {
67
66
  /**
68
- * @description Title of item in main
67
+ * @description Title of the menu item in the main toolbar to customize and control DevTools.
69
68
  */
70
69
  customizeAndControlDevtools: 'Customize and control DevTools',
71
70
  /**
72
- * @description Title element text content in Main
71
+ * @description Label for the dock side menu options in the customize and control menu.
73
72
  */
74
73
  dockSide: 'Dock side',
75
74
  /**
76
- * @description Title element title in Main
75
+ * @description Tooltip for the dock side menu options explaining how to restore the last dock position.
77
76
  * @example {Ctrl+Shift+D} PH1
78
77
  */
79
78
  placementOfDevtoolsRelativeToThe: 'Placement of DevTools relative to the page. ({PH1} to restore last position)',
80
79
  /**
81
- * @description Text to undock the DevTools
80
+ * @description Tooltip and label for the button to undock DevTools into a separate window.
82
81
  */
83
82
  undockIntoSeparateWindow: 'Undock into separate window',
84
83
  /**
85
- * @description Text to dock the DevTools to the bottom of the browser tab
84
+ * @description Tooltip and label for the button to dock DevTools to the bottom of the browser window.
86
85
  */
87
86
  dockToBottom: 'Dock to bottom',
88
87
  /**
89
- * @description Text to dock the DevTools to the right of the browser tab
88
+ * @description Tooltip and label for the button to dock DevTools to the right of the browser window.
90
89
  */
91
90
  dockToRight: 'Dock to right',
92
91
  /**
93
- * @description Text to dock the DevTools to the left of the browser tab
92
+ * @description Tooltip and label for the button to dock DevTools to the left of the browser window.
94
93
  */
95
94
  dockToLeft: 'Dock to left',
96
95
  /**
97
- * @description Text in Main
96
+ * @description Action item in the customize and control menu to focus the page being debugged.
98
97
  */
99
98
  focusDebuggee: 'Focus page',
100
99
  /**
101
- * @description Text in Main
100
+ * @description Action item in the customize and control menu to hide the Console drawer.
102
101
  */
103
- hideConsoleDrawer: 'Hide console drawer',
102
+ hideConsoleDrawer: 'Hide Console drawer',
104
103
  /**
105
- * @description Text in Main
104
+ * @description Action item in the customize and control menu to show the Console drawer.
106
105
  */
107
- showConsoleDrawer: 'Show console drawer',
106
+ showConsoleDrawer: 'Show Console drawer',
108
107
  /**
109
- * @description A context menu item in the Main
108
+ * @description Submenu item in the customize and control menu to open additional tools and panels.
110
109
  */
111
110
  moreTools: 'More tools',
112
111
  /**
113
- * @description Text for the viewing the help options
112
+ * @description Submenu item in the customize and control menu to view help and documentation options.
114
113
  */
115
114
  help: 'Help',
116
115
  /**
117
- * @description Text describing how to navigate the dock side menu
116
+ * @description Screen reader announcement explaining how to navigate the dock side options using arrow keys.
118
117
  */
119
118
  dockSideNavigation: 'Use left and right arrow keys to navigate the options',
120
119
  /**
@@ -122,7 +121,7 @@ const UIStrings = {
122
121
  */
123
122
  aiModelDownloaded: 'AI model downloaded',
124
123
  /**
125
- * @description A title of the menu item in the main menu leading to https://github.com/ChromeDevTools/chrome-devtools-mcp.
124
+ * @description Title of the menu item in the customize and control menu leading to the DevTools MCP repository.
126
125
  */
127
126
  getDevToolsMcp: 'Get `DevTools MCP`'
128
127
  } as const;
@@ -158,9 +157,11 @@ export class MainImpl {
158
157
  #readyForTestPromise = Promise.withResolvers<void>();
159
158
  #veStartPromise!: Promise<void>;
160
159
  #universe!: Foundation.Universe.Universe;
160
+ #supportsEmulation = false;
161
161
 
162
- constructor() {
162
+ constructor(opts?: {supportsEmulation: boolean}) {
163
163
  MainImpl.instanceForTest = this;
164
+ this.#supportsEmulation = opts?.supportsEmulation ?? false;
164
165
  void this.#loaded();
165
166
  }
166
167
 
@@ -209,6 +210,7 @@ export class MainImpl {
209
210
  },
210
211
  hostConfig: Root.Runtime.hostConfig,
211
212
  inspectorFrontendHost: Host.InspectorFrontendHost.InspectorFrontendHostInstance,
213
+ supportsEmulation: this.#supportsEmulation,
212
214
  };
213
215
  this.#universe = new Foundation.Universe.Universe(creationOptions);
214
216
  Root.DevToolsContext.setGlobalInstance(this.#universe.context as Root.DevToolsContext.WritableDevToolsContext);
@@ -452,9 +454,6 @@ export class MainImpl {
452
454
  targetManager.addEventListener(
453
455
  SDK.TargetManager.Events.SUSPEND_STATE_CHANGED, this.#onSuspendStateChanged.bind(this));
454
456
 
455
- Workspace.FileManager.FileManager.instance({forceNew: true});
456
-
457
- Bindings.NetworkProject.NetworkProjectManager.instance();
458
457
  new Bindings.PresentationConsoleMessageHelper.PresentationConsoleMessageManager();
459
458
  targetManager.setScopeTarget(targetManager.primaryPageTarget());
460
459
  UI.Context.Context.instance().addFlavorChangeListener(SDK.Target.Target, ({data}) => {
@@ -464,20 +463,17 @@ export class MainImpl {
464
463
  // @ts-expect-error e2e test global
465
464
  self.Extensions.extensionServer = PanelCommon.ExtensionServer.ExtensionServer.instance({forceNew: true});
466
465
 
467
- new Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(
468
- isolatedFileSystemManager, Workspace.Workspace.WorkspaceImpl.instance());
469
466
  isolatedFileSystemManager.addPlatformFileSystem(
470
467
  'snippet://' as Platform.DevToolsPath.UrlString, new Snippets.ScriptSnippetFileSystem.SnippetFileSystem());
471
468
 
472
- const persistenceImpl = Persistence.Persistence.PersistenceImpl.instance();
473
- const linkDecorator = new PanelCommon.PersistenceUtils.LinkDecorator(persistenceImpl);
469
+ const linkDecorator = new PanelCommon.PersistenceUtils.LinkDecorator(this.#universe.persistence);
474
470
  Components.Linkifier.Linkifier.setLinkDecorator(linkDecorator);
475
- Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance(
476
- {forceNew: true, workspace: Workspace.Workspace.WorkspaceImpl.instance()});
477
471
 
478
472
  new ExecutionContextSelector(targetManager, UI.Context.Context.instance());
479
473
 
480
- void LiveMetrics.LiveMetrics.instance().enable();
474
+ this.#universe.domDebuggerManager.initialize();
475
+ this.#universe.cpuThrottlingManager.initialize();
476
+ void this.#universe.liveMetrics.enable();
481
477
  CrUXManager.CrUXManager.instance();
482
478
 
483
479
  const builtInAi = AiAssistanceModel.BuiltInAi.BuiltInAi.instance();
@@ -761,8 +757,6 @@ export class SearchActionDelegate implements UI.ActionRegistration.ActionDelegat
761
757
  return false;
762
758
  }
763
759
  }
764
- let mainMenuItemInstance: MainMenuItem;
765
-
766
760
  export class MainMenuItem implements UI.Toolbar.Provider {
767
761
  readonly #item: UI.Toolbar.ToolbarMenuButton;
768
762
  constructor() {
@@ -773,17 +767,6 @@ export class MainMenuItem implements UI.Toolbar.Provider {
773
767
  this.#item.setTitle(i18nString(UIStrings.customizeAndControlDevtools));
774
768
  }
775
769
 
776
- static instance(opts: {
777
- forceNew: boolean|null,
778
- } = {forceNew: null}): MainMenuItem {
779
- const {forceNew} = opts;
780
- if (!mainMenuItemInstance || forceNew) {
781
- mainMenuItemInstance = new MainMenuItem();
782
- }
783
-
784
- return mainMenuItemInstance;
785
- }
786
-
787
770
  item(): UI.Toolbar.ToolbarItem|null {
788
771
  return this.#item;
789
772
  }
@@ -945,25 +928,12 @@ export class MainMenuItem implements UI.Toolbar.Provider {
945
928
  }
946
929
  }
947
930
 
948
- let settingsButtonProviderInstance: SettingsButtonProvider;
949
-
950
931
  export class SettingsButtonProvider implements UI.Toolbar.Provider {
951
932
  readonly #settingsButton: UI.Toolbar.ToolbarButton;
952
- private constructor() {
933
+ constructor() {
953
934
  this.#settingsButton = UI.Toolbar.Toolbar.createActionButton('settings.show');
954
935
  }
955
936
 
956
- static instance(opts: {
957
- forceNew: boolean|null,
958
- } = {forceNew: null}): SettingsButtonProvider {
959
- const {forceNew} = opts;
960
- if (!settingsButtonProviderInstance || forceNew) {
961
- settingsButtonProviderInstance = new SettingsButtonProvider();
962
- }
963
-
964
- return settingsButtonProviderInstance;
965
- }
966
-
967
937
  item(): UI.Toolbar.ToolbarItem|null {
968
938
  return this.#settingsButton;
969
939
  }
@@ -17,163 +17,163 @@ import type * as Main from './main.js';
17
17
 
18
18
  const UIStrings = {
19
19
  /**
20
- * @description Text in Main
20
+ * @description Action title to focus the page being debugged.
21
21
  */
22
22
  focusDebuggee: 'Focus page',
23
23
  /**
24
- * @description Text in the Shortcuts page in settings to explain a keyboard shortcut
24
+ * @description Action title and shortcut description to toggle the Console drawer.
25
25
  */
26
26
  toggleDrawer: 'Toggle drawer',
27
27
  /**
28
- * @description Title of an action that navigates to the next panel
28
+ * @description Title of an action that navigates to the next panel.
29
29
  */
30
30
  nextPanel: 'Next panel',
31
31
  /**
32
- * @description Title of an action that navigates to the previous panel
32
+ * @description Title of an action that navigates to the previous panel.
33
33
  */
34
34
  previousPanel: 'Previous panel',
35
35
  /**
36
- * @description Title of an action that reloads the DevTools
36
+ * @description Title of an action that reloads DevTools.
37
37
  */
38
38
  reloadDevtools: 'Reload DevTools',
39
39
  /**
40
- * @description Title of an action in the main tool to toggle dock
40
+ * @description Title of an action in the main toolbar to restore the last dock position.
41
41
  */
42
42
  restoreLastDockPosition: 'Restore last dock position',
43
43
  /**
44
- * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom in)
44
+ * @description Shortcut description and action title to zoom in.
45
45
  */
46
46
  zoomIn: 'Zoom in',
47
47
  /**
48
- * @description Text in the Shortcuts page to explain a keyboard shortcut (zoom out)
48
+ * @description Shortcut description and action title to zoom out.
49
49
  */
50
50
  zoomOut: 'Zoom out',
51
51
  /**
52
- * @description Title of an action that reset the zoom level to its default
52
+ * @description Title of an action that resets the zoom level to default.
53
53
  */
54
54
  resetZoomLevel: 'Reset zoom level',
55
55
  /**
56
- * @description Title of an action to search in panel
56
+ * @description Title of an action to search within the current panel.
57
57
  */
58
58
  searchInPanel: 'Search in panel',
59
59
  /**
60
- * @description Title of an action that cancels the current search
60
+ * @description Title of an action that cancels the current search.
61
61
  */
62
62
  cancelSearch: 'Cancel search',
63
63
  /**
64
- * @description Title of an action that finds the next search result
64
+ * @description Title of an action that finds the next search result.
65
65
  */
66
66
  findNextResult: 'Find next result',
67
67
  /**
68
- * @description Title of an action to find the previous search result
68
+ * @description Title of an action to find the previous search result.
69
69
  */
70
70
  findPreviousResult: 'Find previous result',
71
71
  /**
72
- * @description Title of a setting under the Appearance category in Settings
72
+ * @description Title of the theme setting under the Appearance category in Settings.
73
73
  */
74
74
  theme: 'Theme:',
75
75
  /**
76
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
76
+ * @description Command menu option to switch to the browser's preferred color theme.
77
77
  */
78
- switchToBrowserPreferredTheme: 'Switch to browser\'s preferred theme',
78
+ switchToBrowserPreferredTheme: 'Switch to browsers preferred theme',
79
79
  /**
80
- * @description A drop-down menu option to switch to the same (light or dark) theme as the browser
80
+ * @description Drop-down menu option to match the browser's color theme.
81
81
  */
82
82
  autoTheme: 'Auto',
83
83
  /**
84
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
84
+ * @description Command menu option to switch to the light color theme.
85
85
  */
86
86
  switchToLightTheme: 'Switch to light theme',
87
87
  /**
88
- * @description A drop-down menu option to switch to light theme
88
+ * @description Drop-down menu option to select the light color theme.
89
89
  */
90
90
  lightCapital: 'Light',
91
91
  /**
92
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
92
+ * @description Command menu option to switch to the dark color theme.
93
93
  */
94
94
  switchToDarkTheme: 'Switch to dark theme',
95
95
  /**
96
- * @description A drop-down menu option to switch to dark theme
96
+ * @description Drop-down menu option to select the dark color theme.
97
97
  */
98
98
  darkCapital: 'Dark',
99
99
  /**
100
- * @description A tag of theme preference settings that can be searched in the command menu
100
+ * @description Tag for theme preference settings when searched in the command menu.
101
101
  */
102
102
  darkLower: 'dark',
103
103
  /**
104
- * @description A tag of theme preference settings that can be searched in the command menu
104
+ * @description Tag for theme preference settings when searched in the command menu.
105
105
  */
106
106
  lightLower: 'light',
107
107
  /**
108
- * @description Title of a setting under the Appearance category in Settings
108
+ * @description Title of the panel layout setting under the Appearance category in Settings.
109
109
  */
110
110
  panelLayout: 'Panel layout:',
111
111
  /**
112
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
112
+ * @description Command menu option to use a horizontal panel layout.
113
113
  */
114
114
  useHorizontalPanelLayout: 'Use horizontal panel layout',
115
115
  /**
116
- * @description A drop-down menu option to use horizontal panel layout
116
+ * @description Drop-down menu option for horizontal panel layout.
117
117
  */
118
118
  horizontal: 'horizontal',
119
119
  /**
120
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
120
+ * @description Command menu option to use a vertical panel layout.
121
121
  */
122
122
  useVerticalPanelLayout: 'Use vertical panel layout',
123
123
  /**
124
- * @description A drop-down menu option to use vertical panel layout
124
+ * @description Drop-down menu option for vertical panel layout.
125
125
  */
126
126
  vertical: 'vertical',
127
127
  /**
128
- * @description Title of a setting under the Appearance category that can be invoked through the Command Menu
128
+ * @description Command menu option to use automatic panel layout.
129
129
  */
130
130
  useAutomaticPanelLayout: 'Use automatic panel layout',
131
131
  /**
132
- * @description Text short for automatic
132
+ * @description Drop-down menu option for automatic panel layout.
133
133
  */
134
134
  auto: 'auto',
135
135
  /**
136
- * @description Title of a setting under the Appearance category in Settings
136
+ * @description Checkbox label for the setting to use Ctrl plus number keys to switch panels.
137
137
  */
138
138
  enableCtrlShortcutToSwitchPanels: 'Use Ctrl + 1-9 to switch panels',
139
139
  /**
140
- * @description (Mac only) Title of a setting under the Appearance category in Settings
140
+ * @description Checkbox label for the setting to use Command plus number keys to switch panels on Mac.
141
141
  */
142
142
  enableShortcutToSwitchPanels: 'Use ⌘ + 1-9 to switch panels',
143
143
  /**
144
- * @description A drop-down menu option to dock to right
144
+ * @description Drop-down menu option to dock DevTools to the right.
145
145
  */
146
146
  right: 'Right',
147
147
  /**
148
- * @description Text to dock the DevTools to the right of the browser tab
148
+ * @description Title of the action and setting option to dock DevTools to the right of the browser window.
149
149
  */
150
150
  dockToRight: 'Dock to right',
151
151
  /**
152
- * @description A drop-down menu option to dock to bottom
152
+ * @description Drop-down menu option to dock DevTools to the bottom.
153
153
  */
154
154
  bottom: 'Bottom',
155
155
  /**
156
- * @description Text to dock the DevTools to the bottom of the browser tab
156
+ * @description Title of the action and setting option to dock DevTools to the bottom of the browser window.
157
157
  */
158
158
  dockToBottom: 'Dock to bottom',
159
159
  /**
160
- * @description A drop-down menu option to dock to left
160
+ * @description Drop-down menu option to dock DevTools to the left.
161
161
  */
162
162
  left: 'Left',
163
163
  /**
164
- * @description Text to dock the DevTools to the left of the browser tab
164
+ * @description Title of the action and setting option to dock DevTools to the left of the browser window.
165
165
  */
166
166
  dockToLeft: 'Dock to left',
167
167
  /**
168
- * @description A drop-down menu option to undock into separate window
168
+ * @description Drop-down menu option for undocked DevTools in a separate window.
169
169
  */
170
170
  undocked: 'Undocked',
171
171
  /**
172
- * @description Text to undock the DevTools
172
+ * @description Title of the action and setting option to undock DevTools into a separate window.
173
173
  */
174
174
  undockIntoSeparateWindow: 'Undock into separate window',
175
175
  /**
176
- * @description Name of the default set of DevTools keyboard shortcuts
176
+ * @description Option label for the default set of DevTools keyboard shortcuts.
177
177
  */
178
178
  devtoolsDefault: 'DevTools (Default)',
179
179
  /**
@@ -228,7 +228,7 @@ const UIStrings = {
228
228
  /**
229
229
  * @description Command to turn the browser color scheme matching off through the command menu.
230
230
  */
231
- dontMatchChromeColorSchemeCommand: 'Don\'t match Chrome color scheme',
231
+ dontMatchChromeColorSchemeCommand: 'Dont match Chrome color scheme',
232
232
  /**
233
233
  * @description Command to toggle the drawer orientation.
234
234
  */
@@ -911,29 +911,29 @@ UI.Toolbar.registerToolbarItem({
911
911
  const isPolicyRestricted = config?.aidaAvailability?.blockedByEnterprisePolicy === true;
912
912
  return Boolean(isFlagEnabled && !isGeoRestricted && !isPolicyRestricted);
913
913
  },
914
- async loadItem() {
914
+ loadItem: Common.Lazy.lazy(async () => {
915
915
  const Main = await loadMainModule();
916
916
  return new Main.GlobalAiButton.GlobalAiButtonToolbarProvider();
917
- },
917
+ }) as () => Promise<UI.Toolbar.Provider>,
918
918
  order: 98,
919
919
  location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
920
920
  });
921
921
 
922
922
  UI.Toolbar.registerToolbarItem({
923
- async loadItem() {
923
+ loadItem: Common.Lazy.lazy(async () => {
924
924
  const Main = await loadMainModule();
925
- return Main.MainImpl.SettingsButtonProvider.instance();
926
- },
925
+ return new Main.MainImpl.SettingsButtonProvider();
926
+ }) as () => Promise<UI.Toolbar.Provider>,
927
927
  order: 99,
928
928
  location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
929
929
  });
930
930
 
931
931
  UI.Toolbar.registerToolbarItem({
932
932
  condition: () => !Root.Runtime.Runtime.isTraceApp(),
933
- async loadItem() {
933
+ loadItem: Common.Lazy.lazy(async () => {
934
934
  const Main = await loadMainModule();
935
- return Main.MainImpl.MainMenuItem.instance();
936
- },
935
+ return new Main.MainImpl.MainMenuItem();
936
+ }) as () => Promise<UI.Toolbar.Provider>,
937
937
  order: 100,
938
938
  location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
939
939
  });
@@ -15,25 +15,25 @@ import nodeConnectionsPanelStyles from './nodeConnectionsPanel.css.js';
15
15
 
16
16
  const UIStrings = {
17
17
  /**
18
- * @description Text in Node Connections Panel of the Sources panel when debugging a Node.js app
18
+ * @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
19
19
  */
20
20
  nodejsDebuggingGuide: 'Node.js debugging guide',
21
21
  /**
22
- * @description Text in Node Connections Panel of the Sources panel when debugging a Node.js app
22
+ * @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
23
23
  * @example {Node.js debugging guide} PH1
24
24
  */
25
25
  specifyNetworkEndpointAnd:
26
26
  'Specify network endpoint and DevTools will connect to it automatically. Read {PH1} to learn more.',
27
27
  /**
28
- * @description Placeholder text content in Node Connections Panel of the Sources panel when debugging a Node.js app
28
+ * @description Placeholder text content in Node connections panel of the Sources panel when debugging a Node.js app.
29
29
  */
30
30
  noConnectionsSpecified: 'No connections specified',
31
31
  /**
32
- * @description Text of add network target button in Node Connections Panel of the Sources panel when debugging a Node.js app
32
+ * @description Text of add network target button in Node connections panel of the Sources panel when debugging a Node.js app.
33
33
  */
34
34
  addConnection: 'Add connection',
35
35
  /**
36
- * @description Text in Node Connections Panel of the Sources panel when debugging a Node.js app
36
+ * @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
37
37
  */
38
38
  networkAddressEgLocalhost: 'Network address (e.g. localhost:9229)',
39
39
  } as const;
@@ -14,16 +14,16 @@ import * as Components from '../../../ui/legacy/components/utils/utils.js';
14
14
 
15
15
  const UIStrings = {
16
16
  /**
17
- * @description Text that refers to the main target
17
+ * @description Text that refers to the main target.
18
18
  */
19
19
  main: 'Main',
20
20
  /**
21
- * @description Text in Node Main of the Sources panel when debugging a Node.js app
21
+ * @description Text in Node main of the Sources panel when debugging a Node.js app.
22
22
  * @example {example.com} PH1
23
23
  */
24
24
  nodejsS: 'Node.js: {PH1}',
25
25
  /**
26
- * @description Text in DevTools window title when debugging a Node.js app
26
+ * @description Text in DevTools window title when debugging a Node.js app.
27
27
  * @example {example.com} PH1
28
28
  */
29
29
  NodejsTitleS: 'DevTools - Node.js: {PH1}',
@@ -21,31 +21,31 @@ const {NodeMainImpl} = App.NodeMain;
21
21
 
22
22
  const UIStrings = {
23
23
  /**
24
- * @description Text that refers to the network connection
24
+ * @description Text that refers to the network connection.
25
25
  */
26
26
  connection: 'Connection',
27
27
  /**
28
- * @description A tag of Node.js Connection Panel that can be searched in the command menu
28
+ * @description A tag of Node.js connection panel that can be searched in the command menu.
29
29
  */
30
30
  node: 'node',
31
31
  /**
32
- * @description Command for showing the Connection tool
32
+ * @description Command for showing the Connection tool.
33
33
  */
34
34
  showConnection: 'Show Connection',
35
35
  /**
36
- * @description Title of the 'Node' tool in the Network Navigator View, which is part of the Sources tool
36
+ * @description Title of the 'Node' tool in the Network navigator view, which is part of the Sources tool.
37
37
  */
38
38
  networkTitle: 'Node',
39
39
  /**
40
- * @description Command for showing the 'Node' tool in the Network Navigator View, which is part of the Sources tool
40
+ * @description Command for showing the 'Node' tool in the Network navigator view, which is part of the Sources tool.
41
41
  */
42
42
  showNode: 'Show Node',
43
43
  /**
44
- * @description Text in Application Panel Sidebar of the Application panel
44
+ * @description Text in Application panel sidebar of the Application panel.
45
45
  */
46
46
  application: 'Application',
47
47
  /**
48
- * @description Command for showing the 'Application' tool
48
+ * @description Command for showing the Application tool.
49
49
  */
50
50
  showApplication: 'Show Application',
51
51
  } as const;
@@ -81,9 +81,10 @@ UI.ViewManager.registerViewExtension({
81
81
  commandPrompt: i18nLazyString(UIStrings.showNode),
82
82
  order: 2,
83
83
  persistence: UI.ViewManager.ViewPersistence.PERMANENT,
84
- async loadView() {
84
+ async loadView(universe) {
85
85
  const Sources = await loadSourcesModule();
86
- return Sources.SourcesNavigator.NetworkNavigatorView.instance();
86
+ return Sources.SourcesNavigator.NetworkNavigatorView.instance(
87
+ {forceNew: null, networkProjectManager: universe.networkProjectManager});
87
88
  },
88
89
  });
89
90
 
@@ -10,7 +10,7 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
10
10
 
11
11
  const UIStrings = {
12
12
  /**
13
- * @description Text that refers to the main target.
13
+ * @description Name of the primary target connection when debugging a service worker or dedicated worker.
14
14
  */
15
15
  main: 'Main',
16
16
  } as const;