chrome-devtools-frontend 1.0.1736236 → 1.0.1739869

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 (388) hide show
  1. package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
  2. package/.agents/skills/version-control/SKILL.md +63 -11
  3. package/.stylelintrc.json +3 -1
  4. package/docs/devtools-protocol.md +3 -1
  5. package/eslint.config.mjs +127 -6
  6. package/front_end/application_tokens.css +0 -30
  7. package/front_end/core/host/AidaClient.ts +14 -36
  8. package/front_end/core/host/AidaGcaTranslation.ts +8 -5
  9. package/front_end/core/root/Runtime.ts +0 -5
  10. package/front_end/core/sdk/SourceMap.ts +30 -3
  11. package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
  12. package/front_end/design_system_tokens.css +1 -0
  13. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
  14. package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
  15. package/front_end/entrypoints/main/MainImpl.ts +0 -4
  16. package/front_end/generated/SupportedCSSProperties.ts +24 -23
  17. package/front_end/models/ai-utils/AiUtils.ts +1 -5
  18. package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
  19. package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
  20. package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
  21. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
  22. package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
  23. package/front_end/models/trace/EventsSerializer.ts +0 -8
  24. package/front_end/models/trace/extras/TraceFilter.ts +16 -8
  25. package/front_end/models/trace/extras/TraceTree.ts +104 -67
  26. package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
  27. package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
  28. package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
  29. package/front_end/models/trace/helpers/Extensions.ts +1 -3
  30. package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
  31. package/front_end/models/trace/helpers/Trace.ts +15 -12
  32. package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
  33. package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
  34. package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
  35. package/front_end/models/workspace/UISourceCode.ts +30 -8
  36. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
  37. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
  38. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
  39. package/front_end/panels/ai_assistance/components/chatView.css +0 -212
  40. package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
  41. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  42. package/front_end/panels/animation/animationTimeline.css +5 -3
  43. package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
  44. package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
  45. package/front_end/panels/application/ResourcesPanel.ts +1 -0
  46. package/front_end/panels/application/backgroundServiceView.css +2 -2
  47. package/front_end/panels/application/components/backForwardCacheView.css +1 -1
  48. package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
  49. package/front_end/panels/application/frameDetailsReportView.css +0 -7
  50. package/front_end/panels/application/indexedDBViews.css +3 -3
  51. package/front_end/panels/application/privateVerificationTokensView.css +6 -0
  52. package/front_end/panels/application/resourcesPanel.css +0 -48
  53. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
  54. package/front_end/panels/application/serviceWorkersView.css +2 -2
  55. package/front_end/panels/comments/CommentsPane.ts +1 -1
  56. package/front_end/panels/comments/commentsPane.css +1 -1
  57. package/front_end/panels/common/common.ts +0 -1
  58. package/front_end/panels/console/ConsoleView.ts +11 -1
  59. package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
  60. package/front_end/panels/console/consolePinPane.css +1 -1
  61. package/front_end/panels/console/consoleView.css +6 -5
  62. package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
  63. package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
  64. package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
  65. package/front_end/panels/elements/classesPaneWidget.css +3 -7
  66. package/front_end/panels/elements/components/CSSQuery.ts +6 -5
  67. package/front_end/panels/elements/layoutPane.css +0 -1
  68. package/front_end/panels/elements/metricsSidebarPane.css +2 -2
  69. package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
  70. package/front_end/panels/elements/stylesSidebarPane.css +0 -1
  71. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
  72. package/front_end/panels/emulation/deviceModeView.css +0 -1
  73. package/front_end/panels/explain/components/consoleInsight.css +1 -6
  74. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
  75. package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
  76. package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
  77. package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
  78. package/front_end/panels/issues/issues.ts +2 -0
  79. package/front_end/panels/issues/issuesTree.css +9 -2
  80. package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
  81. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
  82. package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
  83. package/front_end/panels/layer_viewer/layerDetailsView.css +2 -2
  84. package/front_end/panels/layer_viewer/layers3DView.css +0 -4
  85. package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
  86. package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
  87. package/front_end/panels/media/playerListView.css +0 -18
  88. package/front_end/panels/media/playerPropertiesView.css +1 -1
  89. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
  90. package/front_end/panels/network/NetworkLogView.ts +9 -2
  91. package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
  92. package/front_end/panels/network/RequestPreviewView.ts +182 -63
  93. package/front_end/panels/network/RequestTimingView.ts +16 -2
  94. package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
  95. package/front_end/panels/network/networkConfigView.css +3 -3
  96. package/front_end/panels/network/networkLogView.css +4 -16
  97. package/front_end/panels/network/networkPanel.css +0 -7
  98. package/front_end/panels/network/networkTimingTable.css +12 -27
  99. package/front_end/panels/network/signedExchangeInfoView.css +12 -8
  100. package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
  101. package/front_end/panels/profiler/IsolateSelector.ts +31 -10
  102. package/front_end/panels/profiler/profilesPanel.css +0 -19
  103. package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
  104. package/front_end/panels/recorder/ControlButton.ts +1 -1
  105. package/front_end/panels/recorder/RecordingView.ts +22 -1
  106. package/front_end/panels/recorder/StepView.ts +26 -1
  107. package/front_end/panels/recorder/TimelineSection.ts +22 -6
  108. package/front_end/panels/recorder/controlButton.css +2 -9
  109. package/front_end/panels/recorder/recorderPanel.css +0 -1
  110. package/front_end/panels/recorder/recordingView.css +32 -32
  111. package/front_end/panels/recorder/replaySection.css +2 -0
  112. package/front_end/panels/recorder/stepView.css +18 -14
  113. package/front_end/panels/recorder/timelineSection.css +60 -84
  114. package/front_end/panels/screencast/screencastView.css +2 -2
  115. package/front_end/panels/search/searchView.css +1 -1
  116. package/front_end/panels/security/SecurityPanel.ts +474 -418
  117. package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
  118. package/front_end/panels/security/lockIcon.css +52 -50
  119. package/front_end/panels/security/mainView.css +149 -145
  120. package/front_end/panels/security/originView.css +117 -115
  121. package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
  122. package/front_end/panels/sensors/SensorsView.ts +6 -21
  123. package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
  124. package/front_end/panels/settings/AISettingsTab.ts +1 -2
  125. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  126. package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
  127. package/front_end/panels/sources/NavigatorView.ts +105 -31
  128. package/front_end/panels/sources/breakpointsView.css +5 -3
  129. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  130. package/front_end/panels/sources/sourcesView.css +2 -1
  131. package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
  132. package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
  133. package/front_end/panels/timeline/TimelineController.ts +30 -26
  134. package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
  135. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
  136. package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
  137. package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
  138. package/front_end/panels/timeline/TimelinePanel.ts +4 -2
  139. package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
  140. package/front_end/panels/timeline/components/DetailsView.ts +7 -14
  141. package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
  142. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
  143. package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
  144. package/front_end/panels/timeline/components/networkRequestDetails.css +2 -1
  145. package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
  146. package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
  147. package/front_end/panels/timeline/docs/profile_calls.md +7 -9
  148. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
  149. package/front_end/panels/timeline/timelineDetailsView.css +2 -2
  150. package/front_end/panels/web_audio/webAudio.css +1 -2
  151. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  152. package/front_end/panels/webauthn/webauthnPane.css +1 -1
  153. package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
  154. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  155. package/front_end/third_party/axe-core/README.chromium +2 -3
  156. package/front_end/third_party/chromium/README.chromium +1 -1
  157. package/front_end/third_party/puppeteer/README.chromium +2 -2
  158. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
  159. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
  160. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
  161. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
  164. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
  167. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  168. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
  169. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
  170. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
  171. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
  172. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
  174. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
  176. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
  178. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
  180. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
  182. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
  184. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
  185. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  186. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
  187. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
  188. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
  189. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
  190. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
  192. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
  193. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
  194. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
  195. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  196. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
  197. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
  199. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
  200. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
  201. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
  202. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
  204. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
  206. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
  207. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
  208. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
  209. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
  210. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
  211. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
  212. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
  213. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
  215. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
  216. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
  217. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
  219. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
  220. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
  221. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  222. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
  223. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  224. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
  225. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
  226. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
  227. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
  228. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
  229. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
  230. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
  231. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
  232. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
  233. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
  234. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
  235. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
  236. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
  237. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
  238. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
  239. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
  240. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
  241. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  242. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
  243. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
  244. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
  245. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
  246. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
  247. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
  248. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
  249. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
  250. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
  251. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
  252. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
  253. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  254. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
  255. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
  256. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
  257. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
  258. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
  259. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
  260. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
  261. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
  262. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
  263. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
  264. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
  265. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
  266. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
  267. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
  268. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
  269. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
  270. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
  271. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
  272. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
  273. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
  274. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
  275. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
  276. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
  277. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
  278. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
  279. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
  280. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
  281. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
  282. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
  283. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
  284. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
  285. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
  286. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  287. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
  288. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
  289. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
  290. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
  291. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  292. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  293. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
  294. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  295. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  296. package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
  297. package/front_end/third_party/puppeteer/package/package.json +10 -8
  298. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
  299. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
  300. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
  301. package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
  302. package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
  303. package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
  304. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
  305. package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
  306. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
  307. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
  308. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
  309. package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
  310. package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
  311. package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
  312. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
  313. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
  314. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
  315. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
  316. package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
  317. package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
  318. package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
  319. package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
  320. package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
  321. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
  322. package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
  323. package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
  324. package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
  325. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
  326. package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
  327. package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
  328. package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
  329. package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
  330. package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
  331. package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
  332. package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
  333. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
  334. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
  335. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  336. package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
  337. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  338. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
  339. package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
  340. package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
  341. package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
  342. package/front_end/ui/components/buttons/button.css +2 -2
  343. package/front_end/ui/components/buttons/floatingButton.css +0 -44
  344. package/front_end/ui/components/diff_view/diffView.css +0 -2
  345. package/front_end/ui/components/icon_button/iconButton.css +1 -1
  346. package/front_end/ui/components/markdown_view/markdownView.css +1 -1
  347. package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
  348. package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
  349. package/front_end/ui/legacy/ContextMenu.ts +7 -5
  350. package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
  351. package/front_end/ui/legacy/InspectorView.ts +5 -1
  352. package/front_end/ui/legacy/PopoverHelper.ts +1 -0
  353. package/front_end/ui/legacy/RootView.ts +9 -3
  354. package/front_end/ui/legacy/SplitWidget.ts +1 -0
  355. package/front_end/ui/legacy/Treeoutline.ts +9 -0
  356. package/front_end/ui/legacy/UIUtils.ts +1 -1
  357. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
  358. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  359. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
  360. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
  361. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
  362. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
  363. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
  364. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +43 -14
  365. package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
  366. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
  367. package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
  368. package/front_end/ui/legacy/filter.css +7 -3
  369. package/front_end/ui/legacy/infobar.css +1 -1
  370. package/front_end/ui/legacy/inspectorCommon.css +3 -55
  371. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
  372. package/front_end/ui/legacy/listWidget.css +3 -8
  373. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  374. package/front_end/ui/legacy/tabbedPane.css +2 -9
  375. package/front_end/ui/legacy/treeoutline.css +3 -2
  376. package/front_end/ui/visual_logging/KnownContextValues.ts +134 -0
  377. package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
  378. package/inspector_overlay/tool_highlight.css +0 -7
  379. package/inspector_overlay/tool_highlight.ts +0 -1
  380. package/package.json +1 -1
  381. package/front_end/Images/geminiInDevTools.png +0 -0
  382. package/front_end/Images/geminiInDevTools_2x.png +0 -0
  383. package/front_end/generated/InspectorBackendCommands.ts +0 -1690
  384. package/front_end/generated/protocol-mapping.d.ts +0 -5986
  385. package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
  386. package/front_end/generated/protocol.ts +0 -23364
  387. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
  388. package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
@@ -4,13 +4,17 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- .signed-exchange-info-view {
8
- user-select: text;
9
- overflow: auto;
10
- }
7
+ @scope to (devtools-widget > *) {
8
+ :scope,
9
+ .signed-exchange-info-view {
10
+ user-select: text;
11
+ overflow: auto;
12
+ }
11
13
 
12
- .signed-exchange-info-tree {
13
- flex-grow: 1;
14
- overflow-y: auto;
15
- margin: 0;
14
+ .signed-exchange-info-tree {
15
+ display: block;
16
+ flex-grow: 1;
17
+ overflow-y: auto;
18
+ margin: 0;
19
+ }
16
20
  }
@@ -62,11 +62,11 @@
62
62
  }
63
63
 
64
64
  .perfmon-indicator {
65
- padding: 3px 9px;
65
+ padding: var(--sys-size-2) var(--sys-size-5);
66
66
  margin: calc(-1 * var(--sys-size-1)) 0;
67
67
  display: flex;
68
68
  flex-shrink: 0;
69
- width: 210px;
69
+ width: var(--sys-size-26);
70
70
  }
71
71
 
72
72
  .perfmon-indicator-value {
@@ -6,10 +6,10 @@ import * as Common from '../../core/common/common.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
7
  import * as SDK from '../../core/sdk/sdk.js';
8
8
  import * as UI from '../../ui/legacy/legacy.js';
9
- import {Directives, html, render} from '../../ui/lit/lit.js';
9
+ import {Directives, html, nothing, render} from '../../ui/lit/lit.js';
10
10
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
11
11
 
12
- const {classMap, ifDefined, repeat} = Directives;
12
+ const {classMap, ifDefined, ref, repeat} = Directives;
13
13
 
14
14
  const UIStrings = {
15
15
  /**
@@ -69,6 +69,7 @@ export interface TrendInfo {
69
69
 
70
70
  export interface IsolateItemInfo {
71
71
  id: string;
72
+ optionId: string;
72
73
  heapText: string;
73
74
  trend: TrendInfo;
74
75
  titles: string[];
@@ -80,12 +81,17 @@ export interface ViewInput {
80
81
  trendIntervalMinutes: number;
81
82
  totalText: string;
82
83
  trend: TrendInfo;
83
- onSelect: (index: number) => void;
84
+ onSelect: (index: number, scrollIntoView?: boolean) => void;
84
85
  }
85
86
 
86
- export type View = (input: ViewInput, _output: undefined, target: HTMLElement) => void;
87
+ export interface ViewOutput {
88
+ scrollSelectedIntoView?: () => void;
89
+ }
90
+
91
+ export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
87
92
 
88
- export const DEFAULT_VIEW: View = (input, _output, target) => {
93
+ export const DEFAULT_VIEW: View = (input, output, target) => {
94
+ output.scrollSelectedIntoView = undefined;
89
95
  const onKeyDown = (event: KeyboardEvent): void => {
90
96
  if (!input.items.length) {
91
97
  return;
@@ -112,7 +118,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
112
118
  }
113
119
  event.consume(true);
114
120
  if (nextIndex !== -1 && nextIndex !== selectedIndex) {
115
- input.onSelect(nextIndex);
121
+ input.onSelect(nextIndex, true);
116
122
  }
117
123
  };
118
124
 
@@ -122,12 +128,14 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
122
128
  <div class="javascript-vm-instances-list"
123
129
  role="listbox"
124
130
  aria-label=${i18nString(UIStrings.javascriptVmInstances)}
131
+ aria-activedescendant=${ifDefined(input.items[input.selectedIndex]?.optionId)}
125
132
  tabindex=${input.items.length ? 0 : -1}
126
133
  @keydown=${onKeyDown}>
127
134
  ${repeat(input.items, item => item.id, (item, index) => {
128
135
  const isSelected = index === input.selectedIndex;
129
136
  return html`
130
- <div class=${classMap({
137
+ <div id=${item.optionId}
138
+ class=${classMap({
131
139
  'profile-memory-usage-item': true,
132
140
  hbox: true,
133
141
  selected: isSelected,
@@ -141,7 +149,12 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
141
149
  resize: true,
142
150
  keydown: 'ArrowUp|ArrowDown|PageUp|PageDown|Home|End',
143
151
  })}
144
- @click=${() => input.onSelect(index)}>
152
+ @click=${() => input.onSelect(index)}
153
+ ${isSelected ? ref(el => {
154
+ if (el instanceof HTMLElement) {
155
+ output.scrollSelectedIntoView = () => el.scrollIntoViewIfNeeded(false);
156
+ }
157
+ }) : nothing}>
145
158
  <div class="profile-memory-usage-item-size"
146
159
  title=${i18nString(UIStrings.heapSizeInUseByLiveJsObjects)}>
147
160
  ${item.heapText}
@@ -227,9 +240,11 @@ function getIsolateTitles(isolate: SDK.IsolateManager.Isolate): string[] {
227
240
 
228
241
  export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManager.Observer {
229
242
  readonly #view: View;
243
+ readonly #viewOutput: ViewOutput = {};
230
244
  readonly #isolates: SDK.IsolateManager.Isolate[] = [];
231
245
  readonly #itemStates = new Map<SDK.IsolateManager.Isolate, IsolateItemInfo>();
232
246
  #selectedIsolate: SDK.IsolateManager.Isolate|null = null;
247
+ #pendingScrollToSelected = false;
233
248
  #totalText = '';
234
249
  #totalTrend: TrendInfo = {text: '', increasing: false};
235
250
 
@@ -252,14 +267,19 @@ export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManage
252
267
  trendIntervalMinutes,
253
268
  totalText: this.#totalText,
254
269
  trend: this.#totalTrend,
255
- onSelect: index => {
270
+ onSelect: (index, scrollIntoView = false) => {
256
271
  const isolate = this.#isolates[index];
257
272
  if (isolate) {
273
+ this.#pendingScrollToSelected = scrollIntoView;
258
274
  this.#selectIsolate(isolate);
259
275
  }
260
276
  },
261
277
  },
262
- undefined, this.contentElement);
278
+ this.#viewOutput, this.contentElement);
279
+ if (this.#pendingScrollToSelected) {
280
+ this.#pendingScrollToSelected = false;
281
+ this.#viewOutput.scrollSelectedIntoView?.();
282
+ }
263
283
  }
264
284
 
265
285
  override wasShown(): void {
@@ -289,6 +309,7 @@ export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManage
289
309
  isolateAdded(isolate: SDK.IsolateManager.Isolate): void {
290
310
  const item: IsolateItemInfo = {
291
311
  id: isolate.id(),
312
+ optionId: UI.ARIAUtils.nextId('isolate-option-'),
292
313
  heapText: '',
293
314
  trend: {text: '', increasing: false},
294
315
  titles: getIsolateTitles(isolate),
@@ -124,25 +124,6 @@
124
124
  flex: 0 0 var(--sys-size-19) !important; /* stylelint-disable-line declaration-no-important */
125
125
  }
126
126
 
127
- .profile-text-view {
128
- padding: 10px;
129
- overflow: auto;
130
- margin: 0;
131
- user-select: text;
132
- cursor: text;
133
- }
134
-
135
- .empty-landing-page {
136
- position: absolute;
137
- background-color: var(--sys-color-cdt-base-container);
138
- justify-content: center;
139
- align-items: center;
140
- overflow: auto;
141
- font-size: var(--sys-typescale-body1-size);
142
- color: var(--sys-color-token-subtle);
143
- padding: 50px;
144
- }
145
-
146
127
  @media (forced-colors: active) {
147
128
  .profile-view .data-grid tr:hover td:not(.bottom-filler-td) {
148
129
  background: Highlight;
@@ -80,7 +80,7 @@ ul {
80
80
  .editor-wrapper::after {
81
81
  content: "";
82
82
  display: block;
83
- height: 50px;
83
+ height: var(--sys-size-16);
84
84
  }
85
85
 
86
86
  .clear-button,
@@ -36,7 +36,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: unknown, target: HTMLEle
36
36
  <div class="icon ${shape}"></div>
37
37
  <div class="label">${label}</div>
38
38
  </button>
39
- `, target, {container: {attributes: {classes: 'flex-none'}}});
39
+ `, target, {container: {classes: ['flex-none']}});
40
40
  // clang-format on
41
41
  };
42
42
 
@@ -524,6 +524,25 @@ function renderReplayOrAbortButton(input: ViewInput): Lit.LitTemplate {
524
524
 
525
525
  function renderSections(input: ViewInput): Lit.LitTemplate {
526
526
  const codeToggleTitle = input.showCodeView ? i18nString(UIStrings.hideCode) : i18nString(UIStrings.showCode);
527
+ /**
528
+ * Returns the state of the step or section that is rendered right before the
529
+ * given section (`stepIndex` is -1) or the given step of the section.
530
+ */
531
+ const getPreviousState = (sectionIndex: number, stepIndex: number): State|undefined => {
532
+ const section = input.sections[sectionIndex];
533
+ if (stepIndex > 0) {
534
+ return input.getStepState(section.steps[stepIndex - 1]);
535
+ }
536
+ if (stepIndex === 0) {
537
+ return input.getSectionState(section);
538
+ }
539
+ const previousSection = input.sections[sectionIndex - 1];
540
+ if (!previousSection) {
541
+ return undefined;
542
+ }
543
+ const lastStep = previousSection.steps.at(-1);
544
+ return lastStep ? input.getStepState(lastStep) : input.getSectionState(previousSection);
545
+ };
527
546
  // clang-format off
528
547
  return html`
529
548
  <div class="sections">
@@ -564,6 +583,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
564
583
  isLastSection:
565
584
  i === input.sections.length - 1 &&
566
585
  section.steps.length === 0,
586
+ isAfterError: getPreviousState(i, -1) === State.ERROR,
567
587
  isSelected:
568
588
  input.selectedStep === (section.causingStep || null),
569
589
  sectionIndex: i,
@@ -585,7 +605,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
585
605
  onAttributeRequested: input.onAttributeRequested,
586
606
  onCopyStep: input.onCopyStep,
587
607
  })}
588
- ${section.steps.map(step => {
608
+ ${section.steps.map((step, j) => {
589
609
  const stepIndex = input.recording.steps.indexOf(step);
590
610
  return html`
591
611
  <devtools-widget
@@ -596,6 +616,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
596
616
  isFirstSection: false,
597
617
  isLastSection:
598
618
  i === input.sections.length - 1 && input.recording.steps[input.recording.steps.length - 1] === step,
619
+ isAfterError: getPreviousState(i, j) === State.ERROR,
599
620
  isStartOfGroup: false,
600
621
  isEndOfGroup: section.steps[section.steps.length - 1] === step,
601
622
  stepIndex,
@@ -176,6 +176,11 @@ export interface ViewInput {
176
176
  sectionIndex: number;
177
177
  isFirstSection: boolean;
178
178
  isLastSection: boolean;
179
+ /**
180
+ * Whether the step or section rendered right before this one is in the
181
+ * error state.
182
+ */
183
+ isAfterError: boolean;
179
184
  isRecording: boolean;
180
185
  isPlaying: boolean;
181
186
  isVisible: boolean;
@@ -342,6 +347,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
342
347
  isStartOfGroup: input.isStartOfGroup,
343
348
  isEndOfGroup: input.isEndOfGroup,
344
349
  isSelected: input.isSelected,
350
+ isAfterError: input.isAfterError,
345
351
  })}
346
352
  @contextmenu=${
347
353
  (e: Event) => {
@@ -434,7 +440,6 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
434
440
  onAttributeRequested: input.onAttributeRequested,
435
441
  })}></devtools-widget>`
436
442
  }
437
- }
438
443
  </div>
439
444
  ${
440
445
  input.error &&
@@ -472,6 +477,7 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
472
477
  sectionIndex: 0,
473
478
  isFirstSection: false,
474
479
  isLastSection: false,
480
+ isAfterError: false,
475
481
  isRecording: false,
476
482
  isPlaying: false,
477
483
  isVisible: false,
@@ -523,6 +529,14 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
523
529
  this.requestUpdate();
524
530
  }
525
531
 
532
+ set showDetails(showDetails: boolean) {
533
+ if (this.#viewInput.showDetails === showDetails) {
534
+ return;
535
+ }
536
+ this.#viewInput.showDetails = showDetails;
537
+ this.requestUpdate();
538
+ }
539
+
526
540
  set isEndOfGroup(isEndOfGroup: boolean) {
527
541
  this.#viewInput.isEndOfGroup = isEndOfGroup;
528
542
  this.requestUpdate();
@@ -549,10 +563,21 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
549
563
  }
550
564
 
551
565
  set isLastSection(isLastSection: boolean) {
566
+ if (this.#viewInput.isLastSection === isLastSection) {
567
+ return;
568
+ }
552
569
  this.#viewInput.isLastSection = isLastSection;
553
570
  this.requestUpdate();
554
571
  }
555
572
 
573
+ set isAfterError(isAfterError: boolean) {
574
+ if (this.#viewInput.isAfterError === isAfterError) {
575
+ return;
576
+ }
577
+ this.#viewInput.isAfterError = isAfterError;
578
+ this.requestUpdate();
579
+ }
580
+
556
581
  set isRecording(isRecording: boolean) {
557
582
  this.#viewInput.isRecording = isRecording;
558
583
  this.requestUpdate();
@@ -15,6 +15,11 @@ export interface TimelineSectionData {
15
15
  isStartOfGroup: boolean;
16
16
  isEndOfGroup: boolean;
17
17
  isSelected: boolean;
18
+ /**
19
+ * Whether the section right before this one is in the error state. The part
20
+ * of the timeline that connects the two sections is then drawn as an error.
21
+ */
22
+ isAfterError: boolean;
18
23
  }
19
24
 
20
25
  export type ViewInput = TimelineSectionData;
@@ -28,6 +33,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
28
33
  'is-first-section': input.isFirstSection,
29
34
  'is-last-section': input.isLastSection,
30
35
  'is-selected': input.isSelected,
36
+ 'is-after-error': input.isAfterError,
31
37
  };
32
38
 
33
39
  // clang-format off
@@ -35,12 +41,12 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
35
41
  html`
36
42
  <style>${timelineSectionStyles}</style>
37
43
  <div class=${Lit.Directives.classMap(classes)}>
38
- <div class="overlay"></div>
39
- <div class="icon"><slot name="icon"></slot></div>
40
- <svg width="24" height="100%" class="bar" aria-hidden="true">
41
- <rect class="line" x="7" y="0" width="2" height="100%" />
42
- </svg>
43
- <slot></slot>
44
+ <div class="timeline">
45
+ <div class="line line-before"></div>
46
+ <div class="line line-after"></div>
47
+ <div class="icon"><slot name="icon"></slot></div>
48
+ </div>
49
+ <div class="content"><slot></slot></div>
44
50
  </div>
45
51
  `,
46
52
  target,
@@ -54,6 +60,7 @@ export class TimelineSection extends UI.Widget.Widget {
54
60
  #isFirstSection = false;
55
61
  #isLastSection = false;
56
62
  #isSelected = false;
63
+ #isAfterError = false;
57
64
  #view: typeof DEFAULT_VIEW;
58
65
 
59
66
  constructor(element?: HTMLElement,
@@ -87,6 +94,14 @@ export class TimelineSection extends UI.Widget.Widget {
87
94
  this.requestUpdate();
88
95
  }
89
96
 
97
+ set isAfterError(value: boolean) {
98
+ if (this.#isAfterError === value) {
99
+ return;
100
+ }
101
+ this.#isAfterError = value;
102
+ this.requestUpdate();
103
+ }
104
+
90
105
  override performUpdate(): void {
91
106
  this.#view(
92
107
  {
@@ -95,6 +110,7 @@ export class TimelineSection extends UI.Widget.Widget {
95
110
  isFirstSection: this.#isFirstSection,
96
111
  isLastSection: this.#isLastSection,
97
112
  isSelected: this.#isSelected,
113
+ isAfterError: this.#isAfterError,
98
114
  },
99
115
  undefined,
100
116
  this.contentElement,
@@ -31,16 +31,14 @@
31
31
  }
32
32
 
33
33
  .icon {
34
- display: flex;
34
+ display: grid;
35
+ place-items: center;
35
36
  width: var(--sys-size-14);
36
37
  height: var(--sys-size-14);
37
38
  border-radius: var(--sys-shape-corner-full);
38
39
  background: var(--sys-color-error-bright);
39
40
  margin-bottom: var(--sys-size-5);
40
- position: relative;
41
41
  transition: background 200ms;
42
- place-content: center center;
43
- align-items: center;
44
42
  }
45
43
 
46
44
  .icon::before {
@@ -48,14 +46,9 @@
48
46
 
49
47
  box-sizing: border-box;
50
48
  content: "";
51
- display: block;
52
49
  width: var(--sys-size-7);
53
50
  height: var(--sys-size-7);
54
51
  border: var(--sys-size-1) solid var(--override-white);
55
- position: absolute;
56
- top: 50%;
57
- left: 50%;
58
- transform: translate(-50%, -50%);
59
52
  background-color: var(--override-white);
60
53
  }
61
54
 
@@ -61,7 +61,6 @@ select {
61
61
  max-width: var(--sys-size-22);
62
62
  min-width: var(--sys-size-22);
63
63
  padding: 0 var(--sys-size-6) 0 var(--sys-size-5);
64
- position: relative;
65
64
  color: var(--sys-color-on-surface);
66
65
  background-color: transparent;
67
66
  text-overflow: ellipsis;
@@ -28,40 +28,48 @@
28
28
  .sections {
29
29
  min-height: 0;
30
30
  background-color: var(--sys-color-cdt-base-container);
31
- z-index: 0;
32
- position: relative;
31
+ /* Keeps the stacking of the screenshots local to the sections. */
32
+ isolation: isolate;
33
33
  container: sections / inline-size;
34
34
  }
35
35
 
36
36
  .section {
37
- display: flex;
38
- padding: 0 var(--sys-size-8);
39
- gap: var(--sys-size-5);
40
- position: relative;
41
- }
37
+ /*
38
+ * The steps span the full width of the section so that their highlight
39
+ * covers the whole row. Their content is inset to leave room for the
40
+ * screenshot, which is placed on top of the steps.
41
+ */
42
+ --timeline-section-inset-inline-start: calc(var(--sys-size-8) + var(--sys-size-19) + var(--sys-size-5));
43
+ --timeline-section-inset-inline-end: var(--sys-size-8);
42
44
 
43
- .section::after {
44
- content: '';
45
- border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
46
- position: absolute;
47
- left: 0;
48
- right: 0;
49
- bottom: 0;
50
- z-index: -1;
45
+ display: grid;
46
+ grid-template-areas: 'section';
47
+ grid-template-columns: minmax(0, 1fr);
48
+ /* Divider between the sections. */
49
+ box-shadow: inset 0 calc(-1 * var(--sys-size-1)) var(--sys-color-divider);
51
50
  }
52
51
 
53
- .section:last-child::after {
54
- content: none;
52
+ .section:last-child {
53
+ box-shadow: none;
55
54
  }
56
55
 
57
56
  .screenshot-wrapper {
58
- flex: 0 0 var(--sys-size-19);
57
+ grid-area: section;
58
+ align-self: start;
59
+ width: var(--sys-size-19);
60
+ margin-inline-start: var(--sys-size-8);
59
61
  padding-top: var(--sys-size-13);
60
- /* We want this to be on top of `.step-overlay` */
61
- z-index: 2;
62
+ /* Draw the screenshot on top of the step highlights. */
63
+ z-index: 1;
64
+ /* Only the screenshot itself should cover the steps below it. */
65
+ pointer-events: none;
62
66
  }
63
67
 
64
68
  @container sections (max-width: 400px) {
69
+ .section {
70
+ --timeline-section-inset-inline-start: var(--sys-size-8);
71
+ }
72
+
65
73
  .screenshot-wrapper {
66
74
  display: none;
67
75
  }
@@ -75,24 +83,18 @@
75
83
  height: auto;
76
84
  border: var(--sys-size-1) solid var(--sys-color-divider);
77
85
  border-radius: 1px;
86
+ pointer-events: auto;
78
87
  }
79
88
 
80
89
  .content {
81
- flex: 1;
90
+ grid-area: section;
91
+ align-self: start;
82
92
  min-width: 0;
83
93
  }
84
94
 
85
- .steps {
86
- flex: 1;
87
- position: relative;
88
- align-self: flex-start;
89
- overflow: visible;
90
- }
91
-
92
95
  .step {
93
- position: relative;
94
- padding-left: var(--sys-size-14);
95
96
  margin: var(--sys-size-8) 0;
97
+ margin-inline-start: calc(var(--timeline-section-inset-inline-start) + var(--sys-size-14));
96
98
  }
97
99
 
98
100
  .step .action {
@@ -273,14 +275,12 @@
273
275
  border-top: var(--sys-size-1) solid var(--sys-color-divider);
274
276
  padding: var(--sys-size-6);
275
277
  background: var(--sys-color-cdt-base-container);
276
- z-index: 1;
277
278
  }
278
279
 
279
280
  .controls {
280
281
  align-items: center;
281
282
  display: flex;
282
283
  justify-content: center;
283
- position: relative;
284
284
  width: 100%;
285
285
  }
286
286
 
@@ -6,6 +6,8 @@
6
6
 
7
7
  .select-button {
8
8
  display: flex;
9
+ /* Lets the button go below the select in narrow panels instead of overflowing. */
10
+ flex-wrap: wrap;
9
11
  gap: var(--sys-size-6);
10
12
  }
11
13
 
@@ -10,6 +10,11 @@
10
10
  font-size: inherit;
11
11
  }
12
12
 
13
+ :host {
14
+ /* Space reserved in front of the title for the expand/collapse chevron. */
15
+ --chevron-column-width: calc(var(--sys-size-7) + var(--sys-size-2));
16
+ }
17
+
13
18
  .title-container {
14
19
  /* Vertically center items with min-width: 0; */
15
20
  min-width: 0;
@@ -20,6 +25,12 @@
20
25
  outline-offset: var(--sys-size-2);
21
26
  flex-grow: 1;
22
27
  align-items: center;
28
+ /* Keeps the title aligned with the title of expandable steps. */
29
+ padding-inline-start: var(--chevron-column-width);
30
+ }
31
+
32
+ .title-container.action {
33
+ padding-inline-start: 0;
23
34
  }
24
35
 
25
36
  .title-container:focus-visible {
@@ -76,11 +87,11 @@
76
87
  }
77
88
 
78
89
  .error {
79
- margin: var(--sys-size-8) 0 0;
90
+ margin-block-start: var(--sys-size-8);
91
+ margin-inline-start: var(--chevron-column-width);
80
92
  padding: var(--sys-size-5);
81
93
  background: var(--sys-color-error-container);
82
94
  color: var(--sys-color-error);
83
- position: relative;
84
95
  }
85
96
 
86
97
  @keyframes rotate {
@@ -136,12 +147,13 @@
136
147
  }
137
148
 
138
149
  .chevron {
150
+ flex-shrink: 0;
151
+ /* Aligns the chevron with the first line of the title. */
152
+ align-self: flex-start;
153
+ margin-block-start: var(--sys-size-4);
139
154
  width: var(--sys-size-7);
140
155
  height: var(--sys-size-7);
141
156
  transition: 200ms;
142
- position: absolute;
143
- top: var(--sys-size-7);
144
- left: var(--sys-size-11);
145
157
  transform: rotate(-90deg);
146
158
  color: var(--sys-color-on-surface);
147
159
  }
@@ -153,17 +165,13 @@
153
165
  .details {
154
166
  display: none;
155
167
  margin-top: var(--sys-size-5);
156
- position: relative;
168
+ margin-inline-start: var(--chevron-column-width);
157
169
  }
158
170
 
159
171
  .expanded .details {
160
172
  display: block;
161
173
  }
162
174
 
163
- .step-details {
164
- overflow: auto;
165
- }
166
-
167
175
  .summary {
168
176
  display: flex;
169
177
  flex-flow: row nowrap;
@@ -190,10 +198,6 @@
190
198
  border-radius: 0;
191
199
  flex-shrink: 0;
192
200
  height: var(--sys-size-11);
193
-
194
- --override-select-menu-show-button-border-radius: 0;
195
- --override-select-menu-show-button-outline: none;
196
- --override-select-menu-show-button-padding: 0;
197
201
  }
198
202
 
199
203
  .step.has-breakpoint .circle-icon {