chrome-devtools-frontend 1.0.1739869 → 1.0.1742811

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 (272) hide show
  1. package/.agents/rules/ui-and-widgets/ui-accessibility-and-semantic-html.md +1 -1
  2. package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +44 -7
  3. package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +1 -1
  4. package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
  5. package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +1 -1
  6. package/.agents/skills/code-review/SKILL.md +23 -6
  7. package/.agents/skills/devtools-verification/SKILL.md +2 -1
  8. package/.agents/skills/migrate-chromium-test/SKILL.md +1 -0
  9. package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -11
  10. package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +41 -23
  11. package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +12 -7
  12. package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -0
  13. package/.agents/skills/ui-widgets/SKILL.md +22 -7
  14. package/.agents/skills/version-control/SKILL.md +10 -1
  15. package/.agents/skills/visual-regression-audit/SKILL.md +88 -0
  16. package/.gitallowed +2 -1
  17. package/.stylelintignore +1 -0
  18. package/.stylelintrc.json +2 -0
  19. package/AUTHORS +1 -0
  20. package/DIR_METADATA +2 -1
  21. package/PRESUBMIT_test.py +143 -0
  22. package/config/owner/INFRA_OWNERS +0 -1
  23. package/docs/contributing/infrastructure.md +2 -2
  24. package/docs/ui_engineering.md +14 -4
  25. package/eslint.config.mjs +1 -18
  26. package/front_end/application_tokens.css +0 -35
  27. package/front_end/core/host/AidaClient.ts +1 -1
  28. package/front_end/core/host/AidaClientTypes.ts +2 -0
  29. package/front_end/core/host/AidaErrors.ts +3 -3
  30. package/front_end/core/host/AidaGcaTranslation.ts +39 -0
  31. package/front_end/core/host/GcaClient.ts +32 -20
  32. package/front_end/core/host/GcaTypes.ts +4 -2
  33. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
  34. package/front_end/core/i18n/DevToolsLocale.ts +0 -1
  35. package/front_end/core/sdk/DebuggerModel.ts +25 -13
  36. package/front_end/core/sdk/PreloadingModel.ts +2 -2
  37. package/front_end/core/sdk/RehydratingConnection.ts +59 -30
  38. package/front_end/core/sdk/StorageKeyManager.ts +0 -1
  39. package/front_end/core/sdk/Target.ts +6 -0
  40. package/front_end/core/sdk/TargetManager.ts +10 -4
  41. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +12 -2
  42. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +159 -52
  43. package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +77 -25
  44. package/front_end/entrypoints/main/MainImpl.ts +32 -15
  45. package/front_end/models/ai_assistance/AiAgent2.ts +95 -46
  46. package/front_end/models/ai_assistance/AiConversation.ts +1 -1
  47. package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
  48. package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +3 -2
  49. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
  50. package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +1 -1
  51. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +5 -4
  52. package/front_end/models/ai_assistance/performance/AICallTree.ts +7 -9
  53. package/front_end/models/ai_assistance/performance/AIQueries.ts +4 -8
  54. package/front_end/models/ai_assistance/skills/SkillRegistry.ts +11 -1
  55. package/front_end/models/ai_assistance/skills/lighthouse.md +1 -0
  56. package/front_end/models/ai_assistance/skills/network.md +3 -4
  57. package/front_end/models/ai_assistance/skills/sources.md +1 -2
  58. package/front_end/models/ai_assistance/skills/styling.md +3 -4
  59. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +11 -3
  60. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +84 -23
  61. package/front_end/models/ai_assistance/tools/ListSources.ts +41 -13
  62. package/front_end/models/badges/Badge.ts +0 -1
  63. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  64. package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
  65. package/front_end/models/breakpoints/BreakpointManager.ts +2 -4
  66. package/front_end/models/breakpoints/RecurringPauseDetector.ts +140 -0
  67. package/front_end/models/breakpoints/breakpoints.ts +2 -1
  68. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +2 -2
  69. package/front_end/models/persistence/Automapping.ts +0 -1
  70. package/front_end/models/trace/Processor.ts +16 -7
  71. package/front_end/models/trace/README.md +17 -1
  72. package/front_end/models/trace/extras/ThirdParties.ts +4 -6
  73. package/front_end/models/trace/extras/TraceTree.ts +69 -72
  74. package/front_end/models/trace/handlers/MetaHandler.ts +3 -0
  75. package/front_end/models/trace/handlers/types.ts +15 -0
  76. package/front_end/models/trace/helpers/Trace.ts +5 -3
  77. package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -1
  78. package/front_end/models/web_mcp/WebMCPModel.ts +19 -9
  79. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +30 -3
  80. package/front_end/panels/ai_assistance/components/ChatMessage.ts +2 -4
  81. package/front_end/panels/ai_assistance/components/chatMessage.css +1 -22
  82. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -19
  83. package/front_end/panels/ai_assistance/components/optInChangeDialog.css +1 -1
  84. package/front_end/panels/ai_assistance/components/walkthroughView.css +0 -13
  85. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -2
  86. package/front_end/panels/animation/AnimationTimeline.ts +5 -3
  87. package/front_end/panels/animation/animationTimeline.css +10 -8
  88. package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -11
  89. package/front_end/panels/application/ReportingApiView.ts +0 -1
  90. package/front_end/panels/application/SubAppsView.ts +0 -1
  91. package/front_end/panels/application/WebMCPTreeElement.ts +3 -6
  92. package/front_end/panels/application/WebMCPView.ts +30 -0
  93. package/front_end/panels/application/components/ReportsGrid.ts +0 -1
  94. package/front_end/panels/application/components/backForwardCacheView.css +0 -7
  95. package/front_end/panels/application/components/permissionsPolicySection.css +2 -2
  96. package/front_end/panels/application/components/protocolHandlersView.css +46 -39
  97. package/front_end/panels/application/components/trustTokensView.css +0 -4
  98. package/front_end/panels/application/cookieItemsView.css +0 -7
  99. package/front_end/panels/application/indexedDBViews.css +0 -6
  100. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +0 -2
  101. package/front_end/panels/application/preloading/components/PreloadingString.ts +0 -1
  102. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -5
  103. package/front_end/panels/application/preloading/components/preloadingGrid.css +0 -9
  104. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -9
  105. package/front_end/panels/application/serviceWorkersView.css +5 -4
  106. package/front_end/panels/application/storageView.css +0 -5
  107. package/front_end/panels/application/webMCPView.css +17 -0
  108. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +15 -20
  109. package/front_end/panels/changes/changesView.css +0 -5
  110. package/front_end/panels/common/ExtensionServer.ts +80 -10
  111. package/front_end/panels/console/ConsolePanel.ts +92 -18
  112. package/front_end/panels/console/consoleContextSelector.css +1 -8
  113. package/front_end/panels/console/consoleInsightTeaser.css +10 -17
  114. package/front_end/panels/console/consolePinPane.css +3 -1
  115. package/front_end/panels/console/consoleView.css +13 -17
  116. package/front_end/panels/coverage/coverageListView.css +0 -4
  117. package/front_end/panels/css_overview/cssOverviewCompletedView.css +0 -22
  118. package/front_end/panels/css_overview/cssOverviewStartView.css +0 -43
  119. package/front_end/panels/developer_resources/developerResourcesListView.css +0 -4
  120. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +52 -45
  121. package/front_end/panels/elements/LayoutPane.ts +1 -3
  122. package/front_end/panels/elements/PropertiesWidget.ts +26 -8
  123. package/front_end/panels/elements/PropertyRenderer.ts +45 -21
  124. package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -7
  125. package/front_end/panels/elements/StyleEditorWidget.ts +110 -63
  126. package/front_end/panels/elements/StylePropertiesSection.ts +14 -5
  127. package/front_end/panels/elements/StylePropertyTreeElement.ts +529 -518
  128. package/front_end/panels/elements/StylesContainer.ts +5 -6
  129. package/front_end/panels/elements/StylesSidebarPane.ts +12 -15
  130. package/front_end/panels/elements/components/CSSVariableValueView.ts +17 -4
  131. package/front_end/panels/elements/components/StylePropertyEditor.ts +178 -140
  132. package/front_end/panels/elements/components/cssQuery.css +1 -1
  133. package/front_end/panels/elements/components/stylePropertyEditor.css +60 -56
  134. package/front_end/panels/elements/layoutPane.css +2 -2
  135. package/front_end/panels/elements/metricsSidebarPane.css +6 -7
  136. package/front_end/panels/elements/platformFontsWidget.css +1 -1
  137. package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -6
  138. package/front_end/panels/elements/stylesSidebarPane.css +3 -4
  139. package/front_end/panels/emulation/deviceModeView.css +1 -1
  140. package/front_end/panels/event_listeners/EventListenersView.ts +9 -2
  141. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  142. package/front_end/panels/explain/components/consoleInsight.css +1 -2
  143. package/front_end/panels/issues/issuesTree.css +6 -43
  144. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  145. package/front_end/panels/layer_viewer/paintProfiler.css +4 -3
  146. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -6
  147. package/front_end/panels/lighthouse/lighthouseStartView.css +5 -16
  148. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +0 -1
  149. package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
  150. package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +2 -2
  151. package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -1
  152. package/front_end/panels/media/playerListView.css +1 -2
  153. package/front_end/panels/media/playerPropertiesView.css +1 -1
  154. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
  155. package/front_end/panels/network/NetworkLogView.ts +594 -580
  156. package/front_end/panels/network/RequestCookiesView.ts +0 -1
  157. package/front_end/panels/network/networkConfigView.css +1 -2
  158. package/front_end/panels/network/networkLogView.css +363 -364
  159. package/front_end/panels/network/networkPanel.css +1 -5
  160. package/front_end/panels/network/networkTimingTable.css +1 -1
  161. package/front_end/panels/network/networkWaterfallColumn.css +1 -1
  162. package/front_end/panels/network/requestConditionsDrawer.css +0 -4
  163. package/front_end/panels/network/requestCookiesView.css +7 -1
  164. package/front_end/panels/network/requestPayloadTree.css +0 -4
  165. package/front_end/panels/profiler/HeapProfileView.ts +1 -3
  166. package/front_end/panels/profiler/HeapSnapshotView.ts +0 -7
  167. package/front_end/panels/recorder/RecorderPanel.ts +1 -1
  168. package/front_end/panels/recorder/RecordingView.ts +10 -10
  169. package/front_end/panels/recorder/StepView.ts +5 -4
  170. package/front_end/panels/recorder/createRecordingView.css +1 -1
  171. package/front_end/panels/recorder/recorderPanel.css +0 -8
  172. package/front_end/panels/recorder/recordingListView.css +4 -4
  173. package/front_end/panels/recorder/recordingView.css +12 -20
  174. package/front_end/panels/recorder/stepEditor.css +4 -4
  175. package/front_end/panels/recorder/stepView.css +31 -9
  176. package/front_end/panels/recorder/timelineSection.css +4 -0
  177. package/front_end/panels/screencast/ScreencastApp.ts +0 -1
  178. package/front_end/panels/security/mainView.css +1 -1
  179. package/front_end/panels/security/originView.css +2 -2
  180. package/front_end/panels/sensors/SensorsView.ts +273 -346
  181. package/front_end/panels/settings/BackendLinkingSettingsTab.ts +0 -1
  182. package/front_end/panels/settings/backendLinkingSettingsTab.css +7 -7
  183. package/front_end/panels/settings/components/syncSection.css +0 -1
  184. package/front_end/panels/settings/workspaceSettingsTab.css +0 -5
  185. package/front_end/panels/sources/CSSPlugin.ts +177 -98
  186. package/front_end/panels/sources/DebuggerPausedMessage.ts +100 -27
  187. package/front_end/panels/sources/NavigatorView.ts +926 -946
  188. package/front_end/panels/sources/SourcesPanel.ts +9 -2
  189. package/front_end/panels/sources/breakpointsView.css +6 -29
  190. package/front_end/panels/sources/components/HeadersView.css +2 -2
  191. package/front_end/panels/sources/debuggerPausedMessage.css +7 -0
  192. package/front_end/panels/sources/navigatorTree.css +7 -2
  193. package/front_end/panels/sources/sourcesNavigator.css +0 -9
  194. package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -10
  195. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +3 -0
  196. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +0 -10
  197. package/front_end/panels/timeline/ModificationsManager.ts +0 -1
  198. package/front_end/panels/timeline/ThreadAppender.ts +2 -6
  199. package/front_end/panels/timeline/TimelinePanel.ts +2 -2
  200. package/front_end/panels/timeline/TimelineTreeView.ts +38 -41
  201. package/front_end/panels/timeline/TimelineUIUtils.ts +8 -10
  202. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +0 -2
  203. package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -6
  204. package/front_end/panels/timeline/components/insights/baseInsightComponent.css +0 -12
  205. package/front_end/panels/timeline/components/interactionBreakdown.css +1 -2
  206. package/front_end/panels/timeline/components/layoutShiftDetails.css +2 -9
  207. package/front_end/panels/timeline/components/liveMetricsView.css +0 -16
  208. package/front_end/panels/timeline/components/metricCard.css +1 -5
  209. package/front_end/panels/timeline/components/networkRequestDetails.css +3 -4
  210. package/front_end/panels/timeline/components/networkRequestTooltip.css +6 -4
  211. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
  212. package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -2
  213. package/front_end/panels/timeline/timelineDetailsView.css +1 -12
  214. package/front_end/panels/timeline/timelineFlamechartPopover.css +0 -4
  215. package/front_end/panels/timeline/timelineMiniMap.css +1 -4
  216. package/front_end/panels/timeline/timelinePanel.css +0 -4
  217. package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
  218. package/front_end/panels/timeline/timelineTreeView.css +0 -12
  219. package/front_end/panels/timeline/utils/EntryNodes.ts +1 -1
  220. package/front_end/panels/webauthn/webauthnPane.css +1 -7
  221. package/front_end/panels/whats_new/ReleaseNoteText.ts +1 -1
  222. package/front_end/third_party/chromium/README.chromium +1 -1
  223. package/front_end/ui/components/adorners/adorner.css +1 -1
  224. package/front_end/ui/components/buttons/button.css +0 -28
  225. package/front_end/ui/components/buttons/textButton.css +1 -45
  226. package/front_end/ui/components/input/checkbox.css +3 -3
  227. package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
  228. package/front_end/ui/components/menus/Menu.ts +14 -0
  229. package/front_end/ui/components/menus/menu.css +2 -14
  230. package/front_end/ui/components/menus/menuItem.css +0 -4
  231. package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
  232. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  233. package/front_end/ui/components/survey_link/surveyLink.css +3 -3
  234. package/front_end/ui/components/switch/switch.css +3 -2
  235. package/front_end/ui/components/text_editor/theme.ts +1 -1
  236. package/front_end/ui/components/tooltips/Tooltip.ts +3 -3
  237. package/front_end/ui/components/tree_outline/treeOutline.css +0 -23
  238. package/front_end/ui/legacy/ContextMenu.ts +5 -5
  239. package/front_end/ui/legacy/SoftContextMenu.ts +24 -8
  240. package/front_end/ui/legacy/Toolbar.ts +1 -1
  241. package/front_end/ui/legacy/Treeoutline.ts +31 -78
  242. package/front_end/ui/legacy/UIUtils.ts +9 -17
  243. package/front_end/ui/legacy/checkboxTextLabel.css +2 -44
  244. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +39 -27
  245. package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -10
  246. package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -6
  247. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +34 -26
  248. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
  249. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
  250. package/front_end/ui/legacy/components/inline_editor/swatchPopover.css +1 -1
  251. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +49 -1
  252. package/front_end/ui/legacy/components/object_ui/objectPopover.css +0 -4
  253. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -9
  254. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
  255. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -1
  256. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +0 -5
  257. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +6 -3
  258. package/front_end/ui/legacy/components/source_frame/JSONView.ts +95 -1
  259. package/front_end/ui/legacy/filter.css +1 -1
  260. package/front_end/ui/legacy/inspectorCommon.css +6 -28
  261. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  262. package/front_end/ui/legacy/listWidget.css +1 -1
  263. package/front_end/ui/legacy/progressIndicator.css +1 -1
  264. package/front_end/ui/legacy/tabbedPane.css +6 -2
  265. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  266. package/front_end/ui/visual_logging/LoggingDriver.ts +4 -0
  267. package/front_end/ui/visual_logging/visual_logging.ts +1 -1
  268. package/inspector_overlay/common.ts +0 -3
  269. package/inspector_overlay/main.ts +1 -3
  270. package/inspector_overlay/tool_source_order.css +0 -4
  271. package/package.json +1 -1
  272. package/front_end/generated/SupportedCSSProperties.ts +0 -9705
@@ -551,6 +551,11 @@ export abstract class ObjectTreeNodeBase extends Common.ObjectWrapper.ObjectWrap
551
551
  if (this.#expanded !== val) {
552
552
  this.#expanded = val;
553
553
  this.dispatchEventToListeners(ObjectTreeNodeBase.Events.EXPANDED_CHANGED, val);
554
+ if (val) {
555
+ for (let ancestor = this.parent; ancestor; ancestor = ancestor.parent) {
556
+ ancestor.dispatchEventToListeners(ObjectTreeNodeBase.Events.NODE_EXPANDED, this);
557
+ }
558
+ }
554
559
  }
555
560
  }
556
561
 
@@ -804,12 +809,14 @@ export namespace ObjectTreeNodeBase {
804
809
  CHILDREN_CHANGED = 'children-changed',
805
810
  FILTER_CHANGED = 'filter-changed',
806
811
  EXPANDED_CHANGED = 'expanded-changed',
812
+ NODE_EXPANDED = 'node-expanded',
807
813
  }
808
814
  export interface EventTypes {
809
815
  [Events.VALUE_CHANGED]: void;
810
816
  [Events.CHILDREN_CHANGED]: void;
811
817
  [Events.FILTER_CHANGED]: void;
812
818
  [Events.EXPANDED_CHANGED]: boolean;
819
+ [Events.NODE_EXPANDED]: ObjectTreeNodeBase;
813
820
  }
814
821
  }
815
822
 
@@ -889,7 +896,7 @@ class ArrayGroupTreeNode extends ObjectTreeNodeBase {
889
896
 
890
897
  export class ObjectTreeNode extends ObjectTreeNodeBase {
891
898
  #path?: string;
892
- showAllChildren: boolean = false;
899
+ #showAllChildren = false;
893
900
  constructor(
894
901
  readonly property: SDK.RemoteObject.RemoteObjectProperty,
895
902
  parent: ObjectTreeNodeBase|undefined,
@@ -897,6 +904,17 @@ export class ObjectTreeNode extends ObjectTreeNodeBase {
897
904
  ) {
898
905
  super(parent, options);
899
906
  }
907
+
908
+ get showAllChildren(): boolean {
909
+ return this.#showAllChildren;
910
+ }
911
+
912
+ set showAllChildren(value: boolean) {
913
+ if (this.#showAllChildren !== value) {
914
+ this.#showAllChildren = value;
915
+ this.dispatchEventToListeners(ObjectTreeNodeBase.Events.CHILDREN_CHANGED);
916
+ }
917
+ }
900
918
  override get object(): SDK.RemoteObject.RemoteObject|undefined {
901
919
  return this.property.value;
902
920
  }
@@ -1043,6 +1061,36 @@ export class ObjectTreeNode extends ObjectTreeNodeBase {
1043
1061
  }
1044
1062
  }
1045
1063
 
1064
+ // 3. Fall back to matching the property path (e.g. items[1].id) if name and value did not match
1065
+ if (results.length === 0 && !this.property.synthetic && this.path !== this.name) {
1066
+ const parentPath =
1067
+ (this.parent instanceof ObjectTreeNode && !this.parent.property.synthetic) ? this.parent.path : '';
1068
+ const matchesLeafInPath = (candidatePath: string, candidateParentPath: string): boolean => {
1069
+ const leafStart = candidateParentPath.length + 1;
1070
+ for (const m of candidatePath.matchAll(nameGlobalRegex)) {
1071
+ const start = m.index ?? 0;
1072
+ const end = start + m[0].length;
1073
+ if (start < leafStart && end > leafStart) {
1074
+ return true;
1075
+ }
1076
+ }
1077
+ return false;
1078
+ };
1079
+ // Also support dot-notation array indexing by translating e.g. items[1].id into items.1.id.
1080
+ const normalizedPath = this.path.replace(/\[(\d+)\]/g, '.$1');
1081
+ const normalizedParentPath = parentPath.replace(/\[(\d+)\]/g, '.$1');
1082
+ if (matchesLeafInPath(this.path, parentPath) ||
1083
+ (normalizedPath !== this.path && matchesLeafInPath(normalizedPath, normalizedParentPath))) {
1084
+ results.push({
1085
+ node: this,
1086
+ isPostOrderMatch: false,
1087
+ matchIndexInNode: 0,
1088
+ matchType: 'name',
1089
+ range: new TextUtils.TextRange.SourceRange(0, nameText.length),
1090
+ });
1091
+ }
1092
+ }
1093
+
1046
1094
  return results;
1047
1095
  }
1048
1096
  }
@@ -35,10 +35,6 @@
35
35
  height: calc(100% - 22px);
36
36
  }
37
37
 
38
- .object-popover-container {
39
- display: inline-block;
40
- }
41
-
42
38
  .object-popover-description-box {
43
39
  padding: var(--sys-size-4);
44
40
  max-width: 350px;
@@ -31,7 +31,7 @@
31
31
 
32
32
  :host-context(.platform-mac) ::-webkit-scrollbar-thumb {
33
33
  background-color: var(--color-scrollbar-mac); /* stylelint-disable-line plugin/use_theme_colors */
34
- border-radius: 50px;
34
+ border-radius: var(--sys-shape-corner-full);
35
35
  }
36
36
 
37
37
  :host-context(.platform-mac) .chart-viewport-v-scroll:hover::-webkit-scrollbar-thumb {
@@ -63,11 +63,3 @@
63
63
  bottom: 0;
64
64
  text-align: center;
65
65
  }
66
-
67
- .chart-viewport-selection-overlay .time-span {
68
- white-space: nowrap;
69
- position: absolute;
70
- left: 0;
71
- right: 0;
72
- bottom: 0;
73
- }
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  .film-strip-view .frame .time {
14
- font-size: 10px;
14
+ font-size: var(--sys-typescale-body5-size);
15
15
  margin-top: var(--sys-size-2);
16
16
  }
17
17
 
@@ -43,7 +43,8 @@
43
43
  }
44
44
 
45
45
  .overview-grid-window-resizer::after {
46
- left: 5px;
46
+ /* 2px (--sys-size-2) ::before left inset + 1px (--sys-size-1) ::before width + 2px (--sys-size-2) inter-grip gap */
47
+ left: calc(2 * var(--sys-size-2) + var(--sys-size-1));
47
48
  }
48
49
 
49
50
  .overview-grid-window-resizer:focus-visible {
@@ -114,11 +114,6 @@ devtools-text-prompt {
114
114
  flex-shrink: 0;
115
115
  }
116
116
 
117
- .filtered-list-widget-item .deprecated-tag {
118
- font-size: var(--sys-typescale-body5-size);
119
- color: var(--sys-color-token-subtle);
120
- }
121
-
122
117
  .not-found-text {
123
118
  display: flex;
124
119
  align-items: center;
@@ -42,8 +42,11 @@ export function createSettingCheckbox(
42
42
  return label;
43
43
  }
44
44
 
45
- export function renderSettingSelect(setting: Common.Settings.Setting<unknown>, subtitle?: string,
46
- disabled?: boolean): TemplateResult {
45
+ /**
46
+ * @param optionTextOverrides maps option values to the text that is shown instead of the registered option text.
47
+ */
48
+ export function renderSettingSelect(setting: Common.Settings.Setting<unknown>, subtitle?: string, disabled?: boolean,
49
+ optionTextOverrides?: ReadonlyMap<string, string>): TemplateResult {
47
50
  const uiDescriptor = SettingUIRegistration.SettingUIRegistration.resolve(setting.descriptor());
48
51
  const name = uiDescriptor.title;
49
52
  const options = uiDescriptor.options;
@@ -86,7 +89,7 @@ export function renderSettingSelect(setting: Common.Settings.Setting<unknown>, s
86
89
  .selected=${setting.get() === option.value}
87
90
  jslog=${VisualLogging.item(Platform.StringUtilities.toKebabCase(option.value)).track({click: true})}
88
91
  >
89
- ${option.text}
92
+ ${optionTextOverrides?.get(option.value) ?? option.text}
90
93
  </option>
91
94
  `;
92
95
  }
@@ -109,6 +109,7 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
109
109
  }
110
110
  this.#parsedJSON = parsedJSON;
111
111
  this.objectTree = null;
112
+ this.#autoExpandCanceled = false;
112
113
  this.onSearchCanceled();
113
114
  this.requestUpdate();
114
115
  }
@@ -196,6 +197,7 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
196
197
  });
197
198
  if (!this.startCollapsed) {
198
199
  this.objectTree.expanded = true;
200
+ void this.#autoExpandInitial(this.objectTree);
199
201
  }
200
202
  this.objectTree.addEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.CHILDREN_CHANGED,
201
203
  this.#onChildrenChanged, this);
@@ -203,6 +205,73 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
203
205
  this.#onChildrenChanged, this);
204
206
  }
205
207
 
208
+ static readonly #AUTO_EXPAND_ROW_BUDGET = 30;
209
+ static readonly #AUTO_EXPAND_MAX_DEPTH = 4;
210
+ #autoExpandCanceled = false;
211
+
212
+ async #autoExpandInitial(tree: ObjectUI.ObjectPropertiesSection.ObjectTree): Promise<void> {
213
+ await tree.populateChildrenIfNeeded();
214
+ if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
215
+ return;
216
+ }
217
+
218
+ const rootChildren = Array.from(tree.treeNodeChildren());
219
+ let visibleRows = Math.max(rootChildren.length, tree.arrayLength);
220
+ let frontier = rootChildren.filter(n => n.hasChildren && n.canExpandRecursively);
221
+
222
+ for (let depth = 1; depth < JSONView.#AUTO_EXPAND_MAX_DEPTH && frontier.length > 0; depth++) {
223
+ // Rule 1: always unwrap a single-child wrapper chain (e.g. {data: {user: ...}}).
224
+ if (frontier.length === 1 && visibleRows <= JSONView.#AUTO_EXPAND_ROW_BUDGET) {
225
+ const only = frontier[0];
226
+ await only.populateChildrenIfNeeded();
227
+ if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
228
+ return;
229
+ }
230
+ const onlyChildren = Array.from(only.treeNodeChildren());
231
+ const added = Math.max(onlyChildren.length, only.arrayLength);
232
+ if (added > 1 && visibleRows + added > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
233
+ break;
234
+ }
235
+ only.expanded = true;
236
+ visibleRows += added;
237
+ frontier = onlyChildren.filter(n => n.hasChildren && n.canExpandRecursively);
238
+ continue;
239
+ }
240
+
241
+ // Rule 2: level-atomic expansion — expand every node at this depth or none.
242
+ let addedRows = 0;
243
+ for (const node of frontier) {
244
+ await node.populateChildrenIfNeeded();
245
+ if (this.objectTree !== tree || !tree.expanded || this.#autoExpandCanceled) {
246
+ return;
247
+ }
248
+ const nodeChildren = Array.from(node.treeNodeChildren());
249
+ addedRows += Math.max(nodeChildren.length, node.arrayLength);
250
+ if (visibleRows + addedRows > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
251
+ break;
252
+ }
253
+ }
254
+ if (visibleRows + addedRows > JSONView.#AUTO_EXPAND_ROW_BUDGET) {
255
+ break;
256
+ }
257
+
258
+ const nextFrontier: ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase[] = [];
259
+ for (const node of frontier) {
260
+ node.expanded = true;
261
+ for (const child of node.treeNodeChildren()) {
262
+ if (child.hasChildren && child.canExpandRecursively) {
263
+ nextFrontier.push(child);
264
+ }
265
+ }
266
+ }
267
+ visibleRows += addedRows;
268
+ frontier = nextFrontier;
269
+ }
270
+
271
+ tree.dispatchEventToListeners(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.CHILDREN_CHANGED);
272
+ this.requestUpdate();
273
+ }
274
+
206
275
  #onChildrenChanged(): void {
207
276
  this.requestUpdate();
208
277
  }
@@ -215,6 +284,26 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
215
284
  this.view({objectTree: this.objectTree, parsedJSON: this.#parsedJSON}, undefined, this.contentElement);
216
285
  }
217
286
 
287
+ static readonly #MAX_SEARCH_NODES = 10000;
288
+
289
+ async #populateForSearch(root: ObjectUI.ObjectPropertiesSection.ObjectTree): Promise<void> {
290
+ const queue: ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase[] = [root];
291
+ let visited = 0;
292
+ while (queue.length > 0 && visited < JSONView.#MAX_SEARCH_NODES) {
293
+ const node = queue.shift();
294
+ if (!node || !node.canExpandRecursively) {
295
+ continue;
296
+ }
297
+ visited++;
298
+ await node.populateChildrenIfNeeded();
299
+ for (const child of node.treeNodeChildren()) {
300
+ if (child.hasChildren) {
301
+ queue.push(child);
302
+ }
303
+ }
304
+ }
305
+ }
306
+
218
307
  private jumpToMatch(): void {
219
308
  if (this.searchableView) {
220
309
  this.search.updateSearchableView(this.searchableView);
@@ -223,9 +312,13 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
223
312
  if (currentMatch) {
224
313
  let current = currentMatch.node.parent;
225
314
  while (current) {
315
+ if (current instanceof ObjectUI.ObjectPropertiesSection.ObjectTreeNode) {
316
+ current.showAllChildren = true;
317
+ }
226
318
  current.expanded = true;
227
319
  current = current.parent;
228
320
  }
321
+ this.requestUpdate();
229
322
  }
230
323
  }
231
324
 
@@ -239,13 +332,14 @@ export class JSONView extends UI.Widget.VBox implements UI.SearchableView.Search
239
332
  async performSearch(searchConfig: UI.SearchableView.SearchConfig, shouldJump: boolean,
240
333
  jumpBackwards?: boolean): Promise<void> {
241
334
  this.initialize();
335
+ this.#autoExpandCanceled = true;
242
336
  this.onSearchCanceled();
243
337
  const searchRegex = searchConfig.toSearchRegex(true).regex;
244
338
  if (!this.objectTree) {
245
339
  return;
246
340
  }
247
341
 
248
- await this.objectTree.populateChildrenIfNeeded();
342
+ await this.#populateForSearch(this.objectTree);
249
343
 
250
344
  this.search.search(this.objectTree, jumpBackwards ?? false, (node, closeTag) => {
251
345
  if (closeTag || !searchRegex) {
@@ -105,7 +105,7 @@
105
105
  .filter-divider {
106
106
  background-color: var(--sys-color-divider);
107
107
  width: var(--sys-size-1);
108
- margin: 5px var(--sys-size-3);
108
+ margin: var(--sys-size-3);
109
109
  height: var(--sys-size-8);
110
110
  }
111
111
 
@@ -274,18 +274,6 @@ input[type='radio'] {
274
274
  }
275
275
  }
276
276
 
277
- @media (forced-colors: active) {
278
- input[type='radio'] {
279
- --gradient-start: ButtonFace;
280
- --gradient-end: ButtonFace;
281
-
282
- &:checked {
283
- --gradient-start: Highlight;
284
- --gradient-end: Highlight;
285
- }
286
- }
287
- }
288
-
289
277
  /* Range inputs */
290
278
  input[type='range'] {
291
279
  appearance: none;
@@ -297,8 +285,7 @@ input[type='range'] {
297
285
  background: none;
298
286
  }
299
287
 
300
- input[type='range']::-webkit-slider-thumb,
301
- .-theme-preserve {
288
+ input[type='range']::-webkit-slider-thumb {
302
289
  appearance: none;
303
290
  margin: 0;
304
291
  padding: 0;
@@ -602,7 +589,7 @@ dt-icon-label {
602
589
  button.link {
603
590
  border: none;
604
591
  background: none;
605
- padding: 3px;
592
+ padding: var(--sys-size-2);
606
593
  }
607
594
 
608
595
  button.link:focus-visible {
@@ -645,7 +632,7 @@ button.link:focus-visible {
645
632
  border: var(--override-spinner-size, 3px) solid
646
633
  var(--override-spinner-color, var(--sys-color-token-subtle));
647
634
  border-radius: var(--sys-shape-corner-medium-small);
648
- clip-path: rect(0, var(--clip-size, 15px), var(--clip-size, 15px), 0);
635
+ clip-path: rect(0 var(--clip-size, 15px) var(--clip-size, 15px) 0);
649
636
  content: '';
650
637
  position: absolute;
651
638
  animation: spinner-animation 1s linear infinite;
@@ -678,7 +665,7 @@ button.link:focus-visible {
678
665
  :host-context(.theme-with-dark-background) devtools-adorner {
679
666
  --override-adorner-border-color: var(--sys-color-tonal-outline);
680
667
  --override-adorner-active-background-color: var(
681
- --sys-color-state-riple-neutral-on-subtle
668
+ --sys-color-state-ripple-neutral-on-subtle
682
669
  );
683
670
  }
684
671
 
@@ -710,7 +697,6 @@ iframe.panel.extension {
710
697
 
711
698
  @media (forced-colors: active) {
712
699
  :root {
713
- --legacy-accent-color: Highlight;
714
700
  --legacy-focus-ring-inactive-shadow-color: ButtonText;
715
701
  }
716
702
  }
@@ -791,16 +777,8 @@ devtools-toolbar {
791
777
  }
792
778
  }
793
779
 
794
- .toolbar-item-search {
795
- min-width: 5.2em;
796
- max-width: 300px;
797
- flex: 1 1 auto;
798
- justify-content: start;
799
- overflow: revert;
800
- }
801
-
802
780
  .toolbar-text {
803
- margin: 0 5px;
781
+ margin: 0 var(--sys-size-3);
804
782
  flex: none;
805
783
  color: var(--ui-text);
806
784
  }
@@ -988,7 +966,7 @@ devtools-toolbar {
988
966
  .toolbar-divider {
989
967
  background-color: var(--sys-color-divider);
990
968
  width: var(--sys-size-1);
991
- margin: 5px var(--sys-size-3);
969
+ margin: var(--sys-size-3);
992
970
  height: var(--sys-size-8);
993
971
  }
994
972
 
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .collapsed-vertical-drawer-container {
18
- height: calc(100% - 27px);
18
+ height: 100%;
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  }
@@ -36,7 +36,7 @@
36
36
 
37
37
  .list-widget-input-validation-error {
38
38
  color: var(--sys-color-error);
39
- margin: 0 5px;
39
+ margin: 0 var(--sys-size-3);
40
40
  }
41
41
 
42
42
  .controls-container {
@@ -20,7 +20,7 @@
20
20
  .progress-indicator-shadow-container .title {
21
21
  text-overflow: ellipsis;
22
22
  overflow: hidden;
23
- max-width: 150px;
23
+ max-width: var(--sys-size-22);
24
24
  margin-right: var(--sys-size-2);
25
25
  color: var(--sys-color-token-subtle);
26
26
  }
@@ -243,7 +243,7 @@
243
243
  width: auto;
244
244
  flex: 0 0 auto;
245
245
  flex-direction: column;
246
- padding-top: 5px;
246
+ padding-top: var(--sys-size-3);
247
247
  overflow: hidden;
248
248
  }
249
249
 
@@ -277,7 +277,7 @@
277
277
  color: var(--sys-color-on-surface);
278
278
  position: relative;
279
279
 
280
- & > .tabbed-pane-header-tab-icon devtools-icon {
280
+ & > .tabbed-pane-header-tab-icon {
281
281
  margin: 0;
282
282
  margin-right: var(--sys-size-6);
283
283
  }
@@ -289,6 +289,10 @@
289
289
  & > .tabbed-pane-header-tab-icon devtools-icon {
290
290
  color: var(--app-color-navigation-drawer-label-selected);
291
291
  }
292
+
293
+ & > .tabbed-pane-header-tab-icon slot::slotted(devtools-icon) {
294
+ color: var(--app-color-navigation-drawer-label-selected);
295
+ }
292
296
  }
293
297
 
294
298
  &:focus-visible {
@@ -429,6 +429,7 @@ export const knownContextValues: Set<string> = new Set([
429
429
  'ai-permission-revoked',
430
430
  'ai-remove-allowed-tool',
431
431
  'ai-show-walkthrough-sidebar',
432
+ 'ai-v2-auto-learn-skill',
432
433
  'ai-v2-context-agent-change',
433
434
  'ai-v2-context-user-add',
434
435
  'ai-v2-context-user-change',
@@ -54,6 +54,10 @@ export function isLogging(): boolean {
54
54
  return logging;
55
55
  }
56
56
 
57
+ export function enableLogging(): void {
58
+ logging = true;
59
+ }
60
+
57
61
  export async function startLogging(options?: {
58
62
  processingThrottler?: Common.Throttler.Throttler,
59
63
  keyboardLogThrottler?: Common.Throttler.Throttler,
@@ -20,7 +20,7 @@ export {
20
20
  parseJsLog,
21
21
  VisualElements,
22
22
  } from './LoggingConfig.js';
23
- export {addDocument, startLogging, stopLogging} from './LoggingDriver.js';
23
+ export {addDocument, enableLogging, startLogging, stopLogging} from './LoggingDriver.js';
24
24
  export {logImpressions, logSettingAccess, logFunctionCall} from './LoggingEvents.js';
25
25
  export const logClick = (loggable: Loggable, event: Event, options: {doubleClick?: boolean} = {}): void =>
26
26
  LoggingEvents.logClick(LoggingDriver.clickLogThrottler)(loggable, event, options);
@@ -136,9 +136,6 @@ export class Overlay {
136
136
  setPlatform(platform: string): void {
137
137
  this.platform = platform;
138
138
  this.document.body.classList.add('platform-' + platform);
139
- if (!this._installed) {
140
- this.install();
141
- }
142
139
  }
143
140
 
144
141
  dispatch(message: unknown[]): void {
@@ -89,15 +89,13 @@ const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLooku
89
89
  }
90
90
  currentOverlay = overlays[overlayName];
91
91
  currentOverlay.setPlatform(platformName);
92
- // TODO: setPlatform invokes install() for compatibility with the backend.
93
- // The call to install() can be removed from setPlatform() after the backend is updated.
94
92
  if (!currentOverlay.installed) {
95
93
  currentOverlay.install();
96
94
  }
97
95
  } else if (functionName === 'setPlatform') {
98
96
  platformName = message[1] as PlatformName;
99
97
  } else if (functionName === 'drawingFinished') {
100
- // TODO The logic needs to be added here once the backend starts sending this event.
98
+ // Sent by InspectorOverlayAgent::PaintOverlayPage after drawing commands.
101
99
  } else {
102
100
  currentOverlay.dispatch(message);
103
101
  }
@@ -27,10 +27,6 @@
27
27
  border-bottom-right-radius: var(--border-radius);
28
28
  }
29
29
 
30
- .bottom-corner {
31
- border-top-right-radius: var(--border-radius);
32
- }
33
-
34
30
  .above-element {
35
31
  border-top-right-radius: var(--border-radius);
36
32
  border-top-left-radius: var(--border-radius);
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "yargs": "18.1.0",
92
92
  "yargs-unparser": "2.0.0"
93
93
  },
94
- "version": "1.0.1739869"
94
+ "version": "1.0.1742811"
95
95
  }