chrome-devtools-frontend 1.0.1668390 → 1.0.1672388
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-ci/SKILL.md +65 -0
- package/.agents/skills/fixing-skipped-tests/SKILL.md +6 -6
- package/.agents/skills/gerrit-cli/SKILL.md +53 -0
- package/.agents/skills/gerrit-cli/references/commands.md +136 -0
- package/.agents/skills/gerrit-cli/references/workflows.md +63 -0
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +112 -0
- package/config/typescript/tsconfig.eslint.json +1 -1
- package/docs/contributing/infrastructure.md +7 -1
- package/docs/contributing/settings-experiments-features.md +2 -8
- package/docs/ecosystem/automatic_workspace_folders.md +0 -19
- package/eslint.config.mjs +2 -2
- package/front_end/core/common/Lazy.ts +3 -3
- package/front_end/core/common/SettingRegistration.ts +0 -7
- package/front_end/core/common/Settings.ts +0 -38
- package/front_end/core/host/AidaClient.ts +66 -47
- package/front_end/core/host/GcaClient.ts +4 -6
- package/front_end/core/host/ResourceLoader.ts +4 -2
- package/front_end/core/host/UserMetrics.ts +187 -953
- package/front_end/core/host/UserMetricsEnums.d.ts +949 -0
- package/front_end/core/root/Runtime.ts +21 -138
- package/front_end/core/sdk/CSSMetadata.ts +70 -65
- package/front_end/core/sdk/CategorizedBreakpoint.ts +0 -1
- package/front_end/core/sdk/ChildTargetManager.ts +0 -2
- package/front_end/core/sdk/ConsoleModel.ts +3 -2
- package/front_end/core/sdk/DebuggerModel.ts +14 -6
- package/front_end/core/sdk/EmulationModel.ts +0 -2
- package/front_end/core/sdk/EventBreakpointsModel.ts +0 -4
- package/front_end/core/sdk/NetworkManager.ts +0 -3
- package/front_end/core/sdk/PageResourceLoader.ts +9 -9
- package/front_end/core/sdk/RehydratingConnection.ts +52 -4
- package/front_end/core/sdk/SDKSettings.ts +19 -0
- package/front_end/core/sdk/Target.ts +0 -4
- package/front_end/core/sdk/sdk-meta.ts +0 -58
- package/front_end/devtools_compatibility.js +886 -0
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +7 -6
- package/front_end/entrypoints/main/ExecutionContextSelector.ts +0 -1
- package/front_end/entrypoints/main/MainImpl.ts +18 -22
- package/front_end/foundation/Universe.ts +7 -2
- package/front_end/generated/InspectorBackendCommands.ts +5 -12
- package/front_end/generated/protocol-mapping.d.ts +0 -42
- package/front_end/generated/protocol-proxy-api.d.ts +0 -38
- package/front_end/generated/protocol.ts +20 -172
- package/front_end/models/ai_assistance/AiAgent2.ts +11 -3
- package/front_end/models/ai_assistance/AiConversation.ts +1 -0
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +8 -5
- package/front_end/models/ai_assistance/AiSetting.ts +108 -0
- package/front_end/models/ai_assistance/AiUtils.ts +114 -4
- package/front_end/models/ai_assistance/ChangeManager.ts +1 -0
- package/front_end/models/ai_assistance/ExtensionScope.ts +3 -12
- package/front_end/models/ai_assistance/StorageItem.ts +26 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +11 -18
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +3 -0
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +42 -17
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +3 -2
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +253 -155
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +12 -6
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +3 -1
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +1 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +1 -0
- package/front_end/models/ai_assistance/injected.ts +1 -0
- package/front_end/models/ai_assistance/performance/AICallTree.ts +1 -0
- package/front_end/models/ai_assistance/skills/Skill.ts +1 -1
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +2 -0
- package/front_end/models/ai_assistance/skills/performance.md +10 -0
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +52 -5
- package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +4 -4
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +4 -4
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +5 -4
- package/front_end/models/ai_assistance/tools/GetStyles.ts +5 -4
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +5 -4
- package/front_end/models/ai_assistance/tools/README.md +1 -1
- package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +63 -0
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +5 -5
- package/front_end/models/ai_assistance/tools/Tool.ts +118 -24
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +2 -0
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -19
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -3
- package/front_end/models/badges/UserBadges.ts +2 -0
- package/front_end/models/bindings/NetworkProject.ts +5 -0
- package/front_end/models/bindings/ResourceScriptMapping.ts +2 -0
- package/front_end/models/bindings/ResourceUtils.ts +3 -0
- package/front_end/models/crux-manager/CrUXManager.ts +1 -0
- package/front_end/models/emulation/DeviceModeModel.ts +140 -7
- package/front_end/models/emulation/EmulatedDevices.ts +246 -793
- package/front_end/models/issues_manager/IssuesManager.ts +10 -2
- package/front_end/models/live-metrics/LiveMetrics.ts +41 -9
- package/front_end/models/logs/LogManager.ts +8 -5
- package/front_end/models/logs/NetworkLog.ts +1 -0
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +21 -3
- package/front_end/models/persistence/NetworkPersistenceManager.ts +6 -0
- package/front_end/models/project_settings/ProjectSettingsModel.ts +8 -12
- package/front_end/models/trace/handlers/RendererHandler.ts +20 -4
- package/front_end/models/trace/types/File.ts +1 -0
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +3 -1
- package/front_end/models/workspace/IgnoreListManager.ts +2 -0
- package/front_end/models/workspace/UISourceCode.ts +2 -10
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +4 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +83 -204
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +0 -7
- package/front_end/panels/ai_assistance/components/ChatInput.ts +29 -8
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +83 -94
- package/front_end/panels/ai_assistance/components/ChatView.ts +14 -8
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +1 -2
- package/front_end/panels/ai_assistance/components/chatMessage.css +2 -20
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +11 -108
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +41 -3
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +116 -79
- package/front_end/panels/application/ServiceWorkersView.ts +8 -8
- package/front_end/panels/application/application.ts +2 -10
- package/front_end/panels/application/components/AdsView.ts +10 -6
- package/front_end/panels/application/components/components.ts +0 -4
- package/front_end/panels/application/preloading/PreloadingView.ts +53 -45
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +111 -119
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +21 -23
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +105 -102
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +0 -5
- package/front_end/panels/browser_debugger/EventListenerBreakpointsSidebarPane.ts +6 -12
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +5 -3
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +107 -96
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +17 -19
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +6 -6
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +28 -26
- package/front_end/panels/common/common.ts +1 -1
- package/front_end/panels/console/ConsoleFormat.ts +2 -62
- package/front_end/panels/console/ConsoleInsightTeaser.ts +3 -6
- package/front_end/panels/console/ConsoleView.ts +6 -4
- package/front_end/panels/console/ConsoleViewMessage.ts +15 -8
- package/front_end/panels/console/console-meta.ts +28 -0
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
- package/front_end/panels/emulation/AdvancedApp.ts +1 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +83 -69
- package/front_end/panels/emulation/DeviceModeView.ts +4 -134
- package/front_end/panels/emulation/DeviceModeWrapper.ts +70 -73
- package/front_end/panels/emulation/MediaQueryInspector.ts +2 -2
- package/front_end/panels/emulation/emulation-meta.ts +12 -12
- package/front_end/panels/explain/components/ConsoleInsight.ts +4 -6
- package/front_end/panels/explain/explain-meta.ts +7 -49
- package/front_end/panels/issues/IssuesPane.ts +3 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +6 -0
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +17 -21
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +206 -126
- package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +1 -1
- package/front_end/panels/mobile_throttling/CalibrationController.ts +1 -1
- package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +3 -3
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +6 -6
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +11 -11
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +13 -13
- package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +10 -10
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +28 -28
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +6 -6
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +1 -0
- package/front_end/panels/network/RequestHeadersView.ts +1 -1
- package/front_end/panels/network/ResourceChunkView.ts +281 -156
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +52 -28
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +20 -34
- package/front_end/panels/network/resourceChunkView.css +41 -36
- package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +21 -12
- package/front_end/panels/profiler/profiler.ts +4 -0
- package/front_end/panels/recorder/RecorderPanel.ts +6 -14
- package/front_end/panels/screencast/ScreencastView.ts +401 -260
- package/front_end/panels/screencast/screencastView.css +113 -100
- package/front_end/panels/sensors/LocationsSettingsTab.ts +113 -129
- package/front_end/panels/sensors/locationsSettingsTab.css +4 -4
- package/front_end/panels/settings/AISettingsTab.ts +92 -131
- package/front_end/panels/settings/SettingsScreen.ts +8 -13
- package/front_end/panels/settings/components/SyncSection.ts +3 -4
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +200 -18
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +18 -0
- package/front_end/panels/settings/settings-meta.ts +0 -1
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -2
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +4 -4
- package/front_end/panels/sources/AddSourceMapURLDialog.ts +3 -3
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -3
- package/front_end/panels/sources/BreakpointEditDialog.ts +14 -14
- package/front_end/panels/sources/BreakpointsView.ts +14 -14
- package/front_end/panels/sources/CallStackSidebarPane.ts +6 -6
- package/front_end/panels/sources/CategorizedBreakpointL10n.ts +18 -20
- package/front_end/panels/sources/CoveragePlugin.ts +7 -7
- package/front_end/panels/sources/DebuggerPausedMessage.ts +34 -28
- package/front_end/panels/sources/DebuggerPlugin.ts +30 -30
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +12 -9
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/GoToLineQuickOpen.ts +10 -10
- package/front_end/panels/sources/NavigatorView.ts +34 -27
- package/front_end/panels/sources/OutlineQuickOpen.ts +3 -3
- package/front_end/panels/sources/PersistenceActions.ts +9 -9
- package/front_end/panels/sources/ProfilePlugin.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -5
- package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +20 -18
- package/front_end/panels/sources/SourcesPanel.ts +45 -42
- package/front_end/panels/sources/SourcesView.ts +196 -102
- package/front_end/panels/sources/TabbedEditorContainer.ts +6 -7
- package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +9 -12
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +109 -71
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/TimelineHistoryManager.ts +14 -3
- package/front_end/panels/timeline/TimelineLoader.ts +72 -42
- package/front_end/panels/timeline/TimelinePanel.ts +29 -4
- package/front_end/panels/timeline/TimelineUIUtils.ts +15 -0
- package/front_end/panels/timeline/timeline-meta.ts +3 -5
- package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/java.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1332 -193
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/rebuild.sh +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +91 -38
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +145 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +49 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/package.json +5 -5
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +155 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +10 -2
- package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +1 -3
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +17 -0
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +5 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +66 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +0 -6
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/util.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -3
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/tsconfig.compatibility.json +2 -1
- package/front_end/tsconfig.json +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/settings/SettingCheckbox.ts +4 -7
- package/front_end/ui/components/settings/settings.ts +1 -2
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +9 -7
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +7 -8
- package/front_end/ui/legacy/Dialog.ts +12 -2
- package/front_end/ui/legacy/TabbedPane.ts +7 -2
- package/front_end/ui/legacy/Treeoutline.ts +52 -30
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +40 -24
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -4
- package/front_end/ui/legacy/components/object_ui/CSSStyleSanitizer.ts +74 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +6 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +47 -54
- package/front_end/ui/legacy/components/object_ui/object_ui.ts +2 -0
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -7
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +16 -28
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +10 -12
- package/front_end/ui/settings/SettingUIRegistration.ts +0 -8
- package/front_end/ui/visual_logging/KnownContextValues.ts +23 -0
- package/inspector_overlay/tsconfig.json +8 -2
- package/package.json +3 -2
- package/front_end/core/sdk/CSSModel.test.api.ts +0 -102
- package/front_end/core/sdk/DOMModel.test.api.ts +0 -104
- package/front_end/foundation/Universe.test.api.ts +0 -73
- package/front_end/panels/application/SharedStorageEventsView.ts +0 -128
- package/front_end/panels/application/SharedStorageItemsView.ts +0 -179
- package/front_end/panels/application/SharedStorageListTreeElement.ts +0 -65
- package/front_end/panels/application/SharedStorageModel.ts +0 -249
- package/front_end/panels/application/SharedStorageTreeElement.ts +0 -40
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +0 -191
- package/front_end/panels/application/components/SharedStorageMetadataView.ts +0 -133
- package/front_end/panels/application/components/sharedStorageAccessGrid.css +0 -29
- package/front_end/panels/application/components/sharedStorageMetadataView.css +0 -29
- package/front_end/panels/application/sharedStorageEventsView.css +0 -9
- package/front_end/panels/sources/AiWarningInfobarPlugin.ts +0 -78
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +0 -47
- package/front_end/ui/components/settings/settingDeprecationWarning.css +0 -14
|
@@ -39,73 +39,73 @@ const UIStrings = {
|
|
|
39
39
|
*/
|
|
40
40
|
beforeSellerWorkletReportingStart: 'Seller Reporting Phase Start',
|
|
41
41
|
/**
|
|
42
|
-
* @description Text in the Event Listener Breakpoints
|
|
42
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
43
43
|
* @example {setTimeout} PH1
|
|
44
44
|
*/
|
|
45
45
|
setTimeoutOrIntervalFired: '{PH1} fired',
|
|
46
46
|
/**
|
|
47
|
-
* @description Text in the Event Listener Breakpoints
|
|
47
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
48
48
|
*/
|
|
49
49
|
scriptFirstStatement: 'Script First Statement',
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in the Event Listener Breakpoints
|
|
51
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
52
52
|
*/
|
|
53
53
|
scriptBlockedByContentSecurity: 'Script Blocked by Content Security Policy',
|
|
54
54
|
/**
|
|
55
|
-
* @description Text for the request animation frame event
|
|
55
|
+
* @description Text for the request animation frame event.
|
|
56
56
|
*/
|
|
57
57
|
requestAnimationFrame: 'Request Animation Frame',
|
|
58
58
|
/**
|
|
59
|
-
* @description Text to cancel the animation frame
|
|
59
|
+
* @description Text to cancel the animation frame.
|
|
60
60
|
*/
|
|
61
61
|
cancelAnimationFrame: 'Cancel Animation Frame',
|
|
62
62
|
/**
|
|
63
|
-
* @description Text for the event that an animation frame is fired
|
|
63
|
+
* @description Text for the event that an animation frame is fired.
|
|
64
64
|
*/
|
|
65
65
|
animationFrameFired: 'Animation Frame Fired',
|
|
66
66
|
/**
|
|
67
|
-
* @description Text in the Event Listener Breakpoints
|
|
67
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
68
68
|
*/
|
|
69
69
|
webglErrorFired: 'WebGL Error Fired',
|
|
70
70
|
/**
|
|
71
|
-
* @description Text in the Event Listener Breakpoints
|
|
71
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
72
72
|
*/
|
|
73
73
|
webglWarningFired: 'WebGL Warning Fired',
|
|
74
74
|
/**
|
|
75
|
-
* @description Text in the Event Listener Breakpoints
|
|
75
|
+
* @description Text in the Event Listener Breakpoints panel of the JavaScript Debugger in the Sources panel.
|
|
76
76
|
*/
|
|
77
77
|
setInnerhtml: 'Set `innerHTML`',
|
|
78
78
|
/**
|
|
79
|
-
* @description Name of a breakpoint type in the Sources
|
|
79
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
80
80
|
*/
|
|
81
81
|
createCanvasContext: 'Create canvas context',
|
|
82
82
|
/**
|
|
83
|
-
* @description Name of a breakpoint type in the Sources
|
|
83
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
84
84
|
*/
|
|
85
85
|
createAudiocontext: 'Create `AudioContext`',
|
|
86
86
|
/**
|
|
87
|
-
* @description Name of a breakpoint type in the Sources
|
|
87
|
+
* @description Name of a breakpoint type in the Sources panel. Close is a verb.
|
|
88
88
|
*/
|
|
89
89
|
closeAudiocontext: 'Close `AudioContext`',
|
|
90
90
|
/**
|
|
91
|
-
* @description Name of a breakpoint type in the Sources
|
|
91
|
+
* @description Name of a breakpoint type in the Sources panel. Resume is a verb.
|
|
92
92
|
*/
|
|
93
93
|
resumeAudiocontext: 'Resume `AudioContext`',
|
|
94
94
|
/**
|
|
95
|
-
* @description Name of a breakpoint type in the Sources
|
|
95
|
+
* @description Name of a breakpoint type in the Sources panel.
|
|
96
96
|
*/
|
|
97
97
|
suspendAudiocontext: 'Suspend `AudioContext`',
|
|
98
98
|
/**
|
|
99
99
|
* @description Noun. Title for a checkbox that turns on breakpoints on Trusted Type sink violations.
|
|
100
100
|
* "Trusted Types" is a Web API. A "Sink" (Noun, singular) is a special function, akin to a data sink, that expects
|
|
101
101
|
* to receive data in a specific format. Should the data be in the wrong format, or something else
|
|
102
|
-
* go wrong,
|
|
102
|
+
* go wrong, it's called a "sink violation".
|
|
103
103
|
*/
|
|
104
|
-
sinkViolations: 'Sink
|
|
104
|
+
sinkViolations: 'Sink violations',
|
|
105
105
|
/**
|
|
106
|
-
* @description Title for a checkbox that turns on breakpoints on Trusted Type policy violations
|
|
106
|
+
* @description Title for a checkbox that turns on breakpoints on Trusted Type policy violations.
|
|
107
107
|
*/
|
|
108
|
-
policyViolations: 'Policy
|
|
108
|
+
policyViolations: 'Policy violations',
|
|
109
109
|
} as const;
|
|
110
110
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/CategorizedBreakpointL10n.ts', UIStrings);
|
|
111
111
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
@@ -137,8 +137,6 @@ const LOCALIZED_INSTRUMENTATION_NAMES:
|
|
|
137
137
|
i18nLazyString(UIStrings.scriptFirstStatement),
|
|
138
138
|
[SDK.EventBreakpointsModel.InstrumentationNames.SCRIPT_BLOCKED_BY_CSP]:
|
|
139
139
|
i18nLazyString(UIStrings.scriptBlockedByContentSecurity),
|
|
140
|
-
[SDK.EventBreakpointsModel.InstrumentationNames.SHARED_STORAGE_WORKLET_SCRIPT_FIRST_STATEMENT]:
|
|
141
|
-
i18nLazyString(UIStrings.scriptFirstStatement),
|
|
142
140
|
[SDK.EventBreakpointsModel.InstrumentationNames.REQUEST_ANIMATION_FRAME]:
|
|
143
141
|
i18nLazyString(UIStrings.requestAnimationFrame),
|
|
144
142
|
[SDK.EventBreakpointsModel.InstrumentationNames.CANCEL_ANIMATION_FRAME]:
|
|
@@ -20,22 +20,22 @@ import {Plugin} from './Plugin.js';
|
|
|
20
20
|
|
|
21
21
|
const UIStrings = {
|
|
22
22
|
/**
|
|
23
|
-
* @description Text for
|
|
23
|
+
* @description Text for coverage status bar item in Sources panel.
|
|
24
24
|
*/
|
|
25
|
-
clickToShowCoveragePanel: 'Click to show Coverage
|
|
25
|
+
clickToShowCoveragePanel: 'Click to show Coverage panel',
|
|
26
26
|
/**
|
|
27
|
-
* @description Text for
|
|
27
|
+
* @description Text for coverage status bar item in Sources panel.
|
|
28
28
|
*/
|
|
29
|
-
showDetails: 'Show
|
|
29
|
+
showDetails: 'Show details',
|
|
30
30
|
/**
|
|
31
|
-
* @description Text to show in the status bar if coverage data is available
|
|
31
|
+
* @description Text to show in the status bar if coverage data is available.
|
|
32
32
|
* @example {12.3} PH1
|
|
33
33
|
*/
|
|
34
34
|
coverageS: 'Coverage: {PH1}',
|
|
35
35
|
/**
|
|
36
|
-
* @description Text to be shown in the status bar if no coverage data is available
|
|
36
|
+
* @description Text to be shown in the status bar if no coverage data is available.
|
|
37
37
|
*/
|
|
38
|
-
coverageNa: 'Coverage:
|
|
38
|
+
coverageNa: 'Coverage: N/A',
|
|
39
39
|
} as const;
|
|
40
40
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/CoveragePlugin.ts', UIStrings);
|
|
41
41
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -20,95 +20,95 @@ const {html, render, nothing, Directives: {ifDefined}} = Lit;
|
|
|
20
20
|
|
|
21
21
|
const UIStrings = {
|
|
22
22
|
/**
|
|
23
|
-
* @description Text in the JavaScript
|
|
23
|
+
* @description Text in the JavaScript Debugger sidebar of the Sources panel when a DOM breakpoint is hit.
|
|
24
24
|
* @example {conditional breakpoint} PH1
|
|
25
25
|
*/
|
|
26
26
|
pausedOnS: 'Paused on {PH1}',
|
|
27
27
|
/**
|
|
28
|
-
* @description Text in the JavaScript
|
|
28
|
+
* @description Text in the JavaScript Debugger sidebar of the Sources panel when a DOM breakpoint is hit because a child is added to the subtree.
|
|
29
29
|
* @example {node} PH1
|
|
30
30
|
*/
|
|
31
31
|
childSAdded: 'Child {PH1} added',
|
|
32
32
|
/**
|
|
33
|
-
* @description Text in the JavaScript
|
|
33
|
+
* @description Text in the JavaScript Debugger sidebar of the Sources panel when a DOM breakpoint is hit because a descendant is added.
|
|
34
34
|
* @example {node} PH1
|
|
35
35
|
*/
|
|
36
36
|
descendantSAdded: 'Descendant {PH1} added',
|
|
37
37
|
/**
|
|
38
|
-
* @description Text in the JavaScript
|
|
38
|
+
* @description Text in the JavaScript Debugger sidebar of the Sources panel when a DOM breakpoint is hit because a descendant is removed.
|
|
39
39
|
* @example {node} PH1
|
|
40
40
|
*/
|
|
41
41
|
descendantSRemoved: 'Descendant {PH1} removed',
|
|
42
42
|
/**
|
|
43
|
-
* @description Text in Debugger
|
|
43
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
44
44
|
*/
|
|
45
45
|
pausedOnEventListener: 'Paused on event listener',
|
|
46
46
|
/**
|
|
47
|
-
* @description Text in Debugger
|
|
47
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
48
48
|
*/
|
|
49
49
|
pausedOnXhrOrFetch: 'Paused on XHR or fetch',
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in Debugger
|
|
51
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
52
52
|
*/
|
|
53
53
|
pausedOnException: 'Paused on exception',
|
|
54
54
|
/**
|
|
55
55
|
* @description We pause exactly when the promise rejection is happening, so that the user can see where in the code it comes from.
|
|
56
56
|
* A Promise is a Web API object (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise),
|
|
57
57
|
* that will either be 'fulfilled' or 'rejected' at some unknown time in the future.
|
|
58
|
-
* The subject of the term is
|
|
58
|
+
* The subject of the term is omitted but it is "Execution", that is, "Execution was paused on <event>".
|
|
59
59
|
*/
|
|
60
60
|
pausedOnPromiseRejection: 'Paused on `promise` rejection',
|
|
61
61
|
/**
|
|
62
|
-
* @description Text in Debugger
|
|
62
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
63
63
|
*/
|
|
64
64
|
pausedOnAssertion: 'Paused on assertion',
|
|
65
65
|
/**
|
|
66
|
-
* @description Text in Debugger
|
|
66
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
67
67
|
*/
|
|
68
68
|
pausedOnDebuggedFunction: 'Paused on debugged function',
|
|
69
69
|
/**
|
|
70
|
-
* @description Text in Debugger
|
|
70
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
71
71
|
*/
|
|
72
72
|
pausedBeforePotentialOutofmemory: 'Paused before potential out-of-memory crash',
|
|
73
73
|
/**
|
|
74
|
-
* @description Text in Debugger
|
|
74
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
75
75
|
*/
|
|
76
76
|
pausedOnCspViolation: 'Paused on CSP violation',
|
|
77
77
|
/**
|
|
78
|
-
* @description Text in Debugger
|
|
78
|
+
* @description Text in Debugger paused message of the Sources panel specifying cause of break.
|
|
79
79
|
*/
|
|
80
|
-
trustedTypeSinkViolation: '`Trusted Type`
|
|
80
|
+
trustedTypeSinkViolation: '`Trusted Type` sink violation',
|
|
81
81
|
/**
|
|
82
|
-
* @description Text in Debugger
|
|
82
|
+
* @description Text in Debugger paused message of the Sources panel specifying cause of break.
|
|
83
83
|
*/
|
|
84
|
-
trustedTypePolicyViolation: '`Trusted Type`
|
|
84
|
+
trustedTypePolicyViolation: '`Trusted Type` policy violation',
|
|
85
85
|
/**
|
|
86
|
-
* @description Text in Debugger
|
|
86
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
87
87
|
*/
|
|
88
88
|
pausedOnBreakpoint: 'Paused on breakpoint',
|
|
89
89
|
/**
|
|
90
|
-
* @description Text in Debugger
|
|
90
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
91
91
|
*/
|
|
92
92
|
debuggerPaused: 'Debugger paused',
|
|
93
93
|
/**
|
|
94
|
-
* @description Text in Debugger
|
|
94
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
95
95
|
*/
|
|
96
96
|
subtreeModifications: 'subtree modifications',
|
|
97
97
|
/**
|
|
98
|
-
* @description Text in Debugger
|
|
98
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
99
99
|
*/
|
|
100
100
|
attributeModifications: 'attribute modifications',
|
|
101
101
|
/**
|
|
102
|
-
* @description Text in Debugger
|
|
102
|
+
* @description Text in Debugger paused message of the Sources panel.
|
|
103
103
|
*/
|
|
104
104
|
nodeRemoval: 'node removal',
|
|
105
105
|
/**
|
|
106
|
-
* @description Error message text
|
|
106
|
+
* @description Error message text.
|
|
107
107
|
* @example {Snag Error} PH1
|
|
108
108
|
*/
|
|
109
109
|
webglErrorFiredS: 'WebGL Error Fired ({PH1})',
|
|
110
110
|
/**
|
|
111
|
-
* @description Text in DOMDebugger
|
|
111
|
+
* @description Text in DOMDebugger model.
|
|
112
112
|
* @example {"script-src 'self'"} PH1
|
|
113
113
|
*/
|
|
114
114
|
scriptBlockedDueToContent: 'Script blocked due to Content Security Policy directive: {PH1}',
|
|
@@ -182,11 +182,17 @@ const DEFAULT_VIEW = (input: ViewInput|null, _output: undefined, target: Documen
|
|
|
182
182
|
type View = typeof DEFAULT_VIEW;
|
|
183
183
|
|
|
184
184
|
export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
185
|
+
static override readonly INJECT = [SDK.EventBreakpointsModel.EventBreakpointsManager] as const;
|
|
186
|
+
|
|
185
187
|
#viewInput: ViewInput|null = null;
|
|
186
|
-
|
|
188
|
+
readonly #eventBreakpointsManager: SDK.EventBreakpointsModel.EventBreakpointsManager;
|
|
189
|
+
constructor(element: HTMLElement|undefined,
|
|
190
|
+
[eventBreakpointsManager]: UI.Widget.WidgetDependencies<typeof DebuggerPausedMessage>,
|
|
191
|
+
private readonly view: View = DEFAULT_VIEW) {
|
|
187
192
|
super(element, {
|
|
188
193
|
useShadowDom: 'pure',
|
|
189
194
|
});
|
|
195
|
+
this.#eventBreakpointsManager = eventBreakpointsManager;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
private static descriptionWithoutStack(description: string): string {
|
|
@@ -221,7 +227,7 @@ export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
|
221
227
|
};
|
|
222
228
|
}
|
|
223
229
|
|
|
224
|
-
|
|
230
|
+
#findEventNameForUi(detailsAuxData?: SDK.DebuggerModel.EventListenerPausedDetailsAuxData): string {
|
|
225
231
|
if (!detailsAuxData) {
|
|
226
232
|
return '';
|
|
227
233
|
}
|
|
@@ -237,7 +243,7 @@ export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
|
237
243
|
}
|
|
238
244
|
|
|
239
245
|
let breakpoint: SDK.CategorizedBreakpoint.CategorizedBreakpoint|null =
|
|
240
|
-
|
|
246
|
+
this.#eventBreakpointsManager.resolveEventListenerBreakpoint(detailsAuxData);
|
|
241
247
|
if (breakpoint) {
|
|
242
248
|
// EventBreakpointsManager breakpoints are the only ones with localized names.
|
|
243
249
|
return getLocalizedBreakpointName(breakpoint.name);
|
|
@@ -269,8 +275,8 @@ export class DebuggerPausedMessage extends UI.Widget.Widget<ShadowRoot> {
|
|
|
269
275
|
if (details.reason === Protocol.Debugger.PausedEventReason.DOM) {
|
|
270
276
|
this.#viewInput = await DebuggerPausedMessage.createDOMBreakpointHitMessageDetails(details);
|
|
271
277
|
} else if (details.reason === Protocol.Debugger.PausedEventReason.EventListener) {
|
|
272
|
-
const eventNameForUI =
|
|
273
|
-
details.auxData as SDK.DebuggerModel.EventListenerPausedDetailsAuxData);
|
|
278
|
+
const eventNameForUI =
|
|
279
|
+
this.#findEventNameForUi(details.auxData as SDK.DebuggerModel.EventListenerPausedDetailsAuxData);
|
|
274
280
|
this.#viewInput = {mainText: i18nString(UIStrings.pausedOnEventListener), subText: eventNameForUI, errorLike};
|
|
275
281
|
} else if (details.reason === Protocol.Debugger.PausedEventReason.XHR) {
|
|
276
282
|
const auxData = (details.auxData as PausedDetailsAuxData);
|
|
@@ -39,119 +39,119 @@ const {EMPTY_BREAKPOINT_CONDITION, NEVER_PAUSE_HERE_CONDITION} = Breakpoints.Bre
|
|
|
39
39
|
|
|
40
40
|
const UIStrings = {
|
|
41
41
|
/**
|
|
42
|
-
* @description Text in Debugger
|
|
42
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
43
43
|
*/
|
|
44
44
|
thisScriptIsOnTheDebuggersIgnore: 'This script is on the debugger’s ignore list',
|
|
45
45
|
/**
|
|
46
|
-
* @description Text to stop preventing the debugger from stepping into library code
|
|
46
|
+
* @description Text to stop preventing the debugger from stepping into library code.
|
|
47
47
|
*/
|
|
48
48
|
removeFromIgnoreList: 'Remove from ignore list',
|
|
49
49
|
/**
|
|
50
|
-
* @description Text of a button in the Sources panel Debugger
|
|
50
|
+
* @description Text of a button in the Sources panel Debugger plugin to configure ignore listing in Settings.
|
|
51
51
|
*/
|
|
52
52
|
configure: 'Configure',
|
|
53
53
|
/**
|
|
54
|
-
* @description Text to add a breakpoint
|
|
54
|
+
* @description Text to add a breakpoint.
|
|
55
55
|
*/
|
|
56
56
|
addBreakpoint: 'Add breakpoint',
|
|
57
57
|
/**
|
|
58
|
-
* @description A context menu item in the Debugger
|
|
58
|
+
* @description A context menu item in the Debugger plugin of the Sources panel.
|
|
59
59
|
*/
|
|
60
60
|
addConditionalBreakpoint: 'Add conditional breakpoint…',
|
|
61
61
|
/**
|
|
62
|
-
* @description A context menu item in the Debugger
|
|
62
|
+
* @description A context menu item in the Debugger plugin of the Sources panel.
|
|
63
63
|
*/
|
|
64
64
|
addLogpoint: 'Add logpoint…',
|
|
65
65
|
/**
|
|
66
|
-
* @description A context menu item in the Debugger
|
|
66
|
+
* @description A context menu item in the Debugger plugin of the Sources panel.
|
|
67
67
|
*/
|
|
68
68
|
neverPauseHere: 'Never pause here',
|
|
69
69
|
/**
|
|
70
70
|
* @description Context menu command to delete/remove a breakpoint that the user
|
|
71
|
-
*has set. One line of code can have multiple breakpoints. Always >= 1 breakpoint.
|
|
71
|
+
* has set. One line of code can have multiple breakpoints. Always >= 1 breakpoint.
|
|
72
72
|
*/
|
|
73
73
|
removeBreakpoint: '{n, plural, =1 {Remove breakpoint} other {Remove all breakpoints in line}}',
|
|
74
74
|
/**
|
|
75
|
-
* @description A context menu item in the Debugger
|
|
75
|
+
* @description A context menu item in the Debugger plugin of the Sources panel.
|
|
76
76
|
*/
|
|
77
77
|
editBreakpoint: 'Edit breakpoint…',
|
|
78
78
|
/**
|
|
79
79
|
* @description Context menu command to disable (but not delete) a breakpoint
|
|
80
|
-
*that the user has set. One line of code can have multiple breakpoints. Always
|
|
81
|
-
|
|
80
|
+
* that the user has set. One line of code can have multiple breakpoints. Always
|
|
81
|
+
* >= 1 breakpoint.
|
|
82
82
|
*/
|
|
83
83
|
disableBreakpoint: '{n, plural, =1 {Disable breakpoint} other {Disable all breakpoints in line}}',
|
|
84
84
|
/**
|
|
85
85
|
* @description Context menu command to enable a breakpoint that the user has
|
|
86
|
-
*set. One line of code can have multiple breakpoints. Always >= 1 breakpoint.
|
|
86
|
+
* set. One line of code can have multiple breakpoints. Always >= 1 breakpoint.
|
|
87
87
|
*/
|
|
88
88
|
enableBreakpoint: '{n, plural, =1 {Enable breakpoint} other {Enable all breakpoints in line}}',
|
|
89
89
|
/**
|
|
90
|
-
* @description Text in Debugger
|
|
90
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
91
91
|
*/
|
|
92
92
|
addSourceMap: 'Add source map…',
|
|
93
93
|
/**
|
|
94
|
-
* @description Text in Debugger
|
|
94
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
95
95
|
*/
|
|
96
96
|
addWasmDebugInfo: 'Add DWARF debug info…',
|
|
97
97
|
/**
|
|
98
|
-
* @description Text in Debugger
|
|
98
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
99
99
|
*/
|
|
100
100
|
sourceMapLoaded: 'Source map loaded',
|
|
101
101
|
/**
|
|
102
|
-
* @description Title of the
|
|
102
|
+
* @description Title of the filtered list widget provider of Quick Open.
|
|
103
103
|
* @example {Ctrl+P Ctrl+O} PH1
|
|
104
104
|
*/
|
|
105
105
|
associatedFilesAreAvailable: 'Associated files are available via file tree or {PH1}.',
|
|
106
106
|
/**
|
|
107
|
-
* @description Text in Debugger
|
|
107
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
108
108
|
*/
|
|
109
109
|
associatedFilesShouldBeAdded:
|
|
110
110
|
'Associated files should be added to the file tree. You can debug these resolved source files as regular JavaScript files.',
|
|
111
111
|
/**
|
|
112
|
-
* @description Text in Debugger
|
|
112
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
113
113
|
*/
|
|
114
114
|
theDebuggerWillSkipStepping: 'The debugger will skip stepping through this script, and will not stop on exceptions.',
|
|
115
115
|
/**
|
|
116
|
-
* @description Text in Debugger
|
|
116
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
117
117
|
*/
|
|
118
118
|
sourceMapSkipped: 'Source map skipped for this file',
|
|
119
119
|
/**
|
|
120
|
-
* @description Text in Debugger
|
|
120
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
121
121
|
*/
|
|
122
122
|
sourceMapFailed: 'Source map failed to load',
|
|
123
123
|
/**
|
|
124
|
-
* @description Text in Debugger
|
|
124
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
125
125
|
*/
|
|
126
126
|
debuggingPowerReduced: 'DevTools can’t show authored sources, but you can debug the deployed code.',
|
|
127
127
|
/**
|
|
128
|
-
* @description Text in Debugger
|
|
128
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
129
129
|
*/
|
|
130
130
|
reloadForSourceMap: 'To enable again, make sure the file isn’t on the ignore list and reload.',
|
|
131
131
|
/**
|
|
132
|
-
* @description Text in Debugger
|
|
133
|
-
* @example {
|
|
132
|
+
* @description Text in Debugger plugin of the Sources panel.
|
|
133
|
+
* @example {https://example.com/lib.js.map} PH1
|
|
134
134
|
* @example {HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME} PH2
|
|
135
135
|
*/
|
|
136
136
|
errorLoading: 'Error loading URL {PH1}: {PH2}',
|
|
137
137
|
/**
|
|
138
|
-
* @description Error message that is displayed in UI when a file needed for debugging information for a call frame is missing
|
|
138
|
+
* @description Error message that is displayed in UI when a file needed for debugging information for a call frame is missing.
|
|
139
139
|
* @example {src/myapp.debug.wasm.dwp} PH1
|
|
140
140
|
*/
|
|
141
141
|
debugFileNotFound: 'Failed to load debug file "{PH1}".',
|
|
142
142
|
/**
|
|
143
|
-
* @description Error message that is displayed when no debug info could be loaded
|
|
143
|
+
* @description Error message that is displayed when no debug info could be loaded.
|
|
144
144
|
* @example {app.wasm} PH1
|
|
145
145
|
*/
|
|
146
146
|
debugInfoNotFound: 'Failed to load any debug info for {PH1}',
|
|
147
147
|
/**
|
|
148
|
-
* @description Text of a button to open up details on a request when no debug info could be loaded
|
|
148
|
+
* @description Text of a button to open up details on a request when no debug info could be loaded.
|
|
149
149
|
*/
|
|
150
150
|
showRequest: 'Show request',
|
|
151
151
|
/**
|
|
152
|
-
* @description Tooltip text that shows on hovering over a button to see more details on a request
|
|
152
|
+
* @description Tooltip text that shows on hovering over a button to see more details on a request.
|
|
153
153
|
*/
|
|
154
|
-
openDeveloperResources: 'Opens the request in the Developer
|
|
154
|
+
openDeveloperResources: 'Opens the request in the Developer resources panel',
|
|
155
155
|
} as const;
|
|
156
156
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/DebuggerPlugin.ts', UIStrings);
|
|
157
157
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -1773,7 +1773,7 @@ export class BreakpointLocationRevealer implements
|
|
|
1773
1773
|
async reveal(breakpointLocation: Breakpoints.BreakpointManager.BreakpointLocation, omitFocus?: boolean|undefined):
|
|
1774
1774
|
Promise<void> {
|
|
1775
1775
|
const {uiLocation} = breakpointLocation;
|
|
1776
|
-
SourcesPanel.instance().showUILocation(uiLocation, omitFocus);
|
|
1776
|
+
await SourcesPanel.instance().showUILocation(uiLocation, omitFocus);
|
|
1777
1777
|
const debuggerPlugin = debuggerPluginForUISourceCode.get(uiLocation.uiSourceCode);
|
|
1778
1778
|
if (debuggerPlugin) {
|
|
1779
1779
|
debuggerPlugin.editBreakpointLocation(breakpointLocation);
|
|
@@ -15,7 +15,7 @@ export const HistoryDepth = 20;
|
|
|
15
15
|
export class EditingLocationHistoryManager {
|
|
16
16
|
private readonly entries: EditingLocationHistoryEntry[] = [];
|
|
17
17
|
private current = -1;
|
|
18
|
-
private
|
|
18
|
+
private revealingCount = 0;
|
|
19
19
|
|
|
20
20
|
constructor(private readonly sourcesView: SourcesView) {
|
|
21
21
|
}
|
|
@@ -31,7 +31,7 @@ export class EditingLocationHistoryManager {
|
|
|
31
31
|
}
|
|
32
32
|
const prevPos = update.startState.selection.main;
|
|
33
33
|
const newPos = update.state.selection.main;
|
|
34
|
-
const isJump =
|
|
34
|
+
const isJump = this.revealingCount === 0 && prevPos.anchor !== newPos.anchor && update.transactions.some(tr => {
|
|
35
35
|
return Boolean(
|
|
36
36
|
tr.isUserEvent('select.pointer') || tr.isUserEvent('select.reveal') || tr.isUserEvent('select.search'));
|
|
37
37
|
});
|
|
@@ -50,7 +50,7 @@ export class EditingLocationHistoryManager {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
updateCurrentState(uiSourceCode: Workspace.UISourceCode.UISourceCode, position: number): void {
|
|
53
|
-
if (
|
|
53
|
+
if (this.revealingCount === 0) {
|
|
54
54
|
const top = this.current >= 0 ? this.entries[this.current] : null;
|
|
55
55
|
if (top?.matches(uiSourceCode)) {
|
|
56
56
|
top.position = position;
|
|
@@ -66,26 +66,29 @@ export class EditingLocationHistoryManager {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
private reveal(entry: EditingLocationHistoryEntry): void {
|
|
69
|
+
private async reveal(entry: EditingLocationHistoryEntry): Promise<void> {
|
|
70
70
|
const uiSourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCode(entry.projectId, entry.url);
|
|
71
71
|
if (uiSourceCode) {
|
|
72
|
-
this.
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
this.revealingCount++;
|
|
73
|
+
try {
|
|
74
|
+
await this.sourcesView.showSourceLocation(uiSourceCode, entry.position, false, true);
|
|
75
|
+
} finally {
|
|
76
|
+
this.revealingCount--;
|
|
77
|
+
}
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
rollback(): void {
|
|
79
82
|
if (this.current > 0) {
|
|
80
83
|
this.current--;
|
|
81
|
-
this.reveal(this.entries[this.current]);
|
|
84
|
+
void this.reveal(this.entries[this.current]);
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
rollover(): void {
|
|
86
89
|
if (this.current < this.entries.length - 1) {
|
|
87
90
|
this.current++;
|
|
88
|
-
this.reveal(this.entries[this.current]);
|
|
91
|
+
void this.reveal(this.entries[this.current]);
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
|
|
@@ -16,11 +16,11 @@ import filteredUISourceCodeListProviderStyles from './filteredUISourceCodeListPr
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description Text in Filtered
|
|
19
|
+
* @description Text in Filtered UISourceCode list provider of the Sources panel.
|
|
20
20
|
*/
|
|
21
21
|
noFilesFound: 'No files found',
|
|
22
22
|
/**
|
|
23
|
-
* @description Name of an item that is on the ignore list
|
|
23
|
+
* @description Name of an item that is on the ignore list.
|
|
24
24
|
* @example {compile.html} PH1
|
|
25
25
|
*/
|
|
26
26
|
sIgnoreListed: '{PH1} (ignore listed)',
|
|
@@ -14,41 +14,41 @@ import type {UISourceCodeFrame} from './UISourceCodeFrame.js';
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description Text in
|
|
17
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
18
18
|
*/
|
|
19
19
|
noFileSelected: 'No file selected',
|
|
20
20
|
/**
|
|
21
|
-
* @description Text to show no results have been found
|
|
21
|
+
* @description Text to show no results have been found.
|
|
22
22
|
*/
|
|
23
23
|
noResultsFound: 'No results found',
|
|
24
24
|
/**
|
|
25
|
-
* @description Text in
|
|
25
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
26
26
|
*/
|
|
27
27
|
typeANumberToGoToThatLine: 'Type a number to go to that line',
|
|
28
28
|
/**
|
|
29
|
-
* @description Text in
|
|
30
|
-
* @example {
|
|
31
|
-
* @example {
|
|
29
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
30
|
+
* @example {0000} PH1
|
|
31
|
+
* @example {ffff} PH2
|
|
32
32
|
*/
|
|
33
33
|
currentPositionXsTypeAnOffset: 'Type an offset between 0x{PH1} and 0x{PH2} to navigate to',
|
|
34
34
|
/**
|
|
35
|
-
* @description Text in the
|
|
35
|
+
* @description Text in the go to line quick open menu of the Sources panel that describes the current line number, file line number range, and use of the go to line menu.
|
|
36
36
|
* @example {100} PH1
|
|
37
37
|
*/
|
|
38
38
|
currentLineSTypeALineNumber: 'Type a line number between 1 and {PH1} to navigate to',
|
|
39
39
|
/**
|
|
40
|
-
* @description Text in
|
|
40
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
41
41
|
* @example {abc} PH1
|
|
42
42
|
*/
|
|
43
43
|
goToOffsetXs: 'Go to offset 0x{PH1}',
|
|
44
44
|
/**
|
|
45
|
-
* @description Text in
|
|
45
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
46
46
|
* @example {2} PH1
|
|
47
47
|
* @example {2} PH2
|
|
48
48
|
*/
|
|
49
49
|
goToLineSAndColumnS: 'Go to line {PH1} and column {PH2}',
|
|
50
50
|
/**
|
|
51
|
-
* @description Text in
|
|
51
|
+
* @description Text in the go to line quick open menu of the Sources panel.
|
|
52
52
|
* @example {2} PH1
|
|
53
53
|
*/
|
|
54
54
|
goToLineS: 'Go to line {PH1}',
|