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
@@ -67,12 +67,6 @@
67
67
  width: 100%;
68
68
  }
69
69
 
70
- .step-container {
71
- display: flex;
72
- gap: var(--sys-size-5);
73
- align-items: flex-start;
74
- }
75
-
76
70
  .step-icon {
77
71
  color: var(--sys-color-on-surface-subtle);
78
72
  width: var(--sys-size-8);
@@ -81,13 +75,6 @@
81
75
  margin-top: var(--sys-size-2);
82
76
  }
83
77
 
84
- .step-content {
85
- flex: 1;
86
- font-size: var(--sys-typescale-body5-size);
87
- color: var(--sys-color-on-surface);
88
- line-height: 1.4;
89
- }
90
-
91
78
  .empty-state {
92
79
  display: flex;
93
80
  align-items: center;
@@ -11,6 +11,7 @@ import {AnimationUI} from './AnimationUI.js';
11
11
 
12
12
  const {render, html, svg, Directives: {classMap, ref}} = Lit;
13
13
 
14
+ const VIEW_BOX_WIDTH = 112;
14
15
  const VIEW_BOX_HEIGHT = 32;
15
16
  const MAX_ANIMATION_LINES_TO_SHOW = 10;
16
17
  const MIN_ANIMATION_GROUP_DURATION = 750;
@@ -63,8 +64,8 @@ const DEFAULT_VIEW: View = (input, output, target) => {
63
64
  };
64
65
 
65
66
  const renderAnimationLines = (): Lit.LitTemplate => {
66
- const timeToPixelRatio = 100 / Math.max(input.animationGroupDuration, MIN_ANIMATION_GROUP_DURATION);
67
- const viewBox = `0 0 100 ${VIEW_BOX_HEIGHT}`;
67
+ const timeToPixelRatio = VIEW_BOX_WIDTH / Math.max(input.animationGroupDuration, MIN_ANIMATION_GROUP_DURATION);
68
+ const viewBox = `0 0 ${VIEW_BOX_WIDTH} ${VIEW_BOX_HEIGHT}`;
68
69
  const lines = input.animations.map((animation, index) => {
69
70
  const xStartPoint = animation.delayOrStartTime();
70
71
  const xEndPoint = xStartPoint + animation.iterationDuration();
@@ -108,6 +108,8 @@ const nodeUIsByNode = new WeakMap<SDK.DOMModel.DOMNode, NodeUI>();
108
108
  const MIN_TIMELINE_CONTROLS_WIDTH = 120;
109
109
  const DEFAULT_TIMELINE_CONTROLS_WIDTH = 144;
110
110
  const MAX_TIMELINE_CONTROLS_WIDTH = 720;
111
+ const GRID_OFFSET_LEFT = 12;
112
+ const GRID_LABEL_OFFSET_LEFT = GRID_OFFSET_LEFT + 2;
111
113
 
112
114
  const ANIMATION_EXPLANATION_URL =
113
115
  'https://developer.chrome.com/docs/devtools/css/animations' as Platform.DevToolsPath.UrlString;
@@ -1008,7 +1010,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
1008
1010
  let lastDraw: number|undefined = undefined;
1009
1011
  for (let time = 0; time < this.duration(); time += gridSize) {
1010
1012
  const line = UI.UIUtils.createSVGChild(this.#grid, 'rect', 'animation-timeline-grid-line');
1011
- line.setAttribute('x', (time * this.pixelTimeRatio() + 8).toString());
1013
+ line.setAttribute('x', (time * this.pixelTimeRatio() + GRID_OFFSET_LEFT).toString());
1012
1014
  line.setAttribute('y', '23');
1013
1015
  line.setAttribute('height', '100%');
1014
1016
  line.setAttribute('width', '1');
@@ -1019,7 +1021,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
1019
1021
  lastDraw = gridWidth;
1020
1022
  const label = UI.UIUtils.createSVGChild(this.#grid, 'text', 'animation-timeline-grid-label');
1021
1023
  label.textContent = isScrollDriven ? `${time.toFixed(0)}px` : i18n.TimeUtilities.millisToString(time);
1022
- label.setAttribute('x', (gridWidth + 10).toString());
1024
+ label.setAttribute('x', (gridWidth + GRID_LABEL_OFFSET_LEFT).toString());
1023
1025
  label.setAttribute('y', '16');
1024
1026
  }
1025
1027
  }
@@ -1119,7 +1121,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
1119
1121
 
1120
1122
  // Seek to current mouse position.
1121
1123
  if (!this.#gridOffsetLeft) {
1122
- this.#gridOffsetLeft = this.#grid.getBoundingClientRect().left + 8;
1124
+ this.#gridOffsetLeft = this.#grid.getBoundingClientRect().left + GRID_OFFSET_LEFT;
1123
1125
  }
1124
1126
 
1125
1127
  const {x} = event;
@@ -190,7 +190,7 @@ circle.animation-keyframe-point:active {
190
190
  .animation-scrubber {
191
191
  opacity: 100%;
192
192
  position: absolute;
193
- left: var(--sys-size-5);
193
+ left: var(--sys-size-6);
194
194
  height: 100%;
195
195
  width: 100%;
196
196
  top: var(--sys-size-12);
@@ -219,8 +219,9 @@ circle.animation-keyframe-point:active {
219
219
  }
220
220
 
221
221
  .animation-scrubber-head {
222
- width: 7px;
223
- height: 7px;
222
+ /* 7px square: 11px .animation-scrubber-line width (2 * --sys-size-4 - --sys-size-1) minus 2 * 2px left/right inset (--sys-size-2) so the 45deg diamond stays centered on the 1px scrubber stem. */
223
+ width: calc(2 * var(--sys-size-4) - var(--sys-size-1) - 2 * var(--sys-size-2));
224
+ height: calc(2 * var(--sys-size-4) - var(--sys-size-1) - 2 * var(--sys-size-2));
224
225
  transform: rotate(45deg);
225
226
  background: var(--sys-color-error);
226
227
  position: absolute;
@@ -231,8 +232,9 @@ circle.animation-keyframe-point:active {
231
232
 
232
233
  .grid-overflow-wrapper {
233
234
  position: absolute;
234
- /* Offset left by the 8px scrubber origin inset (--sys-size-5) so t=0 aligns with --timeline-controls-width without clipping the scrubber head. */
235
- left: calc(var(--timeline-controls-width) - var(--sys-size-5));
235
+ /* Offset left by the 12px scrubber/grid origin (--sys-size-6)
236
+ * so t=0 aligns with --timeline-controls-width without clipping. */
237
+ left: calc(var(--timeline-controls-width) - var(--sys-size-6));
236
238
  /* Position below the 28px top toolbar (--sys-size-12) + 48px animation group preview buffer (--sys-size-16) = 76px. */
237
239
  top: calc(var(--sys-size-12) + var(--sys-size-16));
238
240
  z-index: 1;
@@ -358,7 +360,7 @@ text.animation-timeline-grid-label {
358
360
  border-radius: var(--sys-size-2);
359
361
  flex: 1 1;
360
362
  padding: var(--sys-size-3);
361
- max-width: 100px;
363
+ max-width: var(--sys-size-20);
362
364
  animation: newGroupAnim 200ms;
363
365
  position: relative;
364
366
  }
@@ -507,8 +509,8 @@ text.animation-timeline-grid-label {
507
509
 
508
510
  .animation-remove-button {
509
511
  position: absolute;
510
- top: -3px;
511
- right: -3px;
512
+ top: calc(-1 * var(--sys-size-2));
513
+ right: calc(-1 * var(--sys-size-2));
512
514
  background: var(--sys-color-token-subtle);
513
515
  border-radius: var(--sys-shape-corner-medium-small);
514
516
  border: 0;
@@ -1282,14 +1282,13 @@ export class StorageTreeElement extends ApplicationPanelTreeElement {
1282
1282
  }
1283
1283
 
1284
1284
  export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement {
1285
- private idbDatabaseTreeElements: IDBDatabaseTreeElement[];
1285
+ private idbDatabaseTreeElements = new Set<IDBDatabaseTreeElement>();
1286
1286
  private storageBucket?: Protocol.Storage.StorageBucket;
1287
1287
  constructor(storagePanel: ResourcesPanel, storageBucket?: Protocol.Storage.StorageBucket) {
1288
1288
  super(storagePanel, i18nString(UIStrings.indexeddb), i18nString(UIStrings.noIndexeddb),
1289
1289
  i18nString(UIStrings.indexeddbDescription), 'indexed-db');
1290
1290
  const icon = createIcon('database');
1291
1291
  this.setLeadingIcons([icon]);
1292
- this.idbDatabaseTreeElements = [];
1293
1292
  this.storageBucket = storageBucket;
1294
1293
  this.initialize();
1295
1294
  }
@@ -1304,9 +1303,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
1304
1303
  SDK.TargetManager.TargetManager.instance().addModelListener(IndexedDBModel,
1305
1304
  IndexedDBModelEvents.IndexedDBContentUpdated,
1306
1305
  this.indexedDBContentUpdated, this, {scoped: true});
1307
- // TODO(szuend): Replace with a Set once two web tests no longer directly access this private
1308
- // variable (indexeddb/live-update-indexeddb-content.js, indexeddb/delete-entry.js).
1309
- this.idbDatabaseTreeElements = [];
1306
+ this.idbDatabaseTreeElements.clear();
1310
1307
 
1311
1308
  for (const indexedDBModel of SDK.TargetManager.TargetManager.instance().models(IndexedDBModel, {scoped: true})) {
1312
1309
  const databases = indexedDBModel.databases();
@@ -1323,9 +1320,10 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
1323
1320
  }
1324
1321
 
1325
1322
  removeIndexedDBForModel(model: IndexedDBModel): void {
1326
- const idbDatabaseTreeElements = this.idbDatabaseTreeElements.filter(element => element.model === model);
1327
- for (const idbDatabaseTreeElement of idbDatabaseTreeElements) {
1328
- this.removeIDBDatabaseTreeElement(idbDatabaseTreeElement);
1323
+ for (const idbDatabaseTreeElement of this.idbDatabaseTreeElements) {
1324
+ if (idbDatabaseTreeElement.model === model) {
1325
+ this.removeIDBDatabaseTreeElement(idbDatabaseTreeElement);
1326
+ }
1329
1327
  }
1330
1328
  }
1331
1329
 
@@ -1365,7 +1363,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
1365
1363
  return;
1366
1364
  }
1367
1365
  const idbDatabaseTreeElement = new IDBDatabaseTreeElement(this.resourcesPanel, model, databaseId);
1368
- this.idbDatabaseTreeElements.push(idbDatabaseTreeElement);
1366
+ this.idbDatabaseTreeElements.add(idbDatabaseTreeElement);
1369
1367
  this.appendChild(idbDatabaseTreeElement);
1370
1368
  model.refreshDatabase(databaseId);
1371
1369
  }
@@ -1383,7 +1381,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
1383
1381
  private removeIDBDatabaseTreeElement(idbDatabaseTreeElement: IDBDatabaseTreeElement): void {
1384
1382
  idbDatabaseTreeElement.clear();
1385
1383
  this.removeChild(idbDatabaseTreeElement);
1386
- Platform.ArrayUtilities.removeElement(this.idbDatabaseTreeElements, idbDatabaseTreeElement);
1384
+ this.idbDatabaseTreeElements.delete(idbDatabaseTreeElement);
1387
1385
  this.setExpandable(this.childCount() > 0);
1388
1386
  }
1389
1387
 
@@ -1414,7 +1412,12 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
1414
1412
  }
1415
1413
 
1416
1414
  private idbDatabaseTreeElement(model: IndexedDBModel, databaseId: DatabaseId): IDBDatabaseTreeElement|null {
1417
- return this.idbDatabaseTreeElements.find(x => x.databaseId.equals(databaseId) && x.model === model) || null;
1415
+ for (const element of this.idbDatabaseTreeElements) {
1416
+ if (element.databaseId.equals(databaseId) && element.model === model) {
1417
+ return element;
1418
+ }
1419
+ }
1420
+ return null;
1418
1421
  }
1419
1422
  }
1420
1423
 
@@ -52,7 +52,6 @@ export const DEFAULT_VIEW = (input: ViewInput, output: undefined, target: HTMLEl
52
52
  if (input.hasReports || input.hasEndpoints) {
53
53
  // clang-format off
54
54
  render(html`
55
- <style>${UI.inspectorCommonStyles}</style>
56
55
  <devtools-split-view sidebar-position="second" sidebar-initial-size="150" jslog=${
57
56
  VisualLogging.pane('reporting-api')}>
58
57
  ${input.hasReports ? html`
@@ -85,7 +85,6 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
85
85
  // clang-format off
86
86
  Lit.render(html`
87
87
  <style>${subAppsViewStyles}</style>
88
- <style>${UI.inspectorCommonStyles}</style>
89
88
  <div jslog=${VisualLogging.pane('sub-apps')}>
90
89
  <span class="heading">${headingText}</span>
91
90
  <devtools-data-grid striped inline role="grid" aria-label=${headingText}>
@@ -2,10 +2,10 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
+ import * as i18n from '../../core/i18n/i18n.js';
5
6
  import type * as Platform from '../../core/platform/platform.js';
6
7
  import {createIcon} from '../../ui/kit/kit.js';
7
8
  import * as UI from '../../ui/legacy/legacy.js';
8
- import {html, render} from '../../ui/lit/lit.js';
9
9
 
10
10
  import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
11
11
  import type {ResourcesPanel} from './ResourcesPanel.js';
@@ -15,15 +15,12 @@ export class WebMCPTreeElement extends ApplicationPanelTreeElement {
15
15
  #view?: WebMCPView;
16
16
 
17
17
  constructor(storagePanel: ResourcesPanel) {
18
- super(storagePanel, 'WebMCP', false, 'web-mcp');
18
+ super(storagePanel, i18n.i18n.lockedString('WebMCP'), false, 'web-mcp');
19
19
  const icon = createIcon('document');
20
20
  this.setLeadingIcons([icon]);
21
21
  const newBadge = UI.UIUtils.maybeCreateNewBadge('web-mcp');
22
22
  if (newBadge) {
23
- const fragment = document.createDocumentFragment();
24
- // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
25
- render(html`<div class="trailing-icons icons-container">${newBadge}</div>`, fragment);
26
- this.listItemElement.appendChild(fragment);
23
+ this.setTrailingIcons([newBadge]);
27
24
  }
28
25
  }
29
26
 
@@ -210,6 +210,10 @@ const UIStrings = {
210
210
  * @description Label for the tool origin in the tool details section of the WebMCP view in the Application panel.
211
211
  */
212
212
  origin: 'Origin',
213
+ /**
214
+ * @description Label for the tool output schema, which describes the structure of the tool's return value, in the tool details section of the WebMCP view in the Application panel.
215
+ */
216
+ outputSchema: 'Output schema',
213
217
  } as const;
214
218
  const str_ = i18n.i18n.registerUIStrings('panels/application/WebMCPView.ts', UIStrings);
215
219
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -967,6 +971,21 @@ export interface PayloadViewInput {
967
971
  symbolizedError?: Bindings.SymbolizedError.SymbolizedError|null;
968
972
  }
969
973
 
974
+ const schemaObjectTreeCache = new WeakMap<object, ObjectUI.ObjectPropertiesSection.ObjectTree>();
975
+
976
+ function getSchemaObjectTree(schema: object): ObjectUI.ObjectPropertiesSection.ObjectTree {
977
+ let objectTree = schemaObjectTreeCache.get(schema);
978
+ if (!objectTree) {
979
+ objectTree = new ObjectUI.ObjectPropertiesSection.ObjectTree(new SDK.RemoteObject.LocalJSONObject(schema), {
980
+ readOnly: true,
981
+ propertiesMode: ObjectUI.ObjectPropertiesSection.ObjectPropertiesMode.OWN_AND_INTERNAL_AND_INHERITED,
982
+ });
983
+ objectTree.expanded = true;
984
+ schemaObjectTreeCache.set(schema, objectTree);
985
+ }
986
+ return objectTree;
987
+ }
988
+
970
989
  export const PAYLOAD_DEFAULT_VIEW = (input: PayloadViewInput, output: undefined, target: HTMLElement): void => {
971
990
  if (input.valueObject === undefined && input.valueString === undefined && !input.errorText &&
972
991
  !input.symbolizedError) {
@@ -1128,6 +1147,7 @@ const TOOL_DETAILS_VIEW = (input: ToolDetailsViewInput, output: undefined, targe
1128
1147
  const tool = input.tool;
1129
1148
  const origin = input.origin;
1130
1149
  const flags = tool.flags;
1150
+ const outputSchema = tool.outputSchema;
1131
1151
  const formatter = new Intl.ListFormat(i18n.DevToolsLocale.DevToolsLocale.instance().locale, {
1132
1152
  style: 'short',
1133
1153
  type: 'unit',
@@ -1144,6 +1164,16 @@ const TOOL_DETAILS_VIEW = (input: ToolDetailsViewInput, output: undefined, targe
1144
1164
  <div class="label">${i18nString(UIStrings.flags)}</div>
1145
1165
  <div class="value">${formattedFlags}</div>
1146
1166
  ` : nothing}
1167
+ ${outputSchema ? html`
1168
+ <div class="label">${i18nString(UIStrings.outputSchema)}</div>
1169
+ <div class="value schema">
1170
+ ${widget(ObjectUI.ObjectPropertiesSection.ObjectPropertiesSectionWidget, {
1171
+ objectTree: getSchemaObjectTree(outputSchema),
1172
+ skipProto: true,
1173
+ showOverflow: false,
1174
+ })}
1175
+ </div>
1176
+ ` : nothing}
1147
1177
  ${tool.frame ? html`
1148
1178
  <div class="label">${i18nString(UIStrings.frame)}</div>
1149
1179
  <div class="value">${Components.Linkifier.Linkifier.linkifyRevealable(tool.frame, tool.frame.displayName())}</div>
@@ -61,7 +61,6 @@ export const DEFAULT_VIEW = (input: ViewInput, output: undefined, target: HTMLEl
61
61
  // clang-format off
62
62
  render(html`
63
63
  <style>${reportsGridStyles}</style>
64
- <style>${UI.inspectorCommonStyles}</style>
65
64
  <div class="reporting-container" jslog=${VisualLogging.section('reports')}>
66
65
  <div class="reporting-header">${i18n.i18n.lockedString('Reports')}</div>
67
66
  ${input.reports.length > 0 ? html`
@@ -54,13 +54,6 @@ devtools-report-value {
54
54
  align-self: start;
55
55
  }
56
56
 
57
- .report-value {
58
- padding: 0 var(--sys-size-4);
59
- overflow: hidden;
60
- text-overflow: ellipsis;
61
- white-space: nowrap;
62
- }
63
-
64
57
  .link,
65
58
  .devtools-link {
66
59
  color: var(--sys-color-primary);
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  .permissions-row div {
39
- padding-right: 5px;
39
+ padding-right: var(--sys-size-4);
40
40
  }
41
41
 
42
42
  .feature-name {
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .block-reason {
51
- width: 215px;
51
+ width: var(--sys-size-26);
52
52
  }
53
53
 
54
54
  .disabled-features-button {
@@ -4,54 +4,61 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- :host {
8
- display: flex;
9
- flex-direction: column;
10
- }
11
-
12
- .devtools-link {
13
- color: var(--sys-color-primary);
14
- text-decoration: underline;
15
- cursor: pointer;
16
- outline-offset: var(--sys-size-2);
17
- }
7
+ @scope to (devtools-widget > *) {
8
+ :scope {
9
+ display: flex;
10
+ flex-direction: column;
11
+ }
18
12
 
19
- .devtools-link:focus-visible {
20
- outline-width: unset;
21
- }
13
+ .devtools-link {
14
+ color: var(--sys-color-primary);
15
+ text-decoration: underline;
16
+ cursor: pointer;
17
+ outline-offset: var(--sys-size-2);
18
+ }
22
19
 
23
- input.devtools-text-input[type="text"] {
24
- padding: 3px var(--sys-size-4);
25
- margin-left: var(--sys-size-3);
26
- margin-right: var(--sys-size-3);
27
- width: 250px;
28
- height: 25px;
29
- }
20
+ .devtools-link:focus-visible {
21
+ outline-width: unset;
22
+ }
30
23
 
31
- input.devtools-text-input[type="text"]::placeholder {
32
- color: var(--sys-color-token-subtle);
33
- }
24
+ input.devtools-text-input[type="text"] {
25
+ padding: var(--sys-size-2) var(--sys-size-4);
26
+ margin-left: var(--sys-size-3);
27
+ margin-right: var(--sys-size-3);
28
+ width: var(--sys-size-29);
29
+ height: var(--sys-size-11);
30
+ }
34
31
 
35
- .protocol-handlers-row {
36
- margin: var(--sys-size-3) 0;
37
- }
32
+ input.devtools-text-input[type="text"]::placeholder {
33
+ color: var(--sys-color-token-subtle);
34
+ }
38
35
 
39
- .inline-icon {
40
- width: var(--sys-size-8);
41
- height: var(--sys-size-8);
36
+ .protocol-handlers-row {
37
+ margin: var(--sys-size-3) 0;
42
38
 
43
- &[name="check-circle"] {
44
- color: var(--icon-checkmark-green);
39
+ &:has(.protocol-select) {
40
+ display: flex;
41
+ align-items: center;
42
+ }
45
43
  }
46
- }
47
44
 
48
- @media (forced-colors: active) {
49
- .devtools-link:not(.devtools-link-prevent-click) {
50
- color: linktext;
45
+ .inline-icon {
46
+ width: var(--sys-size-8);
47
+ height: var(--sys-size-8);
48
+
49
+ &[name="check-circle"] {
50
+ color: var(--icon-checkmark-green);
51
+ }
51
52
  }
52
53
 
53
- .devtools-link:focus-visible {
54
- background: Highlight;
55
- color: HighlightText;
54
+ @media (forced-colors: active) {
55
+ .devtools-link:not(.devtools-link-prevent-click) {
56
+ color: linktext;
57
+ }
58
+
59
+ .devtools-link:focus-visible {
60
+ background: Highlight;
61
+ color: HighlightText;
62
+ }
56
63
  }
57
64
  }
@@ -27,7 +27,3 @@ devtools-icon {
27
27
  width: var(--sys-size-7);
28
28
  height: var(--sys-size-7);
29
29
  }
30
-
31
- .no-tt-message {
32
- margin-top: var(--sys-size-9);
33
- }
@@ -14,7 +14,6 @@
14
14
  user-select: none;
15
15
  white-space: nowrap;
16
16
  margin-bottom: var(--sys-size-3);
17
- flex: 0 0 18px;
18
17
  display: flex;
19
18
  align-items: center;
20
19
  }
@@ -29,10 +28,4 @@
29
28
  flex: 1;
30
29
  overflow: auto;
31
30
  }
32
-
33
- .cookie-preview-widget-toggle {
34
- margin-left: var(--sys-size-6);
35
- font-weight: normal;
36
- flex-shrink: 1;
37
- }
38
31
  }
@@ -38,10 +38,6 @@
38
38
  unicode-bidi: isolate;
39
39
  }
40
40
 
41
- .indexed-db-container {
42
- overflow: auto;
43
- }
44
-
45
41
  .source-code.indexed-db-key-path {
46
42
  font-size: unset !important; /* stylelint-disable-line declaration-no-important */
47
43
  }
@@ -73,8 +69,6 @@
73
69
  }
74
70
 
75
71
  .stale-data-warning .warning-icon {
76
- --icon-color: var(--icon-warning);
77
-
78
72
  width: var(--sys-size-9);
79
73
  height: var(--sys-size-9);
80
74
  }
@@ -172,7 +172,6 @@ const DEFAULT_VIEW = (input: ViewInput, _output: undefined, target: HTMLElement)
172
172
  // clang-format off
173
173
  Lit.render(html`
174
174
  <style>${preloadingDetailsReportViewStyles}</style>
175
- <style>${UI.inspectorCommonStyles}</style>
176
175
  <div class="empty-state">
177
176
  <span class="empty-state-header">${i18nString(UIStrings.noElementSelected)}</span>
178
177
  <span class="empty-state-description">${i18nString(UIStrings.selectAnElementForMoreDetails)}</span>
@@ -417,7 +416,6 @@ const DEFAULT_VIEW = (input: ViewInput, _output: undefined, target: HTMLElement)
417
416
  // clang-format off
418
417
  Lit.render(html`
419
418
  <style>${preloadingDetailsReportViewStyles}</style>
420
- <style>${UI.inspectorCommonStyles}</style>
421
419
  <devtools-report
422
420
  .data=${{reportTitle: 'Speculative Loading Attempt'}}
423
421
  jslog=${VisualLogging.section('preloading-details')}>
@@ -741,7 +741,6 @@ export function prerenderFailureReason(
741
741
  case Protocol.Preload.PrerenderFinalStatus.OtherPrerenderedPageActivated:
742
742
  case Protocol.Preload.PrerenderFinalStatus.V8OptimizerDisabled:
743
743
  case Protocol.Preload.PrerenderFinalStatus.PrerenderFailedDuringPrefetch:
744
- // TODO(crbug.com/350870118): Add message for this.
745
744
  return '';
746
745
  default:
747
746
  // Note that we use switch and exhaustiveness check to prevent to
@@ -419,9 +419,8 @@ const DEFAULT_VIEW: View = (input, _output, target) => {
419
419
  };
420
420
 
421
421
  /**
422
- * TODO(kenoss): Rename this class and file once https://crrev.com/c/4933567 landed.
423
- * This also shows summary of speculations initiated by this page.
424
- **/
422
+ * Shows preloading used for the current page and a summary of speculations initiated by this page.
423
+ */
425
424
  export class UsedPreloadingView extends UI.Widget.VBox {
426
425
  readonly #view: View;
427
426
 
@@ -465,8 +464,8 @@ export class UsedPreloadingView extends UI.Widget.VBox {
465
464
  const forThisPage = this.#data.previousAttempts.filter(
466
465
  attempt => Common.ParsedURL.ParsedURL.urlWithoutHash(attempt.key.url) === pageURL);
467
466
  const prefetch =
468
- forThisPage.filter(attempt => attempt.key.action === Protocol.Preload.SpeculationAction.Prefetch)[0];
469
- const prerenderLike = forThisPage.filter(attempt => this.#isPrerenderLike(attempt.action))[0];
467
+ forThisPage.findLast(attempt => attempt.key.action === Protocol.Preload.SpeculationAction.Prefetch);
468
+ const prerenderLike = forThisPage.findLast(attempt => this.#isPrerenderLike(attempt.action));
470
469
 
471
470
  let kind = UsedKind.NO_PRELOADS;
472
471
  // Prerender -> prefetch downgrade case
@@ -24,13 +24,4 @@
24
24
  background-color: var(--sys-color-cdt-base-container);
25
25
  padding: var(--sys-size-1) var(--sys-size-3);
26
26
  }
27
-
28
- .preloading-placeholder {
29
- flex-grow: 1;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- font-size: var(--sys-typescale-body3-size);
34
- color: var(--sys-color-token-subtle);
35
- }
36
27
  }
@@ -5,18 +5,11 @@
5
5
  */
6
6
 
7
7
  @scope to (devtools-widget > *) {
8
- .resource-service-worker-update-view {
9
- display: block;
10
- margin: var(--sys-size-4);
11
- color: var(--sys-color-on-surface-subtle);
12
- overflow: auto;
13
- }
14
-
15
8
  .service-worker-update-timing-table {
16
9
  border: var(--sys-size-1) solid var(--sys-color-divider);
17
10
  border-spacing: 0;
18
- padding-left: 10px;
19
- padding-right: 10px;
11
+ padding-left: var(--sys-size-6);
12
+ padding-right: var(--sys-size-6);
20
13
  line-height: initial;
21
14
  table-layout: auto;
22
15
  overflow: hidden;
@@ -7,7 +7,7 @@
7
7
  .service-worker-version {
8
8
  display: flex;
9
9
  /* The status string can be long, allow this line of the report to wrap. */
10
- align-items: center;
10
+ align-items: baseline;
11
11
  flex-wrap: wrap;
12
12
 
13
13
  devtools-button {
@@ -45,13 +45,14 @@
45
45
  .service-worker-installing-circle {
46
46
  position: relative;
47
47
  display: inline-block;
48
- width: 10px;
49
- height: 10px;
48
+ /* Center the --sys-size-1 stack bar (left: var(--sys-size-3)) under the circle. */
49
+ width: calc(2 * var(--sys-size-3) + var(--sys-size-1));
50
+ height: calc(2 * var(--sys-size-3) + var(--sys-size-1));
50
51
  z-index: 10;
51
52
  margin-right: var(--sys-size-4);
52
53
  border-radius: var(--sys-shape-corner-full);
53
54
  border: var(--sys-size-1) solid var(--sys-color-token-subtle);
54
- align-self: center;
55
+ align-self: baseline;
55
56
  /* The circle should not shrink, to avoid risking becoming invisible. */
56
57
  flex-shrink: 0;
57
58
  }
@@ -42,11 +42,6 @@ devtools-report-section:has(.quota-override-error:empty) {
42
42
  margin-top: var(--sys-size-7);
43
43
  }
44
44
 
45
- .quota-override-editor-with-button {
46
- align-items: baseline;
47
- display: flex;
48
- }
49
-
50
45
  .quota-override-notification-editor {
51
46
  border: solid var(--sys-size-1) var(--sys-color-neutral-outline);
52
47
  border-radius: var(--sys-shape-corner-extra-small);
@@ -156,6 +156,17 @@
156
156
  margin-left: calc(-1 * var(--sys-size-3));
157
157
  }
158
158
 
159
+ &.schema {
160
+ padding: 0;
161
+ min-width: 0;
162
+ overflow: hidden;
163
+
164
+ > devtools-widget {
165
+ display: block;
166
+ max-width: 100%;
167
+ }
168
+ }
169
+
159
170
  &.tool-origin-container {
160
171
  display: flex;
161
172
  align-items: center;
@@ -310,3 +321,9 @@
310
321
  margin: var(--sys-size-6) var(--sys-size-8);
311
322
  }
312
323
  }
324
+
325
+ /* The schema tree is a child of a nested devtools-widget, which the @scope above excludes. */
326
+ .tool-details-grid .value.schema > devtools-widget > devtools-tree {
327
+ display: block;
328
+ max-width: 100%;
329
+ }