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,119 +4,121 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- .title-section {
8
- padding: var(--sys-size-8) 0 var(--sys-size-11);
9
- border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
10
- }
11
-
12
- .title-section-header {
13
- padding-left: var(--sys-size-8);
14
- padding-bottom: 10px;
15
- font-size: var(--sys-typescale-body2-size);
16
- }
17
-
18
- .security-origin-view {
19
- overflow: hidden scroll;
20
- display: block;
21
- user-select: text;
22
- }
23
-
24
- .security-origin-view .origin-view-section {
25
- border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
26
- padding: var(--sys-size-6) var(--sys-size-4) var(--sys-size-6) var(--sys-size-11);
27
- font-size: var(--sys-typescale-body4-size);
28
- }
29
-
30
- .origin-view-notes {
31
- margin-top: var(--sys-size-2);
32
- color: var(--sys-color-token-subtle);
33
- }
34
-
35
- .origin-view-section-notes {
36
- margin-top: var(--sys-size-4);
37
- color: var(--sys-color-token-subtle);
38
- }
39
-
40
- .security-origin-view .origin-display {
41
- font-size: var(--sys-typescale-body4-size);
42
- padding-left: var(--sys-size-8);
43
- display: flex;
44
- align-items: center;
45
- }
46
-
47
- .title-section > .view-network-button {
48
- padding: var(--sys-size-4) 0 0 var(--sys-size-8);
49
- }
50
-
51
- .security-origin-view .origin-display devtools-icon {
52
- width: var(--sys-size-8);
53
- height: var(--sys-size-8);
54
- margin-right: var(--sys-size-6);
55
- }
56
-
57
- .security-origin-view .origin-view-section-title {
58
- margin-top: var(--sys-size-3);
59
- margin-bottom: var(--sys-size-3);
60
- font-weight: bold;
61
- }
62
-
63
- .security-origin-view .details-table {
64
- border-spacing: 0;
65
- }
66
-
67
- .security-origin-view .details-table-row {
68
- white-space: nowrap;
69
- overflow: hidden;
70
- line-height: var(--sys-size-10);
71
- vertical-align: top;
72
- }
73
-
74
- .security-origin-view .details-table-row > td {
75
- padding: 0;
76
- }
77
-
78
- .security-origin-view .details-table-row > td:first-child {
79
- color: var(--sys-color-token-subtle);
80
- width: calc(var(--sys-size-21) + 1em); /* 128px label column + 1em right padding */
81
- text-align: right;
82
- padding-right: 1em;
83
- }
84
-
85
- .security-origin-view .details-table-row > td:nth-child(2) {
86
- white-space: normal;
87
- }
88
-
89
- .security-origin-view .sct-details .details-table .details-table-row:last-child td:last-child {
90
- border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
91
- padding-bottom: var(--sys-size-5);
92
- }
93
-
94
- .security-origin-view .sct-details .details-table:last-child .details-table-row:last-child td:last-child {
95
- border-bottom: none;
96
- padding-bottom: 0;
97
- }
98
-
99
- .security-origin-view .details-toggle {
100
- margin-left: 126px;
101
- }
102
-
103
-
104
- .security-origin-view .details-table .empty-san {
105
- color: var(--sys-color-state-disabled);
106
- }
107
-
108
- .security-origin-view .details-table .san-entry {
109
- display: block;
110
- }
111
-
112
- .security-origin-view .truncated-san .truncated-entry {
113
- display: none;
114
- }
115
-
116
- .origin-view-section:last-child {
117
- border-bottom: none;
118
- }
119
-
120
- .devtools-link {
121
- display: inline-flex;
7
+ @scope to (devtools-widget > *) {
8
+ .title-section {
9
+ padding: var(--sys-size-8) 0 var(--sys-size-11);
10
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
11
+ }
12
+
13
+ .title-section-header {
14
+ padding-left: var(--sys-size-8);
15
+ padding-bottom: 10px;
16
+ font-size: var(--sys-typescale-body2-size);
17
+ }
18
+
19
+ :scope,
20
+ .security-origin-view {
21
+ overflow: hidden scroll;
22
+ display: block;
23
+ user-select: text;
24
+ }
25
+
26
+ .origin-view-section {
27
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
28
+ padding: var(--sys-size-6) var(--sys-size-4) var(--sys-size-6) var(--sys-size-11);
29
+ font-size: var(--sys-typescale-body4-size);
30
+ }
31
+
32
+ .origin-view-notes {
33
+ margin-top: var(--sys-size-2);
34
+ color: var(--sys-color-token-subtle);
35
+ }
36
+
37
+ .origin-view-section-notes {
38
+ margin-top: var(--sys-size-4);
39
+ color: var(--sys-color-token-subtle);
40
+ }
41
+
42
+ .origin-display {
43
+ font-size: var(--sys-typescale-body4-size);
44
+ padding-left: var(--sys-size-8);
45
+ display: flex;
46
+ align-items: center;
47
+ }
48
+
49
+ .title-section > .view-network-button {
50
+ padding: var(--sys-size-4) 0 0 var(--sys-size-8);
51
+ }
52
+
53
+ .origin-display devtools-icon {
54
+ width: var(--sys-size-8);
55
+ height: var(--sys-size-8);
56
+ margin-right: var(--sys-size-6);
57
+ }
58
+
59
+ .origin-view-section-title {
60
+ margin-top: var(--sys-size-3);
61
+ margin-bottom: var(--sys-size-3);
62
+ font-weight: bold;
63
+ }
64
+
65
+ .details-table {
66
+ border-spacing: 0;
67
+ }
68
+
69
+ .details-table-row {
70
+ white-space: nowrap;
71
+ overflow: hidden;
72
+ line-height: var(--sys-size-10);
73
+ vertical-align: top;
74
+ }
75
+
76
+ .details-table-row > td {
77
+ padding: 0;
78
+ }
79
+
80
+ .details-table-row > td:first-child {
81
+ color: var(--sys-color-token-subtle);
82
+ width: calc(var(--sys-size-21) + 1em); /* 128px label column + 1em right padding */
83
+ text-align: right;
84
+ padding-right: 1em;
85
+ }
86
+
87
+ .details-table-row > td:nth-child(2) {
88
+ white-space: normal;
89
+ }
90
+
91
+ .sct-details .details-table .details-table-row:last-child td:last-child {
92
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
93
+ padding-bottom: var(--sys-size-5);
94
+ }
95
+
96
+ .sct-details .details-table:last-child .details-table-row:last-child td:last-child {
97
+ border-bottom: none;
98
+ padding-bottom: 0;
99
+ }
100
+
101
+ .details-toggle {
102
+ margin-left: 126px;
103
+ }
104
+
105
+ .details-table .empty-san {
106
+ color: var(--sys-color-state-disabled);
107
+ }
108
+
109
+ .details-table .san-entry {
110
+ display: block;
111
+ }
112
+
113
+ .truncated-san .truncated-entry {
114
+ display: none;
115
+ }
116
+
117
+ .origin-view-section:last-child {
118
+ border-bottom: none;
119
+ }
120
+
121
+ .devtools-link {
122
+ display: inline-flex;
123
+ }
122
124
  }
@@ -184,55 +184,7 @@ export interface LocationDialogInput {
184
184
  onValidateErrors: (errors: LocationValidationErrors) => void;
185
185
  }
186
186
 
187
- export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors'],
188
- isDialog = false): LitTemplate {
189
- if (!isDialog) {
190
- // clang-format off
191
- return html`
192
- <div class="locations-edit-row">
193
- <div class="locations-list-text locations-list-title">${i18nString(UIStrings.locationName)}</div>
194
- <div class="locations-list-separator locations-list-separator-invisible"></div>
195
- <div class="locations-list-text">${i18nString(UIStrings.lat)}</div>
196
- <div class="locations-list-separator locations-list-separator-invisible"></div>
197
- <div class="locations-list-text">${i18nString(UIStrings.long)}</div>
198
- <div class="locations-list-separator locations-list-separator-invisible"></div>
199
- <div class="locations-list-text">${i18nString(UIStrings.timezoneId)}</div>
200
- <div class="locations-list-separator locations-list-separator-invisible"></div>
201
- <div class="locations-list-text">${i18nString(UIStrings.locale)}</div>
202
- <div class="locations-list-separator locations-list-separator-invisible"></div>
203
- <div class="locations-list-text">${i18nString(UIStrings.accuracy)}</div>
204
- </div>
205
- <div class="locations-edit-row">
206
- <div class="locations-list-text locations-list-title locations-input-container">${controls.titleInput}</div>
207
- <div class="locations-list-separator locations-list-separator-invisible"></div>
208
- <div class="locations-list-text locations-input-container">${controls.latInput}</div>
209
- <div class="locations-list-separator locations-list-separator-invisible"></div>
210
- <div class="locations-list-text locations-list-text-longitude locations-input-container">${controls.longInput}</div>
211
- <div class="locations-list-separator locations-list-separator-invisible"></div>
212
- <div class="locations-list-text locations-input-container">${controls.timezoneIdInput}</div>
213
- <div class="locations-list-separator locations-list-separator-invisible"></div>
214
- <div class="locations-list-text locations-input-container">${controls.localeInput}</div>
215
- <div class="locations-list-separator locations-list-separator-invisible"></div>
216
- <div class="locations-list-text locations-input-container">${controls.accuracyInput}</div>
217
- </div>
218
- ${errors ? html`
219
- <div class="locations-edit-row locations-error-row" role="alert">
220
- <div class="locations-list-text locations-list-title locations-error-cell">${errors.title ?? nothing}</div>
221
- <div class="locations-list-separator locations-list-separator-invisible"></div>
222
- <div class="locations-list-text locations-error-cell">${errors.lat ?? nothing}</div>
223
- <div class="locations-list-separator locations-list-separator-invisible"></div>
224
- <div class="locations-list-text locations-list-text-longitude locations-error-cell">${errors.long ?? nothing}</div>
225
- <div class="locations-list-separator locations-list-separator-invisible"></div>
226
- <div class="locations-list-text locations-error-cell">${errors.timezoneId ?? nothing}</div>
227
- <div class="locations-list-separator locations-list-separator-invisible"></div>
228
- <div class="locations-list-text locations-error-cell">${errors.locale ?? nothing}</div>
229
- <div class="locations-list-separator locations-list-separator-invisible"></div>
230
- <div class="locations-list-text locations-error-cell">${errors.accuracy ?? nothing}</div>
231
- </div>
232
- ` : nothing}`;
233
- // clang-format on
234
- }
235
-
187
+ export function renderEditorView(controls: EditorInputControls, errors?: LocationDialogInput['errors']): LitTemplate {
236
188
  // clang-format off
237
189
  return html`
238
190
  <div class="editor-grid">
@@ -351,7 +303,7 @@ export function renderLocationDialog(input: LocationDialogInput): LitTemplate {
351
303
  aria-label=${i18nString(UIStrings.close)}>
352
304
  </devtools-button>
353
305
  </div>
354
- ${renderEditorView(editorControls, input.errors, true)}
306
+ ${renderEditorView(editorControls, input.errors)}
355
307
  <div class="dialog-buttons">
356
308
  <devtools-button
357
309
  class="save-button"
@@ -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;
@@ -30,7 +30,7 @@ devtools-list.locations-list,
30
30
  .locations-list-text {
31
31
  white-space: nowrap;
32
32
  text-overflow: ellipsis;
33
- flex-basis: 170px;
33
+ flex-basis: var(--sys-size-24);
34
34
  user-select: none;
35
35
  color: var(--sys-color-on-surface);
36
36
  position: relative;
@@ -55,26 +55,6 @@ devtools-list.locations-list,
55
55
  margin: 0 var(--sys-size-3);
56
56
  }
57
57
 
58
- .locations-list-separator-invisible {
59
- visibility: hidden;
60
- height: 100% !important; /* stylelint-disable-line declaration-no-important */
61
- }
62
-
63
- .locations-edit-row {
64
- display: flex;
65
- flex-direction: row;
66
- margin: var(--sys-size-4) 5px;
67
- }
68
-
69
- .locations-edit-row input {
70
- width: 100%;
71
- text-align: inherit;
72
- }
73
-
74
- .locations-input-container {
75
- padding: var(--sys-size-1);
76
- }
77
-
78
58
  .settings-card-container-wrapper {
79
59
  scrollbar-gutter: stable;
80
60
  padding: var(--sys-size-8) 0;
@@ -660,8 +660,7 @@ export class AISettingsTab extends UI.Widget.VBox {
660
660
 
661
661
  if (!this.#aiAssistanceSetting.unavailable) {
662
662
  const aiAssistanceData: AiSettingParams = {
663
- settingName: i18n.i18n.lockedString(AiAssistanceModel.AiUtils.isGeminiBranding() ? 'Gemini in Chrome DevTools' :
664
- 'AI assistance'),
663
+ settingName: i18n.i18n.lockedString('AI assistance'),
665
664
  setting: this.#aiAssistanceSetting,
666
665
  disabledReasons: this.#mapSettingDisabledReasons(this.#aiAssistanceSetting.disabledReasons),
667
666
  iconName: AiAssistanceModel.AiUtils.getIconName(),
@@ -99,6 +99,7 @@ export const SETTINGS_SCREEN_DEFAULT_VIEW: SettingsScreenView = (
99
99
  // clang-format off
100
100
  render(
101
101
  html`
102
+ <style>${settingsScreenStyles}</style>
102
103
  <devtools-tabbed-pane
103
104
  vertical
104
105
  ?focus-header=${input.focusTabHeader}
@@ -142,7 +143,6 @@ export class SettingsScreen extends UI.Widget.VBox implements UI.View.ViewLocati
142
143
  constructor(view: SettingsScreenView = SETTINGS_SCREEN_DEFAULT_VIEW) {
143
144
  super({useShadowDom: true});
144
145
  this.#view = view;
145
- this.registerRequiredCSS(settingsScreenStyles);
146
146
 
147
147
  this.appendApplicableItems(UI.ViewManager.ViewLocationValues.SETTINGS_VIEW);
148
148
  const keyBindsView = this.#views.find(v => v.viewId() === 'keybinds');
@@ -258,6 +258,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
258
258
 
259
259
  #items: Item[] = [];
260
260
  #focusedItem: Item|null = null;
261
+ #pendingAutoActivation = false;
261
262
  #showIgnoreListed = false;
262
263
  #showIgnoreListMessage = false;
263
264
  #ignoreListCheckboxChecked = false;
@@ -354,6 +355,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
354
355
  this.#showIgnoreListMessage = false;
355
356
  this.#items = [];
356
357
  this.#focusedItem = null;
358
+ this.#pendingAutoActivation = false;
357
359
  UI.Context.Context.instance().setFlavor(StackTrace.StackTrace.DebuggableFrameFlavor, null);
358
360
  return;
359
361
  }
@@ -389,10 +391,13 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
389
391
 
390
392
  if (this.maxAsyncStackChainDepth === defaultMaxAsyncStackChainDepth) {
391
393
  this.#focusedItem = this.#firstVisibleItem() ?? (this.#items[0] ?? null);
392
- if (this.#focusedItem &&
394
+ const itemToActivate = this.#itemToAutoActivate();
395
+ if (itemToActivate &&
393
396
  (UI.Context.Context.instance().flavor(QuickSourceView) ||
394
397
  UI.Context.Context.instance().flavor(SourcesPanel))) {
395
- this.activateItem(this.#focusedItem);
398
+ this.activateItem(itemToActivate);
399
+ } else {
400
+ this.#pendingAutoActivation = Boolean(itemToActivate);
396
401
  }
397
402
  } else {
398
403
  const activeItem = this.activeCallFrameItem();
@@ -401,6 +406,11 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
401
406
  }
402
407
  }
403
408
 
409
+ #itemToAutoActivate(): Item|null {
410
+ return this.#items.find(item => Boolean(item.frame) && this.#isItemVisible(item)) ??
411
+ this.#items.find(item => Boolean(item.frame)) ?? null;
412
+ }
413
+
404
414
  #isItemVisible(item: Item|null): boolean {
405
415
  if (!item || !this.#items.includes(item)) {
406
416
  return false;
@@ -413,8 +423,9 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
413
423
  }
414
424
 
415
425
  #updateIgnoreListState(): void {
416
- const hasIgnoreListed = this.#items.some(item => item.isIgnoreListed);
417
- const allIgnoreListed = this.#items.length > 0 && this.#items.every(item => item.isIgnoreListed);
426
+ const nonHeaderItems = this.#items.filter(item => !item.isAsyncHeader);
427
+ const hasIgnoreListed = nonHeaderItems.some(item => item.isIgnoreListed);
428
+ const allIgnoreListed = nonHeaderItems.length > 0 && nonHeaderItems.every(item => item.isIgnoreListed);
418
429
 
419
430
  if (allIgnoreListed) {
420
431
  this.#showIgnoreListed = true;
@@ -426,6 +437,16 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
426
437
  }
427
438
 
428
439
  override performUpdate(): void {
440
+ if (this.#pendingAutoActivation &&
441
+ (UI.Context.Context.instance().flavor(QuickSourceView) || UI.Context.Context.instance().flavor(SourcesPanel))) {
442
+ const itemToActivate = this.#itemToAutoActivate();
443
+ if (itemToActivate) {
444
+ this.activateItem(itemToActivate);
445
+ } else {
446
+ this.#pendingAutoActivation = false;
447
+ }
448
+ }
449
+
429
450
  const viewInput: ViewInput = {
430
451
  showIgnoreListMessage: this.#showIgnoreListMessage,
431
452
  showIgnoreListedChecked: this.#ignoreListCheckboxChecked,
@@ -540,11 +561,12 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
540
561
  }
541
562
 
542
563
  private activateItem(item: Item): void {
564
+ this.#pendingAutoActivation = false;
543
565
  const uiLocation = item.uiLocation;
544
566
  if (!uiLocation) {
545
567
  return;
546
568
  }
547
- if (this.#items.includes(item)) {
569
+ if (this.#isItemVisible(item)) {
548
570
  this.#focusedItem = item;
549
571
  }
550
572
  const debuggerCallFrame = item.frame;
@@ -556,7 +578,6 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
556
578
  } else {
557
579
  void Common.Revealer.reveal(uiLocation);
558
580
  }
559
- this.requestUpdate();
560
581
  }
561
582
 
562
583
  activeCallFrameItem(): Item|null {
@@ -593,6 +614,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
593
614
  const newItem = this.#items[i];
594
615
  if (newItem.frame) {
595
616
  this.activateItem(newItem);
617
+ this.requestUpdate();
596
618
  break;
597
619
  }
598
620
  }
@@ -605,6 +627,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView<DocumentFragment> i
605
627
  const newItem = this.#items[i];
606
628
  if (newItem.frame) {
607
629
  this.activateItem(newItem);
630
+ this.requestUpdate();
608
631
  break;
609
632
  }
610
633
  }
@@ -671,6 +694,8 @@ export class Item {
671
694
  const description = UI.UIUtils.asyncFragmentLabel(stackTrace, fragment);
672
695
  const item = new Item(description);
673
696
  item.isAsyncHeader = true;
697
+ item.isIgnoreListed =
698
+ fragment.frames.length > 0 && fragment.frames.every(frame => Boolean(frame.uiSourceCode?.isIgnoreListed()));
674
699
  return item;
675
700
  }
676
701