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
@@ -25,9 +25,23 @@ export interface Chunk {
25
25
 
26
26
  export type ChunkCallback = (arg0: Chunk) => void;
27
27
 
28
- export function createTokenizer(mimeType: string): (
29
- arg0: string, arg1: (arg0: string, arg1: string|null, arg2: number, arg3: number) => (Object | undefined | void)) =>
30
- void {
28
+ export type TokenizerCallback = (value: string, style: string|null, start: number, end: number) =>
29
+ Object|undefined|void;
30
+
31
+ /**
32
+ * A tokenizer function returned by {@link createTokenizer}.
33
+ *
34
+ * @param line The string content to tokenize.
35
+ * @param callback A callback function invoked for each token parsed.
36
+ * @param startOffset An optional offset pointing to where tokenization should start within
37
+ * the line, avoiding the need to allocate substrings when tokenizing a block inside a larger file.
38
+ */
39
+ export type Tokenizer = (line: string, callback: TokenizerCallback, startOffset?: number) => void;
40
+
41
+ /**
42
+ * Creates a tokenizer for the specified MIME type.
43
+ */
44
+ export function createTokenizer(mimeType: string): Tokenizer {
31
45
  const mode = CodeMirror.getMode({indentUnit: 2}, mimeType);
32
46
  const state = CodeMirror.startState(mode);
33
47
 
@@ -40,8 +54,13 @@ export function createTokenizer(mimeType: string): (
40
54
  }
41
55
 
42
56
  return (line: string,
43
- callback: (arg0: string, arg1: string|null, arg2: number, arg3: number) => void|Object|undefined) => {
57
+ callback: (arg0: string, arg1: string|null, arg2: number, arg3: number) => void|Object|undefined,
58
+ startOffset = 0) => {
44
59
  const stream = new CodeMirror.StringStream(line);
60
+ if (startOffset) {
61
+ stream.pos = startOffset;
62
+ stream.start = startOffset;
63
+ }
45
64
  while (!stream.eol()) {
46
65
  const style = mode.token(stream, state);
47
66
  const value = stream.current();
@@ -107,10 +107,16 @@ export class HTMLFormatter {
107
107
  }
108
108
 
109
109
  #formatToken(element: FormatterElement, token: Token): void {
110
- if (Platform.StringUtilities.isWhitespace(token.value)) {
110
+ const isBodyToken =
111
+ Boolean(element.openTag && !element.openTag.selfClosingTag && element.closeTag &&
112
+ element.openTag.endOffset <= token.startOffset && token.startOffset < element.closeTag.startOffset);
113
+ if (Platform.StringUtilities.isWhitespace(token.value) &&
114
+ (!isBodyToken || element.children.length > 0 ||
115
+ (!element.hasContent && !element.hasComments && /[\r\n]/.test(token.value)))) {
111
116
  return;
112
117
  }
113
- if (hasTokenInSet(token.type, 'comment') || hasTokenInSet(token.type, 'meta')) {
118
+ if ((hasTokenInSet(token.type, 'comment') || hasTokenInSet(token.type, 'meta')) &&
119
+ (!isBodyToken || element.children.length > 0)) {
114
120
  this.#builder.addNewLine();
115
121
  this.#builder.addToken(token.value.trim(), token.startOffset);
116
122
  this.#builder.addNewLine();
@@ -121,8 +127,6 @@ export class HTMLFormatter {
121
127
  return;
122
128
  }
123
129
 
124
- const isBodyToken =
125
- element.openTag.endOffset <= token.startOffset && token.startOffset < element.closeTag.startOffset;
126
130
  if (isBodyToken && element.name === 'style') {
127
131
  this.#builder.addNewLine();
128
132
  this.#builder.increaseNestingLevel();
@@ -149,7 +153,15 @@ export class HTMLFormatter {
149
153
  this.#builder.addSoftSpace();
150
154
  }
151
155
 
156
+ // When adding tag brackets and tag names (<, </, /, div, >), disable word space enforcement so
157
+ // that FormattedContentBuilder does not insert unwanted spaces (e.g. splitting </title> into </ title>).
158
+ const restore = !isBodyToken && !hasTokenInSet(token.type, 'attribute') ?
159
+ this.#builder.setEnforceSpaceBetweenWords(false) :
160
+ false;
152
161
  this.#builder.addToken(token.value, token.startOffset);
162
+ if (!isBodyToken && !hasTokenInSet(token.type, 'attribute')) {
163
+ this.#builder.setEnforceSpaceBetweenWords(restore);
164
+ }
153
165
  }
154
166
  }
155
167
 
@@ -252,7 +264,7 @@ export class HTMLModel {
252
264
 
253
265
  #build(text: string): void {
254
266
  const tokenizer = createTokenizer('text/html');
255
- let baseOffset = 0, lastOffset = 0;
267
+ let lastOffset = 0;
256
268
  let pendingToken: Token|null = null;
257
269
 
258
270
  const pushToken = (token: Token): Object|undefined => {
@@ -260,6 +272,14 @@ export class HTMLModel {
260
272
  this.#updateDOM(token);
261
273
 
262
274
  const element = this.#stack[this.#stack.length - 1];
275
+ if (element && (hasTokenInSet(token.type, 'comment') || hasTokenInSet(token.type, 'meta'))) {
276
+ element.hasComments = true;
277
+ }
278
+ if (element && !Platform.StringUtilities.isWhitespace(token.value) && !hasTokenInSet(token.type, 'tag') &&
279
+ !hasTokenInSet(token.type, 'attribute') && !hasTokenInSet(token.type, 'bracket') &&
280
+ !hasTokenInSet(token.type, 'comment') && !hasTokenInSet(token.type, 'meta')) {
281
+ element.hasContent = true;
282
+ }
263
283
  if (element && (element.name === 'script' || element.name === 'style') &&
264
284
  element.openTag?.endOffset === lastOffset) {
265
285
  return AbortTokenization;
@@ -274,8 +294,6 @@ export class HTMLModel {
274
294
  tokenStart: number,
275
295
  tokenEnd: number,
276
296
  ): Object|undefined => {
277
- tokenStart += baseOffset;
278
- tokenEnd += baseOffset;
279
297
  lastOffset = tokenEnd;
280
298
 
281
299
  const tokenType = type ? new Set<string>(type.split(' ')) : new Set<string>();
@@ -321,8 +339,7 @@ export class HTMLModel {
321
339
  };
322
340
 
323
341
  while (true) {
324
- baseOffset = lastOffset;
325
- tokenizer(text.substring(lastOffset), processToken);
342
+ tokenizer(text, processToken, lastOffset);
326
343
  if (pendingToken) {
327
344
  pushToken(pendingToken);
328
345
  pendingToken = null;
@@ -341,7 +358,11 @@ export class HTMLModel {
341
358
  lastOffset = text.length;
342
359
  break;
343
360
  }
344
- if (text.substring(lastOffset + 2).toLowerCase().startsWith(element.name)) {
361
+ // Check if the tag at lastOffset matches the current element name (e.g. </script>).
362
+ // Slice only the length of the tag name to avoid allocating a large substring
363
+ // of the remainder of the document.
364
+ const sliced = text.slice(lastOffset + 2, lastOffset + 2 + element.name.length);
365
+ if (sliced.toLowerCase() === element.name) {
345
366
  break;
346
367
  }
347
368
  lastOffset += 2;
@@ -584,6 +605,8 @@ class FormatterElement {
584
605
  parent: FormatterElement|null = null;
585
606
  openTag: Tag|null = null;
586
607
  closeTag: Tag|null = null;
608
+ hasComments = false;
609
+ hasContent = false;
587
610
 
588
611
  constructor(name: string) {
589
612
  this.name = name;
@@ -82,11 +82,12 @@ export class JavaScriptFormatter {
82
82
  const format = this.#formatToken(node.parent, token);
83
83
  this.#push(token, format);
84
84
  }
85
+ if (node.parent?.type === 'TemplateLiteral' && node.type !== 'TemplateElement' && node.type !== 'TemplateLiteral') {
86
+ this.#builder.setEnforceSpaceBetweenWords(true);
87
+ }
85
88
  }
86
89
 
87
90
  #afterVisit(node: Acorn.ESTree.Node): void {
88
- // ${expressions} within a template literal need space enforced.
89
- const restore = this.#builder.setEnforceSpaceBetweenWords(node.type !== 'TemplateElement');
90
91
  let token;
91
92
  while ((token = this.#tokenizer.peekToken()) && token.start < node.end) {
92
93
  const token = (this.#tokenizer.nextToken() as TokenOrComment);
@@ -94,7 +95,11 @@ export class JavaScriptFormatter {
94
95
  this.#push(token, format);
95
96
  }
96
97
  this.#push(null, this.#finishNode(node));
97
- this.#builder.setEnforceSpaceBetweenWords(restore || node.type === 'TemplateLiteral');
98
+ if (node.parent?.type === 'TemplateLiteral' && node.type !== 'TemplateElement' && node.type !== 'TemplateLiteral') {
99
+ this.#builder.setEnforceSpaceBetweenWords(false);
100
+ } else if (node.type === 'TemplateLiteral' && node.parent?.type !== 'TemplateLiteral') {
101
+ this.#builder.setEnforceSpaceBetweenWords(true);
102
+ }
98
103
  }
99
104
 
100
105
  #inForLoopHeader(node: Acorn.ESTree.Node): boolean {
@@ -39,7 +39,7 @@ const UIStrings = {
39
39
  */
40
40
  javascriptIsDisabled: 'JavaScript is disabled',
41
41
  /**
42
- * @description A message that prompts the user to open devtools for a specific environment (Node.js)
42
+ * @description Tooltip for the Node.js indicator prompting the user to open dedicated DevTools for Node.js.
43
43
  */
44
44
  openDedicatedTools: 'Open dedicated DevTools for `Node.js`',
45
45
  } as const;
@@ -107,7 +107,7 @@ export class InspectorMainImpl implements Common.Runnable.Runnable {
107
107
 
108
108
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(
109
109
  Host.InspectorFrontendHostAPI.Events.ReloadInspectedPage, ({data: hard}) => {
110
- SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(hard);
110
+ SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(SDK.TargetManager.TargetManager.instance(), hard);
111
111
  });
112
112
  }
113
113
  }
@@ -118,10 +118,10 @@ export class ReloadActionDelegate implements UI.ActionRegistration.ActionDelegat
118
118
  handleAction(_context: UI.Context.Context, actionId: string): boolean {
119
119
  switch (actionId) {
120
120
  case 'inspector-main.reload':
121
- SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(false);
121
+ SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(SDK.TargetManager.TargetManager.instance(), false);
122
122
  return true;
123
123
  case 'inspector-main.hard-reload':
124
- SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(true);
124
+ SDK.ResourceTreeModel.ResourceTreeModel.reloadAllPages(SDK.TargetManager.TargetManager.instance(), true);
125
125
  return true;
126
126
  }
127
127
  return false;
@@ -15,11 +15,11 @@ import outermostTargetSelectorStyles from './outermostTargetSelector.css.js';
15
15
 
16
16
  const UIStrings = {
17
17
  /**
18
- * @description Title of toolbar item in outermost target selector in the main toolbar
18
+ * @description Title of toolbar item in outermost target selector in the main toolbar.
19
19
  */
20
20
  targetNotSelected: 'Page: Not selected',
21
21
  /**
22
- * @description Title of toolbar item in outermost target selector in the main toolbar
22
+ * @description Title of toolbar item in outermost target selector in the main toolbar.
23
23
  * @example {top} PH1
24
24
  */
25
25
  targetS: 'Page: {PH1}',
@@ -16,153 +16,152 @@ import renderingOptionsStyles from './renderingOptions.css.js';
16
16
 
17
17
  const UIStrings = {
18
18
  /**
19
- * @description The name of a checkbox setting in the Rendering tool. This setting highlights areas
19
+ * @description The name of a checkbox setting in the Rendering panel. This setting highlights areas
20
20
  * of the webpage that need to be repainted (re-drawn by the browser).
21
21
  */
22
22
  paintFlashing: 'Paint flashing',
23
23
  /**
24
- * @description Explanation text for the 'Paint flashing' setting in the Rendering tool.
24
+ * @description Explanation text for the 'Paint flashing' setting in the Rendering panel.
25
25
  */
26
26
  highlightsAreasOfThePageGreen:
27
27
  'Highlights areas of the page (green) that need to be repainted. May not be suitable for people prone to photosensitive epilepsy.',
28
28
  /**
29
- * @description The name of a checkbox setting in the Rendering tool. This setting highlights areas
29
+ * @description The name of a checkbox setting in the Rendering panel. This setting highlights areas
30
30
  * (regions) of the page that were shifted (where a 'layout shift' occurred). A layout shift is
31
31
  * where elements on the webpage move around and cause other nearby elements to move as well.
32
32
  */
33
33
  layoutShiftRegions: 'Layout shift regions',
34
34
  /**
35
- * @description Explanation text for the 'Layout Shift Regions' setting in the Rendering tool.
35
+ * @description Explanation text for the 'Layout shift regions' setting in the Rendering panel.
36
36
  */
37
37
  highlightsAreasOfThePageBlueThat:
38
38
  'Highlights areas of the page (blue) that were shifted. May not be suitable for people prone to photosensitive epilepsy.',
39
39
  /**
40
- * @description The name of a checkbox setting in the Rendering tool. This setting shows the
40
+ * @description The name of a checkbox setting in the Rendering panel. This setting shows the
41
41
  * borders of layers on the page. Layer is a noun.
42
42
  */
43
43
  layerBorders: 'Layer borders',
44
44
  /**
45
- * @description Explanation text for the 'Layer borders' setting in the Rendering tool.
45
+ * @description Explanation text for the 'Layer borders' setting in the Rendering panel.
46
46
  */
47
47
  showsLayerBordersOrangeoliveAnd: 'Shows layer borders (orange/olive) and tiles (cyan).',
48
48
  /**
49
- * @description The name of a checkbox setting in the Rendering tool. This setting shows the
49
+ * @description The name of a checkbox setting in the Rendering panel. This setting shows the
50
50
  * rendering statistics for frames e.g. frames per second. Frame is a noun.
51
51
  */
52
- frameRenderingStats: 'Frame Rendering Stats',
52
+ frameRenderingStats: 'Frame rendering stats',
53
53
  /**
54
- * @description Explanation text for the 'Frame Rendering Stats' setting in the Rendering tool.
54
+ * @description Explanation text for the 'Frame rendering stats' setting in the Rendering panel.
55
55
  * Plots is a verb. GPU = Graphics Processing Unit.
56
56
  */
57
57
  plotsFrameThroughputDropped: 'Plots frame throughput, dropped frames distribution, and GPU memory.',
58
58
  /**
59
- * @description The name of a checkbox setting in the Rendering tool. This setting highlights
59
+ * @description The name of a checkbox setting in the Rendering panel. This setting highlights
60
60
  * elements that can slow down scrolling on the page.
61
61
  */
62
62
  scrollingPerformanceIssues: 'Scrolling performance issues',
63
63
  /**
64
- * @description Explanation text for the 'Scrolling performance issues' setting in the Rendering tool.
64
+ * @description Explanation text for the 'Scrolling performance issues' setting in the Rendering panel.
65
65
  */
66
66
  highlightsElementsTealThatCan:
67
67
  'Highlights elements (teal) that can slow down scrolling, including touch & wheel event handlers and other main-thread scrolling situations.',
68
68
  /**
69
- * @description The name of a checkbox setting in the Rendering tool. This setting highlights the
69
+ * @description The name of a checkbox setting in the Rendering panel. This setting highlights the
70
70
  * rendering elements for ads that are found on the page.
71
71
  */
72
72
  highlightAds: 'Highlight ads',
73
73
  /**
74
- * @description Explanation text for the 'Highlight ads' setting in the Rendering tool.
74
+ * @description Explanation text for the 'Highlight ads' setting in the Rendering panel.
75
75
  */
76
76
  highlightsElementsRedDetectedToBe: 'Highlights elements (red) detected to be ads.',
77
77
  /**
78
- * @description The name of a checkbox setting in the Rendering tool. This setting prevents the
78
+ * @description The name of a checkbox setting in the Rendering panel. This setting prevents the
79
79
  * webpage from loading 'local' fonts. Local fonts are fonts that are installed on the user's
80
80
  * computer, and not loaded over the network.
81
81
  */
82
82
  disableLocalFonts: 'Disable local fonts',
83
83
  /**
84
- * @description Explanation text for the 'Disable local fonts' setting in the Rendering tool.
84
+ * @description Explanation text for the 'Disable local fonts' setting in the Rendering panel.
85
85
  */
86
86
  disablesLocalSourcesInFontface: 'Disables `local()` sources in `@font-face` rules. Requires a page reload to apply.',
87
87
  /**
88
- * @description The name of a checkbox setting in the Rendering tool. This setting
88
+ * @description The name of a checkbox setting in the Rendering panel. This setting
89
89
  * emulates/pretends that the webpage is focused i.e. that the user interacted with it most
90
90
  * recently.
91
91
  */
92
92
  emulateAFocusedPage: 'Emulate a focused page',
93
93
  /**
94
- * @description Explanation text for the 'Emulate a focused page' setting in the Rendering tool.
94
+ * @description Explanation text for the 'Emulate a focused page' setting in the Rendering panel.
95
95
  */
96
96
  emulatesAFocusedPage: 'Keep page focused. Commonly used for debugging disappearing elements.',
97
97
  /**
98
- * @description The name of a checkbox setting in the Rendering tool. This setting enables auto dark mode emulation.
98
+ * @description The name of a checkbox setting in the Rendering panel. This setting enables auto dark mode emulation.
99
99
  */
100
100
  emulateAutoDarkMode: 'Enable automatic dark mode',
101
101
  /**
102
- * @description Explanation text for the 'Emulate automatic dark mode' setting in the Rendering tool.
102
+ * @description Explanation text for the 'Emulate automatic dark mode' setting in the Rendering panel.
103
103
  */
104
104
  emulatesAutoDarkMode: 'Enables automatic dark mode and sets `prefers-color-scheme` to `dark`.',
105
105
  /**
106
- * @description Explanation text for the 'Emulate CSS media type' setting in the Rendering tool.
107
- * This setting overrides the CSS media type on the page:
108
- * https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types
106
+ * @description Explanation text for the 'Emulate CSS media type' setting in the Rendering panel.
107
+ * This setting overrides the CSS media type on the page (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types).
109
108
  */
110
- forcesMediaTypeForTestingPrint: 'Forces media type for testing print and screen styles',
109
+ forcesMediaTypeForTestingPrint: 'Forces media type for testing `print` and `screen` styles',
111
110
  /**
112
- * @description Explanation text for the 'Forces CSS prefers-color-scheme media' setting in the Rendering tool.
111
+ * @description Explanation text for the 'Forces CSS prefers-color-scheme media' setting in the Rendering panel.
113
112
  */
114
113
  forcesCssPreferscolorschemeMedia: 'Forces CSS `prefers-color-scheme` media feature',
115
114
  /**
116
- * @description Explanation text for the 'Forces CSS prefers-reduced-motion media' setting in the Rendering tool.
115
+ * @description Explanation text for the 'Forces CSS prefers-reduced-motion media' setting in the Rendering panel.
117
116
  */
118
117
  forcesCssPrefersreducedmotion: 'Forces CSS `prefers-reduced-motion` media feature',
119
118
  /**
120
- * @description Explanation text for the 'Forces CSS prefers-contrast media' setting in the Rendering tool.
119
+ * @description Explanation text for the 'Forces CSS prefers-contrast media' setting in the Rendering panel.
121
120
  */
122
121
  forcesCssPreferscontrastMedia: 'Forces CSS `prefers-contrast` media feature',
123
122
  /**
124
- * @description Explanation text for the 'Forces CSS prefers-reduced-data media' setting in the Rendering tool.
123
+ * @description Explanation text for the 'Forces CSS prefers-reduced-data media' setting in the Rendering panel.
125
124
  */
126
125
  forcesCssPrefersreduceddataMedia: 'Forces CSS `prefers-reduced-data` media feature',
127
126
  /**
128
- * @description Explanation text for the 'Forces CSS prefers-reduced-transparency media' setting in the Rendering tool.
127
+ * @description Explanation text for the 'Forces CSS prefers-reduced-transparency media' setting in the Rendering panel.
129
128
  */
130
129
  forcesCssPrefersreducedtransparencyMedia: 'Forces CSS `prefers-reduced-transparency` media feature',
131
130
  /**
132
- * @description Explanation text for the 'Forces CSS color-gamut media' setting in the Rendering tool.
131
+ * @description Explanation text for the 'Forces CSS color-gamut media' setting in the Rendering panel.
133
132
  */
134
133
  forcesCssColorgamutMediaFeature: 'Forces CSS `color-gamut` media feature',
135
134
  /**
136
- * @description Explanation text for the 'Emulate vision deficiencies' setting in the Rendering tool.
135
+ * @description Explanation text for the 'Emulate vision deficiencies' setting in the Rendering panel.
137
136
  */
138
137
  forcesVisionDeficiencyEmulation: 'Forces vision deficiency emulation',
139
138
  /**
140
- * @description Explanation text for the 'Emulate OS text scale' setting in the Rendering tool.
139
+ * @description Explanation text for the 'Emulate OS text scale' setting in the Rendering panel.
141
140
  */
142
141
  forcesOsTextScaleEmulation: 'Forces OS text scale emulation',
143
142
  /**
144
- * @description The name of a checkbox setting in the Rendering tool. This setting disables the
143
+ * @description The name of a checkbox setting in the Rendering panel. This setting disables the
145
144
  * page from loading images with the AVIF format.
146
145
  */
147
146
  disableAvifImageFormat: 'Disable `AVIF` image format',
148
147
  /**
149
- * @description Explanation text for the image format disabling settings in the Rendering tool.
148
+ * @description Explanation text for the image format disabling settings in the Rendering panel.
150
149
  */
151
150
  requiresAPageReloadToApplyAnd: 'Requires a page reload to apply and disables caching for image requests.',
152
151
  /**
153
- * @description The name of a checkbox setting in the Rendering tool. This setting disables the
152
+ * @description The name of a checkbox setting in the Rendering panel. This setting disables the
154
153
  * page from loading images with the JPEG XL format.
155
154
  */
156
155
  disableJpegXlImageFormat: 'Disable `JPEG XL` image format',
157
156
  /**
158
- * @description The name of a checkbox setting in the Rendering tool. This setting disables the
157
+ * @description The name of a checkbox setting in the Rendering panel. This setting disables the
159
158
  * page from loading images with the WebP format.
160
159
  */
161
160
  disableWebpImageFormat: 'Disable `WebP` image format',
162
161
  /**
163
- * @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering tool.
162
+ * @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering panel.
164
163
  */
165
- forcesCssForcedColors: 'Forces CSS forced-colors media feature',
164
+ forcesCssForcedColors: 'Forces CSS `forced-colors` media feature',
166
165
  } as const;
167
166
  const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/RenderingOptions.ts', UIStrings);
168
167
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -10,53 +10,52 @@ import type * as InspectorMain from './inspector_main.js';
10
10
 
11
11
  const UIStrings = {
12
12
  /**
13
- * @description Title of the Rendering tool. The rendering tool is a collection of settings that
13
+ * @description Title of the Rendering panel. The Rendering panel is a collection of settings that
14
14
  * lets the user debug the rendering (i.e. how the website is drawn onto the screen) of the
15
- * website.
16
- * https://developer.chrome.com/docs/devtools/evaluate-performance/reference#rendering
15
+ * website (https://developer.chrome.com/docs/devtools/evaluate-performance/reference#rendering).
17
16
  */
18
17
  rendering: 'Rendering',
19
18
  /**
20
- * @description Command for showing the 'Rendering' tool
19
+ * @description Command for showing the Rendering panel.
21
20
  */
22
21
  showRendering: 'Show Rendering',
23
22
  /**
24
- * @description Command Menu search query that points to the Rendering tool. This refers to the
23
+ * @description Command Menu search query that points to the Rendering panel. This refers to the
25
24
  * process of drawing pixels onto the screen (called painting).
26
25
  */
27
26
  paint: 'paint',
28
27
  /**
29
- * @description Command Menu search query that points to the Rendering tool. Layout is a phase of
28
+ * @description Command Menu search query that points to the Rendering panel. Layout is a phase of
30
29
  * rendering a website where the browser calculates where different elements in the website will go
31
30
  * on the screen.
32
31
  */
33
32
  layout: 'layout',
34
33
  /**
35
- * @description Command Menu search query that points to the Rendering tool. 'fps' is an acronym
34
+ * @description Command Menu search query that points to the Rendering panel. 'fps' is an acronym
36
35
  * for 'Frames per second'. It is in lowercase here because the search box the user will type this
37
36
  * into is case-insensitive. If there is an equivalent acronym/shortening in the target language
38
37
  * then a translation would be appropriate, otherwise it can be left in English.
39
38
  */
40
39
  fps: 'fps',
41
40
  /**
42
- * @description Command Menu search query that points to the Rendering tool.
43
- * https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types. This is something the user
41
+ * @description Command Menu search query that points to the Rendering panel
42
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types). This is something the user
44
43
  * might type in to search for the setting to change the CSS media type.
45
44
  */
46
45
  cssMediaType: 'CSS media type',
47
46
  /**
48
- * @description Command Menu search query that points to the Rendering tool.
49
- * https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_features This is something the
47
+ * @description Command Menu search query that points to the Rendering panel
48
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_features). This is something the
50
49
  * user might type in to search for the setting to change the value of various CSS media features.
51
50
  */
52
51
  cssMediaFeature: 'CSS media feature',
53
52
  /**
54
- * @description Command Menu search query that points to the Rendering tool. Possible search term
53
+ * @description Command Menu search query that points to the Rendering panel. Possible search term
55
54
  * when the user wants to find settings related to visual impairment e.g. blurry vision, blindness.
56
55
  */
57
56
  visionDeficiency: 'vision deficiency',
58
57
  /**
59
- * @description Command Menu search query that points to the Rendering tool. Possible search term
58
+ * @description Command Menu search query that points to the Rendering panel. Possible search term
60
59
  * when the user wants to find settings related to color vision deficiency/color blindness.
61
60
  */
62
61
  colorVisionDeficiency: 'color vision deficiency',
@@ -65,7 +64,7 @@ const UIStrings = {
65
64
  */
66
65
  reloadPage: 'Reload page',
67
66
  /**
68
- * @description Title of an action that 'hard' reloads the inspected page. A hard reload also
67
+ * @description Title of an action that hard reloads the inspected page. A hard reload also
69
68
  * clears the browser's cache, forcing it to reload the most recent version of the page.
70
69
  */
71
70
  hardReloadPage: 'Hard reload page',
@@ -93,17 +92,9 @@ const UIStrings = {
93
92
  */
94
93
  doNotAutoOpen: 'Do not auto-open DevTools for popups',
95
94
  /**
96
- * @description Title of a setting under the Appearance category in Settings. When the webpage is
97
- * paused by devtools, an overlay is shown on top of the page to indicate that it is paused. The
98
- * overlay is a pause/unpause button and some text, which appears on top of the paused page. This
99
- * setting turns off this overlay.
95
+ * @description Title of an action that toggles the "forces CSS prefers-color-scheme" media feature.
100
96
  */
101
- disablePaused: 'Disable paused state overlay',
102
- /**
103
- * @description Title of an action that toggle
104
- * "forces CSS prefers-color-scheme" color
105
- */
106
- toggleCssPrefersColorSchemeMedia: 'Toggle CSS media feature prefers-color-scheme',
97
+ toggleCssPrefersColorSchemeMedia: 'Toggle CSS media feature `prefers-color-scheme`',
107
98
  } as const;
108
99
  const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/inspector_main-meta.ts', UIStrings);
109
100
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
@@ -245,15 +236,6 @@ Common.Settings.registerSettingExtension({
245
236
  ],
246
237
  });
247
238
 
248
- Common.Settings.registerSettingExtension({
249
- category: Common.Settings.SettingCategory.APPEARANCE,
250
- storageType: Common.Settings.SettingStorageType.SYNCED,
251
- title: i18nLazyString(UIStrings.disablePaused),
252
- settingName: 'disable-paused-state-overlay',
253
- settingType: Common.Settings.SettingType.BOOLEAN,
254
- defaultValue: false,
255
- });
256
-
257
239
  UI.Toolbar.registerToolbarItem({
258
240
  async loadItem() {
259
241
  const InspectorMain = await loadInspectorMainModule();
@@ -18,15 +18,15 @@ import * as Main from '../main/main.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Text that refers to the main target.
21
+ * @description Name of the primary target connection when debugging Node.js.
22
22
  */
23
23
  main: 'Main',
24
24
  /**
25
- * @description Title of the 'Scripts' tool in the Network Navigator View, which is part of the Sources tool
25
+ * @description Title of the 'Scripts' tab in the navigation tree inside the Sources panel.
26
26
  */
27
27
  networkTitle: 'Scripts',
28
28
  /**
29
- * @description Command for showing the 'Scripts' tool in the Network Navigator View, which is part of the Sources tool
29
+ * @description Command in the command menu for showing the 'Scripts' tab in the navigation tree inside the Sources panel.
30
30
  */
31
31
  showNode: 'Show Scripts',
32
32
  } as const;
@@ -71,9 +71,10 @@ UI.ViewManager.registerViewExtension({
71
71
  commandPrompt: i18nLazyString(UIStrings.showNode),
72
72
  order: 2,
73
73
  persistence: UI.ViewManager.ViewPersistence.PERMANENT,
74
- async loadView() {
74
+ async loadView(universe) {
75
75
  const Sources = await loadSourcesModule();
76
- return Sources.SourcesNavigator.NetworkNavigatorView.instance();
76
+ return Sources.SourcesNavigator.NetworkNavigatorView.instance(
77
+ {forceNew: null, networkProjectManager: universe.networkProjectManager});
77
78
  },
78
79
  });
79
80
 
@@ -16,19 +16,19 @@ const {render, html, Directives: {classMap}} = Lit;
16
16
 
17
17
  const UIStrings = {
18
18
  /**
19
- * @description Button's string in promotion state.
19
+ * @description Text label for the AI assistance button in the main DevTools toolbar when expanded.
20
20
  */
21
21
  aiAssistance: 'AI assistance',
22
22
  /**
23
- * @description Button's tooltip text.
23
+ * @description Tooltip for the AI assistance button in the main DevTools toolbar.
24
24
  */
25
25
  openAiAssistance: 'Open AI assistance panel',
26
26
  /**
27
- * @description Button's string in promotion state.
27
+ * @description Text label for the Gemini button in the main DevTools toolbar when expanded.
28
28
  */
29
29
  gemini: 'Gemini',
30
30
  /**
31
- * @description Button's tooltip text.
31
+ * @description Tooltip for the Gemini button in the main DevTools toolbar.
32
32
  */
33
33
  openGemini: 'Open Gemini panel',
34
34
  } as const;