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
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
/* eslint-disable
|
|
5
|
+
/* eslint-disable @devtools/prefer-private-class-members */
|
|
6
6
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
@@ -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 type * as Common from '../../core/common/common.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
/* eslint-disable
|
|
5
|
+
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
6
6
|
|
|
7
7
|
import * as Common from '../../core/common/common.js';
|
|
8
8
|
import * as Host from '../../core/host/host.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright 2021 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
|
|
5
|
-
/* eslint-disable
|
|
4
|
+
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
|
+
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
|
|
@@ -47,7 +47,6 @@ import * as Badges from '../../models/badges/badges.js';
|
|
|
47
47
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
48
48
|
import * as Breakpoints from '../../models/breakpoints/breakpoints.js';
|
|
49
49
|
import * as CrUXManager from '../../models/crux-manager/crux-manager.js';
|
|
50
|
-
import * as Extensions from '../../models/extensions/extensions.js';
|
|
51
50
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
52
51
|
import * as LiveMetrics from '../../models/live-metrics/live-metrics.js';
|
|
53
52
|
import * as Logs from '../../models/logs/logs.js';
|
|
@@ -312,10 +311,6 @@ export class MainImpl {
|
|
|
312
311
|
Root.Runtime.experiments.register('timeline-show-all-events', 'Performance panel: show all events', true);
|
|
313
312
|
Root.Runtime.experiments.register(
|
|
314
313
|
'timeline-v8-runtime-call-stats', 'Performance panel: V8 runtime call stats', true);
|
|
315
|
-
Root.Runtime.experiments.register(
|
|
316
|
-
'timeline-enhanced-traces', 'Performance panel: Enable collecting enhanced traces', true);
|
|
317
|
-
Root.Runtime.experiments.register(
|
|
318
|
-
'timeline-compiled-sources', 'Performance panel: Enable collecting source text for compiled script', true);
|
|
319
314
|
Root.Runtime.experiments.register(
|
|
320
315
|
Root.Runtime.ExperimentName.TIMELINE_DEBUG_MODE,
|
|
321
316
|
'Performance panel: Enable debug mode (trace event details, etc)', true);
|
|
@@ -473,7 +468,7 @@ export class MainImpl {
|
|
|
473
468
|
debuggerWorkspaceBinding: Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance(),
|
|
474
469
|
});
|
|
475
470
|
// @ts-expect-error e2e test global
|
|
476
|
-
self.Extensions.extensionServer =
|
|
471
|
+
self.Extensions.extensionServer = PanelCommon.ExtensionServer.ExtensionServer.instance({forceNew: true});
|
|
477
472
|
|
|
478
473
|
new Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(
|
|
479
474
|
isolatedFileSystemManager, Workspace.Workspace.WorkspaceImpl.instance());
|
|
@@ -656,7 +651,7 @@ export class MainImpl {
|
|
|
656
651
|
|
|
657
652
|
async #lateInitialization(): Promise<void> {
|
|
658
653
|
MainImpl.time('Main._lateInitialization');
|
|
659
|
-
|
|
654
|
+
PanelCommon.ExtensionServer.ExtensionServer.instance().initializeExtensions();
|
|
660
655
|
const promises: Array<Promise<void>> =
|
|
661
656
|
Common.Runnable.lateInitializationRunnables().map(async lateInitializationLoader => {
|
|
662
657
|
const runnable = await lateInitializationLoader();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2015 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 type * as Common from '../../core/common/common.js';
|
|
7
7
|
import * as Host from '../../core/host/host.js';
|
|
@@ -146,7 +146,7 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export class NodeConnection implements ProtocolClient.
|
|
149
|
+
export class NodeConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
|
|
150
150
|
readonly #targetAgent: ProtocolProxyApi.TargetApi;
|
|
151
151
|
readonly #sessionId: Protocol.Target.SessionID;
|
|
152
152
|
onMessage: ((arg0: Object|string) => void)|null;
|
|
@@ -13,8 +13,8 @@ import type * as Sources from '../../panels/sources/sources.js';
|
|
|
13
13
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
14
14
|
import * as Main from '../main/main.js';
|
|
15
15
|
|
|
16
|
-
import {NodeConnectionsPanel} from './NodeConnectionsPanel.js'; // eslint-disable-line
|
|
17
|
-
import {NodeMainImpl} from './NodeMain.js'; // eslint-disable-line
|
|
16
|
+
import {NodeConnectionsPanel} from './NodeConnectionsPanel.js'; // eslint-disable-line @devtools/es-modules-import
|
|
17
|
+
import {NodeMainImpl} from './NodeMain.js'; // eslint-disable-line @devtools/es-modules-import
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
@@ -839,10 +839,6 @@ inspectorBackend.registerEvent("Network.responseReceivedEarlyHints", ["requestId
|
|
|
839
839
|
inspectorBackend.registerEnum("Network.TrustTokenOperationDoneEventStatus", {Ok: "Ok", InvalidArgument: "InvalidArgument", MissingIssuerKeys: "MissingIssuerKeys", FailedPrecondition: "FailedPrecondition", ResourceExhausted: "ResourceExhausted", AlreadyExists: "AlreadyExists", ResourceLimited: "ResourceLimited", Unauthorized: "Unauthorized", BadResponse: "BadResponse", InternalError: "InternalError", UnknownError: "UnknownError", FulfilledLocally: "FulfilledLocally", SiteIssuerLimit: "SiteIssuerLimit"});
|
|
840
840
|
inspectorBackend.registerEvent("Network.trustTokenOperationDone", ["status", "type", "requestId", "topLevelOrigin", "issuerOrigin", "issuedTokenCount"]);
|
|
841
841
|
inspectorBackend.registerEvent("Network.policyUpdated", []);
|
|
842
|
-
inspectorBackend.registerEvent("Network.subresourceWebBundleMetadataReceived", ["requestId", "urls"]);
|
|
843
|
-
inspectorBackend.registerEvent("Network.subresourceWebBundleMetadataError", ["requestId", "errorMessage"]);
|
|
844
|
-
inspectorBackend.registerEvent("Network.subresourceWebBundleInnerResponseParsed", ["innerRequestId", "innerRequestURL", "bundleRequestId"]);
|
|
845
|
-
inspectorBackend.registerEvent("Network.subresourceWebBundleInnerResponseError", ["innerRequestId", "innerRequestURL", "errorMessage", "bundleRequestId"]);
|
|
846
842
|
inspectorBackend.registerEvent("Network.reportingApiReportAdded", ["report"]);
|
|
847
843
|
inspectorBackend.registerEvent("Network.reportingApiReportUpdated", ["report"]);
|
|
848
844
|
inspectorBackend.registerEvent("Network.reportingApiEndpointsChangedForOrigin", ["origin", "endpoints"]);
|
|
@@ -427,24 +427,6 @@ export namespace ProtocolMapping {
|
|
|
427
427
|
* Fired once security policy has been updated.
|
|
428
428
|
*/
|
|
429
429
|
'Network.policyUpdated': [];
|
|
430
|
-
/**
|
|
431
|
-
* Fired once when parsing the .wbn file has succeeded.
|
|
432
|
-
* The event contains the information about the web bundle contents.
|
|
433
|
-
*/
|
|
434
|
-
'Network.subresourceWebBundleMetadataReceived': [Protocol.Network.SubresourceWebBundleMetadataReceivedEvent];
|
|
435
|
-
/**
|
|
436
|
-
* Fired once when parsing the .wbn file has failed.
|
|
437
|
-
*/
|
|
438
|
-
'Network.subresourceWebBundleMetadataError': [Protocol.Network.SubresourceWebBundleMetadataErrorEvent];
|
|
439
|
-
/**
|
|
440
|
-
* Fired when handling requests for resources within a .wbn file.
|
|
441
|
-
* Note: this will only be fired for resources that are requested by the webpage.
|
|
442
|
-
*/
|
|
443
|
-
'Network.subresourceWebBundleInnerResponseParsed': [Protocol.Network.SubresourceWebBundleInnerResponseParsedEvent];
|
|
444
|
-
/**
|
|
445
|
-
* Fired when request for resources within a .wbn file failed.
|
|
446
|
-
*/
|
|
447
|
-
'Network.subresourceWebBundleInnerResponseError': [Protocol.Network.SubresourceWebBundleInnerResponseErrorEvent];
|
|
448
430
|
/**
|
|
449
431
|
* Is sent whenever a new report is added.
|
|
450
432
|
* And after 'enableReportingApi' for all existing reports.
|
|
@@ -2873,28 +2873,6 @@ declare namespace ProtocolProxyApi {
|
|
|
2873
2873
|
*/
|
|
2874
2874
|
policyUpdated(): void;
|
|
2875
2875
|
|
|
2876
|
-
/**
|
|
2877
|
-
* Fired once when parsing the .wbn file has succeeded.
|
|
2878
|
-
* The event contains the information about the web bundle contents.
|
|
2879
|
-
*/
|
|
2880
|
-
subresourceWebBundleMetadataReceived(params: Protocol.Network.SubresourceWebBundleMetadataReceivedEvent): void;
|
|
2881
|
-
|
|
2882
|
-
/**
|
|
2883
|
-
* Fired once when parsing the .wbn file has failed.
|
|
2884
|
-
*/
|
|
2885
|
-
subresourceWebBundleMetadataError(params: Protocol.Network.SubresourceWebBundleMetadataErrorEvent): void;
|
|
2886
|
-
|
|
2887
|
-
/**
|
|
2888
|
-
* Fired when handling requests for resources within a .wbn file.
|
|
2889
|
-
* Note: this will only be fired for resources that are requested by the webpage.
|
|
2890
|
-
*/
|
|
2891
|
-
subresourceWebBundleInnerResponseParsed(params: Protocol.Network.SubresourceWebBundleInnerResponseParsedEvent): void;
|
|
2892
|
-
|
|
2893
|
-
/**
|
|
2894
|
-
* Fired when request for resources within a .wbn file failed.
|
|
2895
|
-
*/
|
|
2896
|
-
subresourceWebBundleInnerResponseError(params: Protocol.Network.SubresourceWebBundleInnerResponseErrorEvent): void;
|
|
2897
|
-
|
|
2898
2876
|
/**
|
|
2899
2877
|
* Is sent whenever a new report is added.
|
|
2900
2878
|
* And after 'enableReportingApi' for all existing reports.
|
|
@@ -12596,80 +12596,6 @@ export namespace Network {
|
|
|
12596
12596
|
issuedTokenCount?: integer;
|
|
12597
12597
|
}
|
|
12598
12598
|
|
|
12599
|
-
/**
|
|
12600
|
-
* Fired once when parsing the .wbn file has succeeded.
|
|
12601
|
-
* The event contains the information about the web bundle contents.
|
|
12602
|
-
*/
|
|
12603
|
-
export interface SubresourceWebBundleMetadataReceivedEvent {
|
|
12604
|
-
/**
|
|
12605
|
-
* Request identifier. Used to match this information to another event.
|
|
12606
|
-
*/
|
|
12607
|
-
requestId: RequestId;
|
|
12608
|
-
/**
|
|
12609
|
-
* A list of URLs of resources in the subresource Web Bundle.
|
|
12610
|
-
*/
|
|
12611
|
-
urls: string[];
|
|
12612
|
-
}
|
|
12613
|
-
|
|
12614
|
-
/**
|
|
12615
|
-
* Fired once when parsing the .wbn file has failed.
|
|
12616
|
-
*/
|
|
12617
|
-
export interface SubresourceWebBundleMetadataErrorEvent {
|
|
12618
|
-
/**
|
|
12619
|
-
* Request identifier. Used to match this information to another event.
|
|
12620
|
-
*/
|
|
12621
|
-
requestId: RequestId;
|
|
12622
|
-
/**
|
|
12623
|
-
* Error message
|
|
12624
|
-
*/
|
|
12625
|
-
errorMessage: string;
|
|
12626
|
-
}
|
|
12627
|
-
|
|
12628
|
-
/**
|
|
12629
|
-
* Fired when handling requests for resources within a .wbn file.
|
|
12630
|
-
* Note: this will only be fired for resources that are requested by the webpage.
|
|
12631
|
-
*/
|
|
12632
|
-
export interface SubresourceWebBundleInnerResponseParsedEvent {
|
|
12633
|
-
/**
|
|
12634
|
-
* Request identifier of the subresource request
|
|
12635
|
-
*/
|
|
12636
|
-
innerRequestId: RequestId;
|
|
12637
|
-
/**
|
|
12638
|
-
* URL of the subresource resource.
|
|
12639
|
-
*/
|
|
12640
|
-
innerRequestURL: string;
|
|
12641
|
-
/**
|
|
12642
|
-
* Bundle request identifier. Used to match this information to another event.
|
|
12643
|
-
* This made be absent in case when the instrumentation was enabled only
|
|
12644
|
-
* after webbundle was parsed.
|
|
12645
|
-
*/
|
|
12646
|
-
bundleRequestId?: RequestId;
|
|
12647
|
-
}
|
|
12648
|
-
|
|
12649
|
-
/**
|
|
12650
|
-
* Fired when request for resources within a .wbn file failed.
|
|
12651
|
-
*/
|
|
12652
|
-
export interface SubresourceWebBundleInnerResponseErrorEvent {
|
|
12653
|
-
/**
|
|
12654
|
-
* Request identifier of the subresource request
|
|
12655
|
-
*/
|
|
12656
|
-
innerRequestId: RequestId;
|
|
12657
|
-
/**
|
|
12658
|
-
* URL of the subresource resource.
|
|
12659
|
-
*/
|
|
12660
|
-
innerRequestURL: string;
|
|
12661
|
-
/**
|
|
12662
|
-
* Error message
|
|
12663
|
-
*/
|
|
12664
|
-
errorMessage: string;
|
|
12665
|
-
/**
|
|
12666
|
-
* Bundle request identifier. Used to match this information to another event.
|
|
12667
|
-
* This made be absent in case when the instrumentation was enabled only
|
|
12668
|
-
* after webbundle was parsed.
|
|
12669
|
-
*/
|
|
12670
|
-
bundleRequestId?: RequestId;
|
|
12671
|
-
}
|
|
12672
|
-
|
|
12673
12599
|
/**
|
|
12674
12600
|
* Is sent whenever a new report is added.
|
|
12675
12601
|
* And after 'enableReportingApi' for all existing reports.
|
|
@@ -12,6 +12,22 @@ declare module '*.css.js' {
|
|
|
12
12
|
export default styles;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// TODO: remove once URLPattern types are available in TypeScript (see https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1199).
|
|
16
|
+
declare class URLPattern {
|
|
17
|
+
constructor(input: string);
|
|
18
|
+
hash: string;
|
|
19
|
+
hostname: string;
|
|
20
|
+
password: string;
|
|
21
|
+
pathname: string;
|
|
22
|
+
port: string;
|
|
23
|
+
protocol: string;
|
|
24
|
+
search: string;
|
|
25
|
+
username: string;
|
|
26
|
+
hasRegExpGroups: boolean;
|
|
27
|
+
test(url: string): boolean;
|
|
28
|
+
prototype: URLPattern;
|
|
29
|
+
}
|
|
30
|
+
|
|
15
31
|
// [start] Types for the Scheduler API.
|
|
16
32
|
// These are taken from
|
|
17
33
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-task-scheduling
|
|
@@ -185,7 +185,7 @@ export class PerformanceTraceContext extends ConversationContext<AgentFocus> {
|
|
|
185
185
|
override getTitle(): string {
|
|
186
186
|
const focus = this.#focus;
|
|
187
187
|
|
|
188
|
-
let url = focus.
|
|
188
|
+
let url = focus.primaryInsightSet?.url;
|
|
189
189
|
if (!url) {
|
|
190
190
|
url = new URL(focus.parsedTrace.data.Meta.mainFrameURL);
|
|
191
191
|
}
|
|
@@ -226,10 +226,11 @@ export class PerformanceTraceContext extends ConversationContext<AgentFocus> {
|
|
|
226
226
|
const suggestions: ConversationSuggestions =
|
|
227
227
|
[{title: 'What performance issues exist with my page?', jslogContext: 'performance-default'}];
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
const
|
|
229
|
+
const insightSet = focus.primaryInsightSet;
|
|
230
|
+
if (insightSet) {
|
|
231
|
+
const lcp = insightSet ? Trace.Insights.Common.getLCP(insightSet) : null;
|
|
232
|
+
const cls = insightSet ? Trace.Insights.Common.getCLS(insightSet) : null;
|
|
233
|
+
const inp = insightSet ? Trace.Insights.Common.getINP(insightSet) : null;
|
|
233
234
|
|
|
234
235
|
const ModelHandlers = Trace.Handlers.ModelHandlers;
|
|
235
236
|
const GOOD = Trace.Handlers.ModelHandlers.PageLoadMetrics.ScoreClassification.GOOD;
|
|
@@ -246,7 +247,7 @@ export class PerformanceTraceContext extends ConversationContext<AgentFocus> {
|
|
|
246
247
|
|
|
247
248
|
// Add up to 3 suggestions from the top failing insights.
|
|
248
249
|
const top3FailingInsightSuggestions =
|
|
249
|
-
Object.values(
|
|
250
|
+
Object.values(insightSet.model)
|
|
250
251
|
.filter(model => model.state !== 'pass')
|
|
251
252
|
.map(model => new PerformanceInsightFormatter(focus, model).getSuggestions().at(-1))
|
|
252
253
|
.filter(suggestion => !!suggestion)
|
|
@@ -625,7 +626,8 @@ export class PerformanceAgent extends AiAgent<AgentFocus> {
|
|
|
625
626
|
|
|
626
627
|
#declareFunctions(context: PerformanceTraceContext): void {
|
|
627
628
|
const focus = context.getItem();
|
|
628
|
-
const {parsedTrace
|
|
629
|
+
const {parsedTrace} = focus;
|
|
630
|
+
const insightSet = focus.primaryInsightSet;
|
|
629
631
|
|
|
630
632
|
this.declareFunction<{insightName: string}, {details: string}>('getInsightDetails', {
|
|
631
633
|
description:
|
|
@@ -26,7 +26,7 @@ export class PerformanceTraceFormatter {
|
|
|
26
26
|
constructor(focus: AgentFocus) {
|
|
27
27
|
this.#focus = focus;
|
|
28
28
|
this.#parsedTrace = focus.parsedTrace;
|
|
29
|
-
this.#insightSet = focus.
|
|
29
|
+
this.#insightSet = focus.primaryInsightSet;
|
|
30
30
|
this.#eventsSerializer = focus.eventsSerializer;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* They need remain isolated for importing other function so
|
|
10
10
|
* bundling them for production does not create issues.
|
|
11
11
|
*/
|
|
12
|
-
/* eslint-disable
|
|
12
|
+
/* eslint-disable @devtools/no-adopted-style-sheets --
|
|
13
13
|
* The scripts in this file aren't executed as part of DevTools front-end,
|
|
14
14
|
* but are injected into the page.
|
|
15
15
|
**/
|
|
@@ -8,7 +8,6 @@ import {AICallTree} from './AICallTree.js';
|
|
|
8
8
|
|
|
9
9
|
interface AgentFocusData {
|
|
10
10
|
parsedTrace: Trace.TraceModel.ParsedTrace;
|
|
11
|
-
insightSet: Trace.Insights.Types.InsightSet|null;
|
|
12
11
|
/** Note: at most one of event or callTree is non-null. */
|
|
13
12
|
event: Trace.Types.Events.Event|null;
|
|
14
13
|
/** Note: at most one of event or callTree is non-null. */
|
|
@@ -22,11 +21,8 @@ interface AgentFocusData {
|
|
|
22
21
|
* 2. If there are more, prefer the first we find that has a navigation associated with it.
|
|
23
22
|
* 3. If none with a navigation are found, fallback to the first one.
|
|
24
23
|
* 4. Otherwise, return null.
|
|
25
|
-
*
|
|
26
|
-
* TODO(cjamcl): we should just give the agent the entire insight set, and give
|
|
27
|
-
* summary detail about all of them + the ability to query each.
|
|
28
24
|
*/
|
|
29
|
-
function
|
|
25
|
+
function getPrimaryInsightSet(insights: Trace.Insights.Types.TraceInsightSets): Trace.Insights.Types.InsightSet|null {
|
|
30
26
|
const insightSets = Array.from(insights.values());
|
|
31
27
|
if (insightSets.length === 0) {
|
|
32
28
|
return null;
|
|
@@ -44,10 +40,8 @@ export class AgentFocus {
|
|
|
44
40
|
throw new Error('missing insights');
|
|
45
41
|
}
|
|
46
42
|
|
|
47
|
-
const insightSet = getFirstInsightSet(parsedTrace.insights);
|
|
48
43
|
return new AgentFocus({
|
|
49
44
|
parsedTrace,
|
|
50
|
-
insightSet,
|
|
51
45
|
event: null,
|
|
52
46
|
callTree: null,
|
|
53
47
|
insight: null,
|
|
@@ -60,10 +54,8 @@ export class AgentFocus {
|
|
|
60
54
|
throw new Error('missing insights');
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
const insightSet = getFirstInsightSet(parsedTrace.insights);
|
|
64
57
|
return new AgentFocus({
|
|
65
58
|
parsedTrace,
|
|
66
|
-
insightSet,
|
|
67
59
|
event: null,
|
|
68
60
|
callTree: null,
|
|
69
61
|
insight,
|
|
@@ -75,42 +67,33 @@ export class AgentFocus {
|
|
|
75
67
|
throw new Error('missing insights');
|
|
76
68
|
}
|
|
77
69
|
|
|
78
|
-
const insightSet = getFirstInsightSet(parsedTrace.insights);
|
|
79
70
|
const result = AgentFocus.#getCallTreeOrEvent(parsedTrace, event);
|
|
80
|
-
return new AgentFocus({parsedTrace,
|
|
71
|
+
return new AgentFocus({parsedTrace, event: result.event, callTree: result.callTree, insight: null});
|
|
81
72
|
}
|
|
82
73
|
|
|
83
74
|
static fromCallTree(callTree: AICallTree): AgentFocus {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// Select the insight set containing the call tree.
|
|
87
|
-
// If for some reason that fails, fallback to the first one.
|
|
88
|
-
let insightSet = null;
|
|
89
|
-
if (insights) {
|
|
90
|
-
const callTreeTimeRange = Trace.Helpers.Timing.traceWindowFromEvent(callTree.rootNode.event);
|
|
91
|
-
insightSet = insights.values().find(set => Trace.Helpers.Timing.boundsIncludeTimeRange({
|
|
92
|
-
timeRange: callTreeTimeRange,
|
|
93
|
-
bounds: set.bounds,
|
|
94
|
-
})) ??
|
|
95
|
-
getFirstInsightSet(insights);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return new AgentFocus({parsedTrace: callTree.parsedTrace, insightSet, event: null, callTree, insight: null});
|
|
75
|
+
return new AgentFocus({parsedTrace: callTree.parsedTrace, event: null, callTree, insight: null});
|
|
99
76
|
}
|
|
100
77
|
|
|
101
78
|
#data: AgentFocusData;
|
|
79
|
+
#primaryInsightSet: Trace.Insights.Types.InsightSet|null;
|
|
102
80
|
readonly eventsSerializer = new Trace.EventsSerializer.EventsSerializer();
|
|
103
81
|
|
|
104
82
|
constructor(data: AgentFocusData) {
|
|
83
|
+
if (!data.parsedTrace.insights) {
|
|
84
|
+
throw new Error('missing insights');
|
|
85
|
+
}
|
|
86
|
+
|
|
105
87
|
this.#data = data;
|
|
88
|
+
this.#primaryInsightSet = getPrimaryInsightSet(data.parsedTrace.insights);
|
|
106
89
|
}
|
|
107
90
|
|
|
108
91
|
get parsedTrace(): Trace.TraceModel.ParsedTrace {
|
|
109
92
|
return this.#data.parsedTrace;
|
|
110
93
|
}
|
|
111
94
|
|
|
112
|
-
get
|
|
113
|
-
return this.#
|
|
95
|
+
get primaryInsightSet(): Trace.Insights.Types.InsightSet|null {
|
|
96
|
+
return this.#primaryInsightSet;
|
|
114
97
|
}
|
|
115
98
|
|
|
116
99
|
/** Note: at most one of event or callTree is non-null. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
|
-
// eslint-disable-next-line
|
|
8
|
+
// eslint-disable-next-line @devtools/es-modules-import
|
|
9
9
|
import * as StackTraceImpl from '../stack_trace/stack_trace_impl.js';
|
|
10
10
|
import * as TextUtils from '../text_utils/text_utils.js';
|
|
11
11
|
import * as Workspace from '../workspace/workspace.js';
|
|
@@ -7,7 +7,7 @@ import * as Platform from '../../core/platform/platform.js';
|
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as Protocol from '../../generated/protocol.js';
|
|
9
9
|
import type * as StackTrace from '../stack_trace/stack_trace.js';
|
|
10
|
-
// eslint-disable-next-line
|
|
10
|
+
// eslint-disable-next-line @devtools/es-modules-import
|
|
11
11
|
import * as StackTraceImpl from '../stack_trace/stack_trace_impl.js';
|
|
12
12
|
import type * as TextUtils from '../text_utils/text_utils.js';
|
|
13
13
|
import * as Workspace from '../workspace/workspace.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
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 type * as PublicAPI from '../../../extension-api/ExtensionAPI';
|
|
5
|
+
import type * as PublicAPI from '../../../extension-api/ExtensionAPI.js';
|
|
6
6
|
import type * as Platform from '../../core/platform/platform.js';
|
|
7
7
|
import type * as HAR from '../har/har.js';
|
|
8
8
|
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as ExtensionAPI from './ExtensionAPI.js';
|
|
6
6
|
import * as ExtensionEndpoint from './ExtensionEndpoint.js';
|
|
7
|
-
import * as ExtensionPanel from './ExtensionPanel.js';
|
|
8
|
-
import * as ExtensionServer from './ExtensionServer.js';
|
|
9
|
-
import * as ExtensionView from './ExtensionView.js';
|
|
10
7
|
import * as HostUrlPattern from './HostUrlPattern.js';
|
|
11
8
|
import * as LanguageExtensionEndpoint from './LanguageExtensionEndpoint.js';
|
|
12
9
|
import * as RecorderExtensionEndpoint from './RecorderExtensionEndpoint.js';
|
|
@@ -15,9 +12,6 @@ import * as RecorderPluginManager from './RecorderPluginManager.js';
|
|
|
15
12
|
export {
|
|
16
13
|
ExtensionAPI,
|
|
17
14
|
ExtensionEndpoint,
|
|
18
|
-
ExtensionPanel,
|
|
19
|
-
ExtensionServer,
|
|
20
|
-
ExtensionView,
|
|
21
15
|
HostUrlPattern,
|
|
22
16
|
LanguageExtensionEndpoint,
|
|
23
17
|
RecorderExtensionEndpoint,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
-
import * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js'; // eslint-disable-line
|
|
6
|
+
import * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js'; // eslint-disable-line @devtools/es-modules-import
|
|
7
7
|
|
|
8
8
|
export {DefinitionKind, ScopeKind, type ScopeTreeNode} from '../../entrypoints/formatter_worker/FormatterActions.js';
|
|
9
9
|
|
|
@@ -29,7 +29,7 @@ const UIStrings = {
|
|
|
29
29
|
const str_ = i18n.i18n.registerUIStrings('models/issues_manager/DeprecationIssue.ts', UIStrings);
|
|
30
30
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
31
31
|
|
|
32
|
-
// eslint-disable-next-line
|
|
32
|
+
// eslint-disable-next-line @devtools/l10n-filename-matches
|
|
33
33
|
const strDeprecation = i18n.i18n.registerUIStrings('generated/Deprecation.ts', Deprecation.UIStrings);
|
|
34
34
|
const i18nLazyDeprecationString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, strDeprecation);
|
|
35
35
|
|
|
@@ -9095,6 +9095,10 @@ export const NativeFunctions = [
|
|
|
9095
9095
|
name: "copyExternalImageToTexture",
|
|
9096
9096
|
signatures: [["source","destination","copySize"]]
|
|
9097
9097
|
},
|
|
9098
|
+
{
|
|
9099
|
+
name: "copyElementImageToTexture",
|
|
9100
|
+
signatures: [["source","destination"]]
|
|
9101
|
+
},
|
|
9098
9102
|
{
|
|
9099
9103
|
name: "setIndexBuffer",
|
|
9100
9104
|
signatures: [["buffer","format","?offset","?size"]]
|
|
@@ -9331,6 +9335,10 @@ export const NativeFunctions = [
|
|
|
9331
9335
|
name: "requestSession",
|
|
9332
9336
|
signatures: [["mode","?options"]]
|
|
9333
9337
|
},
|
|
9338
|
+
{
|
|
9339
|
+
name: "XRVisibilityMaskChangeEvent",
|
|
9340
|
+
signatures: [["type","eventInitDict"]]
|
|
9341
|
+
},
|
|
9334
9342
|
{
|
|
9335
9343
|
name: "XRWebGLLayer",
|
|
9336
9344
|
signatures: [["session","context","?layerInit"]]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
6
6
|
import type * as Protocol from '../../generated/protocol.js';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line
|
|
8
|
+
// eslint-disable-next-line @devtools/es-modules-import
|
|
9
9
|
import * as StackTrace from './stack_trace.js';
|
|
10
10
|
import {AsyncFragmentImpl, FragmentImpl, FrameImpl, StackTraceImpl} from './StackTraceImpl.js';
|
|
11
11
|
import {type FrameNode, type RawFrame, Trie} from './Trie.js';
|
|
@@ -397,6 +397,7 @@ export class BottomUpRootNode extends Node {
|
|
|
397
397
|
const root = this;
|
|
398
398
|
const startTime = this.startTime;
|
|
399
399
|
const endTime = this.endTime;
|
|
400
|
+
const idStack: string[] = [];
|
|
400
401
|
const nodeById = new Map<string, Node>();
|
|
401
402
|
const selfTimeStack: number[] = [endTime - startTime];
|
|
402
403
|
const firstNodeStack: boolean[] = [];
|
|
@@ -460,6 +461,13 @@ export class BottomUpRootNode extends Node {
|
|
|
460
461
|
if (forceGroupIdCallback && eventGroupIdCallback) {
|
|
461
462
|
id = `${id}-${eventGroupIdCallback(e)}`;
|
|
462
463
|
}
|
|
464
|
+
|
|
465
|
+
idStack.push(id);
|
|
466
|
+
|
|
467
|
+
// For an event 'X' that contains another event 'X' (resolving to the same node
|
|
468
|
+
// id), we need to measure `totalTime` from the start of the outermost 'X' to
|
|
469
|
+
// its corresponding end. This logic ensures we don't double-count the duration
|
|
470
|
+
// of the inner event.
|
|
463
471
|
const noNodeOnStack = !totalTimeById.has(id);
|
|
464
472
|
if (noNodeOnStack) {
|
|
465
473
|
totalTimeById.set(id, duration);
|
|
@@ -468,10 +476,11 @@ export class BottomUpRootNode extends Node {
|
|
|
468
476
|
}
|
|
469
477
|
|
|
470
478
|
function onEndEvent(event: Types.Events.Event): void {
|
|
471
|
-
|
|
472
|
-
if (
|
|
473
|
-
|
|
479
|
+
const id = idStack.pop();
|
|
480
|
+
if (!id) {
|
|
481
|
+
return;
|
|
474
482
|
}
|
|
483
|
+
|
|
475
484
|
let node = nodeById.get(id);
|
|
476
485
|
if (!node) {
|
|
477
486
|
node = new BottomUpNode(root, id, event, false, root);
|
|
@@ -484,6 +493,7 @@ export class BottomUpRootNode extends Node {
|
|
|
484
493
|
node.totalTime += totalTimeById.get(id) || 0;
|
|
485
494
|
totalTimeById.delete(id);
|
|
486
495
|
}
|
|
496
|
+
// TODO: this may be wrong. See the skipped test in TraceTree.test.ts.
|
|
487
497
|
if (firstNodeStack.length) {
|
|
488
498
|
node.setHasChildren(true);
|
|
489
499
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
// Unsure why this lint is failing, given `lantern/metrics/SpeedIndex.test.ts` does the same
|
|
6
6
|
// and is fine. Maybe `*.test.*` files are excluded from this rule?
|
|
7
|
-
// eslint-disable-next-line
|
|
7
|
+
// eslint-disable-next-line @devtools/es-modules-import
|
|
8
8
|
import * as TraceLoader from '../../../../testing/TraceLoader.js';
|
|
9
9
|
import * as Trace from '../../trace.js';
|
|
10
10
|
import * as Lantern from '../lantern.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2016 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 * as Host from '../../core/host/host.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2016 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 * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2015 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 type * as Common from '../../core/common/common.js';
|
|
7
7
|
import * as Root from '../../core/root/root.js';
|