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
@@ -29,8 +29,8 @@
29
29
 
30
30
  .network-category-chip {
31
31
  box-sizing: border-box;
32
- width: 10px;
33
- height: 10px;
32
+ width: var(--sys-size-5);
33
+ height: var(--sys-size-5);
34
34
  border: var(--sys-size-1) solid var(--sys-color-divider);
35
35
  display: inline-block;
36
36
  margin-right: var(--sys-size-3);
@@ -80,7 +80,8 @@
80
80
  .whisker-left {
81
81
  align-self: center;
82
82
  display: inline-flex;
83
- width: 11px;
83
+ /* .indicator width (--sys-size-6) minus 1px border (--sys-size-1) on the open right side. */
84
+ width: calc(var(--sys-size-6) - var(--sys-size-1));
84
85
  height: var(--sys-size-4);
85
86
  margin-right: 5px;
86
87
  border-left: var(--sys-size-1) solid var(--sys-color-on-surface-subtle);
@@ -90,7 +91,8 @@
90
91
  .whisker-right {
91
92
  align-self: center;
92
93
  display: inline-flex;
93
- width: 11px;
94
+ /* .indicator width (--sys-size-6) minus 1px border (--sys-size-1) on the open left side. */
95
+ width: calc(var(--sys-size-6) - var(--sys-size-1));
94
96
  height: var(--sys-size-4);
95
97
  margin-right: 5px;
96
98
  border-right: var(--sys-size-1) solid var(--sys-color-on-surface-subtle);
@@ -102,6 +102,6 @@
102
102
 
103
103
  .tutorial-title,
104
104
  .tutorial-description {
105
- margin: 5px 0;
105
+ margin: var(--sys-size-4) 0;
106
106
  }
107
107
  }
@@ -5,8 +5,7 @@
5
5
  */
6
6
 
7
7
  @scope to (devtools-widget > *) {
8
- /* stylelint-disable-next-line plugin/check_scope_selectors */
9
- :host {
8
+ :scope {
10
9
  display: flex;
11
10
  flex-flow: column nowrap;
12
11
  flex-grow: 1;
@@ -75,14 +75,7 @@
75
75
  }
76
76
 
77
77
  .timeline-details-warning {
78
- --override-details-warning-background-color: rgb(250 209 209 / 48%);
79
-
80
- background-color: var(--override-details-warning-background-color);
81
- }
82
-
83
- .theme-with-dark-background .timeline-details-warning, /* stylelint-disable-line plugin/check_scope_selectors */
84
- :host-context(.theme-with-dark-background) .timeline-details-warning { /* stylelint-disable-line plugin/check_scope_selectors */
85
- --override-details-warning-background-color: rgb(87 10 10 / 48%);
78
+ background-color: var(--sys-color-surface-error);
86
79
  }
87
80
 
88
81
  .timeline-details-warning .timeline-details-view-row-title {
@@ -105,8 +98,4 @@
105
98
  .timeline-details-view-pie-chart-wrapper {
106
99
  margin: var(--sys-size-3) 0;
107
100
  }
108
-
109
- .timeline-details-view-pie-chart {
110
- margin-top: 5px;
111
- }
112
101
  }
@@ -19,10 +19,6 @@
19
19
  margin-right: var(--sys-size-3);
20
20
  }
21
21
 
22
- .timeline-flamechart-popover span.popoverinfo-network-time {
23
- color: var(--sys-color-primary);
24
- }
25
-
26
22
  .timeline-flamechart-popover span.popoverinfo-time {
27
23
  color: var(--sys-color-green);
28
24
  }
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  .timeline-minimap #timeline-overview-filmstrip {
43
- flex-basis: 30px;
43
+ flex-basis: var(--sys-size-12);
44
44
  }
45
45
 
46
46
  .timeline-minimap #timeline-overview-memory {
@@ -67,9 +67,6 @@
67
67
  margin-top: 0 !important; /* stylelint-disable-line declaration-no-important */
68
68
  }
69
69
 
70
- .timeline-minimap #timeline-overview-input {
71
- flex-basis: var(--sys-size-4);
72
- }
73
70
 
74
71
  .timeline-minimap #timeline-overview-pane {
75
72
  flex: auto;
@@ -188,10 +188,6 @@
188
188
  border: var(--sys-size-1) solid var(--sys-color-divider);
189
189
  }
190
190
 
191
- .timeline-details .filter-input-field {
192
- width: 120px;
193
- }
194
-
195
191
  .timeline-stack-view-header {
196
192
  height: 27px;
197
193
  background-color: var(--sys-color-cdt-base-container);
@@ -28,7 +28,7 @@
28
28
  width: var(--sys-size-19);
29
29
  text-align: right;
30
30
  color: var(--sys-color-on-surface);
31
- margin-right: 10px;
31
+ margin-right: var(--sys-size-5);
32
32
  }
33
33
 
34
34
  .timeline-status-dialog .progress .indicator-container {
@@ -98,18 +98,6 @@
98
98
  overflow: hidden;
99
99
  }
100
100
 
101
- .timeline-tree-view .data-grid .name-container .activity-warning::after {
102
- content: "[deopt]";
103
- margin: 0 var(--sys-size-3);
104
- line-height: 12px;
105
- font-size: 10px;
106
- color: var(--sys-color-state-disabled);
107
- }
108
-
109
- .timeline-tree-view .data-grid tr.selected .name-container .activity-warning::after {
110
- color: var(--sys-color-on-tonal-container);
111
- }
112
-
113
101
  .timeline-tree-view .data-grid .name-container .activity-link {
114
102
  flex: auto;
115
103
  overflow: hidden;
@@ -25,7 +25,7 @@ export function nodeIdsForEvent(
25
25
  const foundIds = new Set<Protocol.DOM.BackendNodeId>();
26
26
 
27
27
  if (Trace.Types.Events.isLayout(event)) {
28
- event.args.endData?.layoutRoots.forEach(root => foundIds.add(root.nodeId));
28
+ event.args.endData?.layoutRoots?.forEach(root => foundIds.add(root.nodeId));
29
29
  } else if (Trace.Types.Events.isSyntheticLayoutShift(event) && event.args.data?.impacted_nodes) {
30
30
  event.args.data.impacted_nodes.forEach(node => foundIds.add(node.node_id));
31
31
  } else if (
@@ -109,15 +109,9 @@
109
109
  font: var(--sys-typescale-headline5);
110
110
  }
111
111
 
112
- .authenticator-section-title.editing-name .authenticator-name-field {
113
- border-bottom: var(--sys-size-1) solid var(--sys-color-neutral-outline);
114
- font-weight: normal;
115
- animation: none;
116
- }
117
-
118
112
  .authenticator-field-value {
119
113
  font: var(--sys-typescale-monospace-regular);
120
- line-height: 18px;
114
+ line-height: var(--sys-typescale-body5-line-height);
121
115
  }
122
116
 
123
117
  .authenticator-field {
@@ -50,7 +50,7 @@ export function getReleaseNote(): ReleaseNote {
50
50
  }
51
51
 
52
52
  let releaseNote: ReleaseNote = {
53
- version: 158,
53
+ version: 159,
54
54
  header: 'New in DevTools (December 2026)',
55
55
  announcement: {
56
56
  title: 'Modern Web Guidance is now stable!',
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 5abc82b75a12aba2070f008c93349d463e81dc10
4
+ Revision: fbbb9f99f2a0bd6e24a02060a948dc4599e21bb8
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -52,7 +52,7 @@ slot {
52
52
  }
53
53
 
54
54
  :host([aria-pressed="true"]) slot {
55
- color: var(--override-adorner-active-text-color, var(--sys-color-on-primary));
55
+ color: var(--sys-color-on-primary);
56
56
  background-color: var(--override-adorner-active-background-color, var(--sys-color-primary));
57
57
  border: var(--sys-size-1) solid var(--override-adorner-active-background-color, var(--sys-color-primary));
58
58
 
@@ -288,20 +288,6 @@ button {
288
288
  top: 0;
289
289
  left: 0;
290
290
  background-color: var(--hover-layer-color); /* stylelint-disable-line plugin/use_theme_colors */
291
-
292
- &.primary {
293
- border: var(--button-border-size) solid color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
294
- }
295
-
296
- &.tonal {
297
- background: color-mix(in srgb, var(--sys-color-tonal-container), var(--sys-color-state-hover-on-subtle));
298
- }
299
-
300
- &.toobar {
301
- devtools-icon {
302
- color: var(--icon-default-hover);
303
- }
304
- }
305
291
  }
306
292
 
307
293
  &:active::before,
@@ -314,20 +300,6 @@ button {
314
300
  top: 0;
315
301
  left: 0;
316
302
  background-color: var(--active-layer-color); /* stylelint-disable-line plugin/use_theme_colors */
317
-
318
- &.primary {
319
- border: var(--button-border-size) solid color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-ripple-primary) 32%);
320
- }
321
-
322
- &.tonal {
323
- background: color-mix(in srgb, var(--sys-color-tonal-container), var(--sys-color-state-ripple-primary) 50%);
324
- }
325
-
326
- &.toolbar {
327
- devtools-icon {
328
- color: var(--icon-toggled);
329
- }
330
- }
331
303
  }
332
304
  }
333
305
 
@@ -29,7 +29,7 @@
29
29
  background-color: var(--sys-color-state-hover-on-subtle);
30
30
  }
31
31
 
32
- .text-button:not(:disabled, .primary-button):focus-visible {
32
+ .text-button:not(:disabled):focus-visible {
33
33
  outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
34
34
  color: var(--sys-color-on-primary);
35
35
  background-color: var(--sys-color-cdt-base-container);
@@ -55,30 +55,6 @@
55
55
  height: unset;
56
56
  }
57
57
 
58
- .text-button.primary-button,
59
- .text-button.primary-button:not(:disabled):focus {
60
- background-color: var(--sys-color-primary);
61
- border: none;
62
- color: var(--sys-color-on-primary);
63
- }
64
-
65
- .text-button.primary-button:not(:disabled):active {
66
- background-color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-ripple-primary) 32%);
67
- color: var(--sys-color-on-primary);
68
- }
69
-
70
- .text-button.primary-button:not(:disabled):hover {
71
- background-color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
72
- color: var(--sys-color-on-primary);
73
- }
74
-
75
- .text-button.primary-button:not(:disabled):focus-visible {
76
- background-color: var(--sys-color-primary);
77
- outline-offset: var(--sys-size-2);
78
- outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
79
- color: var(--sys-color-on-primary);
80
- }
81
-
82
58
  @media (forced-colors: active) {
83
59
  .text-button {
84
60
  background-color: ButtonFace;
@@ -110,24 +86,4 @@
110
86
  color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
111
87
  box-shadow: var(--sys-color-primary);
112
88
  }
113
-
114
- .text-button.primary-button {
115
- forced-color-adjust: none;
116
- background-color: Highlight;
117
- color: HighlightText;
118
- border: var(--sys-size-1) solid Highlight;
119
- }
120
-
121
- .text-button.primary-button:not(:disabled):focus-visible {
122
- background-color: Highlight;
123
- color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
124
- border-color: ButtonText;
125
- }
126
-
127
- .text-button.primary-button:not(:disabled):hover,
128
- .text-button.primary-button:not(:disabled):active {
129
- background-color: HighlightText;
130
- color: Highlight !important; /* stylelint-disable-line declaration-no-important */
131
- border-color: Highlight;
132
- }
133
89
  }
@@ -34,9 +34,9 @@ input[type="checkbox"] {
34
34
 
35
35
  &:not(:disabled):focus-visible::before {
36
36
  content: "";
37
- height: 15px;
38
- width: 15px;
39
- border-radius: 5px;
37
+ height: var(--sys-size-7);
38
+ width: var(--sys-size-7);
39
+ border-radius: var(--sys-shape-corner-extra-small);
40
40
  position: absolute;
41
41
  border: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
42
42
  }
@@ -21,6 +21,7 @@ button {
21
21
  background: transparent;
22
22
  margin: 0;
23
23
  padding: 0;
24
+ line-height: inherit;
24
25
 
25
26
  &.link {
26
27
  cursor: pointer;
@@ -33,8 +34,7 @@ button {
33
34
 
34
35
  devtools-icon {
35
36
  width: var(--sys-size-8);
36
- height: var(--sys-size-8);
37
- vertical-align: middle;
37
+ height: var(--sys-size-7);
38
38
 
39
39
  &[name="issue-cross-filled"] {
40
40
  color: var(--icon-error);
@@ -59,6 +59,7 @@ export interface MenuData {
59
59
  const selectedItemCheckmark = new URL('../../../Images/checkmark.svg', import.meta.url).toString();
60
60
 
61
61
  export class Menu extends HTMLElement {
62
+ static readonly observedAttributes: string[] = ['origin'];
62
63
  readonly #shadow = this.attachShadow({mode: 'open'});
63
64
  #dialog: Dialogs.Dialog.Dialog|null = null;
64
65
  #itemIsFocused = false;
@@ -81,6 +82,19 @@ export class Menu extends HTMLElement {
81
82
  void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render);
82
83
  }
83
84
 
85
+ attributeChangedCallback(_name: string, oldValue: string|null, newValue: string|null): void {
86
+ if (oldValue === newValue) {
87
+ return;
88
+ }
89
+ this.#props.origin = newValue ? () => {
90
+ const root = this.getRootNode() as Document | ShadowRoot | Element;
91
+ const element =
92
+ 'getElementById' in root ? root.getElementById(newValue) : root.querySelector(`#${CSS.escape(newValue)}`);
93
+ return element instanceof HTMLElement ? element : new DOMPoint(0, 0);
94
+ } : null;
95
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render);
96
+ }
97
+
84
98
  get open(): boolean {
85
99
  return this.#props.open;
86
100
  }
@@ -9,11 +9,11 @@
9
9
  width: fit-content;
10
10
  display: flex;
11
11
  align-items: center;
12
- background-color: var(--override-menu-background-color, var(--sys-color-cdt-base-container));
12
+ background-color: var(--sys-color-cdt-base-container);
13
13
  }
14
14
 
15
15
  :host([has-open-dialog]) {
16
- background-color: var(--override-menu-active-background-color, var(--sys-color-neutral-container));
16
+ background-color: var(--sys-color-neutral-container);
17
17
  }
18
18
 
19
19
  * {
@@ -31,15 +31,3 @@
31
31
  #container:focus {
32
32
  outline: none;
33
33
  }
34
-
35
- @keyframes slideIn {
36
- from {
37
- transform: var(--translate-dialog);
38
- opacity: 0%;
39
- }
40
-
41
- to {
42
- transform: none;
43
- opacity: 100%;
44
- }
45
- }
@@ -17,10 +17,6 @@
17
17
  outline: none;
18
18
  }
19
19
 
20
- :host(.no-checkmark) .menu-item {
21
- padding-left: 0;
22
- }
23
-
24
20
  :host(:not(:first-child)) .menu-item {
25
21
  border-top: var(--override-divider-line);
26
22
  }
@@ -23,6 +23,7 @@ button {
23
23
  padding: 0;
24
24
  font-family: inherit;
25
25
  font-size: inherit;
26
+ line-height: inherit;
26
27
  color: inherit;
27
28
 
28
29
  &.link {
@@ -36,8 +37,7 @@ button {
36
37
 
37
38
  devtools-icon {
38
39
  width: var(--sys-size-8);
39
- height: var(--sys-size-8);
40
- vertical-align: middle;
40
+ height: var(--sys-size-7);
41
41
  color: var(--icon-no-request);
42
42
 
43
43
  .link > & {
@@ -124,7 +124,7 @@ export class SurveyLink extends HTMLElement {
124
124
  <button
125
125
  class="link ${linkState}" tabindex=${ariaDisabled ? '-1' : '0'}
126
126
  .disabled=${ariaDisabled} aria-disabled=${ariaDisabled} @click=${this.#sendSurvey}>
127
- <devtools-icon class="link-icon" name="review" style="color: var(--sys-color-primary); width: var(--issue-link-icon-size, 16px); height: var(--issue-link-icon-size, 16px)">
127
+ <devtools-icon class="link-icon" name="review" style="color: var(--sys-color-primary); width: 16px; height: 16px">
128
128
  </devtools-icon>
129
129
  ${linkText}
130
130
  </button>`;
@@ -10,10 +10,10 @@
10
10
  }
11
11
 
12
12
  .link {
13
- padding: var(--issue-link-padding, var(--sys-size-3) 0 0 0);
14
- text-decoration: var(--issue-link-text-decoration, underline);
13
+ padding: var(--sys-size-3) 0 0 0;
14
+ text-decoration: underline;
15
15
  cursor: pointer;
16
- font-size: var(--issue-link-font-size, var(--sys-typescale-body2-size));
16
+ font-size: var(--sys-typescale-body2-size);
17
17
  color: var(--sys-color-primary);
18
18
  outline-offset: var(--sys-size-2);
19
19
  border: none;
@@ -7,7 +7,7 @@
7
7
  :host {
8
8
  position: relative;
9
9
  display: inline-block;
10
- width: 26px;
10
+ width: var(--sys-size-12);
11
11
  height: var(--sys-size-8);
12
12
  }
13
13
 
@@ -62,7 +62,8 @@ input:checked {
62
62
  }
63
63
 
64
64
  & + .slider::before {
65
- left: 11px;
65
+ /* Center --sys-size-6 thumb inside right --sys-size-8 (:host height) pill cap minus --sys-size-1 (.slider border). */
66
+ left: calc(100% - var(--sys-size-6) - ((var(--sys-size-8) - var(--sys-size-6)) / 2 - var(--sys-size-1)));
66
67
  height: var(--sys-size-6);
67
68
  width: var(--sys-size-6);
68
69
  top: calc(50% - var(--sys-size-4));
@@ -6,7 +6,7 @@ import * as CM from '../../../third_party/codemirror.next/codemirror.next.js';
6
6
 
7
7
  export const editorTheme: CM.Extension = CM.EditorView.theme({
8
8
  '&.cm-editor': {
9
- color: 'color: var(--sys-color-on-subtle)',
9
+ color: 'var(--sys-color-on-surface)',
10
10
  cursor: 'auto',
11
11
  '&.cm-focused': {
12
12
  outline: 'none',
@@ -661,10 +661,10 @@ export class Tooltip extends HTMLElement {
661
661
  export class IdFactory {
662
662
  static #nextId = 0;
663
663
  #keys = new Map<string|number, number>();
664
- #id: number|string;
664
+ #id: string;
665
665
 
666
- constructor(id?: number|string) {
667
- this.#id = id ?? IdFactory.#nextId++;
666
+ constructor(id?: string) {
667
+ this.#id = id ?? `id${IdFactory.#nextId++}`;
668
668
  }
669
669
 
670
670
  keyed(key: string|number, ...additionalSuffixes: Array<number|string>): string {
@@ -19,10 +19,6 @@ li {
19
19
  border: 0;
20
20
  }
21
21
 
22
- .tree-item:hover {
23
- background-color: var(--sys-color-state-hover-on-subtle);
24
- }
25
-
26
22
  .tree-node-key {
27
23
  white-space: var(--override-key-whitespace-wrapping);
28
24
  /* Override the default |min-width: auto| to avoid overflows of flex items */
@@ -75,25 +71,6 @@ li.is-top-level:last-child {
75
71
  border-bottom: var(--override-top-node-border);
76
72
  }
77
73
 
78
- :host([animated]) li:not(.is-top-level) {
79
- animation-name: slideIn;
80
- animation-duration: 150ms;
81
- animation-timing-function: cubic-bezier(0, 0, 0.3, 1);
82
- animation-fill-mode: forwards;
83
- }
84
-
85
- @keyframes slideIn {
86
- from {
87
- transform: translateY(-5px);
88
- opacity: 0%;
89
- }
90
-
91
- to {
92
- transform: none;
93
- opacity: 100%;
94
- }
95
- }
96
-
97
74
  .arrow-and-key-wrapper {
98
75
  display: flex;
99
76
  align-content: center;
@@ -7,7 +7,7 @@ import * as Host from '../../core/host/host.js';
7
7
  import type * as Platform from '../../core/platform/platform.js';
8
8
  import * as Root from '../../core/root/root.js';
9
9
  import * as Buttons from '../components/buttons/buttons.js';
10
- import {html, render} from '../lit/lit.js';
10
+ import {html, render, type TemplateResult} from '../lit/lit.js';
11
11
  import * as VisualLogging from '../visual_logging/visual_logging.js';
12
12
 
13
13
  import {ActionRegistry} from './ActionRegistry.js';
@@ -39,7 +39,7 @@ export class Item {
39
39
  protected isDevToolsPerformanceMenuItem: boolean;
40
40
  protected contextMenu: ContextMenu|null;
41
41
  protected idInternal: number|undefined;
42
- customElement?: Element;
42
+ customElement?: Element|TemplateResult;
43
43
  private shortcut?: string;
44
44
  #tooltip: Common.UIString.LocalizedString|undefined;
45
45
  protected jslogContext: string|undefined;
@@ -233,7 +233,7 @@ export class Section {
233
233
  accelerator?: Host.InspectorFrontendHostAPI.AcceleratorDescriptor,
234
234
  isPreviewFeature?: boolean,
235
235
  disabled?: boolean,
236
- additionalElement?: Element,
236
+ additionalElement?: Element|TemplateResult,
237
237
  tooltip?: Platform.UIString.LocalizedString,
238
238
  jslogContext?: string,
239
239
  featureName?: string,
@@ -266,7 +266,7 @@ export class Section {
266
266
  * @param jslogContext An optional string identifying the element for visual logging.
267
267
  * @returns The newly created `Item`.
268
268
  */
269
- appendCustomItem(element: Element, jslogContext?: string): Item {
269
+ appendCustomItem(element: Element|TemplateResult, jslogContext?: string): Item {
270
270
  const item = new Item(
271
271
  this.contextMenu, 'item', undefined, undefined, undefined, undefined, undefined, undefined, jslogContext);
272
272
  item.customElement = element;
@@ -342,7 +342,7 @@ export class Section {
342
342
  checked?: boolean,
343
343
  disabled?: boolean,
344
344
  experimental?: boolean,
345
- additionalElement?: Element,
345
+ additionalElement?: Element|TemplateResult,
346
346
  tooltip?: Platform.UIString.LocalizedString,
347
347
  jslogContext?: string,
348
348
  featureName?: string,
@@ -8,6 +8,7 @@ import * as i18n from '../../core/i18n/i18n.js';
8
8
  import type * as Platform from '../../core/platform/platform.js';
9
9
  import {createIcon} from '../../ui/kit/kit.js';
10
10
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
11
+ import {render, type TemplateResult} from '../lit/lit.js';
11
12
 
12
13
  import * as ARIAUtils from './ARIAUtils.js';
13
14
  import {AnchorBehavior, GlassPane, MarginBehavior, PointerEventsBehavior, SizeBehavior} from './GlassPane.js';
@@ -247,13 +248,21 @@ export class SoftContextMenu {
247
248
  }
248
249
  if (item.element && !item.label) {
249
250
  const wrapper = menuItemElement.createChild('div', 'soft-context-menu-custom-item');
250
- wrapper.appendChild(item.element);
251
- if (item.element?.classList.contains('location-menu')) {
252
- const label = item.element.ariaLabel || '';
253
- item.element.ariaLabel = '';
251
+ if (item.element instanceof Element) {
252
+ wrapper.appendChild(item.element);
253
+ } else {
254
+ // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
255
+ render(item.element, wrapper);
256
+ }
257
+ const customElement = item.element instanceof Element ? item.element : wrapper.firstElementChild;
258
+ if (customElement instanceof HTMLElement && customElement.classList.contains('location-menu')) {
259
+ const label = customElement.ariaLabel || '';
260
+ customElement.ariaLabel = '';
254
261
  ARIAUtils.setLabel(menuItemElement, label);
255
262
  }
256
- detailsForElement.customElement = (item.element as HTMLElement);
263
+ if (customElement instanceof HTMLElement) {
264
+ detailsForElement.customElement = customElement;
265
+ }
257
266
  this.detailsForElementMap.set(menuItemElement, detailsForElement);
258
267
  return menuItemElement;
259
268
  }
@@ -263,7 +272,14 @@ export class SoftContextMenu {
263
272
  }
264
273
  createTextChild(menuItemElement, item.label || '');
265
274
  if (item.element) {
266
- menuItemElement.appendChild(item.element);
275
+ if (item.element instanceof Element) {
276
+ menuItemElement.appendChild(item.element);
277
+ } else {
278
+ const fragment = document.createDocumentFragment();
279
+ // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
280
+ render(item.element, fragment);
281
+ menuItemElement.appendChild(fragment);
282
+ }
267
283
  }
268
284
  menuItemElement.createChild('span', 'soft-context-menu-shortcut').textContent = item.shortcut || '';
269
285
 
@@ -289,7 +305,7 @@ export class SoftContextMenu {
289
305
  } else if (item.shortcut) {
290
306
  accessibleName = i18nString(UIStrings.sS, {PH1: String(item.label), PH2: item.shortcut});
291
307
  }
292
- if (item.element?.className === 'new-badge') {
308
+ if (menuItemElement.querySelector('.new-badge')) {
293
309
  accessibleName = i18nString(UIStrings.sS, {PH1: String(item.label), PH2: i18nString(UIStrings.newFeature)});
294
310
  }
295
311
  ARIAUtils.setLabel(menuItemElement, accessibleName);
@@ -632,7 +648,7 @@ export interface SoftContextMenuDescriptor {
632
648
  checked?: boolean;
633
649
  isDevToolsPerformanceMenuItem?: boolean;
634
650
  subItems?: SoftContextMenuDescriptor[];
635
- element?: Element;
651
+ element?: Element|TemplateResult;
636
652
  shortcut?: string;
637
653
  tooltip?: Platform.UIString.LocalizedString;
638
654
  jslogContext?: string;