chrome-devtools-frontend 1.0.1683520 → 1.0.1689415

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 (661) hide show
  1. package/.agents/skills/gerrit-cli/SKILL.md +29 -8
  2. package/.agents/skills/gerrit-cli/references/commands.md +51 -18
  3. package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
  4. package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
  5. package/AUTHORS +1 -0
  6. package/config/typescript/tsconfig.base.json +1 -0
  7. package/config/typescript/tsconfig.eslint.json +9 -0
  8. package/docs/contributing/issues.md +1 -1
  9. package/docs/styleguide/ux/writing.md +2 -2
  10. package/eslint.config.mjs +18 -10
  11. package/front_end/core/common/Base64.ts +1 -1
  12. package/front_end/core/common/Color.ts +28 -6
  13. package/front_end/core/common/ColorConverter.ts +12 -0
  14. package/front_end/core/common/Console.ts +2 -1
  15. package/front_end/core/common/Object.ts +2 -2
  16. package/front_end/core/common/ResourceType.ts +12 -13
  17. package/front_end/core/common/Revealer.ts +1 -1
  18. package/front_end/core/common/Settings.ts +2 -2
  19. package/front_end/core/common/TextDictionary.ts +2 -2
  20. package/front_end/core/common/Throttler.ts +1 -1
  21. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
  22. package/front_end/core/host/UserMetrics.ts +51 -37
  23. package/front_end/core/host/host.ts +1 -1
  24. package/front_end/core/i18n/i18nImpl.ts +1 -1
  25. package/front_end/core/platform/HostRuntime.ts +3 -3
  26. package/front_end/core/platform/KeyboardUtilities.ts +1 -1
  27. package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
  28. package/front_end/core/root/Runtime.ts +4 -2
  29. package/front_end/core/sdk/AnimationModel.ts +1 -1
  30. package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
  31. package/front_end/core/sdk/CSSMetadata.ts +11 -6
  32. package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
  33. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
  34. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  35. package/front_end/core/sdk/DOMModel.ts +3 -3
  36. package/front_end/core/sdk/DebuggerModel.ts +1 -1
  37. package/front_end/core/sdk/EmulationModel.ts +5 -0
  38. package/front_end/core/sdk/LayerTreeBase.ts +1 -1
  39. package/front_end/core/sdk/NetworkManager.ts +1 -1
  40. package/front_end/core/sdk/README.md +40 -0
  41. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  42. package/front_end/core/sdk/RemoteObject.ts +1 -1
  43. package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
  44. package/front_end/core/sdk/SDKModel.ts +1 -1
  45. package/front_end/core/sdk/SDKSettings.ts +6 -0
  46. package/front_end/core/sdk/Script.ts +2 -1
  47. package/front_end/core/sdk/SecurityOrigin.ts +48 -0
  48. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -7
  49. package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
  50. package/front_end/core/sdk/StorageBucketsModel.ts +0 -6
  51. package/front_end/core/sdk/sdk.ts +2 -0
  52. package/front_end/core/text_utils/ContentData.ts +1 -1
  53. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
  54. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
  55. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
  56. package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
  57. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  58. package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
  59. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
  60. package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
  61. package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
  62. package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
  63. package/front_end/entrypoints/js_app/js_app.ts +25 -9
  64. package/front_end/entrypoints/main/MainImpl.ts +2 -1
  65. package/front_end/entrypoints/main/main-meta.ts +5 -31
  66. package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
  67. package/front_end/entrypoints/node_app/node_app.ts +1 -1
  68. package/front_end/foundation/Universe.ts +7 -0
  69. package/front_end/generated/ARIAProperties.ts +39 -1
  70. package/front_end/generated/InspectorBackendCommands.ts +13 -22
  71. package/front_end/generated/SupportedCSSProperties.ts +60 -119
  72. package/front_end/generated/protocol-mapping.d.ts +18 -59
  73. package/front_end/generated/protocol-proxy-api.d.ts +14 -47
  74. package/front_end/generated/protocol.ts +104 -331
  75. package/front_end/models/ai_assistance/AiAgent2.ts +25 -11
  76. package/front_end/models/ai_assistance/AiConversation.ts +23 -14
  77. package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
  78. package/front_end/models/ai_assistance/AiUtils.ts +16 -0
  79. package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
  80. package/front_end/models/ai_assistance/README.md +1 -1
  81. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
  82. package/front_end/models/ai_assistance/agents/AiAgent.ts +40 -25
  83. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
  84. package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
  85. package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
  86. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
  87. package/front_end/models/ai_assistance/agents/StorageAgent.ts +13 -11
  88. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
  89. package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
  90. package/front_end/models/ai_assistance/ai_assistance.ts +12 -0
  91. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
  92. package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
  93. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
  94. package/front_end/models/ai_assistance/injected.ts +5 -3
  95. package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
  96. package/front_end/models/ai_assistance/skills/README.md +1 -1
  97. package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
  98. package/front_end/models/ai_assistance/skills/network.md +13 -7
  99. package/front_end/models/ai_assistance/skills/performance.md +22 -16
  100. package/front_end/models/ai_assistance/skills/sources.md +13 -7
  101. package/front_end/models/ai_assistance/skills/storage.md +19 -18
  102. package/front_end/models/ai_assistance/skills/styling.md +30 -37
  103. package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
  104. package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
  105. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
  106. package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
  107. package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
  108. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
  109. package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
  110. package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
  111. package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +15 -8
  112. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
  113. package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
  114. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
  115. package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
  116. package/front_end/models/ai_assistance/tools/GetStorageValues.ts +18 -5
  117. package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
  118. package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
  119. package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
  120. package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
  121. package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
  122. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
  123. package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
  124. package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
  125. package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +17 -5
  126. package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
  127. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
  128. package/front_end/models/ai_assistance/tools/RunLighthouse.ts +14 -17
  129. package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
  130. package/front_end/models/ai_assistance/tools/Tool.ts +36 -13
  131. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
  132. package/front_end/models/badges/AiExplorerBadge.ts +3 -3
  133. package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
  134. package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
  135. package/front_end/models/badges/SpeedsterBadge.ts +3 -3
  136. package/front_end/models/badges/StarterBadge.ts +4 -4
  137. package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
  138. package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
  139. package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
  140. package/front_end/models/emulation/EmulatedDevices.ts +2 -2
  141. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
  142. package/front_end/models/formatter/ScriptFormatter.ts +1 -2
  143. package/front_end/models/geometry/GeometryImpl.ts +2 -2
  144. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
  145. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
  146. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
  147. package/front_end/models/issues_manager/DOMIssuesManager.ts +144 -0
  148. package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +13 -1
  149. package/front_end/models/issues_manager/GenericIssue.ts +32 -20
  150. package/front_end/models/issues_manager/IssuesManager.ts +0 -1
  151. package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
  152. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  153. package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +29 -9
  154. package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
  155. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
  156. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
  157. package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
  158. package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
  159. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  160. package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
  161. package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
  162. package/front_end/models/trace/LanternComputationData.ts +2 -3
  163. package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
  164. package/front_end/models/trace/extras/ThirdParties.ts +9 -9
  165. package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
  166. package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
  167. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
  168. package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
  169. package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
  170. package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
  171. package/front_end/models/trace/helpers/Network.ts +3 -3
  172. package/front_end/models/trace/helpers/Trace.ts +1 -1
  173. package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
  174. package/front_end/models/trace/insights/Cache.ts +3 -1
  175. package/front_end/models/trace/insights/CharacterSet.ts +3 -1
  176. package/front_end/models/trace/insights/DOMSize.ts +3 -1
  177. package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
  178. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
  179. package/front_end/models/trace/insights/FontDisplay.ts +2 -1
  180. package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
  181. package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
  182. package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
  183. package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
  184. package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
  185. package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
  186. package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
  187. package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
  188. package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
  189. package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
  190. package/front_end/models/trace/insights/ThirdParties.ts +5 -3
  191. package/front_end/models/trace/insights/Viewport.ts +2 -1
  192. package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
  193. package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
  194. package/front_end/models/trace/types/TraceEvents.ts +8 -3
  195. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
  196. package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
  197. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
  198. package/front_end/panels/accessibility/accessibilityNode.css +4 -4
  199. package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
  200. package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
  201. package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
  202. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
  203. package/front_end/panels/ai_assistance/ExternalHandler.ts +89 -0
  204. package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
  205. package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
  206. package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
  207. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
  208. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
  209. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
  210. package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
  211. package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
  212. package/front_end/panels/ai_assistance/components/chatView.css +2 -2
  213. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  214. package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
  215. package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
  216. package/front_end/panels/animation/animationTimeline.css +62 -62
  217. package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
  218. package/front_end/panels/application/BackgroundServiceModel.ts +4 -3
  219. package/front_end/panels/application/BackgroundServiceView.ts +290 -252
  220. package/front_end/panels/application/IndexedDBModel.ts +0 -7
  221. package/front_end/panels/application/WebMCPView.ts +15 -7
  222. package/front_end/panels/application/appManifestView.css +5 -5
  223. package/front_end/panels/application/backgroundServiceView.css +18 -2
  224. package/front_end/panels/application/components/AdsView.ts +100 -4
  225. package/front_end/panels/application/components/adsView.css +8 -5
  226. package/front_end/panels/application/components/backForwardCacheView.css +5 -5
  227. package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
  228. package/front_end/panels/application/components/endpointsGrid.css +1 -1
  229. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  230. package/front_end/panels/application/components/protocolHandlersView.css +6 -6
  231. package/front_end/panels/application/components/reportsGrid.css +1 -1
  232. package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
  233. package/front_end/panels/application/components/trustTokensView.css +7 -7
  234. package/front_end/panels/application/cookieItemsView.css +3 -3
  235. package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
  236. package/front_end/panels/application/frameDetailsReportView.css +11 -11
  237. package/front_end/panels/application/indexedDBViews.css +7 -7
  238. package/front_end/panels/application/originTrialTokenRows.css +2 -2
  239. package/front_end/panels/application/originTrialTreeView.css +3 -3
  240. package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
  241. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
  242. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
  243. package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
  244. package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
  245. package/front_end/panels/application/preloading/preloadingView.css +1 -1
  246. package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
  247. package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
  248. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
  249. package/front_end/panels/application/serviceWorkersView.css +15 -16
  250. package/front_end/panels/application/storageView.css +5 -5
  251. package/front_end/panels/application/webMCPView.css +9 -9
  252. package/front_end/panels/autofill/autofillView.css +4 -4
  253. package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
  254. package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
  255. package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
  256. package/front_end/panels/changes/changesSidebar.css +1 -1
  257. package/front_end/panels/changes/changesView.css +1 -1
  258. package/front_end/panels/changes/combinedDiffView.css +1 -1
  259. package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
  260. package/front_end/panels/common/badgeNotification.css +2 -2
  261. package/front_end/panels/common/domLinkifier.css +1 -1
  262. package/front_end/panels/common/gdpSignUpDialog.css +3 -3
  263. package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
  264. package/front_end/panels/console/ConsolePrompt.ts +6 -3
  265. package/front_end/panels/console/ConsoleView.ts +23 -19
  266. package/front_end/panels/console/ConsoleViewMessage.ts +7 -2
  267. package/front_end/panels/console/console-meta.ts +9 -43
  268. package/front_end/panels/console/consoleContextSelector.css +2 -2
  269. package/front_end/panels/console/consolePinPane.css +9 -9
  270. package/front_end/panels/console/consolePrompt.css +5 -5
  271. package/front_end/panels/console/consoleView.css +39 -39
  272. package/front_end/panels/coverage/coverageListView.css +2 -2
  273. package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
  274. package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
  275. package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
  276. package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
  277. package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
  278. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
  279. package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
  280. package/front_end/panels/elements/ElementIssueUtils.ts +10 -2
  281. package/front_end/panels/elements/ElementsPanel.ts +5 -2
  282. package/front_end/panels/elements/ElementsTreeElement.ts +212 -255
  283. package/front_end/panels/elements/ElementsTreeOutline.ts +1804 -495
  284. package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
  285. package/front_end/panels/elements/StandaloneStylesContainer.ts +5 -11
  286. package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
  287. package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -0
  288. package/front_end/panels/elements/StylesContainer.ts +1 -0
  289. package/front_end/panels/elements/StylesSidebarPane.ts +317 -159
  290. package/front_end/panels/elements/classesPaneWidget.css +6 -6
  291. package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
  292. package/front_end/panels/elements/computedStyleWidget.css +1 -1
  293. package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
  294. package/front_end/panels/elements/elements-meta.ts +14 -0
  295. package/front_end/panels/elements/elementsPanel.css +4 -4
  296. package/front_end/panels/elements/elementsTreeOutline.css +222 -38
  297. package/front_end/panels/elements/layersWidget.css +4 -4
  298. package/front_end/panels/elements/layoutPane.css +18 -18
  299. package/front_end/panels/elements/metricsSidebarPane.css +11 -11
  300. package/front_end/panels/elements/platformFontsWidget.css +5 -5
  301. package/front_end/panels/elements/propertiesWidget.css +2 -2
  302. package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
  303. package/front_end/panels/elements/stylesSidebarPane.css +37 -20
  304. package/front_end/panels/emulation/deviceModeView.css +49 -49
  305. package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
  306. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  307. package/front_end/panels/explain/components/consoleInsight.css +29 -29
  308. package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
  309. package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
  310. package/front_end/panels/issues/issuesPane.css +2 -2
  311. package/front_end/panels/issues/issuesTree.css +50 -50
  312. package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
  313. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  314. package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
  315. package/front_end/panels/layer_viewer/layers3DView.css +1 -1
  316. package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
  317. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
  318. package/front_end/panels/media/playerListView.css +9 -9
  319. package/front_end/panels/media/playerMessagesView.css +8 -8
  320. package/front_end/panels/media/playerPropertiesView.css +6 -6
  321. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
  322. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
  323. package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
  324. package/front_end/panels/network/NetworkPanel.ts +9 -4
  325. package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
  326. package/front_end/panels/network/RequestPayloadView.ts +78 -26
  327. package/front_end/panels/network/binaryResourceView.css +1 -1
  328. package/front_end/panels/network/components/EditableSpan.css +3 -3
  329. package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
  330. package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
  331. package/front_end/panels/network/components/RequestHeadersView.css +18 -18
  332. package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
  333. package/front_end/panels/network/network-meta.ts +9 -9
  334. package/front_end/panels/network/networkConfigView.css +11 -11
  335. package/front_end/panels/network/networkLogView.css +35 -35
  336. package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
  337. package/front_end/panels/network/networkPanel.css +7 -7
  338. package/front_end/panels/network/networkTimingTable.css +13 -13
  339. package/front_end/panels/network/requestConditionsDrawer.css +4 -4
  340. package/front_end/panels/network/requestCookiesView.css +5 -5
  341. package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
  342. package/front_end/panels/network/requestHTMLView.css +1 -1
  343. package/front_end/panels/network/requestHeadersTree.css +19 -19
  344. package/front_end/panels/network/requestInitiatorView.css +1 -1
  345. package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
  346. package/front_end/panels/network/requestPayloadTree.css +5 -5
  347. package/front_end/panels/network/requestPayloadView.css +1 -1
  348. package/front_end/panels/network/resourceChunkView.css +3 -3
  349. package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
  350. package/front_end/panels/profiler/heapProfiler.css +15 -15
  351. package/front_end/panels/profiler/profileLauncherView.css +10 -10
  352. package/front_end/panels/recorder/RecordingView.ts +1 -1
  353. package/front_end/panels/recorder/StepEditor.ts +86 -7
  354. package/front_end/panels/recorder/TimelineSection.ts +2 -1
  355. package/front_end/panels/recorder/createRecordingView.css +17 -17
  356. package/front_end/panels/recorder/extensionView.css +5 -5
  357. package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
  358. package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
  359. package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
  360. package/front_end/panels/recorder/recorderPanel.css +7 -7
  361. package/front_end/panels/recorder/recordingListView.css +12 -12
  362. package/front_end/panels/recorder/recordingView.css +47 -47
  363. package/front_end/panels/recorder/stepEditor.css +2 -2
  364. package/front_end/panels/recorder/stepView.css +20 -20
  365. package/front_end/panels/recorder/timelineSection.css +9 -9
  366. package/front_end/panels/screencast/screencastView.css +12 -12
  367. package/front_end/panels/search/searchResultsPane.css +10 -10
  368. package/front_end/panels/search/searchView.css +9 -9
  369. package/front_end/panels/security/SecurityPanel.ts +84 -54
  370. package/front_end/panels/security/SecurityPanelSidebar.ts +0 -32
  371. package/front_end/panels/security/mainView.css +26 -26
  372. package/front_end/panels/security/originView.css +15 -15
  373. package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
  374. package/front_end/panels/sensors/sensors.css +28 -28
  375. package/front_end/panels/settings/KeybindsSettingsTab.ts +5 -2
  376. package/front_end/panels/settings/components/syncSection.css +5 -5
  377. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
  378. package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
  379. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
  380. package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
  381. package/front_end/panels/settings/settingsScreen.css +5 -5
  382. package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
  383. package/front_end/panels/sources/breakpointEditDialog.css +9 -9
  384. package/front_end/panels/sources/breakpointsView.css +25 -25
  385. package/front_end/panels/sources/callStackSidebarPane.css +10 -10
  386. package/front_end/panels/sources/components/HeadersView.css +6 -6
  387. package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
  388. package/front_end/panels/sources/dialog.css +2 -2
  389. package/front_end/panels/sources/navigatorTree.css +2 -2
  390. package/front_end/panels/sources/navigatorView.css +2 -2
  391. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  392. package/front_end/panels/sources/sourcesNavigator.css +1 -1
  393. package/front_end/panels/sources/sourcesPanel.css +2 -2
  394. package/front_end/panels/sources/sourcesView.css +1 -1
  395. package/front_end/panels/sources/threadsSidebarPane.css +5 -5
  396. package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
  397. package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
  398. package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
  399. package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
  400. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -6
  401. package/front_end/panels/timeline/components/CWVMetrics.ts +9 -10
  402. package/front_end/panels/timeline/components/DetailsView.ts +12 -16
  403. package/front_end/panels/timeline/components/ExportTraceOptions.ts +13 -13
  404. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -19
  405. package/front_end/panels/timeline/components/IgnoreListSetting.ts +7 -9
  406. package/front_end/panels/timeline/components/InteractionBreakdown.ts +3 -3
  407. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +13 -13
  408. package/front_end/panels/timeline/components/LiveMetricsView.ts +65 -65
  409. package/front_end/panels/timeline/components/MetricCard.ts +25 -25
  410. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +22 -22
  411. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +9 -9
  412. package/front_end/panels/timeline/components/OriginMap.ts +7 -7
  413. package/front_end/panels/timeline/components/RelatedInsightChips.ts +2 -2
  414. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +19 -20
  415. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
  416. package/front_end/panels/timeline/components/TimelineSummary.ts +2 -2
  417. package/front_end/panels/timeline/components/Utils.ts +2 -6
  418. package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
  419. package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
  420. package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
  421. package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
  422. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -9
  423. package/front_end/panels/timeline/components/insights/Checklist.ts +2 -2
  424. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  425. package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
  426. package/front_end/panels/timeline/components/metricCard.css +20 -20
  427. package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
  428. package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
  429. package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
  430. package/front_end/panels/timeline/components/originMap.css +4 -4
  431. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  432. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
  433. package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
  434. package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
  435. package/front_end/panels/timeline/components/timelineSummary.css +4 -4
  436. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
  437. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
  438. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
  439. package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
  440. package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
  441. package/front_end/panels/timeline/timeline-meta.ts +0 -6
  442. package/front_end/panels/timeline/timelineDetailsView.css +11 -11
  443. package/front_end/panels/timeline/timelinePanel.css +20 -20
  444. package/front_end/panels/timeline/timelineTreeView.css +8 -8
  445. package/front_end/panels/webauthn/webauthnPane.css +6 -6
  446. package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
  447. package/front_end/third_party/chromium/README.chromium +1 -1
  448. package/front_end/third_party/i18n/i18n-impl.ts +1 -1
  449. package/front_end/third_party/puppeteer/README.chromium +2 -2
  450. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
  451. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
  452. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
  453. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
  454. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
  455. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
  456. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
  457. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
  458. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
  459. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
  460. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
  461. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
  462. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
  463. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
  464. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
  465. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
  466. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
  467. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  468. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  469. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
  470. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  471. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  472. package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
  473. package/front_end/third_party/puppeteer/package/package.json +2 -2
  474. package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
  475. package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
  476. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  477. package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
  478. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  479. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  480. package/front_end/third_party/web-vitals/README.chromium +2 -2
  481. package/front_end/third_party/web-vitals/package/README.md +22 -7
  482. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
  483. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
  484. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
  485. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
  486. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
  487. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
  488. package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
  489. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
  490. package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
  491. package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
  492. package/front_end/third_party/web-vitals/package/package.json +1 -2
  493. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
  494. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
  495. package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
  496. package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
  497. package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
  498. package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
  499. package/front_end/third_party/web-vitals/rebuild.sh +3 -3
  500. package/front_end/ui/comments/CommentAnchorResolver.ts +109 -4
  501. package/front_end/ui/comments/CommentOverlayManager.ts +16 -32
  502. package/front_end/ui/comments/commentsOverlay.css +6 -5
  503. package/front_end/ui/components/adorners/Adorner.ts +1 -1
  504. package/front_end/ui/components/adorners/adorner.css +6 -6
  505. package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
  506. package/front_end/ui/components/buttons/button.css +9 -9
  507. package/front_end/ui/components/buttons/floatingButton.css +2 -2
  508. package/front_end/ui/components/buttons/textButton.css +12 -12
  509. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  510. package/front_end/ui/components/dialogs/dialog.css +1 -1
  511. package/front_end/ui/components/diff_view/diffView.css +3 -3
  512. package/front_end/ui/components/expandable_list/expandableList.css +9 -9
  513. package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
  514. package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
  515. package/front_end/ui/components/icon_button/iconButton.css +2 -2
  516. package/front_end/ui/components/input/checkbox.css +8 -8
  517. package/front_end/ui/components/input/textInput.css +3 -3
  518. package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
  519. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
  520. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  521. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
  522. package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
  523. package/front_end/ui/components/markdown_view/markdownView.css +7 -7
  524. package/front_end/ui/components/menus/menuGroup.css +2 -2
  525. package/front_end/ui/components/menus/menuItem.css +2 -2
  526. package/front_end/ui/components/menus/selectMenu.css +2 -2
  527. package/front_end/ui/components/menus/selectMenuButton.css +4 -4
  528. package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
  529. package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
  530. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
  531. package/front_end/ui/components/report_view/report.css +3 -3
  532. package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
  533. package/front_end/ui/components/report_view/reportValue.css +1 -1
  534. package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
  535. package/front_end/ui/components/settings/settingCheckbox.css +6 -6
  536. package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
  537. package/front_end/ui/components/text_editor/config.ts +16 -4
  538. package/front_end/ui/kit/icons/icon.css +4 -4
  539. package/front_end/ui/kit/link/link.css +1 -1
  540. package/front_end/ui/legacy/ActionRegistration.ts +23 -23
  541. package/front_end/ui/legacy/Dialog.ts +1 -1
  542. package/front_end/ui/legacy/DockController.ts +7 -4
  543. package/front_end/ui/legacy/EmptyWidget.ts +13 -34
  544. package/front_end/ui/legacy/FilterBar.ts +4 -4
  545. package/front_end/ui/legacy/Infobar.ts +2 -2
  546. package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
  547. package/front_end/ui/legacy/InspectorView.ts +22 -27
  548. package/front_end/ui/legacy/KeyboardShortcut.ts +4 -7
  549. package/front_end/ui/legacy/ListWidget.ts +7 -7
  550. package/front_end/ui/legacy/PlusButton.ts +1 -3
  551. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
  552. package/front_end/ui/legacy/SearchableView.ts +18 -17
  553. package/front_end/ui/legacy/ShortcutRegistry.ts +6 -3
  554. package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
  555. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  556. package/front_end/ui/legacy/SuggestBox.ts +2 -2
  557. package/front_end/ui/legacy/TabbedPane.ts +10 -10
  558. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
  559. package/front_end/ui/legacy/Toolbar.ts +5 -5
  560. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  561. package/front_end/ui/legacy/UIUtils.ts +90 -26
  562. package/front_end/ui/legacy/ViewManager.ts +1 -1
  563. package/front_end/ui/legacy/ViewRegistration.ts +7 -7
  564. package/front_end/ui/legacy/Widget.ts +5 -5
  565. package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
  566. package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
  567. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
  568. package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
  569. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +23 -24
  570. package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
  571. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
  572. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
  573. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
  574. package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
  575. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
  576. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
  577. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
  578. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
  579. package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
  580. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
  581. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
  582. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
  583. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +6 -6
  584. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -15
  585. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  586. package/front_end/ui/legacy/components/perf_ui/NetworkPriorities.ts +5 -5
  587. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +5 -5
  588. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
  589. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
  590. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
  591. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
  592. package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
  593. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
  594. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +4 -6
  595. package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
  596. package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
  597. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
  598. package/front_end/ui/legacy/components/source_frame/FontView.ts +2 -2
  599. package/front_end/ui/legacy/components/source_frame/ImageView.ts +13 -13
  600. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
  601. package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +2 -2
  602. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -2
  603. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +15 -18
  604. package/front_end/ui/legacy/components/source_frame/XMLView.ts +1 -1
  605. package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
  606. package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
  607. package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
  608. package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +10 -10
  609. package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
  610. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  611. package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
  612. package/front_end/ui/legacy/dropTarget.css +2 -2
  613. package/front_end/ui/legacy/emptyWidget.css +6 -0
  614. package/front_end/ui/legacy/filter.css +19 -19
  615. package/front_end/ui/legacy/infobar.css +2 -2
  616. package/front_end/ui/legacy/inspectorCommon.css +67 -67
  617. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  618. package/front_end/ui/legacy/listWidget.css +5 -5
  619. package/front_end/ui/legacy/progressIndicator.css +4 -4
  620. package/front_end/ui/legacy/reportView.css +7 -7
  621. package/front_end/ui/legacy/searchableView.css +5 -5
  622. package/front_end/ui/legacy/smallBubble.css +3 -3
  623. package/front_end/ui/legacy/softContextMenu.css +4 -4
  624. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  625. package/front_end/ui/legacy/splitWidget.css +9 -31
  626. package/front_end/ui/legacy/suggestBox.css +4 -4
  627. package/front_end/ui/legacy/tabbedPane.css +17 -17
  628. package/front_end/ui/legacy/textPrompt.css +2 -2
  629. package/front_end/ui/legacy/toolbar.css +4 -4
  630. package/front_end/ui/legacy/treeoutline.css +14 -14
  631. package/front_end/ui/legacy/viewContainers.css +6 -6
  632. package/front_end/ui/settings/ConsoleSettings.ts +66 -0
  633. package/front_end/ui/settings/MainSettings.ts +47 -0
  634. package/front_end/ui/settings/settings.ts +2 -0
  635. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  636. package/inspector_overlay/common.ts +12 -12
  637. package/inspector_overlay/css_grid_label_helpers.ts +16 -17
  638. package/inspector_overlay/drag_resize_handler.ts +2 -2
  639. package/inspector_overlay/highlight_common.ts +11 -13
  640. package/inspector_overlay/highlight_container_query.ts +2 -2
  641. package/inspector_overlay/highlight_flex_common.ts +6 -7
  642. package/inspector_overlay/highlight_grid_common.ts +3 -3
  643. package/inspector_overlay/highlight_isolated_element.ts +12 -3
  644. package/inspector_overlay/highlight_scroll_snap.ts +2 -2
  645. package/inspector_overlay/loadCSS.rollup.js +0 -1
  646. package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
  647. package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
  648. package/inspector_overlay/tool_highlight.ts +9 -9
  649. package/inspector_overlay/tool_paused.ts +4 -4
  650. package/inspector_overlay/tool_persistent.ts +11 -11
  651. package/inspector_overlay/tool_screenshot.ts +7 -7
  652. package/inspector_overlay/tool_source_order.ts +4 -4
  653. package/inspector_overlay/tool_viewport_size.ts +3 -3
  654. package/inspector_overlay/tool_window_controls.ts +4 -4
  655. package/mcp/mcp.ts +1 -0
  656. package/package.json +2 -2
  657. package/front_end/generated/protocol-tsconfig.json +0 -10
  658. package/front_end/panels/js_timeline/DIR_METADATA +0 -3
  659. package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
  660. package/front_end/panels/js_timeline/js_timeline.ts +0 -1
  661. /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
@@ -504,9 +504,32 @@ export namespace Ads {
504
504
  removeAdFrames: Page.FrameId[];
505
505
  }
506
506
 
507
+ /**
508
+ * An ad script.
509
+ * Note: when the script is a transitive ad script, we only fill in the
510
+ * immediate ancestor script in the provenance's adScriptAncestry field (as its
511
+ * first entry), rather than filling in the full ancestry. This saves work for
512
+ * the backend, and the frontend can reconstruct the full ancestry if
513
+ * necessary.
514
+ */
515
+ export interface AdScript {
516
+ /**
517
+ * The script ID.
518
+ */
519
+ scriptId: Runtime.ScriptId;
520
+ /**
521
+ * The ad provenance.
522
+ */
523
+ provenance: Network.AdProvenance;
524
+ }
525
+
507
526
  export interface GetAdMetricsResponse extends ProtocolResponseWithError {
508
527
  metrics: AdMetrics;
509
528
  }
529
+
530
+ export interface GetAdScriptsResponse extends ProtocolResponseWithError {
531
+ newScripts: AdScript[];
532
+ }
510
533
  }
511
534
 
512
535
  export namespace Animation {
@@ -2627,6 +2650,15 @@ export namespace Browser {
2627
2650
  arguments: string[];
2628
2651
  }
2629
2652
 
2653
+ export interface AddMockCameraRequest {
2654
+ /**
2655
+ * Required non-empty identifier for the mock camera. This is mapped to an
2656
+ * internal virtual-device identifier and is not the MediaDeviceInfo.deviceId
2657
+ * exposed to the page.
2658
+ */
2659
+ deviceId: string;
2660
+ }
2661
+
2630
2662
  export interface GetHistogramsRequest {
2631
2663
  /**
2632
2664
  * Requested substring in name. Only histograms which have query as a
@@ -11760,6 +11792,9 @@ export namespace Network {
11760
11792
  filterlistRule?: string;
11761
11793
  /**
11762
11794
  * The script ancestry that created the ad, if any.
11795
+ * Note: depending on the context, this may represent the full ancestry up
11796
+ * to the root script, or it may contain only one script representing the
11797
+ * immediate ancestor.
11763
11798
  */
11764
11799
  adScriptAncestry?: AdAncestry;
11765
11800
  }
@@ -14608,6 +14643,7 @@ export namespace Page {
14608
14643
  Gamepad = 'gamepad',
14609
14644
  Geolocation = 'geolocation',
14610
14645
  Gyroscope = 'gyroscope',
14646
+ Haptics = 'haptics',
14611
14647
  Hid = 'hid',
14612
14648
  IdentityCredentialsGet = 'identity-credentials-get',
14613
14649
  IdleDetection = 'idle-detection',
@@ -17712,6 +17748,62 @@ export namespace ServiceWorker {
17712
17748
  Redundant = 'redundant',
17713
17749
  }
17714
17750
 
17751
+ /**
17752
+ * Mostly corresponds to `RouterCondition` in ServiceWorker spec
17753
+ * (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
17754
+ * currently lacks support for the nested conditions ("or" and "not").
17755
+ * TODO(crbug.com/540469610): Support recursive conditions.
17756
+ */
17757
+ export interface ServiceWorkerRouterCondition {
17758
+ /**
17759
+ * Plain text, or JSON serialization of URLPatternInit or URLPattern
17760
+ */
17761
+ urlPattern?: string;
17762
+ requestMethod?: string;
17763
+ requestMode?: string;
17764
+ requestDestination?: string;
17765
+ runningStatus?: ServiceWorkerVersionRunningStatus;
17766
+ }
17767
+
17768
+ export const enum ServiceWorkerRouterSourceType {
17769
+ Cache = 'cache',
17770
+ FetchEvent = 'fetchEvent',
17771
+ Network = 'network',
17772
+ RaceNetworkAndFetchHandler = 'raceNetworkAndFetchHandler',
17773
+ RaceNetworkAndCache = 'raceNetworkAndCache',
17774
+ SourceDict = 'sourceDict',
17775
+ }
17776
+
17777
+ /**
17778
+ * https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
17779
+ */
17780
+ export interface ServiceWorkerRouterSourceDict {
17781
+ cacheName: string;
17782
+ }
17783
+
17784
+ /**
17785
+ * Corresponds to `RouterSource` in the spec while the representation is different as follows.
17786
+ * (https://www.w3.org/TR/service-workers/#typedefdef-routersource)
17787
+ * - `RouterSourceEnum`: `type` equals `cache`, `sourceDict` is null.
17788
+ * - `RouterSourceDict`: `type` equals `sourceDict`, `sourceDict` has valid value.
17789
+ */
17790
+ export interface ServiceWorkerRouterSource {
17791
+ type: ServiceWorkerRouterSourceType;
17792
+ /**
17793
+ * Non-empty iff `type` equals "sourceDict".
17794
+ */
17795
+ sourceDict?: ServiceWorkerRouterSourceDict;
17796
+ }
17797
+
17798
+ export interface ServiceWorkerRouterRule {
17799
+ condition: ServiceWorkerRouterCondition;
17800
+ source: ServiceWorkerRouterSource;
17801
+ /**
17802
+ * Rule ID assigned by the browser. Unique within each ServiceWorkerVersion.
17803
+ */
17804
+ id: integer;
17805
+ }
17806
+
17715
17807
  /**
17716
17808
  * ServiceWorker version.
17717
17809
  */
@@ -17732,7 +17824,13 @@ export namespace ServiceWorker {
17732
17824
  scriptResponseTime?: number;
17733
17825
  controlledClients?: Target.TargetID[];
17734
17826
  targetId?: Target.TargetID;
17827
+ /**
17828
+ * Migration to `typedRouterRules` is in progress. The browser sends either
17829
+ * `routerRules` or `typedRouterRules`.
17830
+ * TODO(crbug.com/540469610): Remove `routerRules` after the migration.
17831
+ */
17735
17832
  routerRules?: string;
17833
+ typedRouterRules?: ServiceWorkerRouterRule[];
17736
17834
  }
17737
17835
 
17738
17836
  /**
@@ -18179,7 +18277,6 @@ export namespace Storage {
18179
18277
  Websql = 'websql',
18180
18278
  Service_workers = 'service_workers',
18181
18279
  Cache_storage = 'cache_storage',
18182
- Shared_storage = 'shared_storage',
18183
18280
  Storage_buckets = 'storage_buckets',
18184
18281
  All = 'all',
18185
18282
  Other = 'other',
@@ -18208,217 +18305,6 @@ export namespace Storage {
18208
18305
  count: number;
18209
18306
  }
18210
18307
 
18211
- /**
18212
- * Enum of shared storage access scopes.
18213
- */
18214
- export const enum SharedStorageAccessScope {
18215
- Window = 'window',
18216
- SharedStorageWorklet = 'sharedStorageWorklet',
18217
- Header = 'header',
18218
- }
18219
-
18220
- /**
18221
- * Enum of shared storage access methods.
18222
- */
18223
- export const enum SharedStorageAccessMethod {
18224
- AddModule = 'addModule',
18225
- CreateWorklet = 'createWorklet',
18226
- SelectURL = 'selectURL',
18227
- Run = 'run',
18228
- BatchUpdate = 'batchUpdate',
18229
- Set = 'set',
18230
- Append = 'append',
18231
- Delete = 'delete',
18232
- Clear = 'clear',
18233
- Get = 'get',
18234
- Keys = 'keys',
18235
- Values = 'values',
18236
- Entries = 'entries',
18237
- Length = 'length',
18238
- RemainingBudget = 'remainingBudget',
18239
- }
18240
-
18241
- /**
18242
- * Struct for a single key-value pair in an origin's shared storage.
18243
- */
18244
- export interface SharedStorageEntry {
18245
- key: string;
18246
- value: string;
18247
- }
18248
-
18249
- /**
18250
- * Details for an origin's shared storage.
18251
- */
18252
- export interface SharedStorageMetadata {
18253
- /**
18254
- * Time when the origin's shared storage was last created.
18255
- */
18256
- creationTime: Network.TimeSinceEpoch;
18257
- /**
18258
- * Number of key-value pairs stored in origin's shared storage.
18259
- */
18260
- length: integer;
18261
- /**
18262
- * Current amount of bits of entropy remaining in the navigation budget.
18263
- */
18264
- remainingBudget: number;
18265
- /**
18266
- * Total number of bytes stored as key-value pairs in origin's shared
18267
- * storage.
18268
- */
18269
- bytesUsed: integer;
18270
- }
18271
-
18272
- /**
18273
- * Represents a dictionary object passed in as privateAggregationConfig to
18274
- * run or selectURL.
18275
- */
18276
- export interface SharedStoragePrivateAggregationConfig {
18277
- /**
18278
- * The chosen aggregation service deployment.
18279
- */
18280
- aggregationCoordinatorOrigin?: string;
18281
- /**
18282
- * The context ID provided.
18283
- */
18284
- contextId?: string;
18285
- /**
18286
- * Configures the maximum size allowed for filtering IDs.
18287
- */
18288
- filteringIdMaxBytes: integer;
18289
- /**
18290
- * The limit on the number of contributions in the final report.
18291
- */
18292
- maxContributions?: integer;
18293
- }
18294
-
18295
- /**
18296
- * Pair of reporting metadata details for a candidate URL for `selectURL()`.
18297
- */
18298
- export interface SharedStorageReportingMetadata {
18299
- eventType: string;
18300
- reportingUrl: string;
18301
- }
18302
-
18303
- /**
18304
- * Bundles a candidate URL with its reporting metadata.
18305
- */
18306
- export interface SharedStorageUrlWithMetadata {
18307
- /**
18308
- * Spec of candidate URL.
18309
- */
18310
- url: string;
18311
- /**
18312
- * Any associated reporting metadata.
18313
- */
18314
- reportingMetadata: SharedStorageReportingMetadata[];
18315
- }
18316
-
18317
- /**
18318
- * Bundles the parameters for shared storage access events whose
18319
- * presence/absence can vary according to SharedStorageAccessType.
18320
- */
18321
- export interface SharedStorageAccessParams {
18322
- /**
18323
- * Spec of the module script URL.
18324
- * Present only for SharedStorageAccessMethods: addModule and
18325
- * createWorklet.
18326
- */
18327
- scriptSourceUrl?: string;
18328
- /**
18329
- * String denoting "context-origin", "script-origin", or a custom
18330
- * origin to be used as the worklet's data origin.
18331
- * Present only for SharedStorageAccessMethod: createWorklet.
18332
- */
18333
- dataOrigin?: string;
18334
- /**
18335
- * Name of the registered operation to be run.
18336
- * Present only for SharedStorageAccessMethods: run and selectURL.
18337
- */
18338
- operationName?: string;
18339
- /**
18340
- * ID of the operation call.
18341
- * Present only for SharedStorageAccessMethods: run and selectURL.
18342
- */
18343
- operationId?: string;
18344
- /**
18345
- * Whether or not to keep the worket alive for future run or selectURL
18346
- * calls.
18347
- * Present only for SharedStorageAccessMethods: run and selectURL.
18348
- */
18349
- keepAlive?: boolean;
18350
- /**
18351
- * Configures the private aggregation options.
18352
- * Present only for SharedStorageAccessMethods: run and selectURL.
18353
- */
18354
- privateAggregationConfig?: SharedStoragePrivateAggregationConfig;
18355
- /**
18356
- * The operation's serialized data in bytes (converted to a string).
18357
- * Present only for SharedStorageAccessMethods: run and selectURL.
18358
- * TODO(crbug.com/401011862): Consider updating this parameter to binary.
18359
- */
18360
- serializedData?: string;
18361
- /**
18362
- * Array of candidate URLs' specs, along with any associated metadata.
18363
- * Present only for SharedStorageAccessMethod: selectURL.
18364
- */
18365
- urlsWithMetadata?: SharedStorageUrlWithMetadata[];
18366
- /**
18367
- * Spec of the URN:UUID generated for a selectURL call.
18368
- * Present only for SharedStorageAccessMethod: selectURL.
18369
- */
18370
- urnUuid?: string;
18371
- /**
18372
- * Key for a specific entry in an origin's shared storage.
18373
- * Present only for SharedStorageAccessMethods: set, append, delete, and
18374
- * get.
18375
- */
18376
- key?: string;
18377
- /**
18378
- * Value for a specific entry in an origin's shared storage.
18379
- * Present only for SharedStorageAccessMethods: set and append.
18380
- */
18381
- value?: string;
18382
- /**
18383
- * Whether or not to set an entry for a key if that key is already present.
18384
- * Present only for SharedStorageAccessMethod: set.
18385
- */
18386
- ignoreIfPresent?: boolean;
18387
- /**
18388
- * A number denoting the (0-based) order of the worklet's
18389
- * creation relative to all other shared storage worklets created by
18390
- * documents using the current storage partition.
18391
- * Present only for SharedStorageAccessMethods: addModule, createWorklet.
18392
- */
18393
- workletOrdinal?: integer;
18394
- /**
18395
- * Hex representation of the DevTools token used as the TargetID for the
18396
- * associated shared storage worklet.
18397
- * Present only for SharedStorageAccessMethods: addModule, createWorklet,
18398
- * run, selectURL, and any other SharedStorageAccessMethod when the
18399
- * SharedStorageAccessScope is sharedStorageWorklet.
18400
- */
18401
- workletTargetId?: Target.TargetID;
18402
- /**
18403
- * Name of the lock to be acquired, if present.
18404
- * Optionally present only for SharedStorageAccessMethods: batchUpdate,
18405
- * set, append, delete, and clear.
18406
- */
18407
- withLock?: string;
18408
- /**
18409
- * If the method has been called as part of a batchUpdate, then this
18410
- * number identifies the batch to which it belongs.
18411
- * Optionally present only for SharedStorageAccessMethods:
18412
- * batchUpdate (required), set, append, delete, and clear.
18413
- */
18414
- batchUpdateId?: string;
18415
- /**
18416
- * Number of modifier methods sent in batch.
18417
- * Present only for SharedStorageAccessMethod: batchUpdate.
18418
- */
18419
- batchSize?: integer;
18420
- }
18421
-
18422
18308
  export const enum StorageBucketsDurability {
18423
18309
  Relaxed = 'relaxed',
18424
18310
  Strict = 'strict',
@@ -18646,50 +18532,6 @@ export namespace Storage {
18646
18532
  didDeleteTokens: boolean;
18647
18533
  }
18648
18534
 
18649
- export interface GetSharedStorageMetadataRequest {
18650
- ownerOrigin: string;
18651
- }
18652
-
18653
- export interface GetSharedStorageMetadataResponse extends ProtocolResponseWithError {
18654
- metadata: SharedStorageMetadata;
18655
- }
18656
-
18657
- export interface GetSharedStorageEntriesRequest {
18658
- ownerOrigin: string;
18659
- }
18660
-
18661
- export interface GetSharedStorageEntriesResponse extends ProtocolResponseWithError {
18662
- entries: SharedStorageEntry[];
18663
- }
18664
-
18665
- export interface SetSharedStorageEntryRequest {
18666
- ownerOrigin: string;
18667
- key: string;
18668
- value: string;
18669
- /**
18670
- * If `ignoreIfPresent` is included and true, then only sets the entry if
18671
- * `key` doesn't already exist.
18672
- */
18673
- ignoreIfPresent?: boolean;
18674
- }
18675
-
18676
- export interface DeleteSharedStorageEntryRequest {
18677
- ownerOrigin: string;
18678
- key: string;
18679
- }
18680
-
18681
- export interface ClearSharedStorageEntriesRequest {
18682
- ownerOrigin: string;
18683
- }
18684
-
18685
- export interface ResetSharedStorageBudgetRequest {
18686
- ownerOrigin: string;
18687
- }
18688
-
18689
- export interface SetSharedStorageTrackingRequest {
18690
- enable: boolean;
18691
- }
18692
-
18693
18535
  export interface SetStorageBucketTrackingRequest {
18694
18536
  storageKey: string;
18695
18537
  enable: boolean;
@@ -18791,79 +18633,6 @@ export namespace Storage {
18791
18633
  bucketId: string;
18792
18634
  }
18793
18635
 
18794
- /**
18795
- * Shared storage was accessed by the associated page.
18796
- * The following parameters are included in all events.
18797
- */
18798
- export interface SharedStorageAccessedEvent {
18799
- /**
18800
- * Time of the access.
18801
- */
18802
- accessTime: Network.TimeSinceEpoch;
18803
- /**
18804
- * Enum value indicating the access scope.
18805
- */
18806
- scope: SharedStorageAccessScope;
18807
- /**
18808
- * Enum value indicating the Shared Storage API method invoked.
18809
- */
18810
- method: SharedStorageAccessMethod;
18811
- /**
18812
- * DevTools Frame Token for the primary frame tree's root.
18813
- */
18814
- mainFrameId: Page.FrameId;
18815
- /**
18816
- * Serialization of the origin owning the Shared Storage data.
18817
- */
18818
- ownerOrigin: string;
18819
- /**
18820
- * Serialization of the site owning the Shared Storage data.
18821
- */
18822
- ownerSite: string;
18823
- /**
18824
- * The sub-parameters wrapped by `params` are all optional and their
18825
- * presence/absence depends on `type`.
18826
- */
18827
- params: SharedStorageAccessParams;
18828
- }
18829
-
18830
- /**
18831
- * A shared storage run or selectURL operation finished its execution.
18832
- * The following parameters are included in all events.
18833
- */
18834
- export interface SharedStorageWorkletOperationExecutionFinishedEvent {
18835
- /**
18836
- * Time that the operation finished.
18837
- */
18838
- finishedTime: Network.TimeSinceEpoch;
18839
- /**
18840
- * Time, in microseconds, from start of shared storage JS API call until
18841
- * end of operation execution in the worklet.
18842
- */
18843
- executionTime: integer;
18844
- /**
18845
- * Enum value indicating the Shared Storage API method invoked.
18846
- */
18847
- method: SharedStorageAccessMethod;
18848
- /**
18849
- * ID of the operation call.
18850
- */
18851
- operationId: string;
18852
- /**
18853
- * Hex representation of the DevTools token used as the TargetID for the
18854
- * associated shared storage worklet.
18855
- */
18856
- workletTargetId: Target.TargetID;
18857
- /**
18858
- * DevTools Frame Token for the primary frame tree's root.
18859
- */
18860
- mainFrameId: Page.FrameId;
18861
- /**
18862
- * Serialization of the origin owning the Shared Storage data.
18863
- */
18864
- ownerOrigin: string;
18865
- }
18866
-
18867
18636
  export interface StorageBucketCreatedOrUpdatedEvent {
18868
18637
  bucketInfo: StorageBucketInfo;
18869
18638
  }
@@ -20247,7 +20016,7 @@ export namespace WebAuthn {
20247
20016
  * every assertion operation will report a value of 0.
20248
20017
  * See https://w3c.github.io/webauthn/#signature-counter
20249
20018
  */
20250
- signCount: integer;
20019
+ signCount: number;
20251
20020
  /**
20252
20021
  * The large blob associated with the credential.
20253
20022
  * See https://w3c.github.io/webauthn/#sctn-large-blob-extension
@@ -20386,7 +20155,7 @@ export namespace WebAuthn {
20386
20155
  * assertion operation will report a value of 0.
20387
20156
  * See https://w3c.github.io/webauthn/#signature-counter
20388
20157
  */
20389
- signCount?: integer;
20158
+ signCount?: number;
20390
20159
  }
20391
20160
 
20392
20161
  /**
@@ -20438,6 +20207,10 @@ export namespace WebMCP {
20438
20207
  * A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
20439
20208
  */
20440
20209
  untrustedContent?: boolean;
20210
+ /**
20211
+ * A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.
20212
+ */
20213
+ consequential?: boolean;
20441
20214
  /**
20442
20215
  * If the declarative tool was declared with the autosubmit attribute.
20443
20216
  */
@@ -18,7 +18,9 @@ import {
18
18
  } from './agents/AiAgent.js';
19
19
  import {type ExecuteJsAgentOptions, executeJsCode} from './agents/ExecuteJavascript.js';
20
20
  import {ChangeManager} from './ChangeManager.js';
21
+ import {AccessibilityContext} from './contexts/AccessibilityContext.js';
21
22
  import {DOMNodeContext} from './contexts/DOMNodeContext.js';
23
+ import {PerformanceTraceContext} from './contexts/PerformanceTraceContext.js';
22
24
  import {debugLog} from './debug.js';
23
25
  import {ExtensionScope} from './ExtensionScope.js';
24
26
  import type {Skill, SkillName} from './skills/Skill.js';
@@ -47,7 +49,7 @@ Your role is to help web developers debug, analyze, and optimize web application
47
49
  # Workflow
48
50
  1. **Analyze**: Understand the user's intent, the context provided, and what they are trying to achieve.
49
51
  2. **Investigate**: Proactively use your learned skills and tools to gather live data. Do not make assumptions or guess without sufficient evidence.
50
- 3. **Analyze**: Explore multiple potential explanations and solutions. Distinguish between the primary root cause and contributing factors.
52
+ 3. **Diagnose**: Explore multiple potential explanations and solutions. Distinguish between the primary root cause and contributing factors.
51
53
  4. **Respond**: Provide a structured, clear, and actionable response.
52
54
 
53
55
  # Response Structure
@@ -57,9 +59,14 @@ If the user asks a question that requires an investigation or debugging, use thi
57
59
  * **Suggestion(s)**: List actionable solution suggestion(s) in order of impact.
58
60
  - Example: "**Suggestion**: [Suggestion]" or "**Suggestions**:" followed by a bulleted list.
59
61
 
62
+ # Follow-up Suggestions
63
+ * Output a list of suggested follow-up queries or actions for the user at the very end of your response.
64
+ * The format MUST be SUGGESTIONS: ["suggestion 1", "suggestion 2"] on its own single line.
65
+ * Ensure suggestions are relevant, concise, and helpful next steps for the user.
66
+
60
67
  # Constraints
61
68
  * **CRITICAL**: You are a web development assistant. NEVER provide answers to questions of unrelated topics (such as legal advice, financial advice, personal opinions, medical advice, religion, race, politics, sexuality, gender, or any other non-web-development topics). If asked about these, respond with: "Sorry, I can't answer that. I'm best at questions about web development and debugging."
62
- * **CRITICAL**: Do not write full Python programs or other scripts to interact with the environment. Only invoke the allowed tools.
69
+ * **CRITICAL**: Do not write standalone scripts (such as Python or bash) or arbitrary code to interact with the environment. The only way to execute code in the inspected page is via the 'executeJavaScript' tool.
63
70
  * **CRITICAL**: Do not expose raw, internal system identifiers (such as database IDs, internal node paths, or event keys) directly to the user. Use descriptive names instead.`;
64
71
 
65
72
  export interface AiAgent2Options extends ExecuteJsAgentOptions {
@@ -69,9 +76,9 @@ export interface AiAgent2Options extends ExecuteJsAgentOptions {
69
76
 
70
77
  export class AiAgent2 extends AiAgent<unknown> {
71
78
  // TODO: The static preamble is a placeholder and will eventually live server-side.
72
- readonly preamble = preamble;
73
- readonly clientFeature = Host.AidaClient.ClientFeature.CHROME_DEVTOOLS_V2_AGENT;
74
- readonly userTier = 'TESTERS';
79
+ readonly preamble: string = preamble;
80
+ readonly clientFeature: Host.AidaClient.ClientFeature = Host.AidaClient.ClientFeature.CHROME_DEVTOOLS_V2_AGENT;
81
+ readonly userTier: string = 'TESTERS';
75
82
 
76
83
  #changes: ChangeManager;
77
84
  #execJs: typeof executeJsCode;
@@ -85,9 +92,12 @@ export class AiAgent2 extends AiAgent<unknown> {
85
92
  }
86
93
 
87
94
  protected override async preRun(): Promise<void> {
95
+ // One-way latch: once sensitive data enters the conversation history,
96
+ // logging must remain disabled for the lifetime of this agent instance.
88
97
  if (this.context && !this.context.isLoggingEnabled()) {
89
- this.setServerSideLoggingActive(false);
98
+ this.disableServerSideLogging();
90
99
  }
100
+
91
101
  const target = this.targetManager.primaryPageTarget();
92
102
  const domModel = target?.model(SDK.DOMModel.DOMModel);
93
103
  // Ensure the DOM document is requested and cached in DOMModel so that
@@ -124,7 +134,7 @@ export class AiAgent2 extends AiAgent<unknown> {
124
134
  this.#declaredTools.add('learnSkills');
125
135
  this.declareFunction<{skills: SkillName[]}>('learnSkills', {
126
136
  description: () => {
127
- const unloadedSkills = Object.keys(SKILLS).filter(name => !this.#activeSkills.has(name as SkillName));
137
+ const unloadedSkills = Object.keys(this.getSkills()).filter(name => !this.#activeSkills.has(name as SkillName));
128
138
  return `Loads the specified skills to gain access to their specialized tools. Call this ONLY for skills listed under Available skills that are not yet loaded. Do not call this for skills that are already loaded. Available skills that are not yet loaded: ${
129
139
  unloadedSkills.join(', ')}.`;
130
140
  },
@@ -183,6 +193,9 @@ QUERY: ${query}`;
183
193
  return enhancedQuery;
184
194
  }
185
195
 
196
+ // Note: Test assertion helpers in front_end/testing/AiAssistanceHelpers.ts (assertSkillLoaded,
197
+ // assertSkillNotLoaded) rely on this formatting (`Available skills that are not yet loaded:`
198
+ // and `- ${name}: ${skill.description}`). If this format is updated, update those helpers too.
186
199
  const skillsManifest = unloadedSkills.map(([name, skill]) => `- ${name}: ${skill.description}`).join('\n');
187
200
  return `Available skills that are not yet loaded:
188
201
  ${skillsManifest}
@@ -266,7 +279,6 @@ User query: ${enhancedQuery}`;
266
279
  displayInfoFromArgs: tool.displayInfoFromArgs,
267
280
  handler: (args, options) => {
268
281
  const context: AllToolsCapabilities = {
269
- conversationContext: this.context ?? null,
270
282
  changeManager: this.#changes,
271
283
  createExtensionScope: this.#createExtensionScope.bind(this),
272
284
  execJs: this.#execJs,
@@ -274,10 +286,12 @@ User query: ${enhancedQuery}`;
274
286
  (this.context instanceof DOMNodeContext ? this.context.getItem() : this.#getDocumentBodyNode()),
275
287
  getTarget: () => this.targetManager.primaryPageTarget(),
276
288
  getEstablishedOrigin: () => this.#getConversationOrigin(),
277
- lighthouseRecording: this.#lighthouseRecording,
289
+ getLighthouseReport: () => (this.context instanceof AccessibilityContext ? this.context.getItem() : null),
290
+ runLighthouse: async overrides => await (this.#lighthouseRecording?.(overrides) ?? null),
291
+ getPerformanceTraceContext: () => (this.context instanceof PerformanceTraceContext ? this.context : null),
278
292
  performanceRecordAndReload: this.#performanceRecordAndReload,
279
- setLoggingEnabled: (enabled: boolean) => {
280
- this.setServerSideLoggingActive(enabled);
293
+ disableLogging: () => {
294
+ this.disableServerSideLogging();
281
295
  },
282
296
  };
283
297
  return tool.handler(args, context, options);