chrome-devtools-frontend 1.0.1532228 → 1.0.1533544

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 (547) hide show
  1. package/AUTHORS +1 -0
  2. package/eslint.config.mjs +89 -133
  3. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  4. package/front_end/core/host/UserMetrics.ts +0 -4
  5. package/front_end/core/i18n/i18nImpl.ts +1 -1
  6. package/front_end/core/platform/ArrayUtilities.ts +1 -1
  7. package/front_end/core/protocol_client/ConnectionTransport.ts +26 -0
  8. package/front_end/core/protocol_client/InspectorBackend.ts +13 -51
  9. package/front_end/core/protocol_client/protocol_client.ts +2 -0
  10. package/front_end/core/root/Runtime.ts +0 -4
  11. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +1 -1
  12. package/front_end/core/sdk/ChildTargetManager.ts +3 -3
  13. package/front_end/core/sdk/Connections.ts +8 -8
  14. package/front_end/core/sdk/NetworkManager.ts +105 -46
  15. package/front_end/core/sdk/NetworkRequest.ts +7 -0
  16. package/front_end/core/sdk/RehydratingConnection.ts +6 -4
  17. package/front_end/core/sdk/Target.ts +2 -1
  18. package/front_end/core/sdk/TargetManager.ts +2 -1
  19. package/front_end/devtools_compatibility.js +941 -1596
  20. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
  21. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
  22. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  23. package/front_end/entrypoints/main/MainImpl.ts +4 -9
  24. package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +1 -1
  25. package/front_end/entrypoints/node_app/NodeMain.ts +1 -1
  26. package/front_end/entrypoints/node_app/node_app.ts +2 -2
  27. package/front_end/generated/InspectorBackendCommands.js +0 -4
  28. package/front_end/generated/protocol-mapping.d.ts +0 -18
  29. package/front_end/generated/protocol-proxy-api.d.ts +0 -22
  30. package/front_end/generated/protocol.ts +0 -74
  31. package/front_end/global_typings/global_defs.d.ts +16 -0
  32. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +9 -7
  33. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +1 -1
  34. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatterBounds.snapshot.txt +1 -1
  35. package/front_end/models/ai_assistance/injected.ts +1 -1
  36. package/front_end/models/ai_assistance/performance/AIContext.ts +11 -28
  37. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  38. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
  39. package/front_end/models/extensions/ExtensionAPI.ts +1 -1
  40. package/front_end/models/extensions/extensions.ts +0 -6
  41. package/front_end/models/formatter/FormatterWorkerPool.ts +1 -1
  42. package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
  43. package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
  44. package/front_end/models/stack_trace/StackTraceModel.ts +1 -1
  45. package/front_end/models/trace/extras/TraceTree.ts +13 -3
  46. package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +1 -1
  47. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -1
  48. package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -1
  49. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
  50. package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -2
  51. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +0 -12
  52. package/front_end/panels/ai_assistance/PatchWidget.ts +1 -1
  53. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +0 -37
  54. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
  55. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
  56. package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +1 -1
  57. package/front_end/panels/animation/AnimationTimeline.ts +2 -2
  58. package/front_end/panels/application/AppManifestView.ts +1 -1
  59. package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -1
  60. package/front_end/panels/application/BackgroundServiceView.ts +13 -4
  61. package/front_end/panels/application/CookieItemsView.ts +1 -1
  62. package/front_end/panels/application/DOMStorageItemsView.ts +1 -1
  63. package/front_end/panels/application/ExtensionStorageItemsView.ts +1 -1
  64. package/front_end/panels/application/IndexedDBViews.ts +1 -1
  65. package/front_end/panels/application/InterestGroupStorageView.ts +1 -1
  66. package/front_end/panels/application/OpenedWindowDetailsView.ts +3 -3
  67. package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
  68. package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
  69. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  70. package/front_end/panels/application/SharedStorageEventsView.ts +1 -1
  71. package/front_end/panels/application/StorageView.ts +1 -1
  72. package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
  73. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
  74. package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
  75. package/front_end/panels/application/components/InterestGroupAccessGrid.ts +2 -2
  76. package/front_end/panels/application/components/OriginTrialTreeView.ts +2 -2
  77. package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
  78. package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
  79. package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
  80. package/front_end/panels/application/components/StackTrace.ts +1 -1
  81. package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
  82. package/front_end/panels/application/components/TrustTokensView.ts +1 -1
  83. package/front_end/panels/application/preloading/PreloadingView.ts +3 -3
  84. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
  85. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +1 -1
  86. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +1 -1
  87. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -2
  88. package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +1 -1
  89. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +1 -1
  90. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +1 -1
  91. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
  92. package/front_end/panels/autofill/AutofillView.ts +1 -1
  93. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  94. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  95. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +1 -1
  96. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  97. package/front_end/{models/extensions → panels/common}/ExtensionPanel.ts +8 -12
  98. package/front_end/{models/extensions → panels/common}/ExtensionServer.ts +242 -180
  99. package/front_end/{models/extensions → panels/common}/ExtensionView.ts +0 -4
  100. package/front_end/panels/common/FreDialog.ts +1 -1
  101. package/front_end/panels/common/PersistenceUtils.ts +1 -1
  102. package/front_end/panels/common/common.ts +4 -1
  103. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  104. package/front_end/panels/console/ConsoleFormat.ts +1 -1
  105. package/front_end/panels/console/ConsoleInsightTeaser.ts +45 -51
  106. package/front_end/panels/console/ConsolePanel.ts +1 -1
  107. package/front_end/panels/console/ConsolePinPane.ts +2 -2
  108. package/front_end/panels/console/ConsolePrompt.ts +1 -1
  109. package/front_end/panels/console/ConsoleSidebar.ts +1 -1
  110. package/front_end/panels/console/ConsoleView.ts +2 -2
  111. package/front_end/panels/console/ConsoleViewMessage.ts +2 -2
  112. package/front_end/panels/console/ConsoleViewport.ts +1 -1
  113. package/front_end/panels/console/consoleInsightTeaser.css +13 -0
  114. package/front_end/panels/elements/AccessibilityTreeView.ts +1 -1
  115. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  116. package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
  117. package/front_end/panels/elements/ElementsPanel.ts +7 -7
  118. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  119. package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
  120. package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
  121. package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
  122. package/front_end/panels/elements/PropertyRenderer.ts +1 -1
  123. package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
  124. package/front_end/panels/elements/StyleEditorWidget.ts +1 -1
  125. package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
  126. package/front_end/panels/elements/StylePropertyTreeElement.ts +2 -2
  127. package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
  128. package/front_end/panels/elements/TopLayerContainer.ts +1 -1
  129. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  130. package/front_end/panels/elements/components/CSSHintDetailsView.ts +13 -13
  131. package/front_end/panels/elements/components/CSSPropertyDocsView.ts +1 -1
  132. package/front_end/panels/elements/components/CSSQuery.ts +1 -2
  133. package/front_end/panels/elements/components/CSSVariableValueView.ts +1 -1
  134. package/front_end/panels/elements/components/ComputedStyleProperty.ts +1 -1
  135. package/front_end/panels/elements/components/ComputedStyleTrace.ts +1 -1
  136. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +2 -2
  137. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  138. package/front_end/panels/elements/components/QueryContainer.ts +2 -2
  139. package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -1
  140. package/front_end/panels/emulation/AdvancedApp.ts +1 -1
  141. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  142. package/front_end/panels/emulation/DeviceModeView.ts +1 -1
  143. package/front_end/panels/emulation/DeviceModeWrapper.ts +1 -1
  144. package/front_end/panels/emulation/MediaQueryInspector.ts +1 -1
  145. package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -1
  146. package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
  147. package/front_end/panels/explain/components/ConsoleInsight.ts +1 -1
  148. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +1 -1
  149. package/front_end/panels/issues/AffectedCookiesView.ts +1 -1
  150. package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +1 -1
  151. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  152. package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +1 -1
  153. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  154. package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +1 -1
  155. package/front_end/panels/issues/AffectedHeavyAdView.ts +1 -1
  156. package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +1 -1
  157. package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +1 -1
  158. package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
  159. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +1 -1
  160. package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
  161. package/front_end/panels/issues/AffectedTrackingSitesView.ts +1 -1
  162. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  163. package/front_end/panels/issues/CorsIssueDetailsView.ts +1 -1
  164. package/front_end/panels/issues/GenericIssueDetailsView.ts +1 -1
  165. package/front_end/panels/issues/IssueKindView.ts +1 -1
  166. package/front_end/panels/issues/IssueView.ts +1 -1
  167. package/front_end/panels/issues/IssuesPane.ts +1 -1
  168. package/front_end/panels/issues/components/ElementsPanelLink.ts +1 -1
  169. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  170. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  171. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +1 -1
  172. package/front_end/panels/layer_viewer/Layers3DView.ts +1 -1
  173. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  174. package/front_end/panels/layer_viewer/TransformController.ts +1 -1
  175. package/front_end/panels/layers/LayerPaintProfilerView.ts +1 -1
  176. package/front_end/panels/layers/LayersPanel.ts +1 -1
  177. package/front_end/panels/lighthouse/LighthouseController.ts +207 -139
  178. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -2
  179. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  180. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -1
  181. package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
  182. package/front_end/panels/lighthouse/LighthouseStatusView.ts +1 -1
  183. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +1 -1
  184. package/front_end/panels/lighthouse/RadioSetting.ts +1 -1
  185. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
  186. package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -1
  187. package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +1 -2
  188. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
  189. package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
  190. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
  191. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -2
  192. package/front_end/panels/media/EventDisplayTable.ts +1 -1
  193. package/front_end/panels/media/EventTimelineView.ts +1 -1
  194. package/front_end/panels/media/MainView.ts +1 -1
  195. package/front_end/panels/media/PlayerListView.ts +1 -1
  196. package/front_end/panels/media/PlayerMessagesView.ts +1 -1
  197. package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
  198. package/front_end/panels/media/TickingFlameChart.ts +1 -1
  199. package/front_end/panels/mobile_throttling/CalibrationController.ts +1 -1
  200. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -1
  201. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
  202. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  203. package/front_end/panels/network/EventSourceMessagesView.ts +1 -1
  204. package/front_end/panels/network/NetworkConfigView.ts +1 -1
  205. package/front_end/panels/network/NetworkDataGridNode.ts +21 -2
  206. package/front_end/panels/network/NetworkItemView.ts +1 -1
  207. package/front_end/panels/network/NetworkLogView.ts +2 -2
  208. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  209. package/front_end/panels/network/NetworkManageCustomHeadersView.ts +1 -1
  210. package/front_end/panels/network/NetworkOverview.ts +1 -1
  211. package/front_end/panels/network/NetworkPanel.ts +4 -4
  212. package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -1
  213. package/front_end/panels/network/RequestConditionsDrawer.ts +73 -16
  214. package/front_end/panels/network/RequestCookiesView.ts +1 -1
  215. package/front_end/panels/network/RequestInitiatorView.ts +1 -1
  216. package/front_end/panels/network/RequestPayloadView.ts +3 -4
  217. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  218. package/front_end/panels/network/RequestTimingView.ts +1 -1
  219. package/front_end/panels/network/ResourceChunkView.ts +1 -1
  220. package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -1
  221. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  222. package/front_end/panels/network/SignedExchangeInfoView.ts +1 -1
  223. package/front_end/panels/network/components/DirectSocketConnectionView.ts +1 -1
  224. package/front_end/panels/network/components/EditableSpan.ts +1 -1
  225. package/front_end/panels/network/components/HeaderSectionRow.ts +1 -1
  226. package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
  227. package/front_end/panels/network/components/RequestHeadersView.ts +1 -1
  228. package/front_end/panels/network/components/RequestTrustTokensView.ts +1 -1
  229. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
  230. package/front_end/panels/network/network-meta.ts +2 -2
  231. package/front_end/panels/network/networkLogView.css +24 -0
  232. package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +1 -1
  233. package/front_end/panels/profiler/HeapDetachedElementsView.ts +1 -1
  234. package/front_end/panels/profiler/HeapProfileView.ts +1 -1
  235. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +1 -1
  236. package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
  237. package/front_end/panels/profiler/HeapTimelineOverview.ts +1 -1
  238. package/front_end/panels/profiler/IsolateSelector.ts +1 -1
  239. package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -1
  240. package/front_end/panels/profiler/ProfileDataGrid.ts +1 -1
  241. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +1 -1
  242. package/front_end/panels/profiler/ProfileLauncherView.ts +1 -1
  243. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  244. package/front_end/panels/profiler/ProfileView.ts +1 -1
  245. package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
  246. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +19 -7
  247. package/front_end/panels/recorder/RecorderPanel.ts +1 -1
  248. package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
  249. package/front_end/panels/recorder/components/ExtensionView.ts +1 -1
  250. package/front_end/panels/recorder/components/RecordingView.ts +2 -2
  251. package/front_end/panels/recorder/components/ReplaySection.ts +1 -1
  252. package/front_end/panels/recorder/components/SelectButton.ts +1 -1
  253. package/front_end/panels/recorder/components/TimelineSection.ts +1 -1
  254. package/front_end/panels/recorder/extensions/ExtensionManager.ts +1 -1
  255. package/front_end/panels/recorder/models/ScreenshotUtils.ts +1 -1
  256. package/front_end/panels/screencast/ScreencastApp.ts +1 -1
  257. package/front_end/panels/screencast/ScreencastView.ts +1 -1
  258. package/front_end/panels/security/CookieControlsView.ts +1 -1
  259. package/front_end/panels/security/CookieReportView.ts +1 -1
  260. package/front_end/panels/security/IPProtectionView.ts +1 -1
  261. package/front_end/panels/security/SecurityPanel.ts +2 -2
  262. package/front_end/panels/security/SecurityPanelSidebar.ts +1 -1
  263. package/front_end/panels/sensors/LocationsSettingsTab.ts +1 -1
  264. package/front_end/panels/sensors/SensorsView.ts +1 -1
  265. package/front_end/panels/settings/AISettingsTab.ts +1 -1
  266. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +1 -1
  267. package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
  268. package/front_end/panels/settings/SettingsScreen.ts +2 -2
  269. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  270. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -1
  271. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +1 -1
  272. package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
  273. package/front_end/panels/sources/CSSPlugin.ts +1 -1
  274. package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
  275. package/front_end/panels/sources/CoveragePlugin.ts +1 -1
  276. package/front_end/panels/sources/DebuggerPausedMessage.ts +1 -1
  277. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  278. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +1 -1
  279. package/front_end/panels/sources/NavigatorView.ts +1 -1
  280. package/front_end/panels/sources/OpenFileQuickOpen.ts +1 -1
  281. package/front_end/panels/sources/PersistenceActions.ts +1 -1
  282. package/front_end/panels/sources/ProfilePlugin.ts +3 -2
  283. package/front_end/panels/sources/ResourceOriginPlugin.ts +1 -1
  284. package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
  285. package/front_end/panels/sources/SourcesNavigator.ts +1 -1
  286. package/front_end/panels/sources/SourcesPanel.ts +17 -16
  287. package/front_end/panels/sources/SourcesView.ts +1 -1
  288. package/front_end/panels/sources/TabbedEditorContainer.ts +4 -5
  289. package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
  290. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  291. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
  292. package/front_end/panels/sources/components/HeadersView.ts +2 -2
  293. package/front_end/panels/timeline/CLSLinkifier.ts +1 -1
  294. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +1 -1
  295. package/front_end/panels/timeline/CountersGraph.ts +1 -1
  296. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  297. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
  298. package/front_end/panels/timeline/StatusDialog.ts +1 -1
  299. package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -1
  300. package/front_end/panels/timeline/TimelineController.ts +3 -3
  301. package/front_end/panels/timeline/TimelineDetailsView.ts +1 -1
  302. package/front_end/panels/timeline/TimelineEventOverview.ts +1 -1
  303. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
  304. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
  305. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  306. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  307. package/front_end/panels/timeline/TimelineMiniMap.ts +1 -1
  308. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
  309. package/front_end/panels/timeline/TimelinePanel.ts +2 -3
  310. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -1
  311. package/front_end/panels/timeline/TimelineTreeView.ts +1 -1
  312. package/front_end/panels/timeline/TimelineUIUtils.ts +4 -4
  313. package/front_end/panels/timeline/TimingsTrackAppender.ts +10 -8
  314. package/front_end/panels/timeline/components/BreadcrumbsUI.ts +1 -1
  315. package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +1 -1
  316. package/front_end/panels/timeline/components/DetailsView.ts +1 -1
  317. package/front_end/panels/timeline/components/ExportTraceOptions.ts +3 -9
  318. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +1 -1
  319. package/front_end/panels/timeline/components/IgnoreListSetting.ts +2 -2
  320. package/front_end/panels/timeline/components/InteractionBreakdown.ts +1 -1
  321. package/front_end/panels/timeline/components/LiveMetricsView.ts +6 -6
  322. package/front_end/panels/timeline/components/MetricCard.ts +1 -1
  323. package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
  324. package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +3 -3
  325. package/front_end/panels/timeline/components/OriginMap.ts +2 -2
  326. package/front_end/panels/timeline/components/Sidebar.ts +1 -1
  327. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -1
  328. package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -1
  329. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
  330. package/front_end/panels/timeline/components/TimelineSummary.ts +1 -1
  331. package/front_end/panels/timeline/components/Utils.ts +1 -1
  332. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +5 -6
  333. package/front_end/panels/timeline/components/insights/Checklist.ts +1 -1
  334. package/front_end/panels/timeline/components/insights/EventRef.ts +1 -1
  335. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +2 -2
  336. package/front_end/panels/timeline/components/insights/NodeLink.ts +1 -1
  337. package/front_end/panels/timeline/components/insights/Table.ts +1 -1
  338. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -1
  339. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
  340. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
  341. package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
  342. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +1 -1
  343. package/front_end/panels/utils/utils.ts +25 -5
  344. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  345. package/front_end/third_party/chromium/README.chromium +1 -1
  346. package/front_end/third_party/lighthouse/README.chromium +2 -2
  347. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +474 -472
  348. package/front_end/third_party/puppeteer/README.chromium +2 -2
  349. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +1 -1
  350. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +2 -2
  351. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  352. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
  353. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +20 -14
  354. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
  355. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
  356. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +16 -0
  357. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
  358. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  359. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +2 -4
  360. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
  361. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
  362. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts +1 -0
  363. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
  364. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.js +30 -4
  365. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.js.map +1 -1
  366. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +18 -0
  367. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
  368. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  369. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
  370. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  371. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +2 -1
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -1
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts +2 -2
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts.map +1 -1
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  382. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +3 -3
  383. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +22 -3
  384. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +1 -1
  385. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2 -2
  386. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  387. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
  388. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +20 -14
  389. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
  390. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
  391. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +16 -0
  392. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
  393. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
  394. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +2 -4
  395. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
  396. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts +1 -0
  397. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
  398. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.js +31 -5
  399. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.js.map +1 -1
  400. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +18 -0
  401. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
  402. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
  404. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +2 -1
  406. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -1
  408. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js.map +1 -1
  410. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts +2 -2
  411. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts.map +1 -1
  412. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  413. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  414. package/front_end/third_party/puppeteer/package/lib/types.d.ts +3 -3
  415. package/front_end/third_party/puppeteer/package/package.json +5 -4
  416. package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +1 -1
  417. package/front_end/third_party/puppeteer/package/src/api/Page.ts +2 -2
  418. package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +24 -14
  419. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +16 -0
  420. package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +2 -4
  421. package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +35 -5
  422. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +20 -0
  423. package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +6 -2
  424. package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +2 -1
  425. package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +1 -1
  426. package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +1 -1
  427. package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +2 -2
  428. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  429. package/front_end/tsconfig.compatibility.json +8 -0
  430. package/front_end/tsconfig.json +3 -1
  431. package/front_end/ui/components/adorners/Adorner.ts +1 -1
  432. package/front_end/ui/components/buttons/Button.ts +1 -1
  433. package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
  434. package/front_end/ui/components/cards/Card.ts +1 -1
  435. package/front_end/ui/components/chrome_link/ChromeLink.ts +2 -2
  436. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
  437. package/front_end/ui/components/dialogs/ButtonDialog.ts +1 -1
  438. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  439. package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -1
  440. package/front_end/ui/components/diff_view/DiffView.ts +1 -1
  441. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
  442. package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -2
  443. package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
  444. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  445. package/front_end/ui/components/icon_button/IconButton.ts +1 -1
  446. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  447. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +1 -1
  448. package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
  449. package/front_end/ui/components/linkifier/LinkifierImpl.ts +2 -2
  450. package/front_end/ui/components/markdown_view/CodeBlock.ts +1 -1
  451. package/front_end/ui/components/markdown_view/MarkdownImage.ts +1 -1
  452. package/front_end/ui/components/markdown_view/MarkdownLink.ts +1 -2
  453. package/front_end/ui/components/markdown_view/MarkdownView.ts +3 -5
  454. package/front_end/ui/components/menus/Menu.ts +1 -1
  455. package/front_end/ui/components/menus/SelectMenu.ts +5 -5
  456. package/front_end/ui/components/node_text/NodeText.ts +1 -2
  457. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  458. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  459. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  460. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +1 -1
  461. package/front_end/ui/components/report_view/ReportView.ts +1 -1
  462. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
  463. package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
  464. package/front_end/ui/components/settings/SettingDeprecationWarning.ts +1 -1
  465. package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
  466. package/front_end/ui/components/spinners/Spinner.ts +1 -1
  467. package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
  468. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  469. package/front_end/ui/components/switch/SwitchImpl.ts +3 -3
  470. package/front_end/ui/components/text_editor/AiCodeCompletionTeaserPlaceholder.ts +1 -1
  471. package/front_end/ui/components/text_editor/config.ts +1 -1
  472. package/front_end/ui/components/text_editor/javascript.ts +1 -1
  473. package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
  474. package/front_end/ui/components/tooltips/Tooltip.ts +6 -1
  475. package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -1
  476. package/front_end/ui/legacy/ContextMenu.ts +2 -2
  477. package/front_end/ui/legacy/Dialog.ts +1 -1
  478. package/front_end/ui/legacy/DropTarget.ts +1 -1
  479. package/front_end/ui/legacy/FilterBar.ts +1 -1
  480. package/front_end/ui/legacy/Fragment.ts +1 -1
  481. package/front_end/ui/legacy/GlassPane.ts +1 -1
  482. package/front_end/ui/legacy/Infobar.ts +1 -1
  483. package/front_end/ui/legacy/InspectorView.ts +1 -1
  484. package/front_end/ui/legacy/ListControl.ts +1 -1
  485. package/front_end/ui/legacy/ListWidget.ts +2 -2
  486. package/front_end/ui/legacy/Panel.ts +1 -1
  487. package/front_end/ui/legacy/ReportView.ts +1 -1
  488. package/front_end/ui/legacy/RootView.ts +1 -1
  489. package/front_end/ui/legacy/SearchableView.ts +1 -1
  490. package/front_end/ui/legacy/SettingsUI.ts +1 -1
  491. package/front_end/ui/legacy/SoftContextMenu.ts +1 -1
  492. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  493. package/front_end/ui/legacy/SplitWidget.ts +1 -1
  494. package/front_end/ui/legacy/SuggestBox.ts +1 -1
  495. package/front_end/ui/legacy/TabbedPane.ts +1 -1
  496. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  497. package/front_end/ui/legacy/Toolbar.ts +1 -1
  498. package/front_end/ui/legacy/Treeoutline.ts +2 -2
  499. package/front_end/ui/legacy/UIUtils.ts +2 -2
  500. package/front_end/ui/legacy/ViewManager.ts +1 -1
  501. package/front_end/ui/legacy/Widget.ts +1 -1
  502. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +1 -1
  503. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
  504. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +2 -2
  505. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  506. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +1 -1
  507. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +1 -1
  508. package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +1 -1
  509. package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +1 -1
  510. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -1
  511. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  512. package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +1 -2
  513. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  514. package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +1 -1
  515. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
  516. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +1 -1
  517. package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +1 -1
  518. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -1
  519. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
  520. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  521. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +1 -1
  522. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +1 -1
  523. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +1 -1
  524. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +1 -1
  525. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +1 -1
  526. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -1
  527. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +1 -1
  528. package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
  529. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +1 -1
  530. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +1 -1
  531. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
  532. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +2 -2
  533. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
  534. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
  535. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
  536. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -2
  537. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -1
  538. package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +1 -1
  539. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  540. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  541. package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -1
  542. package/front_end/ui/legacy/theme_support/ThemeSupport.ts +1 -1
  543. package/front_end/ui/lit/i18n-template.ts +1 -1
  544. package/front_end/ui/visual_logging/Debugging.ts +1 -1
  545. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -2
  546. package/mcp/mcp.ts +7 -2
  547. package/package.json +1 -1
@@ -36,7 +36,7 @@ export class ChildTargetManager extends SDKModel<EventTypes> implements Protocol
36
36
  readonly #targetInfos = new Map<Protocol.Target.TargetID, Protocol.Target.TargetInfo>();
37
37
  readonly #childTargetsBySessionId = new Map<Protocol.Target.SessionID, Target>();
38
38
  readonly #childTargetsById = new Map<Protocol.Target.TargetID|'main', Target>();
39
- readonly #parallelConnections = new Map<string, ProtocolClient.InspectorBackend.Connection>();
39
+ readonly #parallelConnections = new Map<string, ProtocolClient.ConnectionTransport.ConnectionTransport>();
40
40
  #parentTargetId: Protocol.Target.TargetID|null = null;
41
41
 
42
42
  constructor(parentTarget: Target) {
@@ -261,7 +261,7 @@ export class ChildTargetManager extends SDKModel<EventTypes> implements Protocol
261
261
  }
262
262
 
263
263
  async createParallelConnection(onMessage: (arg0: Object|string) => void):
264
- Promise<{connection: ProtocolClient.InspectorBackend.Connection, sessionId: string}> {
264
+ Promise<{connection: ProtocolClient.ConnectionTransport.ConnectionTransport, sessionId: string}> {
265
265
  // The main Target id is actually just `main`, instead of the real targetId.
266
266
  // Get the real id (requires an async operation) so that it can be used synchronously later.
267
267
  const targetId = await this.getParentTargetId();
@@ -274,7 +274,7 @@ export class ChildTargetManager extends SDKModel<EventTypes> implements Protocol
274
274
 
275
275
  private async createParallelConnectionAndSessionForTarget(target: Target, targetId: Protocol.Target.TargetID):
276
276
  Promise<{
277
- connection: ProtocolClient.InspectorBackend.Connection,
277
+ connection: ProtocolClient.ConnectionTransport.ConnectionTransport,
278
278
  sessionId: string,
279
279
  }> {
280
280
  const targetAgent = target.targetAgent();
@@ -19,7 +19,7 @@ const UIStrings = {
19
19
  } as const;
20
20
  const str_ = i18n.i18n.registerUIStrings('core/sdk/Connections.ts', UIStrings);
21
21
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
22
- export class MainConnection implements ProtocolClient.InspectorBackend.Connection {
22
+ export class MainConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
23
23
  onMessage: ((arg0: Object|string) => void)|null = null;
24
24
  #onDisconnect: ((arg0: string) => void)|null = null;
25
25
  #messageBuffer = '';
@@ -81,7 +81,7 @@ export class MainConnection implements ProtocolClient.InspectorBackend.Connectio
81
81
  }
82
82
  }
83
83
 
84
- export class WebSocketConnection implements ProtocolClient.InspectorBackend.Connection {
84
+ export class WebSocketConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
85
85
  #socket: WebSocket|null;
86
86
  onMessage: ((arg0: Object|string) => void)|null = null;
87
87
  #onDisconnect: ((arg0: string) => void)|null = null;
@@ -176,7 +176,7 @@ export class WebSocketConnection implements ProtocolClient.InspectorBackend.Conn
176
176
  }
177
177
  }
178
178
 
179
- export class StubConnection implements ProtocolClient.InspectorBackend.Connection {
179
+ export class StubConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
180
180
  onMessage: ((arg0: Object|string) => void)|null = null;
181
181
  #onDisconnect: ((arg0: string) => void)|null = null;
182
182
 
@@ -213,17 +213,17 @@ export class StubConnection implements ProtocolClient.InspectorBackend.Connectio
213
213
  }
214
214
  }
215
215
 
216
- export interface ParallelConnectionInterface extends ProtocolClient.InspectorBackend.Connection {
216
+ export interface ParallelConnectionInterface extends ProtocolClient.ConnectionTransport.ConnectionTransport {
217
217
  getSessionId: () => string;
218
218
  getOnDisconnect: () => ((arg0: string) => void) | null;
219
219
  }
220
220
 
221
221
  export class ParallelConnection implements ParallelConnectionInterface {
222
- readonly #connection: ProtocolClient.InspectorBackend.Connection;
222
+ readonly #connection: ProtocolClient.ConnectionTransport.ConnectionTransport;
223
223
  #sessionId: string;
224
224
  onMessage: ((arg0: Object) => void)|null = null;
225
225
  #onDisconnect: ((arg0: string) => void)|null = null;
226
- constructor(connection: ProtocolClient.InspectorBackend.Connection, sessionId: string) {
226
+ constructor(connection: ProtocolClient.ConnectionTransport.ConnectionTransport, sessionId: string) {
227
227
  this.#connection = connection;
228
228
  this.#sessionId = sessionId;
229
229
  }
@@ -265,13 +265,13 @@ export class ParallelConnection implements ParallelConnectionInterface {
265
265
  export async function initMainConnection(
266
266
  createRootTarget: () => Promise<void>,
267
267
  onConnectionLost: (message: Platform.UIString.LocalizedString) => void): Promise<void> {
268
- ProtocolClient.InspectorBackend.Connection.setFactory(createMainConnection.bind(null, onConnectionLost));
268
+ ProtocolClient.ConnectionTransport.ConnectionTransport.setFactory(createMainConnection.bind(null, onConnectionLost));
269
269
  await createRootTarget();
270
270
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.connectionReady();
271
271
  }
272
272
 
273
273
  function createMainConnection(onConnectionLost: (message: Platform.UIString.LocalizedString) => void):
274
- ProtocolClient.InspectorBackend.Connection {
274
+ ProtocolClient.ConnectionTransport.ConnectionTransport {
275
275
  if (Root.Runtime.Runtime.isTraceApp()) {
276
276
  return new RehydratingConnection(onConnectionLost);
277
277
  }
@@ -1022,9 +1022,15 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
1022
1022
  requestIntercepted({}: Protocol.Network.RequestInterceptedEvent): void {
1023
1023
  }
1024
1024
 
1025
- requestWillBeSentExtraInfo(
1026
- {requestId, associatedCookies, headers, clientSecurityState, connectTiming, siteHasCookieInOtherPartition}:
1027
- Protocol.Network.RequestWillBeSentExtraInfoEvent): void {
1025
+ requestWillBeSentExtraInfo({
1026
+ requestId,
1027
+ associatedCookies,
1028
+ headers,
1029
+ clientSecurityState,
1030
+ connectTiming,
1031
+ siteHasCookieInOtherPartition,
1032
+ appliedNetworkConditionsId
1033
+ }: Protocol.Network.RequestWillBeSentExtraInfoEvent): void {
1028
1034
  const blockedRequestCookies: BlockedCookieWithReason[] = [];
1029
1035
  const includedRequestCookies: IncludedCookieWithReason[] = [];
1030
1036
  for (const {blockedReasons, exemptionReason, cookie} of associatedCookies) {
@@ -1041,6 +1047,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
1041
1047
  clientSecurityState,
1042
1048
  connectTiming,
1043
1049
  siteHasCookieInOtherPartition,
1050
+ appliedNetworkConditionsId,
1044
1051
  };
1045
1052
  this.getExtraInfoBuilder(requestId).addRequestExtraInfo(extraRequestInfo);
1046
1053
  }
@@ -1575,24 +1582,6 @@ export type RequestConditionsSetting = {
1575
1582
  enabled: boolean,
1576
1583
  };
1577
1584
 
1578
- declare global {
1579
- // TS typedefs are not up to date
1580
- interface URLPattern {
1581
- hash: string;
1582
- hostname: string;
1583
- password: string;
1584
- pathname: string;
1585
- port: string;
1586
- protocol: string;
1587
- search: string;
1588
- username: string;
1589
- hasRegExpGroups: boolean;
1590
- test(url: string): boolean;
1591
- }
1592
- /* eslint-disable-next-line @typescript-eslint/naming-convention */
1593
- var URLPattern: {prototype: URLPattern, new (input: string): URLPattern};
1594
- }
1595
-
1596
1585
  export type URLPatternConstructorString = Platform.Brand.Brand<string, 'URLPatternConstructorString'>;
1597
1586
 
1598
1587
  export const enum RequestURLPatternValidity {
@@ -1650,6 +1639,7 @@ export class RequestCondition extends Common.ObjectWrapper.ObjectWrapper<Request
1650
1639
  #pattern: RequestURLPattern|{wildcardURL: string, upgradedPattern?: RequestURLPattern};
1651
1640
  #enabled: boolean;
1652
1641
  #conditions: ThrottlingConditions;
1642
+ #ruleIds = new Set<string>();
1653
1643
 
1654
1644
  static createFromSetting(setting: RequestConditionsSetting): RequestCondition {
1655
1645
  if ('urlPattern' in setting) {
@@ -1685,6 +1675,14 @@ export class RequestCondition extends Common.ObjectWrapper.ObjectWrapper<Request
1685
1675
  this.#conditions = conditions;
1686
1676
  }
1687
1677
 
1678
+ get isBlocking(): boolean {
1679
+ return this.conditions === BlockingConditions;
1680
+ }
1681
+
1682
+ get ruleIds(): Set<string> {
1683
+ return this.#ruleIds;
1684
+ }
1685
+
1688
1686
  get constructorString(): string|undefined {
1689
1687
  return this.#pattern instanceof RequestURLPattern ? this.#pattern.constructorString :
1690
1688
  this.#pattern.upgradedPattern?.constructorString;
@@ -1731,6 +1729,7 @@ export class RequestCondition extends Common.ObjectWrapper.ObjectWrapper<Request
1731
1729
 
1732
1730
  set conditions(conditions: ThrottlingConditions) {
1733
1731
  this.#conditions = conditions;
1732
+ this.#ruleIds = new Set();
1734
1733
  this.dispatchEventToListeners(RequestCondition.Events.REQUEST_CONDITION_CHANGED);
1735
1734
  }
1736
1735
 
@@ -1766,6 +1765,11 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
1766
1765
  readonly #conditionsEnabledSetting =
1767
1766
  Common.Settings.Settings.instance().moduleSetting<boolean>('request-blocking-enabled');
1768
1767
  readonly #conditions: RequestCondition[] = [];
1768
+ readonly #requestConditionsById = new Map<string, {
1769
+ conditions: Conditions,
1770
+ urlPattern?: string,
1771
+ }>();
1772
+ #conditionsAppliedForTestPromise: Promise<unknown> = Promise.resolve();
1769
1773
 
1770
1774
  constructor() {
1771
1775
  super();
@@ -1817,6 +1821,26 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
1817
1821
  this.#conditionsChanged();
1818
1822
  }
1819
1823
 
1824
+ decreasePriority(condition: RequestCondition): void {
1825
+ const index = this.#conditions.indexOf(condition);
1826
+ if (index < 0 || index >= this.#conditions.length - 1) {
1827
+ return;
1828
+ }
1829
+
1830
+ Platform.ArrayUtilities.swap(this.#conditions, index, index + 1);
1831
+ this.dispatchEventToListeners(RequestConditions.Events.REQUEST_CONDITIONS_CHANGED);
1832
+ }
1833
+
1834
+ increasePriority(condition: RequestCondition): void {
1835
+ const index = this.#conditions.indexOf(condition);
1836
+ if (index <= 0) {
1837
+ return;
1838
+ }
1839
+
1840
+ Platform.ArrayUtilities.swap(this.#conditions, index - 1, index);
1841
+ this.dispatchEventToListeners(RequestConditions.Events.REQUEST_CONDITIONS_CHANGED);
1842
+ }
1843
+
1820
1844
  delete(condition: RequestCondition): void {
1821
1845
  const index = this.#conditions.indexOf(condition);
1822
1846
  if (index < 0) {
@@ -1851,7 +1875,8 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
1851
1875
  }
1852
1876
  if (Root.Runtime.hostConfig.devToolsIndividualRequestThrottling?.enabled) {
1853
1877
  const urlPatterns: Protocol.Network.BlockPattern[] = [];
1854
- const matchedNetworkConditions: Protocol.Network.NetworkConditions[] = [];
1878
+ // We store all this info out-of-band to prevent races with changing conditions while the promise is still pending
1879
+ const matchedNetworkConditions: Array<{conditions: Conditions, ruleIds?: Set<string>, urlPattern?: string}> = [];
1855
1880
  if (this.conditionsEnabled) {
1856
1881
  for (const condition of this.#conditions) {
1857
1882
  const urlPattern = condition.constructorString;
@@ -1862,43 +1887,56 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
1862
1887
  const block = !isNonBlockingCondition(conditions);
1863
1888
  urlPatterns.push({urlPattern, block});
1864
1889
  if (!block) {
1865
- matchedNetworkConditions.push({
1866
- urlPattern,
1867
- latency: conditions.latency,
1868
- downloadThroughput: conditions.download < 0 ? 0 : conditions.download,
1869
- uploadThroughput: conditions.upload < 0 ? 0 : conditions.upload,
1870
- packetLoss: (conditions.packetLoss ?? 0) < 0 ? 0 : conditions.packetLoss,
1871
- packetQueueLength: conditions.packetQueueLength,
1872
- packetReordering: conditions.packetReordering,
1873
- connectionType: NetworkManager.connectionType(conditions),
1874
- });
1890
+ const {ruleIds} = condition;
1891
+ matchedNetworkConditions.push({ruleIds, urlPattern, conditions});
1875
1892
  }
1876
1893
  }
1877
1894
 
1878
1895
  if (globalConditions) {
1879
- matchedNetworkConditions.push({
1880
- urlPattern: '',
1881
- latency: globalConditions.latency,
1882
- downloadThroughput: globalConditions.download < 0 ? 0 : globalConditions.download,
1883
- uploadThroughput: globalConditions.upload < 0 ? 0 : globalConditions.upload,
1884
- packetLoss: (globalConditions.packetLoss ?? 0) < 0 ? 0 : globalConditions.packetLoss,
1885
- packetQueueLength: globalConditions.packetQueueLength,
1886
- packetReordering: globalConditions.packetReordering,
1887
- connectionType: NetworkManager.connectionType(globalConditions),
1888
- });
1896
+ matchedNetworkConditions.push({conditions: globalConditions});
1889
1897
  }
1890
1898
  }
1891
1899
 
1900
+ const promises: Array<Promise<unknown>> = [];
1901
+
1892
1902
  for (const agent of agents) {
1893
- void agent.invoke_setBlockedURLs({urlPatterns});
1894
- void agent.invoke_emulateNetworkConditionsByRule({offline, matchedNetworkConditions});
1895
- void agent.invoke_overrideNetworkState({
1903
+ promises.push(agent.invoke_setBlockedURLs({urlPatterns}));
1904
+ promises.push(agent
1905
+ .invoke_emulateNetworkConditionsByRule({
1906
+ offline,
1907
+ matchedNetworkConditions: matchedNetworkConditions.map(
1908
+ ({urlPattern, conditions}) => ({
1909
+ urlPattern: urlPattern ?? '',
1910
+ latency: conditions.latency,
1911
+ downloadThroughput: conditions.download < 0 ? 0 : conditions.download,
1912
+ uploadThroughput: conditions.upload < 0 ? 0 : conditions.upload,
1913
+ packetLoss: (conditions.packetLoss ?? 0) < 0 ? 0 : conditions.packetLoss,
1914
+ packetQueueLength: conditions.packetQueueLength,
1915
+ packetReordering: conditions.packetReordering,
1916
+ connectionType: NetworkManager.connectionType(conditions),
1917
+ }))
1918
+ })
1919
+ .then(response => {
1920
+ if (!response.getError()) {
1921
+ for (let i = 0; i < response.ruleIds.length; ++i) {
1922
+ const ruleId = response.ruleIds[i];
1923
+ const {ruleIds, conditions, urlPattern} = matchedNetworkConditions[i];
1924
+ if (ruleIds) {
1925
+ this.#requestConditionsById.set(ruleId, {urlPattern, conditions});
1926
+ matchedNetworkConditions[i].ruleIds?.add(ruleId);
1927
+ }
1928
+ }
1929
+ }
1930
+ }));
1931
+ promises.push(agent.invoke_overrideNetworkState({
1896
1932
  offline,
1897
1933
  latency: globalConditions?.latency ?? 0,
1898
1934
  downloadThroughput: !globalConditions || globalConditions.download < 0 ? 0 : globalConditions.download,
1899
1935
  uploadThroughput: !globalConditions || globalConditions.upload < 0 ? 0 : globalConditions.upload,
1900
- });
1936
+ }));
1901
1937
  }
1938
+
1939
+ this.#conditionsAppliedForTestPromise = this.#conditionsAppliedForTestPromise.then(() => Promise.all(promises));
1902
1940
  return urlPatterns.length > 0;
1903
1941
  }
1904
1942
 
@@ -1912,6 +1950,17 @@ export class RequestConditions extends Common.ObjectWrapper.ObjectWrapper<Reques
1912
1950
  }
1913
1951
  return urls.length > 0;
1914
1952
  }
1953
+
1954
+ conditionsAppliedForTest(): Promise<unknown> {
1955
+ return this.#conditionsAppliedForTestPromise;
1956
+ }
1957
+
1958
+ conditionsForId(appliedNetworkConditionsId: string): {
1959
+ conditions: Conditions,
1960
+ urlPattern?: string,
1961
+ }|undefined {
1962
+ return this.#requestConditionsById.get(appliedNetworkConditionsId);
1963
+ }
1915
1964
  }
1916
1965
 
1917
1966
  export namespace RequestConditions {
@@ -2293,6 +2342,16 @@ export class MultitargetNetworkManager extends Common.ObjectWrapper.ObjectWrappe
2293
2342
  resolve({success, content, errorDescription});
2294
2343
  }, allowRemoteFilePaths));
2295
2344
  }
2345
+
2346
+ appliedRequestConditions(requestInternal: NetworkRequest): {
2347
+ conditions: Conditions,
2348
+ urlPattern?: string,
2349
+ }|undefined {
2350
+ if (!requestInternal.appliedNetworkConditionsId) {
2351
+ return undefined;
2352
+ }
2353
+ return this.requestConditions.conditionsForId(requestInternal.appliedNetworkConditionsId);
2354
+ }
2296
2355
  }
2297
2356
 
2298
2357
  export namespace MultitargetNetworkManager {
@@ -319,6 +319,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
319
319
  readonly #directSocketChunks: DirectSocketChunk[] = [];
320
320
  #isIpProtectionUsed: boolean;
321
321
  #isAdRelated: boolean;
322
+ #appliedNetworkConditionsId?: string;
322
323
 
323
324
  constructor(
324
325
  requestId: string,
@@ -455,6 +456,10 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
455
456
  return this.#loaderId;
456
457
  }
457
458
 
459
+ get appliedNetworkConditionsId(): string|undefined {
460
+ return this.#appliedNetworkConditionsId;
461
+ }
462
+
458
463
  setRemoteAddress(ip: string, port: number): void {
459
464
  this.#remoteAddress = ip + ':' + port;
460
465
  this.dispatchEventToListeners(Events.REMOTE_ADDRESS_CHANGED, this);
@@ -1613,6 +1618,7 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
1613
1618
  this.#hasExtraRequestInfo = true;
1614
1619
  this.setRequestHeadersText(''); // Mark request headers as non-provisional
1615
1620
  this.#clientSecurityState = extraRequestInfo.clientSecurityState;
1621
+ this.#appliedNetworkConditionsId = extraRequestInfo.appliedNetworkConditionsId;
1616
1622
  if (extraRequestInfo.connectTiming) {
1617
1623
  this.setConnectTimingFromExtraInfo(extraRequestInfo.connectTiming);
1618
1624
  }
@@ -2170,6 +2176,7 @@ export interface ExtraRequestInfo {
2170
2176
  clientSecurityState?: Protocol.Network.ClientSecurityState;
2171
2177
  connectTiming: Protocol.Network.ConnectTiming;
2172
2178
  siteHasCookieInOtherPartition?: boolean;
2179
+ appliedNetworkConditionsId?: string;
2173
2180
  }
2174
2181
 
2175
2182
  export interface ExtraResponseInfo {
@@ -63,7 +63,7 @@ export const enum RehydratingConnectionState {
63
63
  REHYDRATED = 3,
64
64
  }
65
65
 
66
- export class RehydratingConnection implements ProtocolClient.InspectorBackend.Connection {
66
+ export class RehydratingConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
67
67
  rehydratingConnectionState: RehydratingConnectionState = RehydratingConnectionState.UNINITIALIZED;
68
68
  onDisconnect: ((arg0: string) => void)|null = null;
69
69
  onMessage: ((arg0: Object) => void)|null = null;
@@ -106,11 +106,13 @@ export class RehydratingConnection implements ProtocolClient.InspectorBackend.Co
106
106
 
107
107
  #setupMessagePassing(): void {
108
108
  this.#rehydratingWindow.addEventListener('message', this.#onReceiveHostWindowPayloadBound);
109
- if (!this.#rehydratingWindow.opener) {
109
+ if (this.#rehydratingWindow.opener) {
110
+ this.#rehydratingWindow.opener.postMessage({type: 'REHYDRATING_WINDOW_READY'});
111
+ } else if (this.#rehydratingWindow !== window.top) {
112
+ this.#rehydratingWindow.parent.postMessage({type: 'REHYDRATING_IFRAME_READY'});
113
+ } else {
110
114
  this.#onConnectionLost(i18nString(UIStrings.noHostWindow));
111
- return;
112
115
  }
113
- this.#rehydratingWindow.opener.postMessage({type: 'REHYDRATING_WINDOW_READY'});
114
116
  }
115
117
 
116
118
  /**
@@ -39,7 +39,8 @@ export class Target extends ProtocolClient.InspectorBackend.TargetBase {
39
39
  constructor(
40
40
  targetManager: TargetManager, id: Protocol.Target.TargetID|'main', name: string, type: Type,
41
41
  parentTarget: Target|null, sessionId: string, suspended: boolean,
42
- connection: ProtocolClient.InspectorBackend.Connection|null, targetInfo?: Protocol.Target.TargetInfo) {
42
+ connection: ProtocolClient.ConnectionTransport.ConnectionTransport|null,
43
+ targetInfo?: Protocol.Target.TargetInfo) {
43
44
  const needsNodeJSPatching = type === Type.NODE;
44
45
  super(needsNodeJSPatching, parentTarget, sessionId, connection);
45
46
  this.#targetManager = targetManager;
@@ -209,7 +209,8 @@ export class TargetManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes
209
209
 
210
210
  createTarget(
211
211
  id: Protocol.Target.TargetID|'main', name: string, type: TargetType, parentTarget: Target|null,
212
- sessionId?: string, waitForDebuggerInPage?: boolean, connection?: ProtocolClient.InspectorBackend.Connection,
212
+ sessionId?: string, waitForDebuggerInPage?: boolean,
213
+ connection?: ProtocolClient.ConnectionTransport.ConnectionTransport,
213
214
  targetInfo?: Protocol.Target.TargetInfo): Target {
214
215
  const target = new Target(
215
216
  this, id, name, type, parentTarget, sessionId || '', this.#isSuspended, connection || null, targetInfo);