chrome-devtools-frontend 1.0.1664496 → 1.0.1665921
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/.agents/skills/devtools-testing-guidance/SKILL.md +48 -0
- package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +3 -3
- package/.agents/skills/repro-flaky-tests/SKILL.md +2 -2
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +7 -1
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +2 -0
- package/.agents/skills/version-control/SKILL.md +4 -3
- package/docs/ui_engineering.md +89 -0
- package/eslint.config.mjs +9 -2
- package/front_end/Images/rollup.config.mjs +1 -1
- package/front_end/Tests.js +15 -16
- package/front_end/core/common/Gzip.ts +2 -2
- package/front_end/core/common/Settings.ts +4 -20
- package/front_end/core/common/Srcset.ts +1 -1
- package/front_end/core/common/VersionController.ts +1 -1
- package/front_end/core/host/AidaClient.ts +19 -4
- package/front_end/core/host/AidaGcaTranslation.ts +2 -2
- package/front_end/core/host/GcaClient.ts +2 -2
- package/front_end/core/host/GdpClient.ts +3 -3
- package/front_end/core/host/InspectorFrontendHostStub.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +15 -15
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +2 -2
- package/front_end/core/protocol_client/InspectorBackend.ts +1 -1
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/CSSMatchedStyles.ts +78 -3
- package/front_end/core/sdk/CSSMetadata.ts +17 -12
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +2 -2
- package/front_end/core/sdk/CSSRule.ts +3 -3
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +3 -3
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +1 -1
- package/front_end/core/sdk/Connections.ts +1 -1
- package/front_end/core/sdk/DebuggerModel.ts +13 -13
- package/front_end/core/sdk/NetworkManager.ts +19 -19
- package/front_end/core/sdk/NetworkRequest.ts +57 -57
- package/front_end/core/sdk/OverlayModel.ts +1 -1
- package/front_end/core/sdk/PageResourceLoader.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +5 -5
- package/front_end/core/sdk/ScreenCaptureModel.ts +1 -1
- package/front_end/core/sdk/Script.ts +2 -2
- package/front_end/core/sdk/ServerTiming.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +1 -1
- package/front_end/core/sdk/ServiceWorkerManager.ts +11 -11
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopesInfo.ts +1 -1
- package/front_end/core/sdk/StorageKeyManager.ts +1 -1
- package/front_end/core/sdk/sdk-meta.ts +98 -98
- package/front_end/devtools_compatibility.js +15 -13
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +4 -8
- package/front_end/entrypoints/main/MainImpl.ts +2 -3
- package/front_end/entrypoints/main/main-meta.ts +1 -16
- package/front_end/entrypoints/shell/shell.ts +1 -0
- package/front_end/entrypoints/trace_app/trace_app.ts +1 -0
- package/front_end/foundation/README.md +1 -1
- package/front_end/foundation/Universe.test.api.ts +73 -0
- package/front_end/foundation/Universe.ts +22 -0
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/SupportedCSSProperties.js +1 -1
- package/front_end/generated/protocol.ts +19 -0
- package/front_end/models/ai_assistance/AiAgent2.ts +1 -1
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/BuiltInAi.ts +1 -1
- package/front_end/models/ai_assistance/ChangeManager.ts +0 -70
- package/front_end/models/ai_assistance/ExtensionScope.ts +2 -36
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +9 -9
- package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -2
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -4
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +1 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +21 -21
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +4 -4
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +1 -1
- package/front_end/models/ai_assistance/ai_assistance.ts +0 -5
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +11 -4
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +8 -2
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +14 -11
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +2 -2
- package/front_end/models/ai_assistance/performance/AICallTree.ts +2 -2
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +1 -1
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +9 -2
- package/front_end/models/ai_assistance/tools/GetStyles.ts +4 -4
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +2 -5
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -2
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -2
- package/front_end/models/badges/badges-meta.ts +27 -0
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +4 -3
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +6 -7
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +5 -4
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +72 -29
- package/front_end/models/bindings/ResourceMapping.ts +38 -32
- package/front_end/models/bindings/ResourceScriptMapping.ts +5 -7
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -1
- package/front_end/models/har/Writer.ts +2 -2
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.ts +1 -1
- package/front_end/models/issues_manager/IssuesManager.ts +14 -5
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +1 -1
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -2
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +13 -2
- package/front_end/models/issues_manager/issues_manager.ts +0 -2
- package/front_end/models/live-metrics/LiveMetrics.ts +22 -5
- package/front_end/models/live-metrics/web-vitals-injected/rollup.config.mjs +1 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +10 -4
- package/front_end/models/logs/logs-meta.ts +23 -16
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +1 -1
- package/front_end/models/source_map_scopes/NamesResolver.ts +104 -86
- package/front_end/models/source_map_scopes/ScopeChainModel.ts +6 -2
- package/front_end/models/stack_trace/StackTraceModel.ts +1 -1
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +1 -1
- package/front_end/models/trace/handlers/UserTimingsHandler.ts +17 -6
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +1 -1
- package/front_end/models/trace/helpers/Timing.ts +1 -1
- package/front_end/models/trace/insights/Common.ts +1 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +3 -3
- package/front_end/models/trace/insights/LCPDiscovery.ts +1 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +1 -1
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +14 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +2 -15
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -2
- package/front_end/panels/ai_assistance/components/ChatInput.ts +23 -19
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +9 -18
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -35
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/ImageResize.ts +74 -0
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +2 -2
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +28 -29
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/animationTimeline.css +0 -2
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -1
- package/front_end/panels/application/CookieItemsView.ts +1 -1
- package/front_end/panels/application/CrashReportContextView.ts +3 -3
- package/front_end/panels/application/DeviceBoundSessionsModel.ts +1 -1
- package/front_end/panels/application/DeviceBoundSessionsTreeElement.ts +1 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +1 -1
- package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -1
- package/front_end/panels/application/OriginTrialTreeView.ts +1 -1
- package/front_end/panels/application/ServiceWorkersView.ts +6 -6
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/StorageItemsToolbar.ts +3 -3
- package/front_end/panels/application/WebMCPView.ts +7 -5
- package/front_end/panels/application/components/AdsView.ts +21 -6
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -2
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -1
- package/front_end/panels/application/preloading/components/PreloadingString.ts +3 -3
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -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/XHRBreakpointsSidebarPane.ts +2 -2
- package/front_end/panels/changes/ChangesSidebar.ts +2 -2
- package/front_end/panels/changes/ChangesView.ts +4 -5
- package/front_end/panels/changes/CombinedDiffView.ts +3 -3
- package/front_end/panels/changes/changes-meta.ts +2 -2
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +1 -1
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +3 -3
- package/front_end/panels/common/BadgeNotification.ts +8 -8
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/GdpSignUpDialog.ts +2 -2
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
- package/front_end/panels/common/aiCodeCompletionDisclaimer.css +0 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +3 -3
- package/front_end/panels/console/ConsolePrompt.ts +6 -4
- package/front_end/panels/console/ConsoleSidebar.ts +8 -10
- package/front_end/panels/console_counters/WarningErrorCounter.ts +10 -11
- package/front_end/panels/coverage/CoverageView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/CSSRuleValidator.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +3 -2
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -3
- package/front_end/panels/elements/EventListenersWidget.ts +1 -3
- package/front_end/panels/elements/LayoutPane.ts +23 -13
- package/front_end/panels/elements/StandaloneStylesContainer.ts +7 -7
- package/front_end/panels/elements/StylePropertiesSection.ts +33 -5
- package/front_end/panels/elements/StylePropertyTreeElement.ts +5 -5
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +6 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -3
- package/front_end/panels/elements/elements-meta.ts +18 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +100 -40
- package/front_end/panels/emulation/DeviceModeView.ts +5 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +35 -19
- package/front_end/panels/event_listeners/EventListenersView.ts +4 -4
- package/front_end/panels/explain/components/ConsoleInsight.ts +8 -9
- package/front_end/panels/explain/explain-meta.ts +3 -3
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +135 -167
- package/front_end/panels/layer_viewer/Layers3DView.ts +10 -23
- package/front_end/panels/layer_viewer/layer_viewer-meta.ts +27 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +44 -55
- package/front_end/panels/lighthouse/LighthousePanel.ts +9 -9
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseStartView.ts +9 -12
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +33 -33
- package/front_end/panels/lighthouse/RadioSetting.ts +1 -1
- package/front_end/panels/lighthouse/lighthouse-meta.ts +131 -1
- package/front_end/panels/media/EventDisplayTable.ts +67 -94
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/media/eventDisplayTable.css +9 -4
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +5 -5
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +1 -1
- package/front_end/panels/network/EventSourceMessagesView.ts +98 -107
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestCookiesView.ts +2 -2
- package/front_end/panels/network/RequestHeadersView.ts +5 -5
- package/front_end/panels/network/RequestPayloadView.ts +4 -4
- package/front_end/panels/network/RequestTimingView.ts +2 -2
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +1 -1
- package/front_end/panels/network/eventSourceMessagesView.css +12 -3
- package/front_end/panels/network/networkTimingTable.css +2 -2
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
- package/front_end/panels/profiler/BottomUpProfileDataGrid.ts +25 -29
- package/front_end/panels/profiler/HeapProfileView.ts +308 -247
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +13 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +30 -10
- package/front_end/panels/profiler/HeapTimelineOverview.ts +5 -2
- package/front_end/panels/profiler/ProfileDataGrid.ts +128 -157
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +17 -5
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
- package/front_end/panels/profiler/TopDownProfileDataGrid.ts +17 -21
- package/front_end/panels/profiler/profilesPanel.css +9 -13
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +2 -2
- package/front_end/panels/recorder/CreateRecordingView.ts +4 -4
- package/front_end/panels/recorder/RecorderPanel.ts +6 -6
- package/front_end/panels/recorder/RecordingView.ts +1 -1
- package/front_end/panels/recorder/ReplaySection.ts +1 -1
- package/front_end/panels/recorder/StepView.ts +1 -1
- package/front_end/panels/recorder/injected/rollup.config.mjs +1 -1
- package/front_end/panels/search/SearchView.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +54 -41
- package/front_end/panels/sensors/LocationsSettingsTab.ts +246 -233
- package/front_end/panels/sensors/SensorsView.ts +1 -1
- package/front_end/panels/settings/AISettingsTab.ts +11 -10
- package/front_end/panels/settings/SettingsScreen.ts +29 -24
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +5 -5
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/BreakpointsView.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +2 -2
- package/front_end/panels/sources/DebuggerPausedMessage.ts +2 -2
- package/front_end/panels/sources/DebuggerPlugin.ts +25 -22
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -1
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -5
- package/front_end/panels/sources/sources-meta.ts +1 -1
- package/front_end/panels/timeline/CountersGraph.ts +1 -2
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -4
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +53 -81
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +10 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +18 -4
- package/front_end/panels/timeline/TrackConfigBanner.ts +1 -1
- package/front_end/panels/timeline/components/ExportTraceOptions.ts +1 -1
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +8 -9
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
- package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +1 -1
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +1 -1
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +1 -1
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +5 -0
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +13 -8
- package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +1 -0
- package/front_end/panels/timeline/timeline-meta.ts +169 -0
- package/front_end/panels/timeline/timelineFlameChartView.css +5 -0
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -9
- package/front_end/panels/whats_new/resources/WNDT.md +7 -8
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +120 -19
- package/front_end/third_party/web-vitals/package/attribution.d.ts +16 -0
- package/front_end/third_party/web-vitals/package/attribution.js +18 -0
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onCLS.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.d.ts +1 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onFCP.js +53 -32
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +43 -12
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +21 -3
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onTTFB.js +30 -24
- package/front_end/third_party/web-vitals/package/dist/modules/lib/FCPEntryManager.d.ts +3 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/FCPEntryManager.js +18 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +2 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +18 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.d.ts +1 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/LCPEntryManager.js +1 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/generateUniqueID.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getLoadState.js +7 -7
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getSelector.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/getVisibilityWatcher.js +4 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +7 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.js +20 -11
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initUnique.js +8 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.d.ts +3 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/observe.js +19 -4
- package/front_end/third_party/web-vitals/package/dist/modules/lib/polyfills/interactionCountPolyfill.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.d.ts +3 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +38 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/whenIdleOrHidden.js +5 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onCLS.js +30 -11
- package/front_end/third_party/web-vitals/package/dist/modules/onFCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onFCP.js +36 -4
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onINP.js +42 -22
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +109 -30
- package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onTTFB.js +25 -7
- package/front_end/third_party/web-vitals/package/dist/modules/types/base.d.ts +24 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/fcp.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/inp.d.ts +14 -6
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/ttfb.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/types.d.ts +26 -4
- package/front_end/third_party/web-vitals/package/package.json +21 -22
- package/front_end/third_party/web-vitals/package/src/attribution/onCLS.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/attribution/onFCP.ts +62 -39
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +52 -15
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +25 -7
- package/front_end/third_party/web-vitals/package/src/attribution/onTTFB.ts +43 -37
- package/front_end/third_party/web-vitals/package/src/lib/{polyfills/getFirstHiddenTimePolyfill.ts → FCPEntryManager.ts} +4 -14
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +22 -2
- package/front_end/third_party/web-vitals/package/src/lib/LCPEntryManager.ts +1 -0
- package/front_end/third_party/web-vitals/package/src/lib/bindReporter.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/generateUniqueID.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getLoadState.ts +11 -12
- package/front_end/third_party/web-vitals/package/src/lib/getSelector.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/getVisibilityWatcher.ts +4 -1
- package/front_end/third_party/web-vitals/package/src/lib/initMetric.ts +24 -11
- package/front_end/third_party/web-vitals/package/src/lib/initUnique.ts +12 -4
- package/front_end/third_party/web-vitals/package/src/lib/observe.ts +26 -5
- package/front_end/third_party/web-vitals/package/src/lib/polyfills/interactionCountPolyfill.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +48 -0
- package/front_end/third_party/web-vitals/package/src/lib/whenIdleOrHidden.ts +12 -4
- package/front_end/third_party/web-vitals/package/src/onCLS.ts +75 -18
- package/front_end/third_party/web-vitals/package/src/onFCP.ts +66 -7
- package/front_end/third_party/web-vitals/package/src/onINP.ts +100 -39
- package/front_end/third_party/web-vitals/package/src/onLCP.ts +169 -34
- package/front_end/third_party/web-vitals/package/src/onTTFB.ts +50 -13
- package/front_end/third_party/web-vitals/package/src/types/base.ts +31 -10
- package/front_end/third_party/web-vitals/package/src/types/fcp.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/types/inp.ts +14 -6
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/types/ttfb.ts +2 -2
- package/front_end/third_party/web-vitals/package/src/types.ts +32 -9
- package/front_end/third_party/web-vitals/patches/0001-Add-onEachInteraction-to-onINP-options.patch +11 -11
- package/front_end/third_party/web-vitals/rebuild.sh +2 -2
- package/front_end/third_party/web-vitals/web-vitals-tsconfig.json +2 -0
- package/front_end/ui/components/buttons/Button.ts +16 -0
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +6 -1
- package/front_end/ui/components/highlighting/highlighting.ts +1 -1
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +2 -2
- package/front_end/ui/components/settings/SettingCheckbox.ts +12 -7
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +2 -2
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +6 -6
- package/front_end/ui/components/text_editor/javascript.ts +3 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +12 -2
- package/front_end/ui/legacy/ListControl.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +17 -19
- package/front_end/ui/legacy/Toolbar.ts +4 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/spectrum.css +1 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +50 -4
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +3 -1
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +4 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +8 -7
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +14 -11
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +1 -1
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +15 -5
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +4 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -1
- package/front_end/ui/lit/render.ts +1 -1
- package/front_end/ui/settings/SettingUIRegistration.ts +8 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/inspector_overlay/main.ts +1 -1
- package/mcp/mcp.ts +5 -4
- package/package.json +13 -13
- package/front_end/models/ai_assistance/AgentProject.ts +0 -261
- package/front_end/models/ai_assistance/agents/PatchAgent.ts +0 -306
- package/front_end/models/issues_manager/CheckFormsIssuesTrigger.ts +0 -45
- package/front_end/models/text_utils/text_utils.ts +0 -5
- package/front_end/panels/ai_assistance/PatchWidget.ts +0 -867
- package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +0 -368
- package/front_end/panels/ai_assistance/selectWorkspaceDialog.css +0 -92
|
@@ -20,39 +20,38 @@ import {NetworkProject} from './NetworkProject.js';
|
|
|
20
20
|
|
|
21
21
|
const UIStrings = {
|
|
22
22
|
/**
|
|
23
|
-
* @description Error message
|
|
23
|
+
* @description Error message displayed in the Console panel when language plugins report errors.
|
|
24
24
|
* @example {File not found} PH1
|
|
25
25
|
*/
|
|
26
26
|
errorInDebuggerLanguagePlugin: 'Error in debugger language plugin: {PH1}',
|
|
27
27
|
/**
|
|
28
|
-
* @description Status message
|
|
29
|
-
*loaded. The 2nd and 3rd placeholders are URLs.
|
|
28
|
+
* @description Status message shown in the Console panel when debugging information is being loaded. PH2 and PH3 are URLs.
|
|
30
29
|
* @example {C/C++ DevTools Support (DWARF)} PH1
|
|
31
30
|
* @example {http://web.dev/file.wasm} PH2
|
|
32
31
|
* @example {http://web.dev/file.wasm.debug.wasm} PH3
|
|
33
32
|
*/
|
|
34
33
|
loadingDebugSymbolsForVia: '[{PH1}] Loading debug symbols for {PH2} (via {PH3})…',
|
|
35
34
|
/**
|
|
36
|
-
* @description Status message
|
|
35
|
+
* @description Status message shown in the Console panel when debugging information is being loaded.
|
|
37
36
|
* @example {C/C++ DevTools Support (DWARF)} PH1
|
|
38
37
|
* @example {http://web.dev/file.wasm} PH2
|
|
39
38
|
*/
|
|
40
39
|
loadingDebugSymbolsFor: '[{PH1}] Loading debug symbols for {PH2}…',
|
|
41
40
|
/**
|
|
42
|
-
* @description Warning message
|
|
41
|
+
* @description Warning message displayed in the Console panel when debugging information was loaded, but no source files were found.
|
|
43
42
|
* @example {C/C++ DevTools Support (DWARF)} PH1
|
|
44
43
|
* @example {http://web.dev/file.wasm} PH2
|
|
45
44
|
*/
|
|
46
45
|
loadedDebugSymbolsForButDidnt: '[{PH1}] Loaded debug symbols for {PH2}, but didn’t find any source files',
|
|
47
46
|
/**
|
|
48
|
-
* @description Status message
|
|
47
|
+
* @description Status message shown in the Console panel when debugging information is successfully loaded.
|
|
49
48
|
* @example {C/C++ DevTools Support (DWARF)} PH1
|
|
50
49
|
* @example {http://web.dev/file.wasm} PH2
|
|
51
50
|
* @example {42} PH3
|
|
52
51
|
*/
|
|
53
52
|
loadedDebugSymbolsForFound: '[{PH1}] Loaded debug symbols for {PH2}, found {PH3} source file(s)',
|
|
54
53
|
/**
|
|
55
|
-
* @description Error message
|
|
54
|
+
* @description Error message displayed in the Console panel when debugging information cannot be loaded.
|
|
56
55
|
* @example {C/C++ DevTools Support (DWARF)} PH1
|
|
57
56
|
* @example {http://web.dev/file.wasm} PH2
|
|
58
57
|
* @example {File not found} PH3
|
|
@@ -18,7 +18,7 @@ import {DebuggerLanguagePluginManager} from './DebuggerLanguagePlugins.js';
|
|
|
18
18
|
import {DefaultScriptMapping} from './DefaultScriptMapping.js';
|
|
19
19
|
import {type LiveLocation, type LiveLocationPool, LiveLocationWithPool} from './LiveLocation.js';
|
|
20
20
|
import {NetworkProject} from './NetworkProject.js';
|
|
21
|
-
import type {ResourceMapping} from './ResourceMapping.js';
|
|
21
|
+
import type {DebuggerLocationUpdater, ResourceMapping} from './ResourceMapping.js';
|
|
22
22
|
import {type ResourceScriptFile, ResourceScriptMapping} from './ResourceScriptMapping.js';
|
|
23
23
|
import {
|
|
24
24
|
isErrorLike,
|
|
@@ -27,7 +27,8 @@ import {
|
|
|
27
27
|
UnparsableError,
|
|
28
28
|
} from './SymbolizedError.js';
|
|
29
29
|
|
|
30
|
-
export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<SDK.DebuggerModel.DebuggerModel
|
|
30
|
+
export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObserver<SDK.DebuggerModel.DebuggerModel>,
|
|
31
|
+
DebuggerLocationUpdater {
|
|
31
32
|
readonly resourceMapping: ResourceMapping;
|
|
32
33
|
readonly #debuggerModelToData: Map<SDK.DebuggerModel.DebuggerModel, ModelData>;
|
|
33
34
|
readonly #liveLocationPromises: Set<unknown>;
|
|
@@ -40,7 +41,7 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
|
40
41
|
resourceMapping: ResourceMapping, targetManager: SDK.TargetManager.TargetManager,
|
|
41
42
|
ignoreListManager: Workspace.IgnoreListManager.IgnoreListManager, workspace: Workspace.Workspace.WorkspaceImpl) {
|
|
42
43
|
this.resourceMapping = resourceMapping;
|
|
43
|
-
this.resourceMapping.
|
|
44
|
+
this.resourceMapping.debuggerLocationUpdater = this;
|
|
44
45
|
this.ignoreListManager = ignoreListManager;
|
|
45
46
|
this.workspace = workspace;
|
|
46
47
|
this.#settings = targetManager.settings;
|
|
@@ -661,7 +662,7 @@ class ModelData {
|
|
|
661
662
|
uiSourceCode: uiLocation.uiSourceCode,
|
|
662
663
|
name: functionName,
|
|
663
664
|
line: uiLocation.lineNumber,
|
|
664
|
-
column: uiLocation.columnNumber ?? -1
|
|
665
|
+
column: uiLocation.columnNumber ?? -1,
|
|
665
666
|
}]);
|
|
666
667
|
return;
|
|
667
668
|
}
|
|
@@ -9,8 +9,8 @@ import * as TextUtils from '../../core/text_utils/text_utils.js';
|
|
|
9
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
10
|
import * as Workspace from '../workspace/workspace.js';
|
|
11
11
|
|
|
12
|
-
import {CSSWorkspaceBinding} from './CSSWorkspaceBinding.js';
|
|
13
|
-
import {DebuggerWorkspaceBinding} from './DebuggerWorkspaceBinding.js';
|
|
12
|
+
import type {CSSWorkspaceBinding} from './CSSWorkspaceBinding.js';
|
|
13
|
+
import type {DebuggerWorkspaceBinding} from './DebuggerWorkspaceBinding.js';
|
|
14
14
|
import {type LiveLocation, LiveLocationPool, LiveLocationWithPool} from './LiveLocation.js';
|
|
15
15
|
|
|
16
16
|
export interface MessageSource {
|
|
@@ -25,14 +25,28 @@ export class PresentationSourceFrameMessageManager implements
|
|
|
25
25
|
SDK.TargetManager.SDKModelObserver<SDK.DebuggerModel.DebuggerModel>,
|
|
26
26
|
SDK.TargetManager.SDKModelObserver<SDK.CSSModel.CSSModel> {
|
|
27
27
|
#targetToMessageHelperMap = new WeakMap<SDK.Target.Target, PresentationSourceFrameMessageHelper>();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
#targetManager: SDK.TargetManager.TargetManager;
|
|
29
|
+
readonly #workspace: Workspace.Workspace.WorkspaceImpl;
|
|
30
|
+
readonly #debuggerWorkspaceBinding: DebuggerWorkspaceBinding;
|
|
31
|
+
readonly #cssWorkspaceBinding: CSSWorkspaceBinding;
|
|
32
|
+
constructor(targetManager: SDK.TargetManager.TargetManager, workspace: Workspace.Workspace.WorkspaceImpl,
|
|
33
|
+
debuggerWorkspaceBinding: DebuggerWorkspaceBinding, cssWorkspaceBinding: CSSWorkspaceBinding) {
|
|
34
|
+
this.#workspace = workspace;
|
|
35
|
+
this.#targetManager = targetManager;
|
|
36
|
+
this.#debuggerWorkspaceBinding = debuggerWorkspaceBinding;
|
|
37
|
+
this.#cssWorkspaceBinding = cssWorkspaceBinding;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
enable(): void {
|
|
41
|
+
this.#targetManager.observeModels(SDK.DebuggerModel.DebuggerModel, this);
|
|
42
|
+
this.#targetManager.observeModels(SDK.CSSModel.CSSModel, this);
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
modelAdded(model: SDK.DebuggerModel.DebuggerModel|SDK.CSSModel.CSSModel): void {
|
|
34
46
|
const target = model.target();
|
|
35
|
-
const helper = this.#targetToMessageHelperMap.get(target) ??
|
|
47
|
+
const helper = this.#targetToMessageHelperMap.get(target) ??
|
|
48
|
+
new PresentationSourceFrameMessageHelper(this.#workspace, this.#debuggerWorkspaceBinding,
|
|
49
|
+
this.#cssWorkspaceBinding);
|
|
36
50
|
if (model instanceof SDK.DebuggerModel.DebuggerModel) {
|
|
37
51
|
helper.setDebuggerModel(model);
|
|
38
52
|
} else {
|
|
@@ -53,7 +67,7 @@ export class PresentationSourceFrameMessageManager implements
|
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
clear(): void {
|
|
56
|
-
for (const target of
|
|
70
|
+
for (const target of this.#targetManager.targets()) {
|
|
57
71
|
const helper = this.#targetToMessageHelperMap.get(target);
|
|
58
72
|
helper?.clear();
|
|
59
73
|
}
|
|
@@ -61,9 +75,20 @@ export class PresentationSourceFrameMessageManager implements
|
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
export class PresentationConsoleMessageManager {
|
|
64
|
-
#sourceFrameMessageManager
|
|
78
|
+
#sourceFrameMessageManager: PresentationSourceFrameMessageManager;
|
|
65
79
|
|
|
66
|
-
constructor(
|
|
80
|
+
constructor(
|
|
81
|
+
targetManager: SDK.TargetManager.TargetManager,
|
|
82
|
+
workspace: Workspace.Workspace.WorkspaceImpl,
|
|
83
|
+
debuggerWorkspaceBinding: DebuggerWorkspaceBinding,
|
|
84
|
+
cssWorkspaceBinding: CSSWorkspaceBinding,
|
|
85
|
+
) {
|
|
86
|
+
this.#sourceFrameMessageManager = new PresentationSourceFrameMessageManager(
|
|
87
|
+
targetManager,
|
|
88
|
+
workspace,
|
|
89
|
+
debuggerWorkspaceBinding,
|
|
90
|
+
cssWorkspaceBinding,
|
|
91
|
+
);
|
|
67
92
|
targetManager.addModelListener(SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded,
|
|
68
93
|
event => this.consoleMessageAdded(event.data));
|
|
69
94
|
SDK.ConsoleModel.ConsoleModel.allMessagesUnordered(targetManager).forEach(this.consoleMessageAdded, this);
|
|
@@ -71,6 +96,10 @@ export class PresentationConsoleMessageManager {
|
|
|
71
96
|
() => this.#sourceFrameMessageManager.clear());
|
|
72
97
|
}
|
|
73
98
|
|
|
99
|
+
enable(): void {
|
|
100
|
+
this.#sourceFrameMessageManager.enable();
|
|
101
|
+
}
|
|
102
|
+
|
|
74
103
|
private consoleMessageAdded(consoleMessage: SDK.ConsoleModel.ConsoleMessage): void {
|
|
75
104
|
const runtimeModel = consoleMessage.runtimeModel();
|
|
76
105
|
if (!consoleMessage.isErrorOrWarning() || !consoleMessage.runtimeModel() ||
|
|
@@ -80,8 +109,8 @@ export class PresentationConsoleMessageManager {
|
|
|
80
109
|
const level = consoleMessage.level === Protocol.Log.LogEntryLevel.Error ?
|
|
81
110
|
Workspace.UISourceCode.Message.Level.ERROR :
|
|
82
111
|
Workspace.UISourceCode.Message.Level.WARNING;
|
|
83
|
-
this.#sourceFrameMessageManager.addMessage(
|
|
84
|
-
|
|
112
|
+
this.#sourceFrameMessageManager.addMessage(new Workspace.UISourceCode.Message(level, consoleMessage.messageText),
|
|
113
|
+
consoleMessage, runtimeModel.target());
|
|
85
114
|
}
|
|
86
115
|
}
|
|
87
116
|
|
|
@@ -93,12 +122,18 @@ export class PresentationSourceFrameMessageHelper {
|
|
|
93
122
|
presentation: PresentationSourceFrameMessage,
|
|
94
123
|
}>>();
|
|
95
124
|
readonly #locationPool: LiveLocationPool;
|
|
96
|
-
|
|
97
|
-
|
|
125
|
+
readonly #workspace: Workspace.Workspace.WorkspaceImpl;
|
|
126
|
+
readonly #debuggerWorkspaceBinding: DebuggerWorkspaceBinding;
|
|
127
|
+
readonly #cssWorkspaceBinding: CSSWorkspaceBinding;
|
|
128
|
+
|
|
129
|
+
constructor(workspace: Workspace.Workspace.WorkspaceImpl, debuggerWorkspaceBinding: DebuggerWorkspaceBinding,
|
|
130
|
+
cssWorkspaceBinding: CSSWorkspaceBinding) {
|
|
131
|
+
this.#workspace = workspace;
|
|
132
|
+
this.#debuggerWorkspaceBinding = debuggerWorkspaceBinding;
|
|
133
|
+
this.#cssWorkspaceBinding = cssWorkspaceBinding;
|
|
98
134
|
this.#locationPool = new LiveLocationPool();
|
|
99
135
|
|
|
100
|
-
Workspace.Workspace.
|
|
101
|
-
Workspace.Workspace.Events.UISourceCodeAdded, this.#uiSourceCodeAdded.bind(this));
|
|
136
|
+
this.#workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeAdded, this.#uiSourceCodeAdded.bind(this));
|
|
102
137
|
}
|
|
103
138
|
|
|
104
139
|
setDebuggerModel(debuggerModel: SDK.DebuggerModel.DebuggerModel): void {
|
|
@@ -120,12 +155,13 @@ export class PresentationSourceFrameMessageHelper {
|
|
|
120
155
|
throw new Error('Cannot set CSSModel twice');
|
|
121
156
|
}
|
|
122
157
|
this.#cssModel = cssModel;
|
|
123
|
-
cssModel.addEventListener(
|
|
124
|
-
|
|
158
|
+
cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded,
|
|
159
|
+
event => queueMicrotask(() => this.#styleSheetAdded(event)));
|
|
125
160
|
}
|
|
126
161
|
|
|
127
162
|
async addMessage(message: Workspace.UISourceCode.Message, source: MessageSource): Promise<void> {
|
|
128
|
-
const presentation = new PresentationSourceFrameMessage(message, this.#locationPool
|
|
163
|
+
const presentation = new PresentationSourceFrameMessage(message, this.#locationPool, this.#debuggerWorkspaceBinding,
|
|
164
|
+
this.#cssWorkspaceBinding);
|
|
129
165
|
const location = this.#rawLocation(source) ?? this.#cssLocation(source) ?? this.#uiLocation(source);
|
|
130
166
|
if (location) {
|
|
131
167
|
await presentation.updateLocationSource(location);
|
|
@@ -145,7 +181,7 @@ export class PresentationSourceFrameMessageHelper {
|
|
|
145
181
|
return null;
|
|
146
182
|
}
|
|
147
183
|
|
|
148
|
-
const uiSourceCode =
|
|
184
|
+
const uiSourceCode = this.#workspace.uiSourceCodeForURL(source.url);
|
|
149
185
|
if (!uiSourceCode) {
|
|
150
186
|
return null;
|
|
151
187
|
}
|
|
@@ -169,8 +205,8 @@ export class PresentationSourceFrameMessageHelper {
|
|
|
169
205
|
}
|
|
170
206
|
const callFrame = source.stackTrace?.callFrames ? source.stackTrace.callFrames[0] : null;
|
|
171
207
|
if (callFrame) {
|
|
172
|
-
return this.#debuggerModel.createRawLocationByScriptId(
|
|
173
|
-
|
|
208
|
+
return this.#debuggerModel.createRawLocationByScriptId(callFrame.scriptId, callFrame.lineNumber,
|
|
209
|
+
callFrame.columnNumber);
|
|
174
210
|
}
|
|
175
211
|
if (source.url) {
|
|
176
212
|
return this.#debuggerModel.createRawLocationByURL(source.url, source.line, source.column);
|
|
@@ -245,9 +281,8 @@ export class PresentationSourceFrameMessageHelper {
|
|
|
245
281
|
|
|
246
282
|
class FrozenLiveLocation extends LiveLocationWithPool {
|
|
247
283
|
#uiLocation: Workspace.UISourceCode.UILocation;
|
|
248
|
-
constructor(
|
|
249
|
-
|
|
250
|
-
locationPool: LiveLocationPool) {
|
|
284
|
+
constructor(uiLocation: Workspace.UISourceCode.UILocation, updateDelegate: (arg0: LiveLocation) => Promise<void>,
|
|
285
|
+
locationPool: LiveLocationPool) {
|
|
251
286
|
super(updateDelegate, locationPool);
|
|
252
287
|
this.#uiLocation = uiLocation;
|
|
253
288
|
}
|
|
@@ -262,8 +297,17 @@ export class PresentationSourceFrameMessage {
|
|
|
262
297
|
#liveLocation?: LiveLocation;
|
|
263
298
|
readonly #locationPool: LiveLocationPool;
|
|
264
299
|
readonly #message: Workspace.UISourceCode.Message;
|
|
300
|
+
readonly #debuggerWorkspaceBinding: DebuggerWorkspaceBinding;
|
|
301
|
+
readonly #cssWorkspaceBinding: CSSWorkspaceBinding;
|
|
265
302
|
|
|
266
|
-
constructor(
|
|
303
|
+
constructor(
|
|
304
|
+
message: Workspace.UISourceCode.Message,
|
|
305
|
+
locationPool: LiveLocationPool,
|
|
306
|
+
debuggerWorkspaceBinding: DebuggerWorkspaceBinding,
|
|
307
|
+
cssWorkspaceBinding: CSSWorkspaceBinding,
|
|
308
|
+
) {
|
|
309
|
+
this.#debuggerWorkspaceBinding = debuggerWorkspaceBinding;
|
|
310
|
+
this.#cssWorkspaceBinding = cssWorkspaceBinding;
|
|
267
311
|
this.#message = message;
|
|
268
312
|
this.#locationPool = locationPool;
|
|
269
313
|
}
|
|
@@ -271,11 +315,10 @@ export class PresentationSourceFrameMessage {
|
|
|
271
315
|
async updateLocationSource(source: SDK.DebuggerModel.Location|Workspace.UISourceCode.UILocation|
|
|
272
316
|
SDK.CSSModel.CSSLocation): Promise<void> {
|
|
273
317
|
if (source instanceof SDK.DebuggerModel.Location) {
|
|
274
|
-
await
|
|
275
|
-
|
|
318
|
+
await this.#debuggerWorkspaceBinding.createLiveLocation(source, this.#updateLocation.bind(this),
|
|
319
|
+
this.#locationPool);
|
|
276
320
|
} else if (source instanceof SDK.CSSModel.CSSLocation) {
|
|
277
|
-
await
|
|
278
|
-
source, this.#updateLocation.bind(this), this.#locationPool);
|
|
321
|
+
await this.#cssWorkspaceBinding.createLiveLocation(source, this.#updateLocation.bind(this), this.#locationPool);
|
|
279
322
|
} else if (source instanceof Workspace.UISourceCode.UILocation) {
|
|
280
323
|
if (!this.#liveLocation) { // Don't "downgrade" the location if a debugger or css mapping was already successful
|
|
281
324
|
this.#liveLocation = new FrozenLiveLocation(source, this.#updateLocation.bind(this), this.#locationPool);
|
|
@@ -10,8 +10,6 @@ import * as Formatter from '../formatter/formatter.js';
|
|
|
10
10
|
import * as Workspace from '../workspace/workspace.js';
|
|
11
11
|
|
|
12
12
|
import {ContentProviderBasedProject} from './ContentProviderBasedProject.js';
|
|
13
|
-
import type {CSSWorkspaceBinding} from './CSSWorkspaceBinding.js';
|
|
14
|
-
import type {DebuggerWorkspaceBinding} from './DebuggerWorkspaceBinding.js';
|
|
15
13
|
import {NetworkProject} from './NetworkProject.js';
|
|
16
14
|
import {resourceMetadata} from './ResourceUtils.js';
|
|
17
15
|
|
|
@@ -27,46 +25,54 @@ function computeStyleSheetRange(header: SDK.CSSStyleSheetHeader.CSSStyleSheetHea
|
|
|
27
25
|
return new TextUtils.TextRange.TextRange(header.startLine, header.startColumn, header.endLine, header.endColumn);
|
|
28
26
|
}
|
|
29
27
|
|
|
28
|
+
export interface DebuggerLocationUpdater {
|
|
29
|
+
updateLocations(script: SDK.Script.Script): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CSSLocationUpdater {
|
|
33
|
+
updateLocations(header: SDK.CSSStyleSheetHeader.CSSStyleSheetHeader): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
export class ResourceMapping implements SDK.TargetManager.SDKModelObserver<SDK.ResourceTreeModel.ResourceTreeModel> {
|
|
31
37
|
readonly workspace: Workspace.Workspace.WorkspaceImpl;
|
|
32
38
|
readonly #modelToInfo = new Map<SDK.ResourceTreeModel.ResourceTreeModel, ModelInfo>();
|
|
33
39
|
|
|
34
|
-
#
|
|
35
|
-
#
|
|
40
|
+
#debuggerLocationUpdater: DebuggerLocationUpdater|null = null;
|
|
41
|
+
#cssLocationUpdater: CSSLocationUpdater|null = null;
|
|
36
42
|
|
|
37
43
|
constructor(targetManager: SDK.TargetManager.TargetManager, workspace: Workspace.Workspace.WorkspaceImpl) {
|
|
38
44
|
this.workspace = workspace;
|
|
39
45
|
targetManager.observeModels(SDK.ResourceTreeModel.ResourceTreeModel, this);
|
|
40
46
|
}
|
|
41
47
|
|
|
42
|
-
get
|
|
43
|
-
// TODO(crbug.com/458180550): Throw when this.#
|
|
48
|
+
get debuggerLocationUpdater(): DebuggerLocationUpdater|null {
|
|
49
|
+
// TODO(crbug.com/458180550): Throw when this.#debuggerLocationUpdater is null and never return null.
|
|
44
50
|
// The only reason we don't throw and return an instance unconditionally
|
|
45
|
-
// is that unit tests often don't set-up both
|
|
46
|
-
return this.#
|
|
51
|
+
// is that unit tests often don't set-up both updaters.
|
|
52
|
+
return this.#debuggerLocationUpdater;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
/*
|
|
50
|
-
set
|
|
51
|
-
if (this.#
|
|
52
|
-
throw new Error('
|
|
55
|
+
/* The concrete DebuggerWorkspaceBinding requires ResourceMapping during construction, so we must wire up this updater afterward. */
|
|
56
|
+
set debuggerLocationUpdater(debuggerLocationUpdater: DebuggerLocationUpdater) {
|
|
57
|
+
if (this.#debuggerLocationUpdater) {
|
|
58
|
+
throw new Error('DebuggerLocationUpdater already set');
|
|
53
59
|
}
|
|
54
|
-
this.#
|
|
60
|
+
this.#debuggerLocationUpdater = debuggerLocationUpdater;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
get
|
|
58
|
-
// TODO(crbug.com/458180550): Throw when this.#
|
|
63
|
+
get cssLocationUpdater(): CSSLocationUpdater|null {
|
|
64
|
+
// TODO(crbug.com/458180550): Throw when this.#cssLocationUpdater is null and never return null.
|
|
59
65
|
// The only reason we don't throw and return an instance unconditionally
|
|
60
|
-
// is that unit tests often don't set-up both
|
|
61
|
-
return this.#
|
|
66
|
+
// is that unit tests often don't set-up both updaters.
|
|
67
|
+
return this.#cssLocationUpdater;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
/*
|
|
65
|
-
set
|
|
66
|
-
if (this.#
|
|
67
|
-
throw new Error('
|
|
70
|
+
/* The concrete CSSWorkspaceBinding requires ResourceMapping during construction, so we must wire up this updater afterward. */
|
|
71
|
+
set cssLocationUpdater(cssLocationUpdater: CSSLocationUpdater) {
|
|
72
|
+
if (this.#cssLocationUpdater) {
|
|
73
|
+
throw new Error('CSSLocationUpdater already set');
|
|
68
74
|
}
|
|
69
|
-
this.#
|
|
75
|
+
this.#cssLocationUpdater = cssLocationUpdater;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
modelAdded(resourceTreeModel: SDK.ResourceTreeModel.ResourceTreeModel): void {
|
|
@@ -505,14 +511,14 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
|
|
|
505
511
|
edit: SDK.CSSModel.Edit|null,
|
|
506
512
|
}> = [];
|
|
507
513
|
|
|
508
|
-
readonly #
|
|
509
|
-
readonly #
|
|
514
|
+
readonly #debuggerLocationUpdater: DebuggerLocationUpdater|null;
|
|
515
|
+
readonly #cssLocationUpdater: CSSLocationUpdater|null;
|
|
510
516
|
|
|
511
517
|
constructor(modelInfo: ModelInfo, resource: SDK.Resource.Resource) {
|
|
512
518
|
this.resources = new Set([resource]);
|
|
513
519
|
this.#project = modelInfo.project;
|
|
514
|
-
this.#
|
|
515
|
-
this.#
|
|
520
|
+
this.#debuggerLocationUpdater = modelInfo.resourceMapping.debuggerLocationUpdater;
|
|
521
|
+
this.#cssLocationUpdater = modelInfo.resourceMapping.cssLocationUpdater;
|
|
516
522
|
|
|
517
523
|
this.#uiSourceCode = this.#project.createUISourceCode(resource.url, resource.contentType());
|
|
518
524
|
boundUISourceCodes.add(this.#uiSourceCode);
|
|
@@ -522,8 +528,8 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
|
|
|
522
528
|
this.#project.addUISourceCodeWithProvider(this.#uiSourceCode, this, resourceMetadata(resource), resource.mimeType);
|
|
523
529
|
|
|
524
530
|
void Promise.all([
|
|
525
|
-
...this.inlineScripts().map(script => this.#
|
|
526
|
-
...this.inlineStyles().map(style => this.#
|
|
531
|
+
...this.inlineScripts().map(script => this.#debuggerLocationUpdater?.updateLocations(script)),
|
|
532
|
+
...this.inlineStyles().map(style => this.#cssLocationUpdater?.updateLocations(style)),
|
|
527
533
|
]);
|
|
528
534
|
}
|
|
529
535
|
|
|
@@ -593,7 +599,7 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
|
|
|
593
599
|
continue;
|
|
594
600
|
}
|
|
595
601
|
scriptRangeMap.set(script, range.rebaseAfterTextEdit(oldRange, newRange));
|
|
596
|
-
updatePromises.push(this.#
|
|
602
|
+
updatePromises.push(this.#debuggerLocationUpdater?.updateLocations(script));
|
|
597
603
|
}
|
|
598
604
|
for (const style of styles) {
|
|
599
605
|
const range = styleSheetRangeMap.get(style) ?? computeStyleSheetRange(style);
|
|
@@ -601,7 +607,7 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
|
|
|
601
607
|
continue;
|
|
602
608
|
}
|
|
603
609
|
styleSheetRangeMap.set(style, range.rebaseAfterTextEdit(oldRange, newRange));
|
|
604
|
-
updatePromises.push(this.#
|
|
610
|
+
updatePromises.push(this.#cssLocationUpdater?.updateLocations(style));
|
|
605
611
|
}
|
|
606
612
|
await Promise.all(updatePromises);
|
|
607
613
|
}
|
|
@@ -625,8 +631,8 @@ class Binding implements TextUtils.ContentProvider.ContentProvider {
|
|
|
625
631
|
dispose(): void {
|
|
626
632
|
this.#project.removeUISourceCode(this.#uiSourceCode.url());
|
|
627
633
|
void Promise.all([
|
|
628
|
-
...this.inlineScripts().map(script => this.#
|
|
629
|
-
...this.inlineStyles().map(style => this.#
|
|
634
|
+
...this.inlineScripts().map(script => this.#debuggerLocationUpdater?.updateLocations(script)),
|
|
635
|
+
...this.inlineStyles().map(style => this.#cssLocationUpdater?.updateLocations(style)),
|
|
630
636
|
]);
|
|
631
637
|
}
|
|
632
638
|
|
|
@@ -19,14 +19,12 @@ import {metadataForURL} from './ResourceUtils.js';
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description Error text displayed in the
|
|
23
|
-
*the name of the feature for editing code that is already running.
|
|
22
|
+
* @description Error text displayed in the Console panel when editing a live script fails. LiveEdit is the name of the feature for editing code that is already running.
|
|
24
23
|
* @example {warning} PH1
|
|
25
24
|
*/
|
|
26
25
|
liveEditFailed: '`LiveEdit` failed: {PH1}',
|
|
27
26
|
/**
|
|
28
|
-
* @description Error text displayed in the
|
|
29
|
-
*the name of the feature for editing code that is already running.
|
|
27
|
+
* @description Error text displayed in the Console panel when compiling a live-edited script fails. LiveEdit is the name of the feature for editing code that is already running.
|
|
30
28
|
* @example {connection lost} PH1
|
|
31
29
|
*/
|
|
32
30
|
liveEditCompileFailed: '`LiveEdit` compile failed: {PH1}',
|
|
@@ -422,11 +420,11 @@ export class ResourceScriptFile extends Common.ObjectWrapper.ObjectWrapper<Resou
|
|
|
422
420
|
function getErrorText(status: Protocol.Debugger.SetScriptSourceResponseStatus): string {
|
|
423
421
|
switch (status) {
|
|
424
422
|
case Protocol.Debugger.SetScriptSourceResponseStatus.BlockedByActiveFunction:
|
|
425
|
-
return 'Functions that are on the stack (currently being executed) can
|
|
423
|
+
return 'Functions that are on the stack (currently being executed) can’t be edited';
|
|
426
424
|
case Protocol.Debugger.SetScriptSourceResponseStatus.BlockedByActiveGenerator:
|
|
427
|
-
return 'Async functions/generators that are active can
|
|
425
|
+
return 'Async functions/generators that are active can’t be edited';
|
|
428
426
|
case Protocol.Debugger.SetScriptSourceResponseStatus.BlockedByTopLevelEsModuleChange:
|
|
429
|
-
return 'The top
|
|
427
|
+
return 'The top level of JavaScript modules can’t be edited';
|
|
430
428
|
case Protocol.Debugger.SetScriptSourceResponseStatus.CompileError:
|
|
431
429
|
case Protocol.Debugger.SetScriptSourceResponseStatus.Ok:
|
|
432
430
|
throw new Error('Compile errors and Ok status must not be reported on the console');
|
|
@@ -837,7 +837,8 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
|
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
if (location) {
|
|
840
|
-
return SourceMapScopes.NamesResolver
|
|
840
|
+
return SourceMapScopes.NamesResolver
|
|
841
|
+
.allVariablesAtPosition(location, this.breakpointManager.debuggerWorkspaceBinding)
|
|
841
842
|
.then(nameMap => Formatter.FormatterWorkerPool.formatterWorkerPool().javaScriptSubstitute(condition, nameMap))
|
|
842
843
|
.catch(() => condition)
|
|
843
844
|
.then(subsitutedCondition => addSourceUrl(subsitutedCondition), () => addSourceUrl(condition));
|
|
@@ -42,11 +42,11 @@ import {type BuildOptions, type EntryDTO, Log} from './Log.js';
|
|
|
42
42
|
|
|
43
43
|
const UIStrings = {
|
|
44
44
|
/**
|
|
45
|
-
* @description Title of progress in
|
|
45
|
+
* @description Title of progress in HAR writer of the Network panel.
|
|
46
46
|
*/
|
|
47
47
|
collectingContent: 'Collecting content…',
|
|
48
48
|
/**
|
|
49
|
-
* @description Text to indicate DevTools is writing to a file
|
|
49
|
+
* @description Text to indicate DevTools is writing to a file.
|
|
50
50
|
*/
|
|
51
51
|
writingFile: 'Writing file…',
|
|
52
52
|
} as const;
|
|
@@ -9,7 +9,7 @@ import {Issue, IssueCategory, IssueKind} from './Issue.js';
|
|
|
9
9
|
import {
|
|
10
10
|
type LazyMarkdownIssueDescription,
|
|
11
11
|
type MarkdownIssueDescription,
|
|
12
|
-
resolveLazyDescription
|
|
12
|
+
resolveLazyDescription,
|
|
13
13
|
} from './MarkdownIssueDescription.js';
|
|
14
14
|
|
|
15
15
|
export class ElementAccessibilityIssue extends Issue<Protocol.Audits.ElementAccessibilityIssueDetails> {
|
|
@@ -241,7 +241,7 @@ const issueDescriptions = new Map<Protocol.Audits.GenericIssueErrorType, LazyMar
|
|
|
241
241
|
[Protocol.Audits.GenericIssueErrorType.FormDuplicateIdForInputError, genericFormDuplicateIdForInputError],
|
|
242
242
|
[
|
|
243
243
|
Protocol.Audits.GenericIssueErrorType.FormAriaLabelledByToNonExistingIdError,
|
|
244
|
-
genericFormAriaLabelledByToNonExistingIdError
|
|
244
|
+
genericFormAriaLabelledByToNonExistingIdError,
|
|
245
245
|
],
|
|
246
246
|
[
|
|
247
247
|
Protocol.Audits.GenericIssueErrorType.FormEmptyIdAndNameAttributesForInputError,
|
|
@@ -6,6 +6,8 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as Protocol from '../../generated/protocol.js';
|
|
9
|
+
import * as Bindings from '../bindings/bindings.js';
|
|
10
|
+
import * as Workspace from '../workspace/workspace.js';
|
|
9
11
|
|
|
10
12
|
import {BounceTrackingIssue} from './BounceTrackingIssue.js';
|
|
11
13
|
import {ClientHintIssue} from './ClientHintIssue.js';
|
|
@@ -230,14 +232,21 @@ export class IssuesManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes
|
|
|
230
232
|
#frameManager: SDK.FrameManager.FrameManager;
|
|
231
233
|
#targetManager: SDK.TargetManager.TargetManager;
|
|
232
234
|
|
|
233
|
-
constructor(
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
constructor(
|
|
236
|
+
private readonly showThirdPartyIssuesSetting?: Common.Settings.Setting<boolean>,
|
|
237
|
+
private readonly hideIssueSetting?: Common.Settings.Setting<HideIssueMenuSetting>,
|
|
238
|
+
frameManager: SDK.FrameManager.FrameManager = SDK.FrameManager.FrameManager.instance(),
|
|
239
|
+
targetManager: SDK.TargetManager.TargetManager = SDK.TargetManager.TargetManager.instance(),
|
|
240
|
+
workspace: Workspace.Workspace.WorkspaceImpl = Workspace.Workspace.WorkspaceImpl.instance(),
|
|
241
|
+
debuggerWorkspaceBinding: Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding =
|
|
242
|
+
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance(),
|
|
243
|
+
cssWorkspaceBinding: Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding =
|
|
244
|
+
Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance(),
|
|
245
|
+
) {
|
|
237
246
|
super();
|
|
238
247
|
this.#frameManager = frameManager;
|
|
239
248
|
this.#targetManager = targetManager;
|
|
240
|
-
new SourceFrameIssuesManager(this);
|
|
249
|
+
new SourceFrameIssuesManager(this, targetManager, workspace, debuggerWorkspaceBinding, cssWorkspaceBinding);
|
|
241
250
|
this.#targetManager.observeModels(SDK.IssuesModel.IssuesModel, this);
|
|
242
251
|
this.#targetManager.addModelListener(SDK.ResourceTreeModel.ResourceTreeModel,
|
|
243
252
|
SDK.ResourceTreeModel.Events.PrimaryPageChanged, this.#onPrimaryPageChanged,
|
|
@@ -17,7 +17,7 @@ const UIStrings = {
|
|
|
17
17
|
/**
|
|
18
18
|
* @description Title for Chrome Status entry URL link.
|
|
19
19
|
*/
|
|
20
|
-
chromeStatusEntry: 'Chrome Status entry'
|
|
20
|
+
chromeStatusEntry: 'Chrome Status entry',
|
|
21
21
|
} as const;
|
|
22
22
|
|
|
23
23
|
const str_ = i18n.i18n.registerUIStrings('models/issues_manager/PartitioningBlobURLIssue.ts', UIStrings);
|
|
@@ -69,9 +69,9 @@ export class SRIMessageSignatureIssue extends Issue<Protocol.Audits.SRIMessageSi
|
|
|
69
69
|
{
|
|
70
70
|
link: 'https://wicg.github.io/signature-based-sri/',
|
|
71
71
|
linkTitle: i18nLazyString(UIStrings.signatureBasedIntegrity),
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
73
|
],
|
|
74
|
-
substitutions: new Map()
|
|
74
|
+
substitutions: new Map(),
|
|
75
75
|
};
|
|
76
76
|
if (details.error === Protocol.Audits.SRIMessageSignatureError.ValidationFailedSignatureMismatch) {
|
|
77
77
|
description.substitutions?.set('PLACEHOLDER_signatureBase', () => details.signatureBase);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
+
import type * as SDK from '../../core/sdk/sdk.js';
|
|
6
7
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
7
8
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
8
9
|
|
|
@@ -19,8 +20,18 @@ import {PropertyRuleIssue} from './PropertyRuleIssue.js';
|
|
|
19
20
|
import {lateImportStylesheetLoadingCode, type StylesheetLoadingIssue} from './StylesheetLoadingIssue.js';
|
|
20
21
|
|
|
21
22
|
export class SourceFrameIssuesManager {
|
|
22
|
-
#sourceFrameMessageManager
|
|
23
|
-
constructor(
|
|
23
|
+
#sourceFrameMessageManager: Bindings.PresentationConsoleMessageHelper.PresentationSourceFrameMessageManager;
|
|
24
|
+
constructor(
|
|
25
|
+
private readonly issuesManager: IssuesManager,
|
|
26
|
+
targetManager: SDK.TargetManager.TargetManager,
|
|
27
|
+
workspace: Workspace.Workspace.WorkspaceImpl,
|
|
28
|
+
debuggerWorkspaceBinding: Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding,
|
|
29
|
+
cssWorkspaceBinding: Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding,
|
|
30
|
+
) {
|
|
31
|
+
this.#sourceFrameMessageManager =
|
|
32
|
+
new Bindings.PresentationConsoleMessageHelper.PresentationSourceFrameMessageManager(
|
|
33
|
+
targetManager, workspace, debuggerWorkspaceBinding, cssWorkspaceBinding);
|
|
34
|
+
this.#sourceFrameMessageManager.enable();
|
|
24
35
|
this.issuesManager.addEventListener(Events.ISSUE_ADDED, this.#onIssueAdded, this);
|
|
25
36
|
this.issuesManager.addEventListener(Events.FULL_UPDATE_REQUIRED, this.#onFullUpdateRequired, this);
|
|
26
37
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as CheckFormsIssuesTrigger from './CheckFormsIssuesTrigger.js';
|
|
6
5
|
import * as ClientHintIssue from './ClientHintIssue.js';
|
|
7
6
|
import * as ConnectionAllowlistIssue from './ConnectionAllowlistIssue.js';
|
|
8
7
|
import * as ContentSecurityPolicyIssue from './ContentSecurityPolicyIssue.js';
|
|
@@ -37,7 +36,6 @@ import * as StylesheetLoadingIssue from './StylesheetLoadingIssue.js';
|
|
|
37
36
|
import * as UnencodedDigestIssue from './UnencodedDigestIssue.js';
|
|
38
37
|
|
|
39
38
|
export {
|
|
40
|
-
CheckFormsIssuesTrigger,
|
|
41
39
|
ClientHintIssue,
|
|
42
40
|
ConnectionAllowlistIssue,
|
|
43
41
|
ContentSecurityPolicyIssue,
|