chrome-devtools-frontend 1.0.1738725 → 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 (275) hide show
  1. package/.stylelintrc.json +3 -1
  2. package/eslint.config.mjs +127 -0
  3. package/front_end/application_tokens.css +0 -30
  4. package/front_end/core/sdk/SourceMap.ts +30 -3
  5. package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
  6. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
  7. package/front_end/generated/SupportedCSSProperties.ts +16 -0
  8. package/front_end/models/trace/extras/TraceFilter.ts +16 -8
  9. package/front_end/models/trace/extras/TraceTree.ts +104 -67
  10. package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
  11. package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
  12. package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
  13. package/front_end/models/trace/helpers/Extensions.ts +1 -3
  14. package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
  15. package/front_end/models/trace/helpers/Trace.ts +15 -12
  16. package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
  17. package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
  18. package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
  19. package/front_end/panels/ai_assistance/components/chatView.css +0 -180
  20. package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
  21. package/front_end/panels/application/components/backForwardCacheView.css +1 -1
  22. package/front_end/panels/application/resourcesPanel.css +0 -48
  23. package/front_end/panels/console/consoleView.css +1 -1
  24. package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
  25. package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
  26. package/front_end/panels/elements/classesPaneWidget.css +3 -7
  27. package/front_end/panels/elements/components/CSSQuery.ts +6 -5
  28. package/front_end/panels/elements/metricsSidebarPane.css +2 -2
  29. package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
  30. package/front_end/panels/elements/stylesSidebarPane.css +0 -1
  31. package/front_end/panels/explain/components/consoleInsight.css +1 -6
  32. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
  33. package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
  34. package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
  35. package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
  36. package/front_end/panels/issues/issues.ts +2 -0
  37. package/front_end/panels/issues/issuesTree.css +7 -0
  38. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  39. package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
  40. package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
  41. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
  42. package/front_end/panels/network/NetworkLogView.ts +9 -2
  43. package/front_end/panels/network/RequestTimingView.ts +16 -2
  44. package/front_end/panels/network/networkConfigView.css +2 -2
  45. package/front_end/panels/network/networkLogView.css +2 -15
  46. package/front_end/panels/network/networkPanel.css +0 -2
  47. package/front_end/panels/network/networkTimingTable.css +11 -26
  48. package/front_end/panels/profiler/profilesPanel.css +0 -11
  49. package/front_end/panels/recorder/ControlButton.ts +1 -1
  50. package/front_end/panels/recorder/RecordingView.ts +22 -1
  51. package/front_end/panels/recorder/StepView.ts +26 -1
  52. package/front_end/panels/recorder/TimelineSection.ts +22 -6
  53. package/front_end/panels/recorder/controlButton.css +2 -9
  54. package/front_end/panels/recorder/recorderPanel.css +0 -1
  55. package/front_end/panels/recorder/recordingView.css +32 -32
  56. package/front_end/panels/recorder/replaySection.css +2 -0
  57. package/front_end/panels/recorder/stepView.css +18 -14
  58. package/front_end/panels/recorder/timelineSection.css +60 -84
  59. package/front_end/panels/search/searchView.css +1 -1
  60. package/front_end/panels/sensors/SensorsView.ts +6 -21
  61. package/front_end/panels/sources/breakpointsView.css +3 -2
  62. package/front_end/panels/sources/sourcesView.css +2 -1
  63. package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
  64. package/front_end/panels/timeline/TimelineController.ts +30 -26
  65. package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
  66. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
  67. package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
  68. package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
  69. package/front_end/panels/timeline/components/DetailsView.ts +7 -14
  70. package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
  71. package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
  72. package/front_end/panels/timeline/components/networkRequestDetails.css +1 -0
  73. package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
  74. package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
  75. package/front_end/panels/timeline/docs/profile_calls.md +7 -9
  76. package/front_end/panels/timeline/timelineDetailsView.css +2 -2
  77. package/front_end/panels/webauthn/webauthnPane.css +1 -1
  78. package/front_end/third_party/axe-core/README.chromium +2 -3
  79. package/front_end/third_party/chromium/README.chromium +1 -1
  80. package/front_end/third_party/puppeteer/README.chromium +2 -2
  81. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
  82. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
  83. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
  84. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
  85. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
  87. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
  90. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
  91. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
  92. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
  94. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
  96. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
  97. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  98. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
  99. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  100. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
  101. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
  102. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
  103. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
  105. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
  107. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  109. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
  110. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
  113. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
  116. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
  118. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
  120. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
  122. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
  124. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
  127. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
  129. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
  130. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
  131. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
  132. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
  133. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
  135. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
  136. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
  138. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
  139. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
  140. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
  142. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
  144. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
  146. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
  149. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
  151. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
  152. package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
  153. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
  155. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
  157. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
  158. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
  159. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
  160. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
  161. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
  162. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
  163. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
  164. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
  166. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
  167. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
  168. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
  169. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
  170. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
  171. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
  172. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
  173. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
  174. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
  175. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
  176. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  177. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
  178. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
  179. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
  180. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
  181. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
  182. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
  183. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
  184. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
  185. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
  186. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
  187. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
  188. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
  189. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
  190. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
  191. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
  192. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
  193. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
  194. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
  195. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
  196. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
  197. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
  198. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
  199. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
  200. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
  201. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
  202. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
  203. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
  204. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
  205. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
  206. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
  207. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
  208. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
  209. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  210. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
  211. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
  212. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
  213. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
  214. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  215. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  216. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
  217. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  218. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  219. package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
  220. package/front_end/third_party/puppeteer/package/package.json +10 -8
  221. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
  222. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
  223. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
  224. package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
  225. package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
  226. package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
  227. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
  228. package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
  229. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
  230. package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
  231. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
  232. package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
  233. package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
  234. package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
  235. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
  236. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
  237. package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
  238. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
  239. package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
  240. package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
  241. package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
  242. package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
  243. package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
  244. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
  245. package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
  246. package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
  247. package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
  248. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
  249. package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
  250. package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
  251. package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
  252. package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
  253. package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
  254. package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
  255. package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
  256. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
  257. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
  258. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  259. package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
  260. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  261. package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
  262. package/front_end/ui/components/diff_view/diffView.css +0 -2
  263. package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
  264. package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
  265. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
  266. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +41 -14
  267. package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
  268. package/front_end/ui/legacy/filter.css +6 -2
  269. package/front_end/ui/legacy/inspectorCommon.css +1 -53
  270. package/front_end/ui/legacy/listWidget.css +1 -1
  271. package/front_end/ui/legacy/tabbedPane.css +0 -8
  272. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  273. package/inspector_overlay/tool_highlight.css +0 -7
  274. package/inspector_overlay/tool_highlight.ts +0 -1
  275. package/package.json +1 -1
@@ -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 {
@@ -11,129 +11,105 @@
11
11
  font-size: inherit;
12
12
  }
13
13
 
14
+ /*
15
+ * A row of the timeline. The row, and with it the hover and selection
16
+ * highlight, spans the full width of its container. Embedders can inset the
17
+ * content of the row with the following custom properties:
18
+ * --timeline-section-inset-inline-start
19
+ * --timeline-section-inset-inline-end
20
+ */
14
21
  .timeline-section {
15
- position: relative;
16
- padding: var(--sys-size-5) 0 var(--sys-size-5) var(--sys-size-14);
17
- margin-left: var(--sys-size-5);
18
-
19
22
  --override-color-recording-successful-text: #36a854;
20
- --override-color-recording-successful-background: #e6f4ea;
21
- }
23
+ --timeline-section-padding-block-start: var(--sys-size-5);
24
+ --timeline-section-padding-block-end: var(--sys-size-5);
25
+ /*
26
+ * Offset from the top of the row to the center of the icon. The icon is
27
+ * drawn centered 8px below the top edge of the slotted icon element.
28
+ */
29
+ --timeline-section-icon-center: calc(var(--timeline-section-padding-block-start) + var(--sys-size-5));
22
30
 
23
- .overlay {
24
- position: absolute;
25
- width: 100vw;
26
- height: 100%;
27
- /* Offset of 32px for spacing and 80px for screenshot */
28
- left: calc(-1 * var(--sys-size-13) - var(--sys-size-19));
29
- top: 0;
30
- z-index: -1;
31
- pointer-events: none;
31
+ display: grid;
32
+ grid-template-columns: [timeline] var(--sys-size-8) [content] minmax(0, 1fr);
33
+ column-gap: var(--sys-size-8);
34
+ padding-inline: var(--timeline-section-inset-inline-start, 0) var(--timeline-section-inset-inline-end, 0);
32
35
  }
33
36
 
34
- @container (max-width: 400px) {
35
- .overlay {
36
- /* Offset of 32px for spacing */
37
- left: calc(-1 * var(--sys-size-13));
38
- }
37
+ .timeline-section.is-end-of-group {
38
+ --timeline-section-padding-block-end: var(--sys-size-8);
39
39
  }
40
40
 
41
- :hover .overlay {
42
- background: var(--sys-color-state-hover-on-subtle);
41
+ .timeline-section:hover {
42
+ background-color: var(--sys-color-state-hover-on-subtle);
43
43
  }
44
44
 
45
- .is-selected .overlay {
46
- background: var(--sys-color-tonal-container);
45
+ .timeline-section.is-selected {
46
+ background-color: var(--sys-color-tonal-container);
47
47
  }
48
48
 
49
- :host-context(.is-stopped) .overlay {
50
- background: var(--sys-color-state-ripple-primary);
49
+ :host-context(.is-stopped) .timeline-section {
50
+ background-color: var(--sys-color-state-ripple-primary);
51
51
  outline: var(--sys-size-1) solid var(--sys-color-state-focus-ring);
52
- z-index: 4;
53
- }
54
-
55
- .is-start-of-group:not(:first-of-type) {
56
- padding-top: var(--sys-size-8);
57
- }
58
-
59
- .is-end-of-group {
60
- padding-bottom: var(--sys-size-8);
61
- }
62
-
63
- .icon {
64
- position: absolute;
65
- left: var(--sys-size-3);
66
- transform: translateX(-50%);
67
- z-index: 2;
68
- }
69
-
70
- .bar {
71
- position: absolute;
72
- left: var(--sys-size-3);
73
- display: block;
74
- transform: translateX(-50%);
75
- top: var(--sys-size-8);
76
- height: 100%;
77
- z-index: 1; /* We want this to be below of `.overlay` for stopped case */
78
52
  }
79
53
 
80
- .bar .background {
81
- fill: var(--sys-color-state-hover-on-subtle);
54
+ .timeline {
55
+ grid-column: timeline;
56
+ display: grid;
57
+ /* All parts of the timeline are stacked on top of each other. */
58
+ grid-template-areas: 'timeline';
82
59
  }
83
60
 
84
- .bar .line {
85
- fill: var(--sys-color-primary);
61
+ .timeline > * {
62
+ grid-area: timeline;
86
63
  }
87
64
 
88
- .is-first-section .bar {
89
- height: 100%;
90
- display: none;
65
+ .line {
66
+ justify-self: center;
67
+ width: var(--sys-size-2);
68
+ background-color: var(--sys-color-primary);
91
69
  }
92
70
 
93
- .is-first-section:not(.is-last-section) .bar {
94
- display: block;
71
+ /* Connects the icon to the icon of the previous row. */
72
+ .line-before {
73
+ align-self: start;
74
+ height: var(--timeline-section-icon-center);
95
75
  }
96
76
 
97
- .is-last-section .bar .line {
98
- display: none;
77
+ /* Connects the icon to the icon of the next row. */
78
+ .line-after {
79
+ margin-block-start: var(--timeline-section-icon-center);
99
80
  }
100
81
 
101
- .is-last-section .bar .background {
102
- display: none;
82
+ .is-first-section .line-before,
83
+ .is-last-section .line-after {
84
+ visibility: hidden;
103
85
  }
104
86
 
105
- :host-context(.is-error) .bar .line {
106
- fill: var(--sys-color-error);
87
+ .icon {
88
+ display: flex;
89
+ place-self: start start;
90
+ margin-block-start: var(--timeline-section-padding-block-start);
107
91
  }
108
92
 
109
- :host-context(.is-error) .bar .background {
110
- fill: var(--sys-color-error-container);
93
+ .content {
94
+ grid-column: content;
95
+ padding-block: var(--timeline-section-padding-block-start) var(--timeline-section-padding-block-end);
111
96
  }
112
97
 
113
- :host-context(.was-successful) .bar .background {
114
- animation: flash-background 2s;
98
+ :host-context(.is-error) .line-after,
99
+ .is-after-error .line-before {
100
+ background-color: var(--sys-color-error);
115
101
  }
116
102
 
117
- :host-context(.was-successful) .bar .line {
103
+ :host-context(.was-successful) .line {
118
104
  animation: flash-line 2s;
119
105
  }
120
106
 
121
- @keyframes flash-background {
122
- 25% {
123
- fill: var(--override-color-recording-successful-background);
124
- }
125
-
126
- 75% {
127
- fill: var(--override-color-recording-successful-background);
128
- }
129
- }
130
-
131
107
  @keyframes flash-line {
132
108
  25% {
133
- fill: var(--override-color-recording-successful-text);
109
+ background-color: var(--override-color-recording-successful-text);
134
110
  }
135
111
 
136
112
  75% {
137
- fill: var(--override-color-recording-successful-text);
113
+ background-color: var(--override-color-recording-successful-text);
138
114
  }
139
115
  }
@@ -8,7 +8,7 @@
8
8
  flex-shrink: 0;
9
9
  overflow: hidden;
10
10
  display: inline-flex;
11
- min-width: 150px;
11
+ min-width: var(--sys-size-23);
12
12
 
13
13
  .search-container {
14
14
  border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
@@ -187,6 +187,7 @@ const UIStrings = {
187
187
  } as const;
188
188
  const str_ = i18n.i18n.registerUIStrings('panels/sensors/SensorsView.ts', UIStrings);
189
189
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
190
+ const {live} = Directives;
190
191
 
191
192
  export class SensorsView extends UI.Widget.VBox {
192
193
  readonly #locationSetting: Common.Settings.Setting<string>;
@@ -313,19 +314,18 @@ export class SensorsView extends UI.Widget.VBox {
313
314
  this.locationSelectElement = el as HTMLSelectElement;
314
315
  }
315
316
  })}
316
- .selectedIndex=${selectedIndex}
317
317
  @change=${this.#locationSelectChanged.bind(this)}
318
318
  jslog=${VisualLogging.dropDown().track({change: true})}
319
319
  >
320
- <option value=${NonPresetOptions.NoOverride} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
320
+ <option value=${NonPresetOptions.NoOverride} .selected=${live(selectedIndex === 0)} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
321
321
  <optgroup label=${i18nString(UIStrings.overrides)}>
322
- ${customLocations.map(customLocation => html`
323
- <option value=${JSON.stringify(customLocation)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
322
+ ${customLocations.map((customLocation, i) => html`
323
+ <option value=${JSON.stringify(customLocation)} .selected=${live(selectedIndex === i + 1)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
324
324
  `)}
325
325
  </optgroup>
326
- <option value=${NonPresetOptions.Custom} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
326
+ <option value=${NonPresetOptions.Custom} .selected=${live(selectedIndex === customLocations.length + 1)} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
327
327
  <optgroup label=${i18nString(UIStrings.error)}>
328
- <option value=${NonPresetOptions.Unavailable} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
328
+ <option value=${NonPresetOptions.Unavailable} .selected=${live(selectedIndex === customLocations.length + 2)} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
329
329
  </optgroup>
330
330
  </select>
331
331
  <devtools-button
@@ -1092,25 +1092,10 @@ export const enum DeviceOrientationModificationSource {
1092
1092
  SELECT_PRESET = 'selectPreset',
1093
1093
  }
1094
1094
 
1095
- export const PressureOptions = {
1096
- NoOverride: 'no-override',
1097
- Nominal: 'nominal',
1098
- Fair: 'fair',
1099
- Serious: 'serious',
1100
- Critical: 'critical',
1101
- };
1102
-
1103
1095
  export const NonPresetOptions = {
1104
1096
  NoOverride: 'noOverride',
1105
1097
  Custom: 'custom',
1106
1098
  Unavailable: 'unavailable',
1107
1099
  };
1108
1100
 
1109
- export class ShowActionDelegate implements UI.ActionRegistration.ActionDelegate {
1110
- handleAction(_context: UI.Context.Context, _actionId: string): boolean {
1111
- void UI.ViewManager.ViewManager.instance().showView('sensors');
1112
- return true;
1113
- }
1114
- }
1115
-
1116
1101
  export const ShiftDragOrientationSpeed = 16;
@@ -4,6 +4,7 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
  @scope to (devtools-widget > *) {
7
+ /* stylelint-disable-next-line plugin/check_scope_selectors */
7
8
  :host {
8
9
  flex: auto;
9
10
  display: flex;
@@ -177,8 +178,8 @@
177
178
  background-color: var(--sys-color-tonal-container);
178
179
  }
179
180
 
180
- .theme-with-dark-background .type-indicator,
181
- :host-context(.theme-with-dark-background) .type-indicator {
181
+ .theme-with-dark-background .type-indicator, /* stylelint-disable-line plugin/check_scope_selectors */
182
+ :host-context(.theme-with-dark-background) .type-indicator { /* stylelint-disable-line plugin/check_scope_selectors */
182
183
  --override-color-conditional-breakpoint: var(--ref-palette-yellow60);
183
184
  --override-color-logpoint: var(--ref-palette-pink70);
184
185
  }
@@ -13,7 +13,8 @@
13
13
  .sources-toolbar {
14
14
  display: flex;
15
15
  flex: 0 0 auto;
16
- min-height: 27px;
16
+ /* 28px toolbar height (--sys-size-12) minus 1px top border (--sys-size-1), matching the 26px devtools-toolbar height plus 1px border-top when empty. */
17
+ min-height: calc(var(--sys-size-12) - var(--sys-size-1));
17
18
  background-color: var(--sys-color-cdt-base-container);
18
19
  border-top: var(--sys-size-1) solid var(--sys-color-divider);
19
20
  overflow: hidden;