chrome-devtools-frontend 1.0.1657110 → 1.0.1660788
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-ux-writing-refactor/SKILL.md +125 -0
- package/.agents/skills/migrate-chromium-test/SKILL.md +15 -70
- package/.agents/skills/repro-flaky-tests/SKILL.md +53 -0
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +37 -18
- package/.agents/skills/version-control/SKILL.md +8 -1
- package/AUTHORS +1 -0
- package/SECURITY.md +3 -0
- package/docs/get_the_code.md +6 -0
- package/front_end/Images/src/ads.svg +1 -0
- package/front_end/Tests.js +6 -6
- package/front_end/core/common/Gzip.ts +12 -5
- package/front_end/core/common/ResourceType.ts +19 -19
- package/front_end/core/common/Revealer.ts +15 -15
- package/front_end/core/common/SettingRegistration.ts +19 -19
- package/front_end/core/host/AidaClient.ts +35 -9
- package/front_end/core/host/GdpClient.ts +10 -7
- package/front_end/core/platform/StringUtilities.ts +35 -0
- package/front_end/core/sdk/AccessibilityModel.snapshot.txt +17 -0
- package/front_end/core/sdk/AccessibilityModel.ts +132 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +8 -5
- package/front_end/core/sdk/CSSMetadata.ts +110 -16
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -5
- package/front_end/core/sdk/ConsoleModel.ts +5 -5
- package/front_end/core/sdk/DOMDebuggerModel.ts +5 -1
- package/front_end/core/sdk/DOMModel.ts +32 -18
- package/front_end/core/sdk/NetworkManager.ts +58 -14
- package/front_end/core/sdk/NetworkRequest.ts +37 -1
- package/front_end/core/sdk/OverlayModel.ts +45 -6
- package/front_end/core/sdk/ResourceTreeModel.ts +6 -7
- package/front_end/core/sdk/ScreenCaptureModel.ts +2 -2
- package/front_end/core/sdk/ServerTiming.ts +17 -13
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +4 -2
- package/front_end/core/sdk/ServiceWorkerManager.ts +19 -5
- package/front_end/core/sdk/TargetManager.ts +10 -1
- package/front_end/core/sdk/TraceObject.ts +4 -2
- package/front_end/core/sdk/sdk-meta.ts +170 -0
- package/front_end/design_system_tokens.css +0 -5
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -1
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +13 -4
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +5 -2
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +23 -4
- package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +33 -10
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +8 -3
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +2 -2
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +36 -37
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +15 -33
- package/front_end/entrypoints/js_app/js_app.ts +6 -5
- package/front_end/entrypoints/main/GlobalAiButton.ts +4 -4
- package/front_end/entrypoints/main/MainImpl.ts +25 -55
- package/front_end/entrypoints/main/main-meta.ts +50 -50
- package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +5 -5
- package/front_end/entrypoints/node_app/app/NodeMain.ts +3 -3
- package/front_end/entrypoints/node_app/node_app.ts +10 -9
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/foundation/Universe.ts +76 -6
- package/front_end/generated/InspectorBackendCommands.ts +3 -3
- package/front_end/generated/SupportedCSSProperties.js +19 -12
- package/front_end/generated/protocol.ts +7 -1
- package/front_end/models/ai_assistance/AiConversation.ts +19 -17
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +37 -14
- package/front_end/models/ai_assistance/AiUtils.ts +38 -42
- package/front_end/models/ai_assistance/agents/AiAgent.ts +5 -1
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +3 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +270 -286
- package/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts +20 -0
- package/front_end/models/ai_assistance/performance/AICallTree.ts +3 -1
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +3 -2
- package/front_end/models/autofill_manager/AutofillManager.ts +3 -1
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +8 -5
- package/front_end/models/bindings/CompilerScriptMapping.ts +2 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +15 -16
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +6 -4
- package/front_end/models/bindings/FileUtils.ts +11 -12
- package/front_end/models/bindings/NetworkProject.ts +4 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceUtils.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +8 -5
- package/front_end/models/emulation/DeviceModeModel.ts +14 -14
- package/front_end/models/emulation/EmulatedDevices.ts +392 -11
- package/front_end/models/extensions/ExtensionAPI.ts +6 -6
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +13 -12
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +1 -1
- package/front_end/models/issues_manager/ClientHintIssue.ts +1 -1
- package/front_end/models/issues_manager/ConnectionAllowlistIssue.ts +1 -1
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +7 -7
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +2 -2
- package/front_end/models/issues_manager/CookieIssue.ts +6 -7
- package/front_end/models/issues_manager/CorsIssue.ts +3 -3
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +2 -2
- package/front_end/models/issues_manager/DeprecationIssue.ts +3 -3
- package/front_end/models/issues_manager/EmailVerificationRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.ts +7 -7
- package/front_end/models/issues_manager/HeavyAdIssue.ts +3 -3
- package/front_end/models/issues_manager/Issue.ts +8 -8
- package/front_end/models/issues_manager/MixedContentIssue.ts +1 -1
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +3 -3
- package/front_end/models/issues_manager/QuirksModeIssue.ts +1 -1
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -2
- package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +2 -2
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +2 -2
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +1 -1
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +3 -3
- package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
- package/front_end/models/stack_trace/StackTraceModel.ts +3 -3
- package/front_end/models/text_utils/ContentData.ts +27 -0
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +21 -5
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +29 -14
- package/front_end/models/web_mcp/WebMCPModel.ts +24 -6
- package/front_end/models/workspace/IgnoreListManager.ts +6 -6
- package/front_end/models/workspace/UISourceCode.ts +3 -3
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +23 -12
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +25 -22
- package/front_end/panels/ai_assistance/ExportConversation.ts +3 -4
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +3 -3
- package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -2
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +7 -0
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +2 -2
- package/front_end/panels/animation/AnimationTimeline.ts +17 -19
- package/front_end/panels/animation/AnimationUI.ts +5 -5
- package/front_end/panels/animation/animation-meta.ts +2 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -4
- package/front_end/panels/application/BackgroundServiceView.ts +2 -1
- package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -6
- package/front_end/panels/application/IndexedDBViews.ts +245 -262
- package/front_end/panels/application/OpenedWindowDetailsView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +9 -2
- package/front_end/panels/application/ServiceWorkersView.ts +252 -211
- package/front_end/panels/application/StorageView.ts +97 -33
- package/front_end/panels/application/WebMCPView.ts +15 -1
- package/front_end/panels/application/components/AdsView.ts +1 -1
- package/front_end/panels/application/indexedDBViews.css +38 -9
- package/front_end/panels/application/preloading/helper/PreloadingForward.ts +2 -1
- package/front_end/panels/application/resourcesSidebar.css +5 -0
- package/front_end/panels/application/storageView.css +26 -9
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +5 -1
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +8 -6
- package/front_end/panels/common/DOMLinkifier.ts +1 -1
- package/front_end/panels/common/ExtensionServer.ts +119 -14
- package/front_end/panels/console/ConsoleContextSelector.ts +4 -4
- package/front_end/panels/console/ConsolePinPane.ts +12 -12
- package/front_end/panels/console/ConsolePrompt.ts +6 -6
- package/front_end/panels/console/ConsoleSidebar.ts +7 -7
- package/front_end/panels/console/ConsoleView.ts +45 -44
- package/front_end/panels/console/ConsoleViewMessage.ts +40 -40
- package/front_end/panels/console/SymbolizedErrorWidget.ts +2 -1
- package/front_end/panels/console/console-meta.ts +34 -34
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +28 -28
- package/front_end/panels/coverage/CoverageModel.ts +2 -1
- package/front_end/panels/coverage/CoverageView.ts +23 -23
- package/front_end/panels/coverage/coverage-meta.ts +5 -5
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +36 -36
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +6 -6
- package/front_end/panels/css_overview/css_overview-meta.ts +2 -2
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +20 -21
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -8
- package/front_end/panels/developer_resources/developer_resources-meta.ts +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +8 -102
- package/front_end/panels/elements/AccessibilityTreeView.ts +163 -70
- package/front_end/panels/elements/ElementsPanel.ts +17 -11
- package/front_end/panels/elements/ElementsTreeElement.ts +49 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/LayoutPane.ts +1 -1
- package/front_end/panels/elements/MetricsSidebarPane.ts +100 -34
- package/front_end/panels/elements/StylePropertiesSection.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -2
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +7 -18
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +2 -2
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/media/EventDisplayTable.ts +2 -2
- package/front_end/panels/media/EventTimelineView.ts +4 -4
- package/front_end/panels/media/MainView.ts +4 -4
- package/front_end/panels/media/PlayerDetailView.ts +5 -5
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/media/PlayerMessagesView.ts +12 -12
- package/front_end/panels/media/PlayerPropertiesView.ts +17 -17
- package/front_end/panels/network/NetworkDataGridNode.ts +124 -36
- package/front_end/panels/network/NetworkLogView.ts +11 -2
- package/front_end/panels/network/NetworkLogViewColumns.ts +18 -0
- package/front_end/panels/network/NetworkPanel.ts +2 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +1 -3
- package/front_end/panels/network/RequestConditionsDrawer.ts +2 -2
- package/front_end/panels/network/RequestPayloadView.ts +53 -7
- package/front_end/panels/network/RequestPreviewView.ts +7 -1
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -1
- package/front_end/panels/network/forward/UIFilter.ts +1 -0
- package/front_end/panels/network/networkPanel.css +1 -0
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/requestPayloadView.css +10 -0
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +12 -12
- package/front_end/panels/performance_monitor/performance_monitor-meta.ts +7 -7
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +2 -2
- package/front_end/panels/profiler/HeapProfileView.ts +563 -51
- package/front_end/panels/profiler/HeapSnapshotView.ts +15 -9
- package/front_end/panels/profiler/ProfilesPanel.ts +13 -7
- package/front_end/panels/profiler/WritableProfileHeader.ts +152 -0
- package/front_end/panels/profiler/profiler.ts +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +10 -10
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +28 -32
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +1 -1
- package/front_end/panels/recorder/RecorderController.ts +15 -15
- package/front_end/panels/recorder/RecorderEvents.ts +8 -0
- package/front_end/panels/recorder/components/CreateRecordingView.ts +11 -11
- package/front_end/panels/recorder/components/ExtensionView.ts +74 -83
- package/front_end/panels/recorder/components/RecordingListView.ts +3 -3
- package/front_end/panels/recorder/components/RecordingView.ts +13 -10
- package/front_end/panels/recorder/components/ReplaySection.ts +9 -9
- package/front_end/panels/recorder/components/StepEditor.ts +352 -321
- package/front_end/panels/recorder/components/StepView.ts +36 -37
- package/front_end/panels/recorder/components/recordingView.css +1 -1
- package/front_end/panels/recorder/models/RecorderSettings.ts +2 -2
- package/front_end/panels/recorder/recorder-meta.ts +7 -7
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +12 -12
- package/front_end/panels/search/SearchResultsPane.ts +4 -4
- package/front_end/panels/search/SearchView.ts +20 -20
- package/front_end/panels/security/SecurityModel.ts +7 -7
- package/front_end/panels/security/SecurityPanel.ts +99 -107
- package/front_end/panels/security/SecurityPanelSidebar.ts +7 -7
- package/front_end/panels/security/security-meta.ts +2 -2
- package/front_end/panels/sensors/LocationsSettingsTab.ts +19 -19
- package/front_end/panels/sensors/SensorsView.ts +27 -27
- package/front_end/panels/sensors/sensors-meta.ts +13 -167
- package/front_end/panels/settings/AISettingsTab.ts +98 -56
- package/front_end/panels/settings/EditFileSystemView.ts +2 -2
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -20
- package/front_end/panels/settings/KeybindsSettingsTab.ts +20 -21
- package/front_end/panels/settings/SettingsScreen.ts +11 -11
- package/front_end/panels/settings/WorkspaceSettingsTab.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +12 -12
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -13
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +31 -31
- package/front_end/panels/settings/emulation/emulation-meta.ts +1 -1
- package/front_end/panels/settings/settings-meta.ts +14 -14
- package/front_end/panels/sources/NavigatorView.ts +7 -6
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +83 -37
- package/front_end/panels/sources/SourcesNavigator.ts +20 -18
- package/front_end/panels/sources/SourcesView.ts +10 -1
- package/front_end/panels/sources/scopeChainSidebarPane.css +12 -4
- package/front_end/panels/sources/sources-meta.ts +4 -4
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +5 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +2 -1
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +2 -1
- package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
- package/front_end/panels/timeline/TimelinePanel.ts +2 -1
- package/front_end/panels/timeline/TimelineUIUtils.ts +5 -2
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +4 -2
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +4 -2
- package/front_end/panels/timeline/components/insights/ImageRef.ts +2 -1
- package/front_end/panels/utils/utils.ts +7 -3
- package/front_end/panels/web_audio/WebAudioView.ts +17 -18
- package/front_end/panels/web_audio/web_audio-meta.ts +3 -3
- package/front_end/panels/webauthn/WebauthnPane.ts +10 -10
- package/front_end/panels/whats_new/ReleaseNoteView.ts +1 -1
- package/front_end/panels/whats_new/whats_new-meta.ts +11 -11
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lit/lib/async-directive.d.ts +2 -1
- package/front_end/third_party/lit/lib/async-directive.js +1 -1
- package/front_end/third_party/lit/lib/async-directive.js.map +1 -1
- package/front_end/third_party/lit/lib/decorators.d.ts +2 -1
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.d.ts +2 -1
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +2 -1
- package/front_end/third_party/lit/lib/directives.js +8 -8
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +2 -1
- package/front_end/third_party/lit/lib/lit.js +1 -1
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.d.ts +2 -1
- package/front_end/third_party/lit/lib/static-html.js +1 -1
- package/front_end/third_party/lit/lib/static-html.js.map +1 -1
- package/front_end/third_party/lit/package.json +2 -2
- package/front_end/third_party/lit/rebuild.sh +1 -1
- package/front_end/third_party/lit/src/async-directive.ts +5 -0
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +1 -1
- package/front_end/ui/components/dialogs/shortcutDialog.css +15 -12
- package/front_end/ui/components/diff_view/DiffView.ts +2 -2
- package/front_end/ui/components/issue_counter/IssueCounter.ts +3 -3
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +5 -5
- package/front_end/ui/components/lists/List.ts +2 -2
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +5 -5
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
- package/front_end/ui/components/snackbars/Snackbar.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +3 -3
- package/front_end/ui/components/text_editor/config.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +34 -1
- package/front_end/ui/legacy/ReportView.ts +5 -0
- package/front_end/ui/legacy/Treeoutline.ts +18 -0
- package/front_end/ui/legacy/View.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -0
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -3
- package/front_end/ui/legacy/components/data_grid/data_grid.ts +1 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +100 -36
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -0
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +4 -2
- package/front_end/ui/legacy/inspectorCommon.css +5 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
- package/mcp/mcp.ts +2 -0
- package/package.json +4 -4
- package/front_end/panels/profiler/ProfileView.ts +0 -610
|
@@ -47,7 +47,6 @@ import * as Badges from '../../models/badges/badges.js';
|
|
|
47
47
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
48
48
|
import * as CrUXManager from '../../models/crux-manager/crux-manager.js';
|
|
49
49
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
50
|
-
import * as LiveMetrics from '../../models/live-metrics/live-metrics.js';
|
|
51
50
|
import * as Persistence from '../../models/persistence/persistence.js';
|
|
52
51
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
53
52
|
import * as PanelCommon from '../../panels/common/common.js';
|
|
@@ -65,56 +64,56 @@ import {ExecutionContextSelector} from './ExecutionContextSelector.js';
|
|
|
65
64
|
|
|
66
65
|
const UIStrings = {
|
|
67
66
|
/**
|
|
68
|
-
* @description Title of item in main
|
|
67
|
+
* @description Title of the menu item in the main toolbar to customize and control DevTools.
|
|
69
68
|
*/
|
|
70
69
|
customizeAndControlDevtools: 'Customize and control DevTools',
|
|
71
70
|
/**
|
|
72
|
-
* @description
|
|
71
|
+
* @description Label for the dock side menu options in the customize and control menu.
|
|
73
72
|
*/
|
|
74
73
|
dockSide: 'Dock side',
|
|
75
74
|
/**
|
|
76
|
-
* @description
|
|
75
|
+
* @description Tooltip for the dock side menu options explaining how to restore the last dock position.
|
|
77
76
|
* @example {Ctrl+Shift+D} PH1
|
|
78
77
|
*/
|
|
79
78
|
placementOfDevtoolsRelativeToThe: 'Placement of DevTools relative to the page. ({PH1} to restore last position)',
|
|
80
79
|
/**
|
|
81
|
-
* @description
|
|
80
|
+
* @description Tooltip and label for the button to undock DevTools into a separate window.
|
|
82
81
|
*/
|
|
83
82
|
undockIntoSeparateWindow: 'Undock into separate window',
|
|
84
83
|
/**
|
|
85
|
-
* @description
|
|
84
|
+
* @description Tooltip and label for the button to dock DevTools to the bottom of the browser window.
|
|
86
85
|
*/
|
|
87
86
|
dockToBottom: 'Dock to bottom',
|
|
88
87
|
/**
|
|
89
|
-
* @description
|
|
88
|
+
* @description Tooltip and label for the button to dock DevTools to the right of the browser window.
|
|
90
89
|
*/
|
|
91
90
|
dockToRight: 'Dock to right',
|
|
92
91
|
/**
|
|
93
|
-
* @description
|
|
92
|
+
* @description Tooltip and label for the button to dock DevTools to the left of the browser window.
|
|
94
93
|
*/
|
|
95
94
|
dockToLeft: 'Dock to left',
|
|
96
95
|
/**
|
|
97
|
-
* @description
|
|
96
|
+
* @description Action item in the customize and control menu to focus the page being debugged.
|
|
98
97
|
*/
|
|
99
98
|
focusDebuggee: 'Focus page',
|
|
100
99
|
/**
|
|
101
|
-
* @description
|
|
100
|
+
* @description Action item in the customize and control menu to hide the Console drawer.
|
|
102
101
|
*/
|
|
103
|
-
hideConsoleDrawer: 'Hide
|
|
102
|
+
hideConsoleDrawer: 'Hide Console drawer',
|
|
104
103
|
/**
|
|
105
|
-
* @description
|
|
104
|
+
* @description Action item in the customize and control menu to show the Console drawer.
|
|
106
105
|
*/
|
|
107
|
-
showConsoleDrawer: 'Show
|
|
106
|
+
showConsoleDrawer: 'Show Console drawer',
|
|
108
107
|
/**
|
|
109
|
-
* @description
|
|
108
|
+
* @description Submenu item in the customize and control menu to open additional tools and panels.
|
|
110
109
|
*/
|
|
111
110
|
moreTools: 'More tools',
|
|
112
111
|
/**
|
|
113
|
-
* @description
|
|
112
|
+
* @description Submenu item in the customize and control menu to view help and documentation options.
|
|
114
113
|
*/
|
|
115
114
|
help: 'Help',
|
|
116
115
|
/**
|
|
117
|
-
* @description
|
|
116
|
+
* @description Screen reader announcement explaining how to navigate the dock side options using arrow keys.
|
|
118
117
|
*/
|
|
119
118
|
dockSideNavigation: 'Use left and right arrow keys to navigate the options',
|
|
120
119
|
/**
|
|
@@ -122,7 +121,7 @@ const UIStrings = {
|
|
|
122
121
|
*/
|
|
123
122
|
aiModelDownloaded: 'AI model downloaded',
|
|
124
123
|
/**
|
|
125
|
-
* @description
|
|
124
|
+
* @description Title of the menu item in the customize and control menu leading to the DevTools MCP repository.
|
|
126
125
|
*/
|
|
127
126
|
getDevToolsMcp: 'Get `DevTools MCP`'
|
|
128
127
|
} as const;
|
|
@@ -158,9 +157,11 @@ export class MainImpl {
|
|
|
158
157
|
#readyForTestPromise = Promise.withResolvers<void>();
|
|
159
158
|
#veStartPromise!: Promise<void>;
|
|
160
159
|
#universe!: Foundation.Universe.Universe;
|
|
160
|
+
#supportsEmulation = false;
|
|
161
161
|
|
|
162
|
-
constructor() {
|
|
162
|
+
constructor(opts?: {supportsEmulation: boolean}) {
|
|
163
163
|
MainImpl.instanceForTest = this;
|
|
164
|
+
this.#supportsEmulation = opts?.supportsEmulation ?? false;
|
|
164
165
|
void this.#loaded();
|
|
165
166
|
}
|
|
166
167
|
|
|
@@ -209,6 +210,7 @@ export class MainImpl {
|
|
|
209
210
|
},
|
|
210
211
|
hostConfig: Root.Runtime.hostConfig,
|
|
211
212
|
inspectorFrontendHost: Host.InspectorFrontendHost.InspectorFrontendHostInstance,
|
|
213
|
+
supportsEmulation: this.#supportsEmulation,
|
|
212
214
|
};
|
|
213
215
|
this.#universe = new Foundation.Universe.Universe(creationOptions);
|
|
214
216
|
Root.DevToolsContext.setGlobalInstance(this.#universe.context as Root.DevToolsContext.WritableDevToolsContext);
|
|
@@ -452,9 +454,6 @@ export class MainImpl {
|
|
|
452
454
|
targetManager.addEventListener(
|
|
453
455
|
SDK.TargetManager.Events.SUSPEND_STATE_CHANGED, this.#onSuspendStateChanged.bind(this));
|
|
454
456
|
|
|
455
|
-
Workspace.FileManager.FileManager.instance({forceNew: true});
|
|
456
|
-
|
|
457
|
-
Bindings.NetworkProject.NetworkProjectManager.instance();
|
|
458
457
|
new Bindings.PresentationConsoleMessageHelper.PresentationConsoleMessageManager();
|
|
459
458
|
targetManager.setScopeTarget(targetManager.primaryPageTarget());
|
|
460
459
|
UI.Context.Context.instance().addFlavorChangeListener(SDK.Target.Target, ({data}) => {
|
|
@@ -464,20 +463,17 @@ export class MainImpl {
|
|
|
464
463
|
// @ts-expect-error e2e test global
|
|
465
464
|
self.Extensions.extensionServer = PanelCommon.ExtensionServer.ExtensionServer.instance({forceNew: true});
|
|
466
465
|
|
|
467
|
-
new Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(
|
|
468
|
-
isolatedFileSystemManager, Workspace.Workspace.WorkspaceImpl.instance());
|
|
469
466
|
isolatedFileSystemManager.addPlatformFileSystem(
|
|
470
467
|
'snippet://' as Platform.DevToolsPath.UrlString, new Snippets.ScriptSnippetFileSystem.SnippetFileSystem());
|
|
471
468
|
|
|
472
|
-
const
|
|
473
|
-
const linkDecorator = new PanelCommon.PersistenceUtils.LinkDecorator(persistenceImpl);
|
|
469
|
+
const linkDecorator = new PanelCommon.PersistenceUtils.LinkDecorator(this.#universe.persistence);
|
|
474
470
|
Components.Linkifier.Linkifier.setLinkDecorator(linkDecorator);
|
|
475
|
-
Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance(
|
|
476
|
-
{forceNew: true, workspace: Workspace.Workspace.WorkspaceImpl.instance()});
|
|
477
471
|
|
|
478
472
|
new ExecutionContextSelector(targetManager, UI.Context.Context.instance());
|
|
479
473
|
|
|
480
|
-
|
|
474
|
+
this.#universe.domDebuggerManager.initialize();
|
|
475
|
+
this.#universe.cpuThrottlingManager.initialize();
|
|
476
|
+
void this.#universe.liveMetrics.enable();
|
|
481
477
|
CrUXManager.CrUXManager.instance();
|
|
482
478
|
|
|
483
479
|
const builtInAi = AiAssistanceModel.BuiltInAi.BuiltInAi.instance();
|
|
@@ -761,8 +757,6 @@ export class SearchActionDelegate implements UI.ActionRegistration.ActionDelegat
|
|
|
761
757
|
return false;
|
|
762
758
|
}
|
|
763
759
|
}
|
|
764
|
-
let mainMenuItemInstance: MainMenuItem;
|
|
765
|
-
|
|
766
760
|
export class MainMenuItem implements UI.Toolbar.Provider {
|
|
767
761
|
readonly #item: UI.Toolbar.ToolbarMenuButton;
|
|
768
762
|
constructor() {
|
|
@@ -773,17 +767,6 @@ export class MainMenuItem implements UI.Toolbar.Provider {
|
|
|
773
767
|
this.#item.setTitle(i18nString(UIStrings.customizeAndControlDevtools));
|
|
774
768
|
}
|
|
775
769
|
|
|
776
|
-
static instance(opts: {
|
|
777
|
-
forceNew: boolean|null,
|
|
778
|
-
} = {forceNew: null}): MainMenuItem {
|
|
779
|
-
const {forceNew} = opts;
|
|
780
|
-
if (!mainMenuItemInstance || forceNew) {
|
|
781
|
-
mainMenuItemInstance = new MainMenuItem();
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
return mainMenuItemInstance;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
770
|
item(): UI.Toolbar.ToolbarItem|null {
|
|
788
771
|
return this.#item;
|
|
789
772
|
}
|
|
@@ -945,25 +928,12 @@ export class MainMenuItem implements UI.Toolbar.Provider {
|
|
|
945
928
|
}
|
|
946
929
|
}
|
|
947
930
|
|
|
948
|
-
let settingsButtonProviderInstance: SettingsButtonProvider;
|
|
949
|
-
|
|
950
931
|
export class SettingsButtonProvider implements UI.Toolbar.Provider {
|
|
951
932
|
readonly #settingsButton: UI.Toolbar.ToolbarButton;
|
|
952
|
-
|
|
933
|
+
constructor() {
|
|
953
934
|
this.#settingsButton = UI.Toolbar.Toolbar.createActionButton('settings.show');
|
|
954
935
|
}
|
|
955
936
|
|
|
956
|
-
static instance(opts: {
|
|
957
|
-
forceNew: boolean|null,
|
|
958
|
-
} = {forceNew: null}): SettingsButtonProvider {
|
|
959
|
-
const {forceNew} = opts;
|
|
960
|
-
if (!settingsButtonProviderInstance || forceNew) {
|
|
961
|
-
settingsButtonProviderInstance = new SettingsButtonProvider();
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
return settingsButtonProviderInstance;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
937
|
item(): UI.Toolbar.ToolbarItem|null {
|
|
968
938
|
return this.#settingsButton;
|
|
969
939
|
}
|
|
@@ -17,163 +17,163 @@ import type * as Main from './main.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description
|
|
20
|
+
* @description Action title to focus the page being debugged.
|
|
21
21
|
*/
|
|
22
22
|
focusDebuggee: 'Focus page',
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Action title and shortcut description to toggle the Console drawer.
|
|
25
25
|
*/
|
|
26
26
|
toggleDrawer: 'Toggle drawer',
|
|
27
27
|
/**
|
|
28
|
-
* @description Title of an action that navigates to the next panel
|
|
28
|
+
* @description Title of an action that navigates to the next panel.
|
|
29
29
|
*/
|
|
30
30
|
nextPanel: 'Next panel',
|
|
31
31
|
/**
|
|
32
|
-
* @description Title of an action that navigates to the previous panel
|
|
32
|
+
* @description Title of an action that navigates to the previous panel.
|
|
33
33
|
*/
|
|
34
34
|
previousPanel: 'Previous panel',
|
|
35
35
|
/**
|
|
36
|
-
* @description Title of an action that reloads
|
|
36
|
+
* @description Title of an action that reloads DevTools.
|
|
37
37
|
*/
|
|
38
38
|
reloadDevtools: 'Reload DevTools',
|
|
39
39
|
/**
|
|
40
|
-
* @description Title of an action in the main
|
|
40
|
+
* @description Title of an action in the main toolbar to restore the last dock position.
|
|
41
41
|
*/
|
|
42
42
|
restoreLastDockPosition: 'Restore last dock position',
|
|
43
43
|
/**
|
|
44
|
-
* @description
|
|
44
|
+
* @description Shortcut description and action title to zoom in.
|
|
45
45
|
*/
|
|
46
46
|
zoomIn: 'Zoom in',
|
|
47
47
|
/**
|
|
48
|
-
* @description
|
|
48
|
+
* @description Shortcut description and action title to zoom out.
|
|
49
49
|
*/
|
|
50
50
|
zoomOut: 'Zoom out',
|
|
51
51
|
/**
|
|
52
|
-
* @description Title of an action that
|
|
52
|
+
* @description Title of an action that resets the zoom level to default.
|
|
53
53
|
*/
|
|
54
54
|
resetZoomLevel: 'Reset zoom level',
|
|
55
55
|
/**
|
|
56
|
-
* @description Title of an action to search
|
|
56
|
+
* @description Title of an action to search within the current panel.
|
|
57
57
|
*/
|
|
58
58
|
searchInPanel: 'Search in panel',
|
|
59
59
|
/**
|
|
60
|
-
* @description Title of an action that cancels the current search
|
|
60
|
+
* @description Title of an action that cancels the current search.
|
|
61
61
|
*/
|
|
62
62
|
cancelSearch: 'Cancel search',
|
|
63
63
|
/**
|
|
64
|
-
* @description Title of an action that finds the next search result
|
|
64
|
+
* @description Title of an action that finds the next search result.
|
|
65
65
|
*/
|
|
66
66
|
findNextResult: 'Find next result',
|
|
67
67
|
/**
|
|
68
|
-
* @description Title of an action to find the previous search result
|
|
68
|
+
* @description Title of an action to find the previous search result.
|
|
69
69
|
*/
|
|
70
70
|
findPreviousResult: 'Find previous result',
|
|
71
71
|
/**
|
|
72
|
-
* @description Title of
|
|
72
|
+
* @description Title of the theme setting under the Appearance category in Settings.
|
|
73
73
|
*/
|
|
74
74
|
theme: 'Theme:',
|
|
75
75
|
/**
|
|
76
|
-
* @description
|
|
76
|
+
* @description Command menu option to switch to the browser's preferred color theme.
|
|
77
77
|
*/
|
|
78
|
-
switchToBrowserPreferredTheme: 'Switch to browser
|
|
78
|
+
switchToBrowserPreferredTheme: 'Switch to browser’s preferred theme',
|
|
79
79
|
/**
|
|
80
|
-
* @description
|
|
80
|
+
* @description Drop-down menu option to match the browser's color theme.
|
|
81
81
|
*/
|
|
82
82
|
autoTheme: 'Auto',
|
|
83
83
|
/**
|
|
84
|
-
* @description
|
|
84
|
+
* @description Command menu option to switch to the light color theme.
|
|
85
85
|
*/
|
|
86
86
|
switchToLightTheme: 'Switch to light theme',
|
|
87
87
|
/**
|
|
88
|
-
* @description
|
|
88
|
+
* @description Drop-down menu option to select the light color theme.
|
|
89
89
|
*/
|
|
90
90
|
lightCapital: 'Light',
|
|
91
91
|
/**
|
|
92
|
-
* @description
|
|
92
|
+
* @description Command menu option to switch to the dark color theme.
|
|
93
93
|
*/
|
|
94
94
|
switchToDarkTheme: 'Switch to dark theme',
|
|
95
95
|
/**
|
|
96
|
-
* @description
|
|
96
|
+
* @description Drop-down menu option to select the dark color theme.
|
|
97
97
|
*/
|
|
98
98
|
darkCapital: 'Dark',
|
|
99
99
|
/**
|
|
100
|
-
* @description
|
|
100
|
+
* @description Tag for theme preference settings when searched in the command menu.
|
|
101
101
|
*/
|
|
102
102
|
darkLower: 'dark',
|
|
103
103
|
/**
|
|
104
|
-
* @description
|
|
104
|
+
* @description Tag for theme preference settings when searched in the command menu.
|
|
105
105
|
*/
|
|
106
106
|
lightLower: 'light',
|
|
107
107
|
/**
|
|
108
|
-
* @description Title of
|
|
108
|
+
* @description Title of the panel layout setting under the Appearance category in Settings.
|
|
109
109
|
*/
|
|
110
110
|
panelLayout: 'Panel layout:',
|
|
111
111
|
/**
|
|
112
|
-
* @description
|
|
112
|
+
* @description Command menu option to use a horizontal panel layout.
|
|
113
113
|
*/
|
|
114
114
|
useHorizontalPanelLayout: 'Use horizontal panel layout',
|
|
115
115
|
/**
|
|
116
|
-
* @description
|
|
116
|
+
* @description Drop-down menu option for horizontal panel layout.
|
|
117
117
|
*/
|
|
118
118
|
horizontal: 'horizontal',
|
|
119
119
|
/**
|
|
120
|
-
* @description
|
|
120
|
+
* @description Command menu option to use a vertical panel layout.
|
|
121
121
|
*/
|
|
122
122
|
useVerticalPanelLayout: 'Use vertical panel layout',
|
|
123
123
|
/**
|
|
124
|
-
* @description
|
|
124
|
+
* @description Drop-down menu option for vertical panel layout.
|
|
125
125
|
*/
|
|
126
126
|
vertical: 'vertical',
|
|
127
127
|
/**
|
|
128
|
-
* @description
|
|
128
|
+
* @description Command menu option to use automatic panel layout.
|
|
129
129
|
*/
|
|
130
130
|
useAutomaticPanelLayout: 'Use automatic panel layout',
|
|
131
131
|
/**
|
|
132
|
-
* @description
|
|
132
|
+
* @description Drop-down menu option for automatic panel layout.
|
|
133
133
|
*/
|
|
134
134
|
auto: 'auto',
|
|
135
135
|
/**
|
|
136
|
-
* @description
|
|
136
|
+
* @description Checkbox label for the setting to use Ctrl plus number keys to switch panels.
|
|
137
137
|
*/
|
|
138
138
|
enableCtrlShortcutToSwitchPanels: 'Use Ctrl + 1-9 to switch panels',
|
|
139
139
|
/**
|
|
140
|
-
* @description
|
|
140
|
+
* @description Checkbox label for the setting to use Command plus number keys to switch panels on Mac.
|
|
141
141
|
*/
|
|
142
142
|
enableShortcutToSwitchPanels: 'Use ⌘ + 1-9 to switch panels',
|
|
143
143
|
/**
|
|
144
|
-
* @description
|
|
144
|
+
* @description Drop-down menu option to dock DevTools to the right.
|
|
145
145
|
*/
|
|
146
146
|
right: 'Right',
|
|
147
147
|
/**
|
|
148
|
-
* @description
|
|
148
|
+
* @description Title of the action and setting option to dock DevTools to the right of the browser window.
|
|
149
149
|
*/
|
|
150
150
|
dockToRight: 'Dock to right',
|
|
151
151
|
/**
|
|
152
|
-
* @description
|
|
152
|
+
* @description Drop-down menu option to dock DevTools to the bottom.
|
|
153
153
|
*/
|
|
154
154
|
bottom: 'Bottom',
|
|
155
155
|
/**
|
|
156
|
-
* @description
|
|
156
|
+
* @description Title of the action and setting option to dock DevTools to the bottom of the browser window.
|
|
157
157
|
*/
|
|
158
158
|
dockToBottom: 'Dock to bottom',
|
|
159
159
|
/**
|
|
160
|
-
* @description
|
|
160
|
+
* @description Drop-down menu option to dock DevTools to the left.
|
|
161
161
|
*/
|
|
162
162
|
left: 'Left',
|
|
163
163
|
/**
|
|
164
|
-
* @description
|
|
164
|
+
* @description Title of the action and setting option to dock DevTools to the left of the browser window.
|
|
165
165
|
*/
|
|
166
166
|
dockToLeft: 'Dock to left',
|
|
167
167
|
/**
|
|
168
|
-
* @description
|
|
168
|
+
* @description Drop-down menu option for undocked DevTools in a separate window.
|
|
169
169
|
*/
|
|
170
170
|
undocked: 'Undocked',
|
|
171
171
|
/**
|
|
172
|
-
* @description
|
|
172
|
+
* @description Title of the action and setting option to undock DevTools into a separate window.
|
|
173
173
|
*/
|
|
174
174
|
undockIntoSeparateWindow: 'Undock into separate window',
|
|
175
175
|
/**
|
|
176
|
-
* @description
|
|
176
|
+
* @description Option label for the default set of DevTools keyboard shortcuts.
|
|
177
177
|
*/
|
|
178
178
|
devtoolsDefault: 'DevTools (Default)',
|
|
179
179
|
/**
|
|
@@ -228,7 +228,7 @@ const UIStrings = {
|
|
|
228
228
|
/**
|
|
229
229
|
* @description Command to turn the browser color scheme matching off through the command menu.
|
|
230
230
|
*/
|
|
231
|
-
dontMatchChromeColorSchemeCommand: 'Don
|
|
231
|
+
dontMatchChromeColorSchemeCommand: 'Don’t match Chrome color scheme',
|
|
232
232
|
/**
|
|
233
233
|
* @description Command to toggle the drawer orientation.
|
|
234
234
|
*/
|
|
@@ -911,29 +911,29 @@ UI.Toolbar.registerToolbarItem({
|
|
|
911
911
|
const isPolicyRestricted = config?.aidaAvailability?.blockedByEnterprisePolicy === true;
|
|
912
912
|
return Boolean(isFlagEnabled && !isGeoRestricted && !isPolicyRestricted);
|
|
913
913
|
},
|
|
914
|
-
async
|
|
914
|
+
loadItem: Common.Lazy.lazy(async () => {
|
|
915
915
|
const Main = await loadMainModule();
|
|
916
916
|
return new Main.GlobalAiButton.GlobalAiButtonToolbarProvider();
|
|
917
|
-
}
|
|
917
|
+
}) as () => Promise<UI.Toolbar.Provider>,
|
|
918
918
|
order: 98,
|
|
919
919
|
location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
|
|
920
920
|
});
|
|
921
921
|
|
|
922
922
|
UI.Toolbar.registerToolbarItem({
|
|
923
|
-
async
|
|
923
|
+
loadItem: Common.Lazy.lazy(async () => {
|
|
924
924
|
const Main = await loadMainModule();
|
|
925
|
-
return Main.MainImpl.SettingsButtonProvider
|
|
926
|
-
}
|
|
925
|
+
return new Main.MainImpl.SettingsButtonProvider();
|
|
926
|
+
}) as () => Promise<UI.Toolbar.Provider>,
|
|
927
927
|
order: 99,
|
|
928
928
|
location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
|
|
929
929
|
});
|
|
930
930
|
|
|
931
931
|
UI.Toolbar.registerToolbarItem({
|
|
932
932
|
condition: () => !Root.Runtime.Runtime.isTraceApp(),
|
|
933
|
-
async
|
|
933
|
+
loadItem: Common.Lazy.lazy(async () => {
|
|
934
934
|
const Main = await loadMainModule();
|
|
935
|
-
return Main.MainImpl.MainMenuItem
|
|
936
|
-
}
|
|
935
|
+
return new Main.MainImpl.MainMenuItem();
|
|
936
|
+
}) as () => Promise<UI.Toolbar.Provider>,
|
|
937
937
|
order: 100,
|
|
938
938
|
location: UI.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,
|
|
939
939
|
});
|
|
@@ -15,25 +15,25 @@ import nodeConnectionsPanelStyles from './nodeConnectionsPanel.css.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description Text in Node
|
|
18
|
+
* @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
|
|
19
19
|
*/
|
|
20
20
|
nodejsDebuggingGuide: 'Node.js debugging guide',
|
|
21
21
|
/**
|
|
22
|
-
* @description Text in Node
|
|
22
|
+
* @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
|
|
23
23
|
* @example {Node.js debugging guide} PH1
|
|
24
24
|
*/
|
|
25
25
|
specifyNetworkEndpointAnd:
|
|
26
26
|
'Specify network endpoint and DevTools will connect to it automatically. Read {PH1} to learn more.',
|
|
27
27
|
/**
|
|
28
|
-
* @description Placeholder text content in Node
|
|
28
|
+
* @description Placeholder text content in Node connections panel of the Sources panel when debugging a Node.js app.
|
|
29
29
|
*/
|
|
30
30
|
noConnectionsSpecified: 'No connections specified',
|
|
31
31
|
/**
|
|
32
|
-
* @description Text of add network target button in Node
|
|
32
|
+
* @description Text of add network target button in Node connections panel of the Sources panel when debugging a Node.js app.
|
|
33
33
|
*/
|
|
34
34
|
addConnection: 'Add connection',
|
|
35
35
|
/**
|
|
36
|
-
* @description Text in Node
|
|
36
|
+
* @description Text in Node connections panel of the Sources panel when debugging a Node.js app.
|
|
37
37
|
*/
|
|
38
38
|
networkAddressEgLocalhost: 'Network address (e.g. localhost:9229)',
|
|
39
39
|
} as const;
|
|
@@ -14,16 +14,16 @@ import * as Components from '../../../ui/legacy/components/utils/utils.js';
|
|
|
14
14
|
|
|
15
15
|
const UIStrings = {
|
|
16
16
|
/**
|
|
17
|
-
* @description Text that refers to the main target
|
|
17
|
+
* @description Text that refers to the main target.
|
|
18
18
|
*/
|
|
19
19
|
main: 'Main',
|
|
20
20
|
/**
|
|
21
|
-
* @description Text in Node
|
|
21
|
+
* @description Text in Node main of the Sources panel when debugging a Node.js app.
|
|
22
22
|
* @example {example.com} PH1
|
|
23
23
|
*/
|
|
24
24
|
nodejsS: 'Node.js: {PH1}',
|
|
25
25
|
/**
|
|
26
|
-
* @description Text in DevTools window title when debugging a Node.js app
|
|
26
|
+
* @description Text in DevTools window title when debugging a Node.js app.
|
|
27
27
|
* @example {example.com} PH1
|
|
28
28
|
*/
|
|
29
29
|
NodejsTitleS: 'DevTools - Node.js: {PH1}',
|
|
@@ -21,31 +21,31 @@ const {NodeMainImpl} = App.NodeMain;
|
|
|
21
21
|
|
|
22
22
|
const UIStrings = {
|
|
23
23
|
/**
|
|
24
|
-
* @description Text that refers to the network connection
|
|
24
|
+
* @description Text that refers to the network connection.
|
|
25
25
|
*/
|
|
26
26
|
connection: 'Connection',
|
|
27
27
|
/**
|
|
28
|
-
* @description A tag of Node.js
|
|
28
|
+
* @description A tag of Node.js connection panel that can be searched in the command menu.
|
|
29
29
|
*/
|
|
30
30
|
node: 'node',
|
|
31
31
|
/**
|
|
32
|
-
* @description Command for showing the Connection tool
|
|
32
|
+
* @description Command for showing the Connection tool.
|
|
33
33
|
*/
|
|
34
34
|
showConnection: 'Show Connection',
|
|
35
35
|
/**
|
|
36
|
-
* @description Title of the 'Node' tool in the Network
|
|
36
|
+
* @description Title of the 'Node' tool in the Network navigator view, which is part of the Sources tool.
|
|
37
37
|
*/
|
|
38
38
|
networkTitle: 'Node',
|
|
39
39
|
/**
|
|
40
|
-
* @description Command for showing the 'Node' tool in the Network
|
|
40
|
+
* @description Command for showing the 'Node' tool in the Network navigator view, which is part of the Sources tool.
|
|
41
41
|
*/
|
|
42
42
|
showNode: 'Show Node',
|
|
43
43
|
/**
|
|
44
|
-
* @description Text in Application
|
|
44
|
+
* @description Text in Application panel sidebar of the Application panel.
|
|
45
45
|
*/
|
|
46
46
|
application: 'Application',
|
|
47
47
|
/**
|
|
48
|
-
* @description Command for showing the
|
|
48
|
+
* @description Command for showing the Application tool.
|
|
49
49
|
*/
|
|
50
50
|
showApplication: 'Show Application',
|
|
51
51
|
} as const;
|
|
@@ -81,9 +81,10 @@ UI.ViewManager.registerViewExtension({
|
|
|
81
81
|
commandPrompt: i18nLazyString(UIStrings.showNode),
|
|
82
82
|
order: 2,
|
|
83
83
|
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
84
|
-
async loadView() {
|
|
84
|
+
async loadView(universe) {
|
|
85
85
|
const Sources = await loadSourcesModule();
|
|
86
|
-
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
86
|
+
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
87
|
+
{forceNew: null, networkProjectManager: universe.networkProjectManager});
|
|
87
88
|
},
|
|
88
89
|
});
|
|
89
90
|
|
|
@@ -10,7 +10,7 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description
|
|
13
|
+
* @description Name of the primary target connection when debugging a service worker or dedicated worker.
|
|
14
14
|
*/
|
|
15
15
|
main: 'Main',
|
|
16
16
|
} as const;
|