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
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import '../../../ui/kit/kit.js';
6
- import './StepEditor.js';
7
6
 
8
7
  import * as i18n from '../../../core/i18n/i18n.js';
9
8
  import * as Platform from '../../../core/platform/platform.js';
@@ -14,7 +13,7 @@ import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
14
13
  import type * as Converters from '../converters/converters.js';
15
14
  import * as Models from '../models/models.js';
16
15
 
17
- import type {StepEditedEvent} from './StepEditor.js';
16
+ import {type StepEditedEvent, StepEditor} from './StepEditor.js';
18
17
  import stepViewStyles from './stepView.css.js';
19
18
  import {TimelineSection} from './TimelineSection.js';
20
19
 
@@ -23,99 +22,99 @@ const {widget} = UI.Widget;
23
22
 
24
23
  const UIStrings = {
25
24
  /**
26
- * @description Title for the step type that configures the viewport
25
+ * @description Title for the step type that configures the viewport.
27
26
  */
28
27
  setViewportClickTitle: 'Set viewport',
29
28
  /**
30
- * @description Title for the customStep step type
29
+ * @description Title for the customStep step type.
31
30
  */
32
31
  customStepTitle: 'Custom step',
33
32
  /**
34
- * @description Title for the click step type
33
+ * @description Title for the click step type.
35
34
  */
36
35
  clickStepTitle: 'Click',
37
36
  /**
38
- * @description Title for the double click step type
37
+ * @description Title for the double click step type.
39
38
  */
40
39
  doubleClickStepTitle: 'Double click',
41
40
  /**
42
- * @description Title for the hover step type
41
+ * @description Title for the hover step type.
43
42
  */
44
43
  hoverStepTitle: 'Hover',
45
44
  /**
46
- * @description Title for the emulateNetworkConditions step type
45
+ * @description Title for the emulateNetworkConditions step type.
47
46
  */
48
47
  emulateNetworkConditionsStepTitle: 'Emulate network conditions',
49
48
  /**
50
- * @description Title for the change step type
49
+ * @description Title for the change step type.
51
50
  */
52
51
  changeStepTitle: 'Change',
53
52
  /**
54
- * @description Title for the close step type
53
+ * @description Title for the close step type.
55
54
  */
56
55
  closeStepTitle: 'Close',
57
56
  /**
58
- * @description Title for the scroll step type
57
+ * @description Title for the scroll step type.
59
58
  */
60
59
  scrollStepTitle: 'Scroll',
61
60
  /**
62
- * @description Title for the key up step type. `up` refers to the state of the keyboard key: it's released, i.e., up. It does not refer to the down arrow key specifically.
61
+ * @description Title for the key up step type. `up` refers to the state of the keyboard key: its released, i.e., up. It does not refer to the down arrow key specifically.
63
62
  */
64
63
  keyUpStepTitle: 'Key up',
65
64
  /**
66
- * @description Title for the navigate step type
65
+ * @description Title for the navigate step type.
67
66
  */
68
67
  navigateStepTitle: 'Navigate',
69
68
  /**
70
- * @description Title for the key down step type. `down` refers to the state of the keyboard key: it's pressed, i.e., down. It does not refer to the down arrow key specifically.
69
+ * @description Title for the key down step type. `down` refers to the state of the keyboard key: its pressed, i.e., down. It does not refer to the down arrow key specifically.
71
70
  */
72
71
  keyDownStepTitle: 'Key down',
73
72
  /**
74
- * @description Title for the waitForElement step type
73
+ * @description Title for the waitForElement step type.
75
74
  */
76
75
  waitForElementStepTitle: 'Wait for element',
77
76
  /**
78
- * @description Title for the waitForExpression step type
77
+ * @description Title for the waitForExpression step type.
79
78
  */
80
79
  waitForExpressionStepTitle: 'Wait for expression',
81
80
  /**
82
- * @description Title for elements with role button
81
+ * @description Title for elements with role button.
83
82
  */
84
83
  elementRoleButton: 'Button',
85
84
  /**
86
- * @description Title for elements with role input
85
+ * @description Title for elements with role input.
87
86
  */
88
87
  elementRoleInput: 'Input',
89
88
  /**
90
- * @description Default title for elements without a specific role
89
+ * @description Default title for elements without a specific role.
91
90
  */
92
91
  elementRoleFallback: 'Element',
93
92
  /**
94
- * @description The title of the button in the step's context menu that adds a new step before the current one.
93
+ * @description The title of the button in the steps context menu that adds a new step before the current one.
95
94
  */
96
95
  addStepBefore: 'Add step before',
97
96
  /**
98
- * @description The title of the button in the step's context menu that adds a new step after the current one.
97
+ * @description The title of the button in the steps context menu that adds a new step after the current one.
99
98
  */
100
99
  addStepAfter: 'Add step after',
101
100
  /**
102
- * @description The title of the button in the step's context menu that removes the step.
101
+ * @description The title of the button in the steps context menu that removes the step.
103
102
  */
104
103
  removeStep: 'Remove step',
105
104
  /**
106
- * @description The title of the button that open the step's context menu.
105
+ * @description The title of the button that opens the steps context menu.
107
106
  */
108
107
  openStepActions: 'Open step actions',
109
108
  /**
110
- * @description The title of the button in the step's context menu that adds a breakpoint.
109
+ * @description The title of the button in the steps context menu that adds a breakpoint.
111
110
  */
112
111
  addBreakpoint: 'Add breakpoint',
113
112
  /**
114
- * @description The title of the button in the step's context menu that removes a breakpoint.
113
+ * @description The title of the button in the steps context menu that removes a breakpoint.
115
114
  */
116
115
  removeBreakpoint: 'Remove breakpoint',
117
116
  /**
118
- * @description A menu item item in the context menu that expands another menu which list all
117
+ * @description A menu item in the context menu that expands another menu which lists all
119
118
  * the formats the user can copy the recording as.
120
119
  */
121
120
  copyAs: 'Copy as',
@@ -464,21 +463,21 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
464
463
  <div class="details">
465
464
  ${
466
465
  input.step &&
467
- html`<devtools-recorder-step-editor
466
+ html`<devtools-widget ${widget(StepEditor, {
467
+ step: input.step,
468
+ disabled: input.isPlaying,
469
+ })}
468
470
  class=${input.isSelected ? 'is-selected' : ''}
469
- .step=${input.step}
470
- .disabled=${input.isPlaying}
471
- @stepedited=${input.stepEdited}>
472
- </devtools-recorder-step-editor>`
471
+ @stepedited=${input.stepEdited}></devtools-widget>`
473
472
  }
474
473
  ${
475
474
  input.section?.causingStep &&
476
- html`<devtools-recorder-step-editor
477
- .step=${input.section.causingStep}
478
- .isTypeEditable=${false}
479
- .disabled=${input.isPlaying}
480
- @stepedited=${input.stepEdited}>
481
- </devtools-recorder-step-editor>`
475
+ html`<devtools-widget ${widget(StepEditor, {
476
+ step: input.section.causingStep,
477
+ isTypeEditable: false,
478
+ disabled: input.isPlaying,
479
+ })}
480
+ @stepedited=${input.stepEdited}></devtools-widget>`
482
481
  }
483
482
  </div>
484
483
  ${
@@ -356,7 +356,7 @@
356
356
  border-bottom: 1px solid var(--sys-color-divider);
357
357
  }
358
358
 
359
- devtools-recorder-extension-view {
359
+ .recorder-extension-view {
360
360
  flex: 1;
361
361
  }
362
362
  }
@@ -11,8 +11,8 @@ import {SelectorType} from './Schema.js';
11
11
 
12
12
  const UIStrings = {
13
13
  /**
14
- * @description This string is used to generate the default name for the create recording form in the Recording panel.
15
- * The format is similar to the one used by MacOS to generate names for screenshots. Both {DATE} and {TIME} are localized
14
+ * @description This string is used to generate the default name for the create recording form in the Recorder panel.
15
+ * The format is similar to the one used by macOS to generate names for screenshots. Both {DATE} and {TIME} are localized
16
16
  * using the current locale.
17
17
  * @example {2022-08-04} DATE
18
18
  * @example {10:32:48} TIME
@@ -10,27 +10,27 @@ import type * as Recorder from './recorder.js';
10
10
 
11
11
  const UIStrings = {
12
12
  /**
13
- * @description Title of the Recorder Panel
13
+ * @description Title of the Recorder panel.
14
14
  */
15
15
  recorder: 'Recorder',
16
16
  /**
17
- * @description Title of the Recorder Panel
17
+ * @description Command for showing the Recorder panel.
18
18
  */
19
19
  showRecorder: 'Show Recorder',
20
20
  /**
21
- * @description Title of start/stop recording action in command menu
21
+ * @description Title of the start/stop recording action in the command menu.
22
22
  */
23
- startStopRecording: 'Start/Stop recording',
23
+ startStopRecording: 'Start/stop recording',
24
24
  /**
25
- * @description Title of create a new recording action in command menu
25
+ * @description Title of the create new recording action in the command menu.
26
26
  */
27
27
  createRecording: 'Create a new recording',
28
28
  /**
29
- * @description Title of start a new recording action in command menu
29
+ * @description Title of the replay recording action in the command menu.
30
30
  */
31
31
  replayRecording: 'Replay recording',
32
32
  /**
33
- * @description Title for toggling code action in command menu
33
+ * @description Title for the toggle code action in the command menu.
34
34
  */
35
35
  toggleCode: 'Toggle code view',
36
36
  } as const;
@@ -12,7 +12,7 @@ import {ScreencastView} from './ScreencastView.js';
12
12
 
13
13
  const UIStrings = {
14
14
  /**
15
- * @description Tooltip text that appears when hovering over largeicon phone button in Screencast App of the Remote Devices tab when toggling screencast
15
+ * @description Tooltip text that appears when hovering over the toggle screencast button in the Screencast app of the Remote devices tab when toggling screencast.
16
16
  */
17
17
  toggleScreencast: 'Toggle screencast',
18
18
  } as const;
@@ -18,39 +18,39 @@ import screencastViewStyles from './screencastView.css.js';
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Accessible alt text for the screencast canvas rendering of the debug target webpage
21
+ * @description Accessible alt text for the Screencast canvas rendering of the debug target webpage.
22
22
  */
23
23
  screencastViewOfDebugTarget: 'Screencast view of debug target',
24
24
  /**
25
- * @description Glass pane element text content in Screencast View of the Remote Devices tab when toggling screencast
25
+ * @description Glass pane element text content in the Screencast view of the Remote devices tab when toggling screencast.
26
26
  */
27
27
  theTabIsInactive: 'The tab is inactive',
28
28
  /**
29
- * @description Glass pane element text content in Screencast View of the Remote Devices tab when toggling screencast
29
+ * @description Glass pane element text content in the Screencast view of the Remote devices tab when profiling is in progress.
30
30
  */
31
31
  profilingInProgress: 'Profiling in progress',
32
32
  /**
33
- * @description Accessible text for the screencast back button
33
+ * @description Accessible label for the Screencast back button.
34
34
  */
35
- back: 'back',
35
+ back: 'Back',
36
36
  /**
37
- * @description Accessible text for the screencast forward button
37
+ * @description Accessible label for the Screencast forward button.
38
38
  */
39
- forward: 'forward',
39
+ forward: 'Forward',
40
40
  /**
41
- * @description Accessible text for the screencast reload button
41
+ * @description Accessible label for the Screencast reload button.
42
42
  */
43
- reload: 'reload',
43
+ reload: 'Reload',
44
44
  /**
45
- * @description Accessible text for the address bar in screencast view
45
+ * @description Accessible label for the address bar in the Screencast view.
46
46
  */
47
47
  addressBar: 'Address bar',
48
48
  /**
49
- * @description Accessible text for the touch emulation button.
49
+ * @description Accessible label for the touch input button in the Screencast view.
50
50
  */
51
51
  touchInput: 'Use touch',
52
52
  /**
53
- * @description Accessible text for the mouse emulation button.
53
+ * @description Accessible label for the mouse input button in the Screencast view.
54
54
  */
55
55
  mouseInput: 'Use mouse',
56
56
  } as const;
@@ -14,17 +14,17 @@ import type {SearchResult} from './SearchScope.js';
14
14
 
15
15
  const UIStrings = {
16
16
  /**
17
- * @description Accessibility label for number of matches in each file in search results pane
17
+ * @description Accessibility label for the number of matches in each file in the search results view of the Search panel.
18
18
  * @example {2} PH1
19
19
  */
20
- matchesCountS: 'Matches Count {PH1}',
20
+ matchesCountS: 'Matches count {PH1}',
21
21
  /**
22
- * @description Search result label for results in the Search tool
22
+ * @description Label for search results in the Search panel.
23
23
  * @example {2} PH1
24
24
  */
25
25
  lineS: 'Line {PH1}',
26
26
  /**
27
- * @description Text in Search Results Pane of the Search tab
27
+ * @description Text in the search results view of the Search panel.
28
28
  * @example {2} PH1
29
29
  */
30
30
  showDMore: 'Show {PH1} more',
@@ -20,87 +20,87 @@ import searchViewStyles from './searchView.css.js';
20
20
 
21
21
  const UIStrings = {
22
22
  /**
23
- * @description Placeholder text of a search bar
23
+ * @description Placeholder text of a search bar.
24
24
  */
25
25
  find: 'Find',
26
26
  /**
27
- * @description Tooltip text on a toggle to enable search by matching case of the input
27
+ * @description Tooltip text on a toggle to enable search by matching case of the input.
28
28
  */
29
29
  enableCaseSensitive: 'Enable case sensitive search',
30
30
  /**
31
- * @description Tooltip text on a toggle to disable search by matching case of the input
31
+ * @description Tooltip text on a toggle to disable search by matching case of the input.
32
32
  */
33
33
  disableCaseSensitive: 'Disable case sensitive search',
34
34
  /**
35
- * @description Tooltip text on a toggle to enable searching with regular expression
35
+ * @description Tooltip text on a toggle to enable searching with regular expressions.
36
36
  */
37
37
  enableRegularExpression: 'Enable regular expressions',
38
38
  /**
39
- * @description Tooltip text on a toggle to disable searching with regular expression
39
+ * @description Tooltip text on a toggle to disable searching with regular expressions.
40
40
  */
41
41
  disableRegularExpression: 'Disable regular expressions',
42
42
  /**
43
- * @description Text to refresh the page
43
+ * @description Text to refresh the search.
44
44
  */
45
45
  refresh: 'Refresh',
46
46
  /**
47
- * @description Tooltip text to clear the search input field
47
+ * @description Tooltip text to clear the search input field.
48
48
  */
49
49
  clearInput: 'Clear',
50
50
  /**
51
- * @description Text to clear content
51
+ * @description Text to clear search results.
52
52
  */
53
53
  clear: 'Clear search',
54
54
  /**
55
- * @description Search message element text content in Search View of the Search tab
55
+ * @description Message element text content during search in the search view of the Search panel.
56
56
  */
57
57
  indexing: 'Indexing…',
58
58
  /**
59
- * @description Text to indicate the searching is in progress
59
+ * @description Text to indicate that searching is in progress.
60
60
  */
61
61
  searching: 'Searching…',
62
62
  /**
63
- * @description Text in Search View of the Search tab
63
+ * @description Text in the search view of the Search panel when indexing is interrupted.
64
64
  */
65
65
  indexingInterrupted: 'Indexing interrupted.',
66
66
  /**
67
- * @description Search results message element text content in Search View of the Search tab
67
+ * @description Message element text content for search results in the search view of the Search panel.
68
68
  */
69
69
  foundMatchingLineInFile: 'Found 1 matching line in 1 file.',
70
70
  /**
71
- * @description Search results message element text content in Search View of the Search tab
71
+ * @description Message element text content for search results in the search view of the Search panel.
72
72
  * @example {2} PH1
73
73
  */
74
74
  foundDMatchingLinesInFile: 'Found {PH1} matching lines in 1 file.',
75
75
  /**
76
- * @description Search results message element text content in Search View of the Search tab
76
+ * @description Message element text content for search results in the search view of the Search panel.
77
77
  * @example {2} PH1
78
78
  * @example {2} PH2
79
79
  */
80
80
  foundDMatchingLinesInDFiles: 'Found {PH1} matching lines in {PH2} files.',
81
81
  /**
82
- * @description Search results message element text content in Search View of the Search tab
82
+ * @description Message element text content for search results in the search view of the Search panel.
83
83
  */
84
84
  noMatchesFound: 'No matches found',
85
85
  /**
86
- * @description Search results message element text content in Search View of the Search tab
86
+ * @description Message element text content for search results in the search view of the Search panel.
87
87
  */
88
88
  nothingMatchedTheQuery: 'Nothing matched your search query',
89
89
  /**
90
- * @description Text in Search View of the Search tab
90
+ * @description Text in the search view of the Search panel when search finishes.
91
91
  */
92
92
  searchFinished: 'Search finished.',
93
93
  /**
94
- * @description Text in Search View of the Search tab
94
+ * @description Text in the search view of the Search panel when search is interrupted.
95
95
  */
96
96
  searchInterrupted: 'Search interrupted.',
97
97
  /**
98
- * @description Text in Search View of the Search tab if user hasn't started the search
98
+ * @description Text in the search view of the Search panel if the user hasnt started a search.
99
99
  * @example {Enter} PH1
100
100
  */
101
101
  typeAndPressSToSearch: 'Type and press {PH1} to search',
102
102
  /**
103
- * @description Text in Search view of the Search tab if user hasn't started the search
103
+ * @description Text in the search view of the Search panel if the user hasnt started a search.
104
104
  */
105
105
  noSearchResult: 'No search results',
106
106
  } as const;
@@ -9,21 +9,21 @@ import * as Protocol from '../../generated/protocol.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Text in Security Panel of the Security panel
12
+ * @description Summary text displayed in the overview of the Security panel when the page's security state is unknown.
13
13
  */
14
14
  theSecurityOfThisPageIsUnknown: 'The security of this page is unknown.',
15
15
  /**
16
- * @description Text in Security Panel of the Security panel
16
+ * @description Summary text displayed in the overview of the Security panel when the page isn't secure.
17
17
  */
18
- thisPageIsNotSecure: 'This page is not secure.',
18
+ thisPageIsNotSecure: 'This page isn’t secure.',
19
19
  /**
20
- * @description Text in Security Panel of the Security panel
20
+ * @description Summary text displayed in the overview of the Security panel when the page is secure with valid HTTPS.
21
21
  */
22
22
  thisPageIsSecureValidHttps: 'This page is secure (valid HTTPS).',
23
23
  /**
24
- * @description Text in Security Panel of the Security panel
24
+ * @description Summary text displayed in the overview of the Security panel when the page isn't secure due to broken HTTPS.
25
25
  */
26
- thisPageIsNotSecureBrokenHttps: 'This page is not secure (broken HTTPS).',
26
+ thisPageIsNotSecureBrokenHttps: 'This page isn’t secure (broken HTTPS).',
27
27
  /**
28
28
  * @description Description of an SSL cipher that contains a separate (bulk) cipher and MAC.
29
29
  * @example {AES_256_CBC} PH1
@@ -31,7 +31,7 @@ const UIStrings = {
31
31
  */
32
32
  cipherWithMAC: '{PH1} with {PH2}',
33
33
  /**
34
- * @description Description of an SSL Key and its Key Exchange Group.
34
+ * @description Description of an SSL key and its key exchange group.
35
35
  * @example {ECDHE_RSA} PH1
36
36
  * @example {X25519} PH2
37
37
  */