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.
- package/AUTHORS +1 -0
- package/eslint.config.mjs +89 -133
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +0 -4
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/platform/ArrayUtilities.ts +1 -1
- package/front_end/core/protocol_client/ConnectionTransport.ts +26 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +13 -51
- package/front_end/core/protocol_client/protocol_client.ts +2 -0
- package/front_end/core/root/Runtime.ts +0 -4
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +3 -3
- package/front_end/core/sdk/Connections.ts +8 -8
- package/front_end/core/sdk/NetworkManager.ts +105 -46
- package/front_end/core/sdk/NetworkRequest.ts +7 -0
- package/front_end/core/sdk/RehydratingConnection.ts +6 -4
- package/front_end/core/sdk/Target.ts +2 -1
- package/front_end/core/sdk/TargetManager.ts +2 -1
- package/front_end/devtools_compatibility.js +941 -1596
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +4 -9
- package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/node_app/NodeMain.ts +1 -1
- package/front_end/entrypoints/node_app/node_app.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.js +0 -4
- package/front_end/generated/protocol-mapping.d.ts +0 -18
- package/front_end/generated/protocol-proxy-api.d.ts +0 -22
- package/front_end/generated/protocol.ts +0 -74
- package/front_end/global_typings/global_defs.d.ts +16 -0
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +9 -7
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatterBounds.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/injected.ts +1 -1
- package/front_end/models/ai_assistance/performance/AIContext.ts +11 -28
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/extensions/ExtensionAPI.ts +1 -1
- package/front_end/models/extensions/extensions.ts +0 -6
- package/front_end/models/formatter/FormatterWorkerPool.ts +1 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/stack_trace/StackTraceModel.ts +1 -1
- package/front_end/models/trace/extras/TraceTree.ts +13 -3
- package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +1 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -1
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -2
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +0 -12
- package/front_end/panels/ai_assistance/PatchWidget.ts +1 -1
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +0 -37
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +2 -2
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -1
- package/front_end/panels/application/BackgroundServiceView.ts +13 -4
- package/front_end/panels/application/CookieItemsView.ts +1 -1
- package/front_end/panels/application/DOMStorageItemsView.ts +1 -1
- package/front_end/panels/application/ExtensionStorageItemsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +1 -1
- package/front_end/panels/application/InterestGroupStorageView.ts +1 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +3 -3
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/SharedStorageEventsView.ts +1 -1
- package/front_end/panels/application/StorageView.ts +1 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +1 -1
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +2 -2
- package/front_end/panels/application/components/OriginTrialTreeView.ts +2 -2
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/ServiceWorkerRouterView.ts +1 -1
- package/front_end/panels/application/components/StackTrace.ts +1 -1
- package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/preloading/PreloadingView.ts +3 -3
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -2
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
- package/front_end/panels/autofill/AutofillView.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/changes/CombinedDiffView.ts +1 -1
- package/front_end/{models/extensions → panels/common}/ExtensionPanel.ts +8 -12
- package/front_end/{models/extensions → panels/common}/ExtensionServer.ts +242 -180
- package/front_end/{models/extensions → panels/common}/ExtensionView.ts +0 -4
- package/front_end/panels/common/FreDialog.ts +1 -1
- package/front_end/panels/common/PersistenceUtils.ts +1 -1
- package/front_end/panels/common/common.ts +4 -1
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/console/ConsoleFormat.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +45 -51
- package/front_end/panels/console/ConsolePanel.ts +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +2 -2
- package/front_end/panels/console/ConsolePrompt.ts +1 -1
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +2 -2
- package/front_end/panels/console/ConsoleViewport.ts +1 -1
- package/front_end/panels/console/consoleInsightTeaser.css +13 -0
- package/front_end/panels/elements/AccessibilityTreeView.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +1 -1
- package/front_end/panels/elements/ElementsPanel.ts +7 -7
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PropertyRenderer.ts +1 -1
- package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
- package/front_end/panels/elements/StyleEditorWidget.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +2 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/TopLayerContainer.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +13 -13
- package/front_end/panels/elements/components/CSSPropertyDocsView.ts +1 -1
- package/front_end/panels/elements/components/CSSQuery.ts +1 -2
- package/front_end/panels/elements/components/CSSVariableValueView.ts +1 -1
- package/front_end/panels/elements/components/ComputedStyleProperty.ts +1 -1
- package/front_end/panels/elements/components/ComputedStyleTrace.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +2 -2
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/components/QueryContainer.ts +2 -2
- package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -1
- package/front_end/panels/emulation/AdvancedApp.ts +1 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +1 -1
- package/front_end/panels/emulation/DeviceModeWrapper.ts +1 -1
- package/front_end/panels/emulation/MediaQueryInspector.ts +1 -1
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
- package/front_end/panels/explain/components/ConsoleInsight.ts +1 -1
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +1 -1
- package/front_end/panels/issues/AffectedCookiesView.ts +1 -1
- package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +1 -1
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +1 -1
- package/front_end/panels/issues/AffectedHeavyAdView.ts +1 -1
- package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +1 -1
- package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
- package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
- package/front_end/panels/issues/AffectedTrackingSitesView.ts +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/CorsIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/GenericIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/IssueKindView.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/IssuesPane.ts +1 -1
- package/front_end/panels/issues/components/ElementsPanelLink.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +1 -1
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layer_viewer/TransformController.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayersPanel.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +207 -139
- package/front_end/panels/lighthouse/LighthousePanel.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +1 -1
- package/front_end/panels/lighthouse/RadioSetting.ts +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +1 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -2
- package/front_end/panels/media/EventDisplayTable.ts +1 -1
- package/front_end/panels/media/EventTimelineView.ts +1 -1
- package/front_end/panels/media/MainView.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/media/PlayerMessagesView.ts +1 -1
- package/front_end/panels/media/PlayerPropertiesView.ts +1 -1
- package/front_end/panels/media/TickingFlameChart.ts +1 -1
- package/front_end/panels/mobile_throttling/CalibrationController.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/EventSourceMessagesView.ts +1 -1
- package/front_end/panels/network/NetworkConfigView.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +21 -2
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +2 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkManageCustomHeadersView.ts +1 -1
- package/front_end/panels/network/NetworkOverview.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +4 -4
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +73 -16
- package/front_end/panels/network/RequestCookiesView.ts +1 -1
- package/front_end/panels/network/RequestInitiatorView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +3 -4
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +1 -1
- package/front_end/panels/network/ResourceChunkView.ts +1 -1
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +1 -1
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/network/SignedExchangeInfoView.ts +1 -1
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +1 -1
- package/front_end/panels/network/components/EditableSpan.ts +1 -1
- package/front_end/panels/network/components/HeaderSectionRow.ts +1 -1
- package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +1 -1
- package/front_end/panels/network/components/RequestTrustTokensView.ts +1 -1
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/network-meta.ts +2 -2
- package/front_end/panels/network/networkLogView.css +24 -0
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +1 -1
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +1 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
- package/front_end/panels/profiler/HeapTimelineOverview.ts +1 -1
- package/front_end/panels/profiler/IsolateSelector.ts +1 -1
- package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +1 -1
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +1 -1
- package/front_end/panels/profiler/ProfileLauncherView.ts +1 -1
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +1 -1
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +19 -7
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
- package/front_end/panels/recorder/components/ExtensionView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingView.ts +2 -2
- package/front_end/panels/recorder/components/ReplaySection.ts +1 -1
- package/front_end/panels/recorder/components/SelectButton.ts +1 -1
- package/front_end/panels/recorder/components/TimelineSection.ts +1 -1
- package/front_end/panels/recorder/extensions/ExtensionManager.ts +1 -1
- package/front_end/panels/recorder/models/ScreenshotUtils.ts +1 -1
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/security/CookieControlsView.ts +1 -1
- package/front_end/panels/security/CookieReportView.ts +1 -1
- package/front_end/panels/security/IPProtectionView.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/security/SecurityPanelSidebar.ts +1 -1
- package/front_end/panels/sensors/LocationsSettingsTab.ts +1 -1
- package/front_end/panels/sensors/SensorsView.ts +1 -1
- package/front_end/panels/settings/AISettingsTab.ts +1 -1
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +1 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
- package/front_end/panels/settings/SettingsScreen.ts +2 -2
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -1
- package/front_end/panels/sources/CSSPlugin.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +1 -1
- package/front_end/panels/sources/CoveragePlugin.ts +1 -1
- package/front_end/panels/sources/DebuggerPausedMessage.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/OpenFileQuickOpen.ts +1 -1
- package/front_end/panels/sources/PersistenceActions.ts +1 -1
- package/front_end/panels/sources/ProfilePlugin.ts +3 -2
- package/front_end/panels/sources/ResourceOriginPlugin.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
- package/front_end/panels/sources/SourcesNavigator.ts +1 -1
- package/front_end/panels/sources/SourcesPanel.ts +17 -16
- package/front_end/panels/sources/SourcesView.ts +1 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +4 -5
- package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/timeline/CLSLinkifier.ts +1 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +1 -1
- package/front_end/panels/timeline/CountersGraph.ts +1 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
- package/front_end/panels/timeline/StatusDialog.ts +1 -1
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +3 -3
- package/front_end/panels/timeline/TimelineDetailsView.ts +1 -1
- package/front_end/panels/timeline/TimelineEventOverview.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +1 -1
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +2 -3
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -1
- package/front_end/panels/timeline/TimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -4
- package/front_end/panels/timeline/TimingsTrackAppender.ts +10 -8
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +1 -1
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +1 -1
- package/front_end/panels/timeline/components/DetailsView.ts +1 -1
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +3 -9
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +1 -1
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +2 -2
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +1 -1
- package/front_end/panels/timeline/components/LiveMetricsView.ts +6 -6
- package/front_end/panels/timeline/components/MetricCard.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +3 -3
- package/front_end/panels/timeline/components/OriginMap.ts +2 -2
- package/front_end/panels/timeline/components/Sidebar.ts +1 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -1
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -1
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -1
- package/front_end/panels/timeline/components/TimelineSummary.ts +1 -1
- package/front_end/panels/timeline/components/Utils.ts +1 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +5 -6
- package/front_end/panels/timeline/components/insights/Checklist.ts +1 -1
- package/front_end/panels/timeline/components/insights/EventRef.ts +1 -1
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +2 -2
- package/front_end/panels/timeline/components/insights/NodeLink.ts +1 -1
- package/front_end/panels/timeline/components/insights/Table.ts +1 -1
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +1 -1
- package/front_end/panels/utils/utils.ts +25 -5
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +474 -472
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +20 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +16 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +2 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.js +30 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +22 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +20 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +16 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.js +31 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/package.json +5 -4
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +24 -14
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +16 -0
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +35 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +20 -0
- package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +6 -2
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +2 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/tsconfig.compatibility.json +8 -0
- package/front_end/tsconfig.json +3 -1
- package/front_end/ui/components/adorners/Adorner.ts +1 -1
- package/front_end/ui/components/buttons/Button.ts +1 -1
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/cards/Card.ts +1 -1
- package/front_end/ui/components/chrome_link/ChromeLink.ts +2 -2
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.ts +1 -1
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -1
- package/front_end/ui/components/diff_view/DiffView.ts +1 -1
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -2
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +1 -1
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +2 -2
- package/front_end/ui/components/markdown_view/CodeBlock.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +1 -2
- package/front_end/ui/components/markdown_view/MarkdownView.ts +3 -5
- package/front_end/ui/components/menus/Menu.ts +1 -1
- package/front_end/ui/components/menus/SelectMenu.ts +5 -5
- package/front_end/ui/components/node_text/NodeText.ts +1 -2
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +1 -1
- package/front_end/ui/components/report_view/ReportView.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
- package/front_end/ui/components/spinners/Spinner.ts +1 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/switch/SwitchImpl.ts +3 -3
- package/front_end/ui/components/text_editor/AiCodeCompletionTeaserPlaceholder.ts +1 -1
- package/front_end/ui/components/text_editor/config.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +1 -1
- package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +6 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +2 -2
- package/front_end/ui/legacy/Dialog.ts +1 -1
- package/front_end/ui/legacy/DropTarget.ts +1 -1
- package/front_end/ui/legacy/FilterBar.ts +1 -1
- package/front_end/ui/legacy/Fragment.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/Infobar.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/ListControl.ts +1 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -2
- package/front_end/ui/legacy/Panel.ts +1 -1
- package/front_end/ui/legacy/ReportView.ts +1 -1
- package/front_end/ui/legacy/RootView.ts +1 -1
- package/front_end/ui/legacy/SearchableView.ts +1 -1
- package/front_end/ui/legacy/SettingsUI.ts +1 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +1 -1
- package/front_end/ui/legacy/SoftDropDown.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +1 -1
- package/front_end/ui/legacy/SuggestBox.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +1 -1
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +2 -2
- package/front_end/ui/legacy/UIUtils.ts +2 -2
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +1 -2
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +1 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -1
- package/front_end/ui/legacy/theme_support/ThemeSupport.ts +1 -1
- package/front_end/ui/lit/i18n-template.ts +1 -1
- package/front_end/ui/visual_logging/Debugging.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -2
- package/mcp/mcp.ts +7 -2
- package/package.json +1 -1
package/AUTHORS
CHANGED
|
@@ -81,6 +81,7 @@ Ross Wollman <ross.wollman@gmail.com>
|
|
|
81
81
|
Royi Hagigi <rhagigi@gmail.com>
|
|
82
82
|
Ryan Puhalovich <reanpuhalovich@gmail.com>
|
|
83
83
|
Ryuhei Shima <shimaryuhei@gmail.com>
|
|
84
|
+
Samuel Maddock <samuelmaddock@electronjs.org>
|
|
84
85
|
Satvic Dhawan <satvicdhawan14@gmail.com>
|
|
85
86
|
Sebastian Markbåge <sebastian@calyptus.eu>
|
|
86
87
|
Serg Kryvonos <sergeikrivonos@gmail.com>
|
package/eslint.config.mjs
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import stylisticPlugin from '@stylistic/eslint-plugin';
|
|
6
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
6
7
|
import eslintPlugin from 'eslint-plugin-eslint-plugin';
|
|
7
8
|
import importPlugin from 'eslint-plugin-import';
|
|
8
9
|
import jsdocPlugin from 'eslint-plugin-jsdoc';
|
|
9
10
|
import mochaPlugin from 'eslint-plugin-mocha';
|
|
10
|
-
import {defineConfig, globalIgnores} from 'eslint/config';
|
|
11
11
|
import globals from 'globals';
|
|
12
|
-
import {join} from 'path';
|
|
12
|
+
import { join } from 'path';
|
|
13
13
|
import typescriptEslint from 'typescript-eslint';
|
|
14
14
|
|
|
15
|
-
import
|
|
15
|
+
import devToolsPlugin from './scripts/eslint_rules/plugin.mjs';
|
|
16
16
|
|
|
17
17
|
export default defineConfig([
|
|
18
18
|
globalIgnores([
|
|
@@ -69,7 +69,7 @@ export default defineConfig([
|
|
|
69
69
|
'@stylistic': stylisticPlugin,
|
|
70
70
|
'@eslint-plugin': eslintPlugin,
|
|
71
71
|
mocha: mochaPlugin,
|
|
72
|
-
|
|
72
|
+
'@devtools': devToolsPlugin,
|
|
73
73
|
import: importPlugin,
|
|
74
74
|
jsdoc: jsdocPlugin,
|
|
75
75
|
},
|
|
@@ -193,7 +193,7 @@ export default defineConfig([
|
|
|
193
193
|
radix: 'error',
|
|
194
194
|
'valid-typeof': 'error',
|
|
195
195
|
'no-return-assign': ['error', 'always'],
|
|
196
|
-
'no-implicit-coercion': ['error', {allow: ['!!']}],
|
|
196
|
+
'no-implicit-coercion': ['error', { allow: ['!!'] }],
|
|
197
197
|
|
|
198
198
|
'no-array-constructor': 'error',
|
|
199
199
|
|
|
@@ -282,9 +282,9 @@ export default defineConfig([
|
|
|
282
282
|
},
|
|
283
283
|
],
|
|
284
284
|
// Try to spot '// console.log()' left over from debugging
|
|
285
|
-
'
|
|
285
|
+
'@devtools/no-commented-out-console': 'error',
|
|
286
286
|
// Prevent imports being commented out rather than deleted.
|
|
287
|
-
'
|
|
287
|
+
'@devtools/no-commented-out-import': 'error',
|
|
288
288
|
/**
|
|
289
289
|
* Enforce some consistency and usefulness of JSDoc comments, to make sure
|
|
290
290
|
* we actually benefit from them.
|
|
@@ -294,8 +294,8 @@ export default defineConfig([
|
|
|
294
294
|
'error',
|
|
295
295
|
{
|
|
296
296
|
definedTags: [
|
|
297
|
-
'attribute',
|
|
298
|
-
'meaning',
|
|
297
|
+
'attribute', // @attribute is used by lit-analyzer (through web-component-analyzer)
|
|
298
|
+
'meaning', // @meaning is used by localization
|
|
299
299
|
],
|
|
300
300
|
},
|
|
301
301
|
],
|
|
@@ -326,11 +326,11 @@ export default defineConfig([
|
|
|
326
326
|
parserOptions: {
|
|
327
327
|
allowAutomaticSingleRunInference: true,
|
|
328
328
|
project: join(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
import.meta.dirname,
|
|
330
|
+
'config',
|
|
331
|
+
'typescript',
|
|
332
|
+
'tsconfig.eslint.json',
|
|
333
|
+
),
|
|
334
334
|
},
|
|
335
335
|
},
|
|
336
336
|
|
|
@@ -567,25 +567,25 @@ export default defineConfig([
|
|
|
567
567
|
'no-useless-constructor': 'off',
|
|
568
568
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
569
569
|
|
|
570
|
-
'
|
|
571
|
-
'
|
|
570
|
+
'@devtools/no-underscored-properties': 'error',
|
|
571
|
+
'@devtools/inline-type-imports': 'error',
|
|
572
572
|
|
|
573
|
-
'
|
|
573
|
+
'@devtools/enforce-default-import-name': [
|
|
574
574
|
'error',
|
|
575
575
|
{
|
|
576
576
|
// Enforce that any import of models/trace/trace.js names the import Trace.
|
|
577
577
|
modulePath: join(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
578
|
+
import.meta.dirname,
|
|
579
|
+
'front_end',
|
|
580
|
+
'models',
|
|
581
|
+
'trace',
|
|
582
|
+
'trace.js',
|
|
583
|
+
),
|
|
584
584
|
importName: 'Trace',
|
|
585
585
|
},
|
|
586
586
|
],
|
|
587
587
|
|
|
588
|
-
'
|
|
588
|
+
'@devtools/validate-timing-types': 'error',
|
|
589
589
|
|
|
590
590
|
// Disallow redundant (and potentially conflicting) type information
|
|
591
591
|
// within JSDoc comments.
|
|
@@ -598,7 +598,7 @@ export default defineConfig([
|
|
|
598
598
|
files: ['scripts/**/*'],
|
|
599
599
|
rules: {
|
|
600
600
|
'no-console': 'off',
|
|
601
|
-
'
|
|
601
|
+
'@devtools/es-modules-import': 'off',
|
|
602
602
|
'import/no-default-export': 'off',
|
|
603
603
|
},
|
|
604
604
|
},
|
|
@@ -607,17 +607,17 @@ export default defineConfig([
|
|
|
607
607
|
files: ['front_end/**/*'],
|
|
608
608
|
rules: {
|
|
609
609
|
// L10n rules are only relevant in 'front_end'.
|
|
610
|
-
'
|
|
610
|
+
'@devtools/l10n-filename-matches': [
|
|
611
611
|
'error',
|
|
612
612
|
{
|
|
613
613
|
rootFrontendDirectory: join(import.meta.dirname, 'front_end'),
|
|
614
614
|
},
|
|
615
615
|
],
|
|
616
|
-
'
|
|
617
|
-
'
|
|
618
|
-
'
|
|
619
|
-
'
|
|
620
|
-
'
|
|
616
|
+
'@devtools/l10n-i18nString-call-only-with-uistrings': 'error',
|
|
617
|
+
'@devtools/l10n-no-i18nString-calls-module-instantiation': 'error',
|
|
618
|
+
'@devtools/l10n-no-locked-or-placeholder-only-phrase': 'error',
|
|
619
|
+
'@devtools/l10n-no-uistrings-export': 'error',
|
|
620
|
+
'@devtools/l10n-no-unused-message': 'error',
|
|
621
621
|
},
|
|
622
622
|
},
|
|
623
623
|
{
|
|
@@ -632,41 +632,41 @@ export default defineConfig([
|
|
|
632
632
|
allowIIFEs: true,
|
|
633
633
|
},
|
|
634
634
|
],
|
|
635
|
-
'
|
|
636
|
-
'
|
|
637
|
-
'
|
|
638
|
-
'
|
|
639
|
-
'
|
|
640
|
-
'
|
|
641
|
-
'
|
|
642
|
-
'
|
|
643
|
-
'
|
|
644
|
-
'
|
|
645
|
-
'
|
|
646
|
-
'
|
|
647
|
-
'
|
|
648
|
-
'
|
|
649
|
-
'
|
|
635
|
+
'@devtools/no-imperative-dom-api': 'error',
|
|
636
|
+
'@devtools/no-lit-render-outside-of-view': 'error',
|
|
637
|
+
'@devtools/no-importing-images-from-src': 'error',
|
|
638
|
+
'@devtools/enforce-custom-event-names': 'error',
|
|
639
|
+
'@devtools/set-data-type-reference': 'error',
|
|
640
|
+
'@devtools/no-bound-component-methods': 'error',
|
|
641
|
+
'@devtools/no-adopted-style-sheets': 'error',
|
|
642
|
+
'@devtools/no-customized-builtin-elements': 'error',
|
|
643
|
+
'@devtools/no-deprecated-component-usages': 'error',
|
|
644
|
+
'@devtools/no-self-closing-custom-element-tagnames': 'error',
|
|
645
|
+
'@devtools/no-a-tags-in-lit': 'error',
|
|
646
|
+
'@devtools/check-css-import': 'error',
|
|
647
|
+
'@devtools/enforce-optional-properties-last': 'error',
|
|
648
|
+
'@devtools/check-enumerated-histograms': 'error',
|
|
649
|
+
'@devtools/require-super-calls-in-overridden-methods': [
|
|
650
650
|
'error',
|
|
651
651
|
{
|
|
652
652
|
methodNames: ['wasShown', 'willHide'],
|
|
653
653
|
},
|
|
654
654
|
],
|
|
655
|
-
'
|
|
656
|
-
'
|
|
657
|
-
'
|
|
658
|
-
'
|
|
659
|
-
'
|
|
660
|
-
'
|
|
661
|
-
'
|
|
662
|
-
'
|
|
655
|
+
'@devtools/static-custom-event-names': 'error',
|
|
656
|
+
'@devtools/lit-no-attribute-quotes': 'error',
|
|
657
|
+
'@devtools/lit-template-result-or-nothing': 'error',
|
|
658
|
+
'@devtools/inject-checkbox-styles': 'error',
|
|
659
|
+
'@devtools/jslog-context-list': 'error',
|
|
660
|
+
'@devtools/es-modules-import': 'error',
|
|
661
|
+
'@devtools/html-tagged-template': 'error',
|
|
662
|
+
'@devtools/enforce-custom-element-definitions-location': [
|
|
663
663
|
'error',
|
|
664
664
|
{
|
|
665
665
|
rootFrontendDirectory: join(import.meta.dirname, 'front_end'),
|
|
666
666
|
},
|
|
667
667
|
],
|
|
668
|
-
'
|
|
669
|
-
'
|
|
668
|
+
'@devtools/enforce-ui-strings-as-const': 'error',
|
|
669
|
+
'@devtools/no-new-lit-element-components': 'error',
|
|
670
670
|
},
|
|
671
671
|
},
|
|
672
672
|
{
|
|
@@ -720,23 +720,23 @@ export default defineConfig([
|
|
|
720
720
|
},
|
|
721
721
|
],
|
|
722
722
|
|
|
723
|
-
'
|
|
724
|
-
'
|
|
725
|
-
'
|
|
726
|
-
'
|
|
727
|
-
'
|
|
728
|
-
'
|
|
729
|
-
'
|
|
730
|
-
'
|
|
731
|
-
'
|
|
732
|
-
'
|
|
733
|
-
'
|
|
734
|
-
'
|
|
735
|
-
'
|
|
736
|
-
'
|
|
737
|
-
'
|
|
738
|
-
'
|
|
739
|
-
'
|
|
723
|
+
'@devtools/check-test-definitions': 'error',
|
|
724
|
+
'@devtools/no-assert-strict-equal-for-arrays-and-objects': 'error',
|
|
725
|
+
'@devtools/no-assert-deep-strict-equal': 'error',
|
|
726
|
+
'@devtools/no-assert-equal': 'error',
|
|
727
|
+
'@devtools/no-assert-equal-boolean-null-undefined': 'error',
|
|
728
|
+
'@devtools/no-capture-screenshot': 'error',
|
|
729
|
+
'@devtools/no-imperative-dom-api': 'off',
|
|
730
|
+
'@devtools/no-lit-render-outside-of-view': 'off',
|
|
731
|
+
'@devtools/prefer-assert-instance-of': 'error',
|
|
732
|
+
'@devtools/prefer-assert-is-ok': 'error',
|
|
733
|
+
'@devtools/prefer-assert-length-of': 'error',
|
|
734
|
+
'@devtools/prefer-assert-strict-equal': 'error',
|
|
735
|
+
'@devtools/prefer-sinon-assert': 'error',
|
|
736
|
+
'@devtools/prefer-url-string': 'error',
|
|
737
|
+
'@devtools/trace-engine-test-timeouts': 'error',
|
|
738
|
+
'@devtools/no-document-body-mutation': 'error',
|
|
739
|
+
'@devtools/enforce-custom-element-definitions-location': 'off',
|
|
740
740
|
},
|
|
741
741
|
|
|
742
742
|
settings: {
|
|
@@ -773,7 +773,7 @@ export default defineConfig([
|
|
|
773
773
|
],
|
|
774
774
|
|
|
775
775
|
rules: {
|
|
776
|
-
'
|
|
776
|
+
'@devtools/prefer-private-class-members': 'error',
|
|
777
777
|
},
|
|
778
778
|
},
|
|
779
779
|
{
|
|
@@ -784,14 +784,14 @@ export default defineConfig([
|
|
|
784
784
|
],
|
|
785
785
|
rules: {
|
|
786
786
|
// TODO(crbug/1402569): Reenable once https://github.com/microsoft/TypeScript/issues/48885 is closed.
|
|
787
|
-
'
|
|
787
|
+
'@devtools/prefer-private-class-members': 'off',
|
|
788
788
|
},
|
|
789
789
|
},
|
|
790
790
|
{
|
|
791
791
|
name: 'Supported CSS properties rules',
|
|
792
792
|
files: ['front_end/generated/SupportedCSSProperties.js'],
|
|
793
793
|
rules: {
|
|
794
|
-
'
|
|
794
|
+
'@devtools/jslog-context-list': 'error',
|
|
795
795
|
},
|
|
796
796
|
},
|
|
797
797
|
{
|
|
@@ -805,7 +805,7 @@ export default defineConfig([
|
|
|
805
805
|
name: 'Legacy test runner',
|
|
806
806
|
files: ['front_end/legacy_test_runner/**/*'],
|
|
807
807
|
rules: {
|
|
808
|
-
'
|
|
808
|
+
'@devtools/es-modules-import': 'off',
|
|
809
809
|
},
|
|
810
810
|
},
|
|
811
811
|
{
|
|
@@ -818,9 +818,9 @@ export default defineConfig([
|
|
|
818
818
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
819
819
|
// We use Lit to help render examples sometimes and we don't use
|
|
820
820
|
// {host: this} as often the `this` is the window.
|
|
821
|
-
'
|
|
822
|
-
'
|
|
823
|
-
'
|
|
821
|
+
'@devtools/lit-host-this': 'off',
|
|
822
|
+
'@devtools/no-imperative-dom-api': 'off',
|
|
823
|
+
'@devtools/no-lit-render-outside-of-view': 'off',
|
|
824
824
|
},
|
|
825
825
|
},
|
|
826
826
|
{
|
|
@@ -828,64 +828,20 @@ export default defineConfig([
|
|
|
828
828
|
files: ['front_end/models/trace/**/*.ts'],
|
|
829
829
|
ignores: ['front_end/models/trace/**/*.test.ts'],
|
|
830
830
|
rules: {
|
|
831
|
-
'
|
|
831
|
+
'@devtools/no-imports-in-directory': [
|
|
832
832
|
'error',
|
|
833
833
|
{
|
|
834
834
|
bannedImportPaths: [
|
|
835
835
|
{
|
|
836
836
|
bannedPath: join(
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
837
|
+
import.meta.dirname,
|
|
838
|
+
'front_end',
|
|
839
|
+
'core',
|
|
840
|
+
'sdk',
|
|
841
|
+
'sdk.js',
|
|
842
|
+
),
|
|
843
843
|
allowTypeImports: true,
|
|
844
844
|
},
|
|
845
|
-
{
|
|
846
|
-
bannedPath: join(
|
|
847
|
-
import.meta.dirname,
|
|
848
|
-
'front_end',
|
|
849
|
-
'ui',
|
|
850
|
-
'legacy',
|
|
851
|
-
'legacy.js',
|
|
852
|
-
),
|
|
853
|
-
allowTypeImports: false,
|
|
854
|
-
},
|
|
855
|
-
],
|
|
856
|
-
},
|
|
857
|
-
],
|
|
858
|
-
},
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
name: 'No UI in models',
|
|
862
|
-
files: ['front_end/models/**/*.ts'],
|
|
863
|
-
ignores: ['front_end/models/**/*.test.ts'],
|
|
864
|
-
rules: {
|
|
865
|
-
'rulesdir/no-imports-in-directory': [
|
|
866
|
-
'error',
|
|
867
|
-
{
|
|
868
|
-
bannedImportPaths: [
|
|
869
|
-
{
|
|
870
|
-
bannedPath: join(
|
|
871
|
-
import.meta.dirname,
|
|
872
|
-
'front_end',
|
|
873
|
-
'ui',
|
|
874
|
-
'legacy',
|
|
875
|
-
'legacy.js',
|
|
876
|
-
),
|
|
877
|
-
allowTypeImports: false,
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
bannedPath: join(
|
|
881
|
-
import.meta.dirname,
|
|
882
|
-
'front_end',
|
|
883
|
-
'ui',
|
|
884
|
-
'lit',
|
|
885
|
-
'lit.js',
|
|
886
|
-
),
|
|
887
|
-
allowTypeImports: false,
|
|
888
|
-
},
|
|
889
845
|
],
|
|
890
846
|
},
|
|
891
847
|
],
|
|
@@ -896,7 +852,7 @@ export default defineConfig([
|
|
|
896
852
|
files: ['front_end/panels/recorder/injected/**/*.ts'],
|
|
897
853
|
rules: {
|
|
898
854
|
// The code is rolled up and tree-shaken independently from the regular entrypoints.
|
|
899
|
-
'
|
|
855
|
+
'@devtools/es-modules-import': 'off',
|
|
900
856
|
},
|
|
901
857
|
},
|
|
902
858
|
{
|
|
@@ -908,7 +864,7 @@ export default defineConfig([
|
|
|
908
864
|
// enabled in this folder because it is an
|
|
909
865
|
// expensive rule to run and we do not need it
|
|
910
866
|
// for any code that doesn't use Canvas.
|
|
911
|
-
'
|
|
867
|
+
'@devtools/canvas-context-tracking': 'error',
|
|
912
868
|
},
|
|
913
869
|
},
|
|
914
870
|
{
|
|
@@ -212,7 +212,7 @@ export class InspectorFrontendHostStub implements InspectorFrontendHostAPI {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/* eslint-disable-next-line
|
|
215
|
+
/* eslint-disable-next-line @devtools/no-imperative-dom-api */
|
|
216
216
|
const link = document.createElement('a');
|
|
217
217
|
link.download = fileName;
|
|
218
218
|
let blob;
|
|
@@ -506,8 +506,6 @@ export enum Action {
|
|
|
506
506
|
AiAssistanceSideEffectConfirmed = 179,
|
|
507
507
|
AiAssistanceSideEffectRejected = 180,
|
|
508
508
|
AiAssistanceError = 181,
|
|
509
|
-
AiAssistanceOpenedFromPerformanceInsight = 182,
|
|
510
|
-
AiAssistanceOpenedFromPerformanceFullButton = 183,
|
|
511
509
|
AiCodeCompletionResponseServedFromCache = 184,
|
|
512
510
|
AiCodeCompletionRequestTriggered = 185,
|
|
513
511
|
AiCodeCompletionSuggestionDisplayed = 186,
|
|
@@ -801,8 +799,6 @@ export enum DevtoolsExperiments {
|
|
|
801
799
|
'just-my-code' = 65,
|
|
802
800
|
'use-source-map-scopes' = 76,
|
|
803
801
|
'timeline-show-postmessage-events' = 86,
|
|
804
|
-
'timeline-enhanced-traces' = 90,
|
|
805
|
-
'timeline-compiled-sources' = 91,
|
|
806
802
|
'timeline-debug-mode' = 93,
|
|
807
803
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
808
804
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2020 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable
|
|
4
|
+
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
5
|
|
|
6
6
|
import * as I18n from '../../third_party/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../platform/platform.js';
|
|
@@ -22,7 +22,7 @@ export const removeElement = <T>(array: T[], element: T, firstOnly?: boolean): b
|
|
|
22
22
|
|
|
23
23
|
type NumberComparator = (a: number, b: number) => number;
|
|
24
24
|
|
|
25
|
-
function swap(array:
|
|
25
|
+
export function swap<T>(array: T[], i1: number, i2: number): void {
|
|
26
26
|
const temp = array[i1];
|
|
27
27
|
array[i1] = array[i2];
|
|
28
28
|
array[i2] = temp;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2025 The Chromium Authors
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
let connectionFactory: () => ConnectionTransport;
|
|
6
|
+
|
|
7
|
+
export abstract class ConnectionTransport {
|
|
8
|
+
declare onMessage: ((arg0: Object) => void)|null;
|
|
9
|
+
|
|
10
|
+
// on message from browser
|
|
11
|
+
abstract setOnMessage(onMessage: (arg0: Object|string) => void): void;
|
|
12
|
+
abstract setOnDisconnect(onDisconnect: (arg0: string) => void): void;
|
|
13
|
+
|
|
14
|
+
// send raw CDP message to browser
|
|
15
|
+
abstract sendRawMessage(message: string): void;
|
|
16
|
+
|
|
17
|
+
abstract disconnect(): Promise<void>;
|
|
18
|
+
|
|
19
|
+
static setFactory(factory: () => ConnectionTransport): void {
|
|
20
|
+
connectionFactory = factory;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static getFactory(): () => ConnectionTransport {
|
|
24
|
+
return connectionFactory;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -7,6 +7,7 @@ import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
|
7
7
|
import type * as Protocol from '../../generated/protocol.js';
|
|
8
8
|
import type * as Platform from '../platform/platform.js';
|
|
9
9
|
|
|
10
|
+
import {ConnectionTransport} from './ConnectionTransport.js';
|
|
10
11
|
import {NodeURL} from './NodeURL.js';
|
|
11
12
|
|
|
12
13
|
export const DevToolsStubErrorCode = -32015;
|
|
@@ -160,35 +161,6 @@ export class InspectorBackend {
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
|
|
163
|
-
let connectionFactory: () => Connection;
|
|
164
|
-
|
|
165
|
-
export class Connection {
|
|
166
|
-
declare onMessage: ((arg0: Object) => void)|null;
|
|
167
|
-
|
|
168
|
-
// on message from browser
|
|
169
|
-
setOnMessage(_onMessage: (arg0: Object|string) => void): void {
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
setOnDisconnect(_onDisconnect: (arg0: string) => void): void {
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// send raw CDP message to browser
|
|
176
|
-
sendRawMessage(_message: string): void {
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
disconnect(): Promise<void> {
|
|
180
|
-
throw new Error('not implemented');
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
static setFactory(factory: () => Connection): void {
|
|
184
|
-
connectionFactory = factory;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
static getFactory(): () => Connection {
|
|
188
|
-
return connectionFactory;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
164
|
type SendRawMessageCallback = (...args: unknown[]) => void;
|
|
193
165
|
|
|
194
166
|
export const test = {
|
|
@@ -219,31 +191,30 @@ export const test = {
|
|
|
219
191
|
* Set to get notified about any messages sent over protocol.
|
|
220
192
|
*/
|
|
221
193
|
onMessageSent: null as
|
|
222
|
-
((message: {domain: string, method: string, params: Object, id: number, sessionId?: string}
|
|
223
|
-
target: TargetBase|null) => void) |
|
|
194
|
+
((message: {domain: string, method: string, params: Object, id: number, sessionId?: string}) => void) |
|
|
224
195
|
null,
|
|
225
196
|
|
|
226
197
|
/**
|
|
227
198
|
* Set to get notified about any messages received over protocol.
|
|
228
199
|
*/
|
|
229
|
-
onMessageReceived: null as ((message: Object
|
|
200
|
+
onMessageReceived: null as ((message: Object) => void) | null,
|
|
230
201
|
};
|
|
231
202
|
|
|
232
203
|
const LongPollingMethods = new Set<string>(['CSS.takeComputedStyleUpdates']);
|
|
233
204
|
|
|
234
205
|
export class SessionRouter {
|
|
235
|
-
readonly #connection:
|
|
206
|
+
readonly #connection: ConnectionTransport;
|
|
236
207
|
#lastMessageId = 1;
|
|
237
208
|
#pendingResponsesCount = 0;
|
|
238
209
|
readonly #pendingLongPollingMessageIds = new Set<number>();
|
|
239
210
|
readonly #sessions = new Map<string, {
|
|
240
211
|
target: TargetBase,
|
|
241
212
|
callbacks: Map<number, CallbackWithDebugInfo>,
|
|
242
|
-
proxyConnection:
|
|
213
|
+
proxyConnection: ConnectionTransport|undefined|null,
|
|
243
214
|
}>();
|
|
244
215
|
#pendingScripts: Array<() => void> = [];
|
|
245
216
|
|
|
246
|
-
constructor(connection:
|
|
217
|
+
constructor(connection: ConnectionTransport) {
|
|
247
218
|
this.#connection = connection;
|
|
248
219
|
|
|
249
220
|
test.deprecatedRunAfterPendingDispatches = this.deprecatedRunAfterPendingDispatches.bind(this);
|
|
@@ -259,7 +230,7 @@ export class SessionRouter {
|
|
|
259
230
|
});
|
|
260
231
|
}
|
|
261
232
|
|
|
262
|
-
registerSession(target: TargetBase, sessionId: string, proxyConnection?:
|
|
233
|
+
registerSession(target: TargetBase, sessionId: string, proxyConnection?: ConnectionTransport|null): void {
|
|
263
234
|
// Only the Audits panel uses proxy connections. If it is ever possible to have multiple active at the
|
|
264
235
|
// same time, it should be tested thoroughly.
|
|
265
236
|
if (proxyConnection) {
|
|
@@ -285,19 +256,11 @@ export class SessionRouter {
|
|
|
285
256
|
this.#sessions.delete(sessionId);
|
|
286
257
|
}
|
|
287
258
|
|
|
288
|
-
private getTargetBySessionId(sessionId: string): TargetBase|null {
|
|
289
|
-
const session = this.#sessions.get(sessionId ? sessionId : '');
|
|
290
|
-
if (!session) {
|
|
291
|
-
return null;
|
|
292
|
-
}
|
|
293
|
-
return session.target;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
259
|
private nextMessageId(): number {
|
|
297
260
|
return this.#lastMessageId++;
|
|
298
261
|
}
|
|
299
262
|
|
|
300
|
-
connection():
|
|
263
|
+
connection(): ConnectionTransport {
|
|
301
264
|
return this.#connection;
|
|
302
265
|
}
|
|
303
266
|
|
|
@@ -321,9 +284,7 @@ export class SessionRouter {
|
|
|
321
284
|
|
|
322
285
|
if (test.onMessageSent) {
|
|
323
286
|
const paramsObject = JSON.parse(JSON.stringify(params || {}));
|
|
324
|
-
test.onMessageSent(
|
|
325
|
-
{domain, method, params: (paramsObject as Object), id: messageId, sessionId},
|
|
326
|
-
this.getTargetBySessionId(sessionId));
|
|
287
|
+
test.onMessageSent({domain, method, params: (paramsObject as Object), id: messageId, sessionId});
|
|
327
288
|
}
|
|
328
289
|
|
|
329
290
|
++this.#pendingResponsesCount;
|
|
@@ -352,7 +313,7 @@ export class SessionRouter {
|
|
|
352
313
|
|
|
353
314
|
if (test.onMessageReceived) {
|
|
354
315
|
const messageObjectCopy = JSON.parse((typeof message === 'string') ? message : JSON.stringify(message));
|
|
355
|
-
test.onMessageReceived(messageObjectCopy
|
|
316
|
+
test.onMessageReceived(messageObjectCopy);
|
|
356
317
|
}
|
|
357
318
|
|
|
358
319
|
const messageObject = ((typeof message === 'string') ? JSON.parse(message) : message) as Message;
|
|
@@ -497,7 +458,8 @@ export class TargetBase {
|
|
|
497
458
|
#dispatchers: DispatcherMap = new Map();
|
|
498
459
|
|
|
499
460
|
constructor(
|
|
500
|
-
needsNodeJSPatching: boolean, parentTarget: TargetBase|null, sessionId: string,
|
|
461
|
+
needsNodeJSPatching: boolean, parentTarget: TargetBase|null, sessionId: string,
|
|
462
|
+
connection: ConnectionTransport|null) {
|
|
501
463
|
this.needsNodeJSPatching = needsNodeJSPatching;
|
|
502
464
|
this.sessionId = sessionId;
|
|
503
465
|
|
|
@@ -511,7 +473,7 @@ export class TargetBase {
|
|
|
511
473
|
} else if (connection) {
|
|
512
474
|
router = new SessionRouter(connection);
|
|
513
475
|
} else {
|
|
514
|
-
router = new SessionRouter(
|
|
476
|
+
router = new SessionRouter(ConnectionTransport.getFactory()());
|
|
515
477
|
}
|
|
516
478
|
|
|
517
479
|
this.#router = router;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import * as ConnectionTransport from './ConnectionTransport.js';
|
|
5
6
|
import * as InspectorBackend from './InspectorBackend.js';
|
|
6
7
|
import * as NodeURL from './NodeURL.js';
|
|
7
8
|
|
|
8
9
|
export {
|
|
10
|
+
ConnectionTransport,
|
|
9
11
|
InspectorBackend,
|
|
10
12
|
NodeURL,
|
|
11
13
|
};
|
|
@@ -343,8 +343,6 @@ export const enum ExperimentName {
|
|
|
343
343
|
USE_SOURCE_MAP_SCOPES = 'use-source-map-scopes',
|
|
344
344
|
TIMELINE_SHOW_POST_MESSAGE_EVENTS = 'timeline-show-postmessage-events',
|
|
345
345
|
TIMELINE_DEBUG_MODE = 'timeline-debug-mode',
|
|
346
|
-
TIMELINE_ENHANCED_TRACES = 'timeline-enhanced-traces',
|
|
347
|
-
TIMELINE_COMPILED_SOURCES = 'timeline-compiled-sources',
|
|
348
346
|
// Adding or removing an entry from this enum?
|
|
349
347
|
// You will need to update:
|
|
350
348
|
// 1. REGISTERED_EXPERIMENTS in EnvironmentHelpers.ts (to create this experiment in the test env)
|
|
@@ -406,8 +404,6 @@ export interface HostConfigAiAssistancePerformanceAgent {
|
|
|
406
404
|
temperature: number;
|
|
407
405
|
enabled: boolean;
|
|
408
406
|
userTier: string;
|
|
409
|
-
// Introduced in crrev.com/c/6243415
|
|
410
|
-
insightsEnabled?: boolean;
|
|
411
407
|
featureName?: string;
|
|
412
408
|
}
|
|
413
409
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2023 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable
|
|
4
|
+
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
5
|
|
|
6
6
|
import * as Common from '../../core/common/common.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|