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
|
@@ -19,23 +19,23 @@ import workspaceSettingsTabStyles from './workspaceSettingsTab.css.js';
|
|
|
19
19
|
|
|
20
20
|
const UIStrings = {
|
|
21
21
|
/**
|
|
22
|
-
* @description Text of a DOM element in Workspace
|
|
22
|
+
* @description Text of a DOM element in Workspace settings tab of the Workspace settings in Settings.
|
|
23
23
|
*/
|
|
24
24
|
workspace: 'Workspace',
|
|
25
25
|
/**
|
|
26
|
-
* @description Text of a DOM element in Workspace
|
|
26
|
+
* @description Text of a DOM element in Workspace settings tab of the Workspace settings in Settings.
|
|
27
27
|
*/
|
|
28
28
|
mappingsAreInferredAutomatically: 'Mappings are inferred automatically.',
|
|
29
29
|
/**
|
|
30
|
-
* @description Text of the add button in Workspace
|
|
30
|
+
* @description Text of the add button in Workspace settings tab of the Workspace settings in Settings.
|
|
31
31
|
*/
|
|
32
32
|
addFolder: 'Add folder',
|
|
33
33
|
/**
|
|
34
|
-
* @description Label element text content in Workspace
|
|
34
|
+
* @description Label element text content in Workspace settings tab of the Workspace settings in Settings.
|
|
35
35
|
*/
|
|
36
36
|
folderExcludePattern: 'Exclude from workspace',
|
|
37
37
|
/**
|
|
38
|
-
* @description Label for an item to remove something
|
|
38
|
+
* @description Label for an item to remove something.
|
|
39
39
|
*/
|
|
40
40
|
remove: 'Remove',
|
|
41
41
|
} as const;
|
|
@@ -24,38 +24,38 @@ import syncSectionStyles from './syncSection.css.js';
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description Text shown to the user in
|
|
27
|
+
* @description Text shown to the user in Settings. ‘This setting’ refers
|
|
28
28
|
* to a checkbox that is disabled.
|
|
29
29
|
*/
|
|
30
30
|
syncDisabled: 'To turn this setting on, you must enable Chrome sync.',
|
|
31
31
|
/**
|
|
32
|
-
* @description Text shown to the user in
|
|
33
|
-
* for saving DevTools settings to the user
|
|
32
|
+
* @description Text shown to the user in Settings. Explains why the checkbox
|
|
33
|
+
* for saving DevTools settings to the user’s Google account is inactive.
|
|
34
34
|
*/
|
|
35
35
|
preferencesSyncDisabled: 'You need to first enable saving `Chrome` settings in your `Google` account.',
|
|
36
36
|
/**
|
|
37
|
-
* @description Label for the account email address. Shown in
|
|
37
|
+
* @description Label for the account email address. Shown in DevTools Settings in
|
|
38
38
|
* front of the email address currently used for Chrome Sync.
|
|
39
39
|
*/
|
|
40
40
|
signedIn: 'Signed into Chrome as:',
|
|
41
41
|
/**
|
|
42
|
-
* @description Label for the account settings. Shown in
|
|
43
|
-
*
|
|
42
|
+
* @description Label for the account settings. Shown in DevTools Settings when
|
|
43
|
+
* the user is not logged in to Chrome.
|
|
44
44
|
*/
|
|
45
|
-
notSignedIn: 'You
|
|
45
|
+
notSignedIn: 'You’re not signed into Chrome.',
|
|
46
46
|
/**
|
|
47
47
|
* @description Label for the Google Developer Program profile status that corresponds to
|
|
48
|
-
* standard plan (
|
|
48
|
+
* the standard plan (no subscription).
|
|
49
49
|
*/
|
|
50
50
|
gdpStandardPlan: 'Standard plan',
|
|
51
51
|
/**
|
|
52
52
|
* @description Label for the Google Developer Program subscription status that corresponds to
|
|
53
|
-
* `PREMIUM_ANNUAL` plan.
|
|
53
|
+
* the `PREMIUM_ANNUAL` plan.
|
|
54
54
|
*/
|
|
55
55
|
gdpPremiumSubscription: 'Premium',
|
|
56
56
|
/**
|
|
57
57
|
* @description Label for the Google Developer Program subscription status that corresponds to
|
|
58
|
-
* `PRO_ANNUAL` plan.
|
|
58
|
+
* the `PRO_ANNUAL` plan.
|
|
59
59
|
*/
|
|
60
60
|
gdpProSubscription: 'Pro',
|
|
61
61
|
/**
|
|
@@ -64,7 +64,7 @@ const UIStrings = {
|
|
|
64
64
|
*/
|
|
65
65
|
gdpUnknownSubscription: 'Unknown plan',
|
|
66
66
|
/**
|
|
67
|
-
* @description Label for
|
|
67
|
+
* @description Label for sign-up button for Google Developer Program profiles.
|
|
68
68
|
*/
|
|
69
69
|
signUp: 'Sign up',
|
|
70
70
|
/**
|
|
@@ -72,7 +72,7 @@ const UIStrings = {
|
|
|
72
72
|
*/
|
|
73
73
|
viewProfile: 'View profile',
|
|
74
74
|
/**
|
|
75
|
-
* @description Text for tooltip shown on hovering over
|
|
75
|
+
* @description Text for tooltip shown on hovering over “Relevant data” in the disclaimer text for GDP badges.
|
|
76
76
|
*/
|
|
77
77
|
tooltipDisclaimerText:
|
|
78
78
|
'When you qualify for a badge, the badge’s identifier and the type of activity you did to earn it are sent to Google',
|
|
@@ -16,25 +16,25 @@ import devicesSettingsTabStyles from './devicesSettingsTab.css.js';
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description Title for a section of the UI that shows all of the custom devices the user can emulate, in the
|
|
19
|
+
* @description Title for a section of the UI that shows all of the custom devices the user can emulate, in the device toolbar.
|
|
20
20
|
*/
|
|
21
21
|
customDevices: 'Custom devices',
|
|
22
22
|
/**
|
|
23
|
-
* @description Title for a section of the UI that shows all of the default devices the user can emulate, in the
|
|
23
|
+
* @description Title for a section of the UI that shows all of the default devices the user can emulate, in the device toolbar.
|
|
24
24
|
*/
|
|
25
25
|
defaultDevices: 'Default devices',
|
|
26
26
|
/**
|
|
27
|
-
* @description Button to add a custom device (e.g
|
|
27
|
+
* @description Button to add a custom device (e.g., phone, tablet) to the device toolbar.
|
|
28
28
|
*/
|
|
29
29
|
addCustomDevice: 'Add custom device',
|
|
30
30
|
/**
|
|
31
|
-
* @description Label/title for UI to add a new custom device type. Device means mobile/tablet etc.
|
|
31
|
+
* @description Label/title for UI to add a new custom device type. Device means mobile/tablet, etc.
|
|
32
32
|
*/
|
|
33
33
|
device: 'Device',
|
|
34
34
|
/**
|
|
35
35
|
* @description Placeholder for text input for the name of a custom device.
|
|
36
36
|
*/
|
|
37
|
-
deviceName: 'Device
|
|
37
|
+
deviceName: 'Device name',
|
|
38
38
|
/**
|
|
39
39
|
* @description Placeholder text for text input for the width of a custom device in pixels.
|
|
40
40
|
*/
|
|
@@ -48,32 +48,32 @@ const UIStrings = {
|
|
|
48
48
|
*/
|
|
49
49
|
devicePixelRatio: 'Device pixel ratio',
|
|
50
50
|
/**
|
|
51
|
-
* @description Label in the Devices settings
|
|
51
|
+
* @description Label in the Devices settings tab for the user agent string input of a custom device.
|
|
52
52
|
*/
|
|
53
53
|
userAgentString: 'User agent string',
|
|
54
54
|
/**
|
|
55
|
-
* @description Tooltip text for a drop-down in the Devices settings
|
|
56
|
-
* 'Type' refers to different options
|
|
55
|
+
* @description Tooltip text for a drop-down in the Devices settings tab for the user agent type input of a custom device.
|
|
56
|
+
* 'Type' refers to different options, such as mobile or desktop.
|
|
57
57
|
*/
|
|
58
58
|
userAgentType: 'User agent type',
|
|
59
59
|
/**
|
|
60
|
-
* @description Error message in the Devices settings
|
|
60
|
+
* @description Error message in the Devices settings tab that declares the maximum length of the device name input.
|
|
61
61
|
* @example {50} PH1
|
|
62
62
|
*/
|
|
63
63
|
deviceNameMustBeLessThanS: 'Device name must be less than {PH1} characters.',
|
|
64
64
|
/**
|
|
65
|
-
* @description Error message in the Devices settings
|
|
65
|
+
* @description Error message in the Devices settings tab that declares that the device name input must not be empty.
|
|
66
66
|
*/
|
|
67
|
-
deviceNameCannotBeEmpty: 'Device name
|
|
67
|
+
deviceNameCannotBeEmpty: 'Device name can’t be empty.',
|
|
68
68
|
/**
|
|
69
69
|
* @description Success message for screen readers when device is added.
|
|
70
70
|
* @example {TestDevice} PH1
|
|
71
71
|
*/
|
|
72
72
|
deviceAddedOrUpdated: 'Device {PH1} successfully added/updated.',
|
|
73
73
|
/**
|
|
74
|
-
* @description Error message in the Devices settings
|
|
74
|
+
* @description Error message in the Devices settings tab shown when the user agent string is empty.
|
|
75
75
|
*/
|
|
76
|
-
userAgentStringCannotBeEmpty: 'User agent string
|
|
76
|
+
userAgentStringCannotBeEmpty: 'User agent string can’t be empty.',
|
|
77
77
|
} as const;
|
|
78
78
|
const str_ = i18n.i18n.registerUIStrings('panels/settings/emulation/DevicesSettingsTab.ts', UIStrings);
|
|
79
79
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -22,12 +22,12 @@ const {html} = Lit;
|
|
|
22
22
|
|
|
23
23
|
const UIStrings = {
|
|
24
24
|
/**
|
|
25
|
-
* @description Title for user agent client hints form
|
|
25
|
+
* @description Title for user agent client hints form.
|
|
26
26
|
*/
|
|
27
27
|
title: 'User agent client hints',
|
|
28
28
|
/**
|
|
29
29
|
* @description Heading for user agent section.
|
|
30
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
30
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
31
31
|
*/
|
|
32
32
|
useragent: 'User agent (Sec-CH-UA)',
|
|
33
33
|
/**
|
|
@@ -36,60 +36,60 @@ const UIStrings = {
|
|
|
36
36
|
fullVersionList: 'Full version list (Sec-CH-UA-Full-Version-List)',
|
|
37
37
|
/**
|
|
38
38
|
* @description ARIA label for a form with properties for a single brand in a brand list. The form includes a brand name input field, a version
|
|
39
|
-
* input field and a delete icon.
|
|
39
|
+
* input field and a delete icon. Brands refer to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
40
40
|
*/
|
|
41
41
|
brandProperties: 'User agent properties',
|
|
42
42
|
/**
|
|
43
|
-
* @description Input field placeholder for
|
|
44
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
43
|
+
* @description Input field placeholder for brand’s browser name.
|
|
44
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
45
45
|
*/
|
|
46
46
|
brandName: 'Brand',
|
|
47
47
|
/**
|
|
48
|
-
* @description
|
|
49
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
48
|
+
* @description ARIA label for brand’s browser name input field.
|
|
49
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
50
50
|
* @example {index} PH1
|
|
51
51
|
*/
|
|
52
52
|
brandNameAriaLabel: 'Brand {PH1}',
|
|
53
53
|
/**
|
|
54
54
|
* @description Input field placeholder for significant brand version.
|
|
55
|
-
* Brands here relate to different browser brands/vendors like Google Chrome (v89), Microsoft Edge (v92) etc.
|
|
55
|
+
* Brands here relate to different browser brands/vendors like Google Chrome (v89), Microsoft Edge (v92), etc.
|
|
56
56
|
*/
|
|
57
57
|
significantBrandVersionPlaceholder: 'Significant version (e.g. 87)',
|
|
58
58
|
/**
|
|
59
59
|
* @description Input field placeholder for brand version.
|
|
60
|
-
* Brands here relate to different browser brands/vendors like Google Chrome (v89), Microsoft Edge (v92) etc.
|
|
60
|
+
* Brands here relate to different browser brands/vendors like Google Chrome (v89), Microsoft Edge (v92), etc.
|
|
61
61
|
*/
|
|
62
62
|
brandVersionPlaceholder: 'Version (e.g. 87.0.4280.88)',
|
|
63
63
|
/**
|
|
64
|
-
* @description
|
|
65
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
64
|
+
* @description ARIA label for brand’s browser version input field.
|
|
65
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
66
66
|
* @example {index} PH1
|
|
67
67
|
*/
|
|
68
68
|
brandVersionAriaLabel: 'Version {PH1}',
|
|
69
69
|
/**
|
|
70
70
|
* @description Button title for adding another brand in brands section to client hints.
|
|
71
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
71
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
72
72
|
*/
|
|
73
|
-
addBrand: 'Add
|
|
73
|
+
addBrand: 'Add brand',
|
|
74
74
|
/**
|
|
75
|
-
* @description Tooltip and
|
|
76
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
75
|
+
* @description Tooltip and ARIA label for delete icon for deleting browser brand from brands user agent section.
|
|
76
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
77
77
|
*/
|
|
78
78
|
brandUserAgentDelete: 'Delete brand from user agent section',
|
|
79
79
|
/**
|
|
80
|
-
* @description Tooltip and
|
|
81
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
80
|
+
* @description Tooltip and ARIA label for delete icon for deleting user agent from brands full version list.
|
|
81
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
82
82
|
*/
|
|
83
83
|
brandFullVersionListDelete: 'Delete brand from full version list',
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* @description Heading for the form factors section.
|
|
87
87
|
*/
|
|
88
|
-
formFactorsTitle: 'Form
|
|
88
|
+
formFactorsTitle: 'Form factors (Sec-CH-UA-Form-Factors)',
|
|
89
89
|
/**
|
|
90
90
|
* @description ARIA label for the group of form factor checkboxes.
|
|
91
91
|
*/
|
|
92
|
-
formFactorsGroupAriaLabel: 'Available
|
|
92
|
+
formFactorsGroupAriaLabel: 'Available form factors',
|
|
93
93
|
/**
|
|
94
94
|
* @description Form factor option: Desktop.
|
|
95
95
|
*/
|
|
@@ -128,7 +128,7 @@ const UIStrings = {
|
|
|
128
128
|
*/
|
|
129
129
|
fullBrowserVersionPlaceholder: 'Full browser version (e.g. 87.0.4280.88)',
|
|
130
130
|
/**
|
|
131
|
-
* @description Label for platform heading section
|
|
131
|
+
* @description Label for platform heading section. Platform relates to OS like Android, Windows, etc.
|
|
132
132
|
*/
|
|
133
133
|
platformLabel: 'Platform (Sec-CH-UA-Platform / Sec-CH-UA-Platform-Version)',
|
|
134
134
|
/**
|
|
@@ -136,31 +136,31 @@ const UIStrings = {
|
|
|
136
136
|
*/
|
|
137
137
|
platformProperties: 'Platform properties',
|
|
138
138
|
/**
|
|
139
|
-
* @description Version for platform input field
|
|
139
|
+
* @description Version for platform input field. Platform relates to OS like Android, Windows, etc.
|
|
140
140
|
*/
|
|
141
141
|
platformVersion: 'Platform version',
|
|
142
142
|
/**
|
|
143
|
-
* @description Placeholder for platform name input field
|
|
143
|
+
* @description Placeholder for platform name input field. Platform relates to OS like Android, Windows, etc.
|
|
144
144
|
*/
|
|
145
145
|
platformPlaceholder: 'Platform (e.g. Android)',
|
|
146
146
|
/**
|
|
147
|
-
* @description Label for architecture (
|
|
147
|
+
* @description Label for architecture (e.g., x86, x64, arm) input field.
|
|
148
148
|
*/
|
|
149
149
|
architecture: 'Architecture (Sec-CH-UA-Arch)',
|
|
150
150
|
/**
|
|
151
|
-
* @description Placeholder for architecture (
|
|
151
|
+
* @description Placeholder for architecture (e.g., x86, x64, arm) input field.
|
|
152
152
|
*/
|
|
153
153
|
architecturePlaceholder: 'Architecture (e.g. x86)',
|
|
154
154
|
/**
|
|
155
|
-
* @description Device model row, including device model input field and mobile checkbox
|
|
155
|
+
* @description Device model row, including device model input field and mobile checkbox.
|
|
156
156
|
*/
|
|
157
157
|
deviceProperties: 'Device properties',
|
|
158
158
|
/**
|
|
159
|
-
* @description Label for
|
|
159
|
+
* @description Label for device model input field.
|
|
160
160
|
*/
|
|
161
161
|
deviceModel: 'Device model (Sec-CH-UA-Model)',
|
|
162
162
|
/**
|
|
163
|
-
* @description Label for
|
|
163
|
+
* @description Label for mobile phone checkbox.
|
|
164
164
|
*/
|
|
165
165
|
mobileCheckboxLabel: 'Mobile',
|
|
166
166
|
/**
|
|
@@ -168,7 +168,7 @@ const UIStrings = {
|
|
|
168
168
|
*/
|
|
169
169
|
update: 'Update',
|
|
170
170
|
/**
|
|
171
|
-
* @description Field
|
|
171
|
+
* @description Field error message in the Devices settings tab that shows that the entered value has characters that can't be represented in the corresponding user agent client hints.
|
|
172
172
|
*/
|
|
173
173
|
notRepresentable: 'Not representable as structured headers string.',
|
|
174
174
|
/**
|
|
@@ -178,16 +178,16 @@ const UIStrings = {
|
|
|
178
178
|
'User agent client hints are an alternative to the user agent string that identify the browser and the device in a more structured way with better privacy accounting.',
|
|
179
179
|
/**
|
|
180
180
|
* @description Success message when brand row is successfully added in client hints form.
|
|
181
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
181
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
182
182
|
*/
|
|
183
183
|
addedBrand: 'Added brand row',
|
|
184
184
|
/**
|
|
185
185
|
* @description Success message when brand row is successfully deleted in client hints form.
|
|
186
|
-
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge etc.
|
|
186
|
+
* Brands here relate to different browser brands/vendors like Google Chrome, Microsoft Edge, etc.
|
|
187
187
|
*/
|
|
188
188
|
deletedBrand: 'Deleted brand row',
|
|
189
189
|
/**
|
|
190
|
-
* @description Text that is usually a hyperlink to more documentation
|
|
190
|
+
* @description Text that is usually a hyperlink to more documentation.
|
|
191
191
|
*/
|
|
192
192
|
learnMore: 'Learn more',
|
|
193
193
|
} as const;
|
|
@@ -9,7 +9,7 @@ import type * as Emulation from './emulation.js';
|
|
|
9
9
|
|
|
10
10
|
const UIStrings = {
|
|
11
11
|
/**
|
|
12
|
-
* @description Title of the Devices tab/tool. Devices refers to e.g
|
|
12
|
+
* @description Title of the Devices tab/tool. Devices refers to e.g., phones/tablets.
|
|
13
13
|
*/
|
|
14
14
|
devices: 'Devices',
|
|
15
15
|
/**
|
|
@@ -13,59 +13,59 @@ import type * as Settings from './settings.js';
|
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
16
|
-
* @description Text for keyboard shortcuts
|
|
16
|
+
* @description Text for keyboard shortcuts.
|
|
17
17
|
*/
|
|
18
18
|
shortcuts: 'Shortcuts',
|
|
19
19
|
/**
|
|
20
|
-
* @description Text in Settings
|
|
20
|
+
* @description Text in Settings.
|
|
21
21
|
*/
|
|
22
22
|
preferences: 'Preferences',
|
|
23
23
|
/**
|
|
24
|
-
* @description Text in Settings
|
|
24
|
+
* @description Text in Settings.
|
|
25
25
|
*/
|
|
26
26
|
experiments: 'Experiments',
|
|
27
27
|
/**
|
|
28
|
-
* @description Title of Ignore list settings
|
|
28
|
+
* @description Title of Ignore list settings.
|
|
29
29
|
*/
|
|
30
30
|
ignoreList: 'Ignore list',
|
|
31
31
|
/**
|
|
32
|
-
* @description Command for showing the keyboard shortcuts in Settings
|
|
32
|
+
* @description Command for showing the keyboard shortcuts in Settings.
|
|
33
33
|
*/
|
|
34
34
|
showShortcuts: 'Show Shortcuts',
|
|
35
35
|
/**
|
|
36
|
-
* @description Command for showing the
|
|
36
|
+
* @description Command for showing the Preferences tab in Settings.
|
|
37
37
|
*/
|
|
38
38
|
showPreferences: 'Show Preferences',
|
|
39
39
|
/**
|
|
40
|
-
* @description Command for showing the
|
|
40
|
+
* @description Command for showing the Experiments tab in Settings.
|
|
41
41
|
*/
|
|
42
42
|
showExperiments: 'Show Experiments',
|
|
43
43
|
/**
|
|
44
|
-
* @description Command for showing the Ignore list settings
|
|
44
|
+
* @description Command for showing the Ignore list settings.
|
|
45
45
|
*/
|
|
46
46
|
showIgnoreList: 'Show Ignore list',
|
|
47
47
|
/**
|
|
48
|
-
* @description Name of the Settings view
|
|
48
|
+
* @description Name of the Settings view.
|
|
49
49
|
*/
|
|
50
50
|
settings: 'Settings',
|
|
51
51
|
/**
|
|
52
|
-
* @description Text for the documentation of something
|
|
52
|
+
* @description Text for the documentation of something.
|
|
53
53
|
*/
|
|
54
54
|
documentation: 'Documentation',
|
|
55
55
|
/**
|
|
56
|
-
* @description Text for AI
|
|
56
|
+
* @description Text for AI innovations settings.
|
|
57
57
|
*/
|
|
58
58
|
aiInnovations: 'AI innovations',
|
|
59
59
|
/**
|
|
60
|
-
* @description Command for showing the AI
|
|
60
|
+
* @description Command for showing the AI innovations settings.
|
|
61
61
|
*/
|
|
62
62
|
showAiInnovations: 'Show AI innovations',
|
|
63
63
|
/**
|
|
64
|
-
* @description Text of a DOM element in Workspace
|
|
64
|
+
* @description Text of a DOM element in Workspace settings tab of the Workspace settings in Settings.
|
|
65
65
|
*/
|
|
66
66
|
workspace: 'Workspace',
|
|
67
67
|
/**
|
|
68
|
-
* @description Command for showing the Workspace tool in Settings
|
|
68
|
+
* @description Command for showing the Workspace tool in Settings.
|
|
69
69
|
*/
|
|
70
70
|
showWorkspace: 'Show Workspace settings',
|
|
71
71
|
} as const;
|
|
@@ -186,7 +186,8 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
186
186
|
private groupByAuthored?: boolean;
|
|
187
187
|
private groupByDomain?: boolean;
|
|
188
188
|
private groupByFolder?: boolean;
|
|
189
|
-
constructor(jslogContext: string,
|
|
189
|
+
constructor(jslogContext: string, networkProjectManager: Bindings.NetworkProject.NetworkProjectManager,
|
|
190
|
+
enableAuthoredGrouping?: boolean) {
|
|
190
191
|
super({
|
|
191
192
|
jslog: `${VisualLogging.pane(jslogContext).track({resize: true})}`,
|
|
192
193
|
useShadowDom: true,
|
|
@@ -242,10 +243,10 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
242
243
|
SDK.TargetManager.TargetManager.instance().observeTargets(this);
|
|
243
244
|
this.resetWorkspace(Workspace.Workspace.WorkspaceImpl.instance());
|
|
244
245
|
this.#workspace.uiSourceCodes().forEach(this.addUISourceCode.bind(this));
|
|
245
|
-
Bindings.NetworkProject.
|
|
246
|
-
|
|
247
|
-
Bindings.NetworkProject.
|
|
248
|
-
|
|
246
|
+
networkProjectManager.addEventListener(Bindings.NetworkProject.Events.FRAME_ATTRIBUTION_ADDED,
|
|
247
|
+
this.frameAttributionAdded, this);
|
|
248
|
+
networkProjectManager.addEventListener(Bindings.NetworkProject.Events.FRAME_ATTRIBUTION_REMOVED,
|
|
249
|
+
this.frameAttributionRemoved, this);
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
private static treeElementOrder(treeElement: UI.TreeOutline.TreeElement): number {
|
|
@@ -726,7 +727,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
726
727
|
overlayModel.highlightFrame(frame.id);
|
|
727
728
|
}
|
|
728
729
|
} else {
|
|
729
|
-
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
|
|
730
|
+
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight(SDK.TargetManager.TargetManager.instance());
|
|
730
731
|
}
|
|
731
732
|
}
|
|
732
733
|
return frameNode;
|
|
@@ -76,40 +76,55 @@ interface ViewInput {
|
|
|
76
76
|
scope: SDK.DebuggerModel.ScopeChainEntry,
|
|
77
77
|
objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
|
|
78
78
|
}>|null;
|
|
79
|
+
onToggle: (objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree, expanded: boolean) => void;
|
|
80
|
+
onContextMenu: (
|
|
81
|
+
objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
|
|
82
|
+
contextMenu: UI.ContextMenu.ContextMenu,
|
|
83
|
+
) => void;
|
|
79
84
|
}
|
|
80
85
|
type View = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
81
86
|
export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const section = new ObjectUI.ObjectPropertiesSection.RootElement(objectTree, input.linkifier, emptyPlaceholder);
|
|
93
|
-
section.listItemElement.classList.add('scope-chain-sidebar-pane-section');
|
|
94
|
-
section.listItemElement.setAttribute('aria-label', title);
|
|
95
|
-
|
|
96
|
-
const titleNode = document.createDocumentFragment();
|
|
97
|
-
// eslint-disable-next-line @devtools/no-lit-render-outside-of-view
|
|
98
|
-
render(
|
|
99
|
-
html`<div class='scope-chain-sidebar-pane-section-header tree-element-title'>${
|
|
100
|
-
icon ? html`<img class=scope-chain-sidebar-pane-section-icon src=${icon}>` : nothing}
|
|
101
|
-
<div class=scope-chain-sidebar-pane-section-subtitle>${subtitle}</div>
|
|
102
|
-
<div class=scope-chain-sidebar-pane-section-title>${title}</div>
|
|
103
|
-
</div>`,
|
|
104
|
-
titleNode);
|
|
105
|
-
section.title = titleNode;
|
|
87
|
+
const createScopeSection = ({scope, objectTree}: {
|
|
88
|
+
scope: SDK.DebuggerModel.ScopeChainEntry,
|
|
89
|
+
objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
|
|
90
|
+
}): TemplateResult => {
|
|
91
|
+
let emptyPlaceholder: Common.UIString.LocalizedString|null = null;
|
|
92
|
+
if (scope.type() === Protocol.Debugger.ScopeType.Local || scope.type() === Protocol.Debugger.ScopeType.Closure) {
|
|
93
|
+
emptyPlaceholder = i18nString(UIStrings.noVariables);
|
|
94
|
+
}
|
|
95
|
+
const icon = scope.icon();
|
|
96
|
+
const {title, subtitle} = scopeTitle(scope);
|
|
106
97
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
98
|
+
// clang-format off
|
|
99
|
+
return html`
|
|
100
|
+
<li role="treeitem"
|
|
101
|
+
class="scope-chain-sidebar-pane-section"
|
|
102
|
+
aria-label=${title}
|
|
103
|
+
?open=${objectTree.expanded}
|
|
104
|
+
@expand=${(e: Event) => {
|
|
105
|
+
const customEvent = e as UI.TreeOutline.TreeViewElement.ExpandEvent;
|
|
106
|
+
input.onToggle(objectTree, customEvent.detail.expanded);
|
|
107
|
+
}}
|
|
108
|
+
@contextmenu=${(e: Event) => {
|
|
109
|
+
const contextMenu = new UI.ContextMenu.ContextMenu(e);
|
|
110
|
+
input.onContextMenu(objectTree, contextMenu);
|
|
111
|
+
void contextMenu.show();
|
|
112
|
+
}}>
|
|
113
|
+
<div class="scope-chain-sidebar-pane-section-header"
|
|
114
|
+
@click=${() => {
|
|
115
|
+
input.onToggle(objectTree, !objectTree.expanded);
|
|
116
|
+
}}>
|
|
117
|
+
${icon ? html`<img class="scope-chain-sidebar-pane-section-icon" src=${icon}>` : nothing}
|
|
118
|
+
<div class="scope-chain-sidebar-pane-section-title">${title}</div>
|
|
119
|
+
<div class="scope-chain-sidebar-pane-section-subtitle">${subtitle}</div>
|
|
120
|
+
</div>
|
|
110
121
|
|
|
111
|
-
|
|
112
|
-
|
|
122
|
+
${objectTree.expanded
|
|
123
|
+
? ObjectUI.ObjectPropertiesSection.renderObjectTree(objectTree, input.linkifier, emptyPlaceholder)
|
|
124
|
+
: html`<ul role="group"></ul>`}
|
|
125
|
+
</li>`;
|
|
126
|
+
// clang-format on
|
|
127
|
+
};
|
|
113
128
|
|
|
114
129
|
render(
|
|
115
130
|
// clang-format off
|
|
@@ -121,7 +136,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
121
136
|
<style>${ObjectUI.ObjectPropertiesSection.objectValueStyles}</style>
|
|
122
137
|
<style>${ObjectUI.ObjectPropertiesSection.objectPropertiesSectionStyles}</style>
|
|
123
138
|
<style>${scopeChainSidebarPaneStyles}</style>
|
|
124
|
-
${input.scopeChain?.map(
|
|
139
|
+
${input.scopeChain?.map(item => createScopeSection(item)) ?? nothing}
|
|
125
140
|
</ul>`}>
|
|
126
141
|
</devtools-tree>` : html`
|
|
127
142
|
<div class=gray-info-message tabindex=-1>${
|
|
@@ -212,13 +227,41 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
212
227
|
}
|
|
213
228
|
|
|
214
229
|
override performUpdate(): void {
|
|
215
|
-
this.#view(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
230
|
+
this.#view({
|
|
231
|
+
linkifier: this.#linkifier,
|
|
232
|
+
isPaused: Boolean(this.#scopeChainModel),
|
|
233
|
+
scopeChain: this.#scopeChain,
|
|
234
|
+
onToggle: (objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree, expanded: boolean) => {
|
|
235
|
+
objectTree.expanded = expanded;
|
|
236
|
+
this.requestUpdate();
|
|
237
|
+
},
|
|
238
|
+
onContextMenu: (
|
|
239
|
+
objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
|
|
240
|
+
contextMenu: UI.ContextMenu.ContextMenu,
|
|
241
|
+
) => {
|
|
242
|
+
ObjectUI.ObjectPropertiesSection.populateObjectTreeContextMenu(
|
|
243
|
+
contextMenu,
|
|
244
|
+
objectTree,
|
|
245
|
+
async () => {
|
|
246
|
+
await objectTree.expandRecursively(ObjectUI.ObjectPropertiesSection.EXPANDABLE_MAX_DEPTH);
|
|
247
|
+
this.requestUpdate();
|
|
248
|
+
},
|
|
249
|
+
() => {
|
|
250
|
+
objectTree.collapseRecursively();
|
|
251
|
+
this.requestUpdate();
|
|
252
|
+
},
|
|
253
|
+
() => {
|
|
254
|
+
objectTree.sortPropertiesAlphabetically = !objectTree.sortPropertiesAlphabetically;
|
|
255
|
+
this.requestUpdate();
|
|
256
|
+
},
|
|
257
|
+
() => {
|
|
258
|
+
objectTree.includeNullOrUndefinedValues = !objectTree.includeNullOrUndefinedValues;
|
|
259
|
+
this.requestUpdate();
|
|
260
|
+
},
|
|
261
|
+
);
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
{}, this.contentElement);
|
|
222
265
|
}
|
|
223
266
|
|
|
224
267
|
#buildScopeChain({scopeChain}: SourceMapScopes.ScopeChainModel.ScopeChain): void {
|
|
@@ -240,6 +283,9 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
240
283
|
readOnly: false,
|
|
241
284
|
expansionTracker,
|
|
242
285
|
});
|
|
286
|
+
objectTree.addEventListener(ObjectUI.ObjectPropertiesSection.ObjectTreeNodeBase.Events.CHILDREN_CHANGED, () => {
|
|
287
|
+
this.requestUpdate();
|
|
288
|
+
});
|
|
243
289
|
void expansionTracker.apply(objectTree);
|
|
244
290
|
objectTree.addExtraProperties(...scope.extraProperties());
|
|
245
291
|
if (scope.type() === Protocol.Debugger.ScopeType.Global) {
|