chrome-devtools-frontend 1.0.1532884 → 1.0.1534251
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/eslint.config.mjs +89 -133
- package/front_end/Images/src/justify-content-stretch.svg +4 -0
- package/front_end/core/host/InspectorFrontendHost.ts +7 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +32 -29
- package/front_end/core/host/UserMetrics.ts +2 -5
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/protocol_client/CDPConnection.ts +39 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -24
- package/front_end/core/root/Runtime.ts +0 -2
- package/front_end/core/sdk/CSSMatchedStyles.ts +2 -2
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +19 -9
- package/front_end/core/sdk/NetworkManager.ts +85 -62
- package/front_end/core/sdk/NetworkRequest.ts +7 -0
- package/front_end/devtools_compatibility.js +948 -1598
- 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/node_app.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.js +0 -4
- package/front_end/generated/protocol-mapping.d.ts +3 -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/BuiltInAi.ts +0 -17
- 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/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 +74 -58
- 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 +6 -4
- package/front_end/panels/console/ConsoleViewport.ts +1 -1
- package/front_end/panels/console/consoleInsightTeaser.css +4 -0
- package/front_end/panels/console/consoleView.css +1 -1
- 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 +48 -10
- 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/CSSPropertyIconResolver.ts +1 -0
- 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 +66 -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 +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 +29 -5
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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/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 +1 -1
- 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/ElementHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.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/cdp/Accessibility.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +1 -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/Page.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.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/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +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 +4 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +10 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +1 -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/Page.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.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 +4 -0
- package/front_end/third_party/puppeteer/package/package.json +1 -1
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/revisions.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/docs/style_property_editor/masonry.html +21 -0
- package/front_end/ui/components/docs/style_property_editor/masonry.ts +50 -0
- 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 +1 -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 +3 -2
- package/mcp/mcp.ts +7 -2
- package/package.json +1 -1
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;
|
|
@@ -569,7 +569,7 @@ class InspectorFrontendAPIImpl {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
for (const descriptor of EventDescriptors) {
|
|
571
571
|
// @ts-expect-error Dispatcher magic
|
|
572
|
-
this[descriptor[
|
|
572
|
+
this[descriptor[0]] = this.dispatch.bind(this, descriptor[0], descriptor[1], descriptor[2]);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
|
|
@@ -600,9 +600,13 @@ class InspectorFrontendAPIImpl {
|
|
|
600
600
|
resourceLoaderStreamWrite(id, chunk);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* Used in `front_end/devtools_compatibility.js` to verify that calls from there
|
|
605
|
+
* are valid.
|
|
606
|
+
*/
|
|
607
|
+
export type InspectorFrontendAPIImplMethods = keyof InspectorFrontendAPIImpl;
|
|
603
608
|
|
|
604
609
|
(function(): void {
|
|
605
|
-
|
|
606
610
|
function initializeInspectorFrontendHost(): void {
|
|
607
611
|
if (!InspectorFrontendHostInstance) {
|
|
608
612
|
// Instantiate stub for web-hosted mode if necessary.
|
|
@@ -6,6 +6,9 @@ import type * as Platform from '../../core/platform/platform.js';
|
|
|
6
6
|
import type * as Common from '../common/common.js';
|
|
7
7
|
import type * as Root from '../root/root.js';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* This values should match the one getting called from Chromium
|
|
11
|
+
*/
|
|
9
12
|
export enum Events {
|
|
10
13
|
/* eslint-disable @typescript-eslint/naming-convention -- Accessed from web_tests */
|
|
11
14
|
AppendedToURL = 'appendedToURL',
|
|
@@ -24,7 +27,7 @@ export enum Events {
|
|
|
24
27
|
FileSystemsLoaded = 'fileSystemsLoaded',
|
|
25
28
|
FileSystemRemoved = 'fileSystemRemoved',
|
|
26
29
|
FileSystemAdded = 'fileSystemAdded',
|
|
27
|
-
FileSystemFilesChangedAddedRemoved = '
|
|
30
|
+
FileSystemFilesChangedAddedRemoved = 'fileSystemFilesChangedAddedRemoved',
|
|
28
31
|
IndexingTotalWorkCalculated = 'indexingTotalWorkCalculated',
|
|
29
32
|
IndexingWorked = 'indexingWorked',
|
|
30
33
|
IndexingDone = 'indexingDone',
|
|
@@ -40,34 +43,34 @@ export enum Events {
|
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export const EventDescriptors = [
|
|
43
|
-
[Events.AppendedToURL,
|
|
44
|
-
[Events.CanceledSaveURL,
|
|
45
|
-
[Events.ColorThemeChanged,
|
|
46
|
-
[Events.ContextMenuCleared,
|
|
47
|
-
[Events.ContextMenuItemSelected,
|
|
48
|
-
[Events.DeviceCountUpdated,
|
|
49
|
-
[Events.DevicesDiscoveryConfigChanged,
|
|
50
|
-
[Events.DevicesPortForwardingStatusChanged,
|
|
51
|
-
[Events.DevicesUpdated,
|
|
52
|
-
[Events.DispatchMessage,
|
|
53
|
-
[Events.DispatchMessageChunk,
|
|
54
|
-
[Events.EnterInspectElementMode,
|
|
55
|
-
[Events.EyeDropperPickedColor,
|
|
56
|
-
[Events.FileSystemsLoaded,
|
|
57
|
-
[Events.FileSystemRemoved,
|
|
58
|
-
[Events.FileSystemAdded,
|
|
59
|
-
[Events.FileSystemFilesChangedAddedRemoved,
|
|
60
|
-
[Events.IndexingTotalWorkCalculated,
|
|
61
|
-
[Events.IndexingWorked,
|
|
62
|
-
[Events.IndexingDone,
|
|
63
|
-
[Events.KeyEventUnhandled,
|
|
64
|
-
[Events.ReloadInspectedPage,
|
|
65
|
-
[Events.RevealSourceLine,
|
|
66
|
-
[Events.SavedURL,
|
|
67
|
-
[Events.SearchCompleted,
|
|
68
|
-
[Events.SetInspectedTabId,
|
|
69
|
-
[Events.SetUseSoftMenu,
|
|
70
|
-
[Events.ShowPanel,
|
|
46
|
+
[Events.AppendedToURL, ['url']],
|
|
47
|
+
[Events.CanceledSaveURL, ['url']],
|
|
48
|
+
[Events.ColorThemeChanged, []],
|
|
49
|
+
[Events.ContextMenuCleared, []],
|
|
50
|
+
[Events.ContextMenuItemSelected, ['id']],
|
|
51
|
+
[Events.DeviceCountUpdated, ['count']],
|
|
52
|
+
[Events.DevicesDiscoveryConfigChanged, ['config']],
|
|
53
|
+
[Events.DevicesPortForwardingStatusChanged, ['status']],
|
|
54
|
+
[Events.DevicesUpdated, ['devices']],
|
|
55
|
+
[Events.DispatchMessage, ['messageObject']],
|
|
56
|
+
[Events.DispatchMessageChunk, ['messageChunk', 'messageSize']],
|
|
57
|
+
[Events.EnterInspectElementMode, []],
|
|
58
|
+
[Events.EyeDropperPickedColor, ['color']],
|
|
59
|
+
[Events.FileSystemsLoaded, ['fileSystems']],
|
|
60
|
+
[Events.FileSystemRemoved, ['fileSystemPath']],
|
|
61
|
+
[Events.FileSystemAdded, ['errorMessage', 'fileSystem']],
|
|
62
|
+
[Events.FileSystemFilesChangedAddedRemoved, ['changed', 'added', 'removed']],
|
|
63
|
+
[Events.IndexingTotalWorkCalculated, , ['requestId', 'fileSystemPath', 'totalWork']],
|
|
64
|
+
[Events.IndexingWorked, ['requestId', 'fileSystemPath', 'worked']],
|
|
65
|
+
[Events.IndexingDone, ['requestId', 'fileSystemPath']],
|
|
66
|
+
[Events.KeyEventUnhandled, ['event']],
|
|
67
|
+
[Events.ReloadInspectedPage, ['hard']],
|
|
68
|
+
[Events.RevealSourceLine, ['url', 'lineNumber', 'columnNumber']],
|
|
69
|
+
[Events.SavedURL, ['url', 'fileSystemPath']],
|
|
70
|
+
[Events.SearchCompleted, ['requestId', 'fileSystemPath', 'files']],
|
|
71
|
+
[Events.SetInspectedTabId, ['tabId']],
|
|
72
|
+
[Events.SetUseSoftMenu, ['useSoftMenu']],
|
|
73
|
+
[Events.ShowPanel, ['panelName']],
|
|
71
74
|
] as const;
|
|
72
75
|
|
|
73
76
|
export interface DispatchMessageChunkEvent {
|
|
@@ -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
|
|
|
@@ -1199,7 +1195,8 @@ export const enum SwatchType {
|
|
|
1199
1195
|
LENGTH = 8,
|
|
1200
1196
|
POSITION_TRY_LINK = 10,
|
|
1201
1197
|
ATTR_LINK = 11,
|
|
1202
|
-
|
|
1198
|
+
MASONRY = 12,
|
|
1199
|
+
MAX_VALUE = 13,
|
|
1203
1200
|
}
|
|
1204
1201
|
|
|
1205
1202
|
export const enum BadgeType {
|
|
@@ -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';
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type {ProtocolMapping} from '../../generated/protocol-mapping.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Allows the sending and receiving of CDP commands and the notification of CDP events to observers.
|
|
9
|
+
*
|
|
10
|
+
* An instance of a CDPConnection "owns" the full transport channel and no other CDP traffic must
|
|
11
|
+
* be proxied over it. This is because each implementation needs to manage "message IDs", which
|
|
12
|
+
* would conflict with any other shared traffic.
|
|
13
|
+
*/
|
|
14
|
+
export interface CDPConnection {
|
|
15
|
+
send<T extends keyof ProtocolMapping.Commands>(
|
|
16
|
+
method: T, params: ProtocolMapping.Commands[T]['paramsType'][0],
|
|
17
|
+
sessionId: string|undefined): Promise<ProtocolMapping.Commands[T]['returnType']|{getError(): string}>;
|
|
18
|
+
|
|
19
|
+
observe(observer: CDPConnectionObserver): void;
|
|
20
|
+
unobserve(observer: CDPConnectionObserver): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CDPConnectionObserver {
|
|
24
|
+
onEvent<T extends keyof ProtocolMapping.Events>(event: ProtocolMapping.Events[T]): void;
|
|
25
|
+
onDisconnect(reason: string): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The protocol monitor and test harness require inspection of raw CDP message traffic.
|
|
30
|
+
*/
|
|
31
|
+
export interface DebuggableCDPConnection extends CDPConnection {
|
|
32
|
+
observeMessages(observer: RawMessageObserver): void;
|
|
33
|
+
unobserveMessages(observer: RawMessageObserver): void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface RawMessageObserver {
|
|
37
|
+
onMessageReceived(message: unknown): void;
|
|
38
|
+
onMessageSent(message: unknown): void;
|
|
39
|
+
}
|