chrome-devtools-frontend 1.0.1657855 → 1.0.1661063
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/evaluate-ai-css-completion/SKILL.md +133 -0
- package/.agents/skills/evaluate-ai-css-completion/scripts/evaluate.js +76 -0
- package/.agents/skills/migrate-chromium-test/SKILL.md +15 -70
- 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/eslint.config.mjs +7 -0
- package/extension-api/ExtensionAPI.d.ts +88 -0
- package/front_end/Tests.js +6 -6
- package/front_end/core/common/Gzip.ts +12 -5
- package/front_end/core/host/AidaClient.ts +35 -9
- package/front_end/core/host/GdpClient.ts +10 -7
- package/front_end/core/host/InspectorFrontendHost.ts +1 -0
- package/front_end/core/host/InspectorFrontendHostStub.ts +2 -0
- package/front_end/core/platform/StringUtilities.ts +55 -4
- 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 +10 -5
- 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 +7 -1
- package/front_end/core/sdk/DOMModel.ts +33 -18
- package/front_end/core/sdk/DebuggerModel.ts +4 -4
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -0
- package/front_end/core/sdk/FrameManager.ts +1 -0
- package/front_end/core/sdk/IsolateManager.ts +1 -0
- package/front_end/core/sdk/NetworkManager.ts +59 -11
- package/front_end/core/sdk/NetworkRequest.ts +38 -1
- package/front_end/core/sdk/OverlayModel.ts +45 -6
- package/front_end/core/sdk/PageResourceLoader.ts +2 -0
- 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/SourceMap.ts +5 -5
- package/front_end/core/sdk/SourceMapManager.ts +3 -2
- package/front_end/core/sdk/TargetManager.ts +14 -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/formatter_worker/FormattedContentBuilder.ts +5 -2
- package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +26 -4
- 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 +20 -22
- package/front_end/entrypoints/main/main-meta.ts +42 -42
- package/front_end/entrypoints/node_app/node_app.ts +3 -2
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/foundation/Universe.ts +44 -1
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/SupportedCSSProperties.js +19 -12
- package/front_end/generated/protocol.ts +3 -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/CompilerScriptMapping.ts +7 -7
- package/front_end/models/bindings/ContentProviderBasedProject.ts +4 -4
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +5 -5
- package/front_end/models/bindings/DefaultScriptMapping.ts +3 -3
- package/front_end/models/bindings/NetworkProject.ts +5 -10
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +3 -4
- package/front_end/models/bindings/ResourceScriptMapping.ts +2 -3
- package/front_end/models/bindings/ResourceUtils.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +11 -9
- package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
- package/front_end/models/bindings/TempFile.ts +8 -3
- package/front_end/models/emulation/EmulatedDevices.ts +389 -8
- package/front_end/models/extensions/ExtensionAPI.ts +116 -52
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +13 -12
- package/front_end/models/formatter/ScriptFormatter.ts +8 -11
- 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 +27 -16
- 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 +11 -12
- package/front_end/models/issues_manager/IssueAggregator.ts +0 -9
- package/front_end/models/issues_manager/IssueResolver.ts +2 -2
- package/front_end/models/issues_manager/IssuesManager.ts +136 -137
- 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/issues_manager/issues_manager.ts +0 -2
- package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
- package/front_end/models/source_map_scopes/FunctionCodeResolver.ts +13 -10
- 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/WorkspaceImpl.ts +10 -1
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +10 -4
- 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 +9 -1
- 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 +4 -3
- package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -6
- package/front_end/panels/application/FrameDetailsView.ts +1 -1
- package/front_end/panels/application/IndexedDBViews.ts +220 -266
- 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 +53 -44
- package/front_end/panels/application/components/AdsView.ts +201 -30
- package/front_end/panels/application/components/adsView.css +25 -0
- package/front_end/panels/application/indexedDBViews.css +38 -9
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -2
- package/front_end/panels/application/preloading/helper/PreloadingForward.ts +2 -1
- 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 +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +2 -2
- package/front_end/panels/console/ConsolePrompt.ts +2 -2
- package/front_end/panels/console/ConsoleView.ts +3 -2
- package/front_end/panels/console/PromptBuilder.ts +2 -1
- package/front_end/panels/console/SymbolizedErrorWidget.ts +2 -1
- 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 +22 -22
- 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 +1 -1
- 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 +4 -1
- 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/emulation/DeviceModeView.ts +52 -70
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -1
- package/front_end/panels/issues/IssueView.ts +0 -2
- package/front_end/panels/issues/IssuesPane.ts +1 -8
- package/front_end/panels/js_timeline/js_timeline-meta.ts +3 -2
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +3 -3
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -5
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +4 -4
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +6 -6
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +8 -9
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplayUtils.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -1
- package/front_end/panels/linear_memory_inspector/linear_memory_inspector-meta.ts +2 -2
- package/front_end/panels/network/NetworkDataGridNode.ts +124 -36
- package/front_end/panels/network/NetworkLogView.ts +9 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +18 -0
- package/front_end/panels/network/NetworkPanel.ts +2 -1
- package/front_end/panels/network/RequestPayloadView.ts +68 -20
- package/front_end/panels/network/RequestPreviewView.ts +7 -1
- package/front_end/panels/network/RequestTimingView.ts +95 -127
- 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/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 +14 -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/recorder/{components/ControlButton.ts → ControlButton.ts} +9 -10
- package/front_end/panels/recorder/{components/CreateRecordingView.ts → CreateRecordingView.ts} +59 -58
- package/front_end/panels/recorder/ExtensionView.ts +123 -0
- package/front_end/panels/recorder/RecorderController.ts +102 -92
- package/front_end/panels/recorder/{components/RecordingListView.ts → RecordingListView.ts} +22 -23
- package/front_end/panels/recorder/{components/RecordingView.ts → RecordingView.ts} +99 -96
- package/front_end/panels/recorder/{components/ReplaySection.ts → ReplaySection.ts} +20 -20
- package/front_end/panels/recorder/{components/SelectorPicker.ts → SelectorPicker.ts} +13 -13
- package/front_end/panels/recorder/{components/StepEditor.ts → StepEditor.ts} +367 -336
- package/front_end/panels/recorder/{components/StepView.ts → StepView.ts} +48 -49
- package/front_end/panels/recorder/{components/TimelineSection.ts → TimelineSection.ts} +2 -2
- package/front_end/panels/recorder/models/RecorderSettings.ts +2 -2
- package/front_end/panels/recorder/recorder-meta.ts +7 -7
- package/front_end/panels/recorder/recorder.ts +23 -1
- package/front_end/panels/recorder/{components/recordingView.css → recordingView.css} +1 -1
- package/front_end/panels/recorder/util/util.ts +113 -0
- 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/InplaceFormatterEditorAction.ts +2 -2
- 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 +22 -21
- package/front_end/panels/sources/SourcesView.ts +10 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -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/IsolateSelector.ts +10 -8
- 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 +20 -8
- package/front_end/panels/timeline/TimelineUIUtils.ts +149 -131
- 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/timeline/timeline-meta.ts +3 -2
- 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/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/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 +6 -0
- package/front_end/ui/legacy/View.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +14 -15
- 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 +106 -38
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +2 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +4 -2
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +10 -1
- package/front_end/ui/legacy/inspectorCommon.css +5 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -0
- package/mcp/mcp.ts +2 -0
- package/package.json +4 -4
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -247
- package/front_end/models/issues_manager/descriptions/arInsecureContext.md +0 -7
- package/front_end/models/issues_manager/descriptions/arInvalidInfoHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +0 -6
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +0 -5
- package/front_end/models/issues_manager/descriptions/arNoWebOrOsSupport.md +0 -4
- package/front_end/models/issues_manager/descriptions/arOsSourceIgnored.md +0 -18
- package/front_end/models/issues_manager/descriptions/arOsTriggerIgnored.md +0 -19
- package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +0 -8
- package/front_end/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +0 -9
- package/front_end/models/issues_manager/descriptions/arSourceIgnored.md +0 -13
- package/front_end/models/issues_manager/descriptions/arTriggerIgnored.md +0 -12
- package/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +0 -10
- package/front_end/models/issues_manager/descriptions/arWebAndOsHeaders.md +0 -11
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -182
- package/front_end/panels/profiler/ProfileView.ts +0 -611
- package/front_end/panels/recorder/components/ExtensionView.ts +0 -132
- package/front_end/panels/recorder/components/components.ts +0 -25
- package/front_end/panels/recorder/components/util.ts +0 -116
- /package/front_end/panels/recorder/{components/controlButton.css → controlButton.css} +0 -0
- /package/front_end/panels/recorder/{components/createRecordingView.css → createRecordingView.css} +0 -0
- /package/front_end/panels/recorder/{components/extensionView.css → extensionView.css} +0 -0
- /package/front_end/panels/recorder/{components/recordingListView.css → recordingListView.css} +0 -0
- /package/front_end/panels/recorder/{components/replaySection.css → replaySection.css} +0 -0
- /package/front_end/panels/recorder/{components/selectorPicker.css → selectorPicker.css} +0 -0
- /package/front_end/panels/recorder/{components/startView.css → startView.css} +0 -0
- /package/front_end/panels/recorder/{components/stepEditor.css → stepEditor.css} +0 -0
- /package/front_end/panels/recorder/{components/stepView.css → stepView.css} +0 -0
- /package/front_end/panels/recorder/{components/timelineSection.css → timelineSection.css} +0 -0
|
@@ -15,11 +15,11 @@ import outermostTargetSelectorStyles from './outermostTargetSelector.css.js';
|
|
|
15
15
|
|
|
16
16
|
const UIStrings = {
|
|
17
17
|
/**
|
|
18
|
-
* @description Title of toolbar item in outermost target selector in the main toolbar
|
|
18
|
+
* @description Title of toolbar item in outermost target selector in the main toolbar.
|
|
19
19
|
*/
|
|
20
20
|
targetNotSelected: 'Page: Not selected',
|
|
21
21
|
/**
|
|
22
|
-
* @description Title of toolbar item in outermost target selector in the main toolbar
|
|
22
|
+
* @description Title of toolbar item in outermost target selector in the main toolbar.
|
|
23
23
|
* @example {top} PH1
|
|
24
24
|
*/
|
|
25
25
|
targetS: 'Page: {PH1}',
|
|
@@ -16,153 +16,152 @@ import renderingOptionsStyles from './renderingOptions.css.js';
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description The name of a checkbox setting in the Rendering
|
|
19
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting highlights areas
|
|
20
20
|
* of the webpage that need to be repainted (re-drawn by the browser).
|
|
21
21
|
*/
|
|
22
22
|
paintFlashing: 'Paint flashing',
|
|
23
23
|
/**
|
|
24
|
-
* @description Explanation text for the 'Paint flashing' setting in the Rendering
|
|
24
|
+
* @description Explanation text for the 'Paint flashing' setting in the Rendering panel.
|
|
25
25
|
*/
|
|
26
26
|
highlightsAreasOfThePageGreen:
|
|
27
27
|
'Highlights areas of the page (green) that need to be repainted. May not be suitable for people prone to photosensitive epilepsy.',
|
|
28
28
|
/**
|
|
29
|
-
* @description The name of a checkbox setting in the Rendering
|
|
29
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting highlights areas
|
|
30
30
|
* (regions) of the page that were shifted (where a 'layout shift' occurred). A layout shift is
|
|
31
31
|
* where elements on the webpage move around and cause other nearby elements to move as well.
|
|
32
32
|
*/
|
|
33
33
|
layoutShiftRegions: 'Layout shift regions',
|
|
34
34
|
/**
|
|
35
|
-
* @description Explanation text for the 'Layout
|
|
35
|
+
* @description Explanation text for the 'Layout shift regions' setting in the Rendering panel.
|
|
36
36
|
*/
|
|
37
37
|
highlightsAreasOfThePageBlueThat:
|
|
38
38
|
'Highlights areas of the page (blue) that were shifted. May not be suitable for people prone to photosensitive epilepsy.',
|
|
39
39
|
/**
|
|
40
|
-
* @description The name of a checkbox setting in the Rendering
|
|
40
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting shows the
|
|
41
41
|
* borders of layers on the page. Layer is a noun.
|
|
42
42
|
*/
|
|
43
43
|
layerBorders: 'Layer borders',
|
|
44
44
|
/**
|
|
45
|
-
* @description Explanation text for the 'Layer borders' setting in the Rendering
|
|
45
|
+
* @description Explanation text for the 'Layer borders' setting in the Rendering panel.
|
|
46
46
|
*/
|
|
47
47
|
showsLayerBordersOrangeoliveAnd: 'Shows layer borders (orange/olive) and tiles (cyan).',
|
|
48
48
|
/**
|
|
49
|
-
* @description The name of a checkbox setting in the Rendering
|
|
49
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting shows the
|
|
50
50
|
* rendering statistics for frames e.g. frames per second. Frame is a noun.
|
|
51
51
|
*/
|
|
52
|
-
frameRenderingStats: 'Frame
|
|
52
|
+
frameRenderingStats: 'Frame rendering stats',
|
|
53
53
|
/**
|
|
54
|
-
* @description Explanation text for the 'Frame
|
|
54
|
+
* @description Explanation text for the 'Frame rendering stats' setting in the Rendering panel.
|
|
55
55
|
* Plots is a verb. GPU = Graphics Processing Unit.
|
|
56
56
|
*/
|
|
57
57
|
plotsFrameThroughputDropped: 'Plots frame throughput, dropped frames distribution, and GPU memory.',
|
|
58
58
|
/**
|
|
59
|
-
* @description The name of a checkbox setting in the Rendering
|
|
59
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting highlights
|
|
60
60
|
* elements that can slow down scrolling on the page.
|
|
61
61
|
*/
|
|
62
62
|
scrollingPerformanceIssues: 'Scrolling performance issues',
|
|
63
63
|
/**
|
|
64
|
-
* @description Explanation text for the 'Scrolling performance issues' setting in the Rendering
|
|
64
|
+
* @description Explanation text for the 'Scrolling performance issues' setting in the Rendering panel.
|
|
65
65
|
*/
|
|
66
66
|
highlightsElementsTealThatCan:
|
|
67
67
|
'Highlights elements (teal) that can slow down scrolling, including touch & wheel event handlers and other main-thread scrolling situations.',
|
|
68
68
|
/**
|
|
69
|
-
* @description The name of a checkbox setting in the Rendering
|
|
69
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting highlights the
|
|
70
70
|
* rendering elements for ads that are found on the page.
|
|
71
71
|
*/
|
|
72
72
|
highlightAds: 'Highlight ads',
|
|
73
73
|
/**
|
|
74
|
-
* @description Explanation text for the 'Highlight ads' setting in the Rendering
|
|
74
|
+
* @description Explanation text for the 'Highlight ads' setting in the Rendering panel.
|
|
75
75
|
*/
|
|
76
76
|
highlightsElementsRedDetectedToBe: 'Highlights elements (red) detected to be ads.',
|
|
77
77
|
/**
|
|
78
|
-
* @description The name of a checkbox setting in the Rendering
|
|
78
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting prevents the
|
|
79
79
|
* webpage from loading 'local' fonts. Local fonts are fonts that are installed on the user's
|
|
80
80
|
* computer, and not loaded over the network.
|
|
81
81
|
*/
|
|
82
82
|
disableLocalFonts: 'Disable local fonts',
|
|
83
83
|
/**
|
|
84
|
-
* @description Explanation text for the 'Disable local fonts' setting in the Rendering
|
|
84
|
+
* @description Explanation text for the 'Disable local fonts' setting in the Rendering panel.
|
|
85
85
|
*/
|
|
86
86
|
disablesLocalSourcesInFontface: 'Disables `local()` sources in `@font-face` rules. Requires a page reload to apply.',
|
|
87
87
|
/**
|
|
88
|
-
* @description The name of a checkbox setting in the Rendering
|
|
88
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting
|
|
89
89
|
* emulates/pretends that the webpage is focused i.e. that the user interacted with it most
|
|
90
90
|
* recently.
|
|
91
91
|
*/
|
|
92
92
|
emulateAFocusedPage: 'Emulate a focused page',
|
|
93
93
|
/**
|
|
94
|
-
* @description Explanation text for the 'Emulate a focused page' setting in the Rendering
|
|
94
|
+
* @description Explanation text for the 'Emulate a focused page' setting in the Rendering panel.
|
|
95
95
|
*/
|
|
96
96
|
emulatesAFocusedPage: 'Keep page focused. Commonly used for debugging disappearing elements.',
|
|
97
97
|
/**
|
|
98
|
-
* @description The name of a checkbox setting in the Rendering
|
|
98
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting enables auto dark mode emulation.
|
|
99
99
|
*/
|
|
100
100
|
emulateAutoDarkMode: 'Enable automatic dark mode',
|
|
101
101
|
/**
|
|
102
|
-
* @description Explanation text for the 'Emulate automatic dark mode' setting in the Rendering
|
|
102
|
+
* @description Explanation text for the 'Emulate automatic dark mode' setting in the Rendering panel.
|
|
103
103
|
*/
|
|
104
104
|
emulatesAutoDarkMode: 'Enables automatic dark mode and sets `prefers-color-scheme` to `dark`.',
|
|
105
105
|
/**
|
|
106
|
-
* @description Explanation text for the 'Emulate CSS media type' setting in the Rendering
|
|
107
|
-
* This setting overrides the CSS media type on the page
|
|
108
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types
|
|
106
|
+
* @description Explanation text for the 'Emulate CSS media type' setting in the Rendering panel.
|
|
107
|
+
* This setting overrides the CSS media type on the page (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types).
|
|
109
108
|
*/
|
|
110
|
-
forcesMediaTypeForTestingPrint: 'Forces media type for testing print and screen styles',
|
|
109
|
+
forcesMediaTypeForTestingPrint: 'Forces media type for testing `print` and `screen` styles',
|
|
111
110
|
/**
|
|
112
|
-
* @description Explanation text for the 'Forces CSS prefers-color-scheme media' setting in the Rendering
|
|
111
|
+
* @description Explanation text for the 'Forces CSS prefers-color-scheme media' setting in the Rendering panel.
|
|
113
112
|
*/
|
|
114
113
|
forcesCssPreferscolorschemeMedia: 'Forces CSS `prefers-color-scheme` media feature',
|
|
115
114
|
/**
|
|
116
|
-
* @description Explanation text for the 'Forces CSS prefers-reduced-motion media' setting in the Rendering
|
|
115
|
+
* @description Explanation text for the 'Forces CSS prefers-reduced-motion media' setting in the Rendering panel.
|
|
117
116
|
*/
|
|
118
117
|
forcesCssPrefersreducedmotion: 'Forces CSS `prefers-reduced-motion` media feature',
|
|
119
118
|
/**
|
|
120
|
-
* @description Explanation text for the 'Forces CSS prefers-contrast media' setting in the Rendering
|
|
119
|
+
* @description Explanation text for the 'Forces CSS prefers-contrast media' setting in the Rendering panel.
|
|
121
120
|
*/
|
|
122
121
|
forcesCssPreferscontrastMedia: 'Forces CSS `prefers-contrast` media feature',
|
|
123
122
|
/**
|
|
124
|
-
* @description Explanation text for the 'Forces CSS prefers-reduced-data media' setting in the Rendering
|
|
123
|
+
* @description Explanation text for the 'Forces CSS prefers-reduced-data media' setting in the Rendering panel.
|
|
125
124
|
*/
|
|
126
125
|
forcesCssPrefersreduceddataMedia: 'Forces CSS `prefers-reduced-data` media feature',
|
|
127
126
|
/**
|
|
128
|
-
* @description Explanation text for the 'Forces CSS prefers-reduced-transparency media' setting in the Rendering
|
|
127
|
+
* @description Explanation text for the 'Forces CSS prefers-reduced-transparency media' setting in the Rendering panel.
|
|
129
128
|
*/
|
|
130
129
|
forcesCssPrefersreducedtransparencyMedia: 'Forces CSS `prefers-reduced-transparency` media feature',
|
|
131
130
|
/**
|
|
132
|
-
* @description Explanation text for the 'Forces CSS color-gamut media' setting in the Rendering
|
|
131
|
+
* @description Explanation text for the 'Forces CSS color-gamut media' setting in the Rendering panel.
|
|
133
132
|
*/
|
|
134
133
|
forcesCssColorgamutMediaFeature: 'Forces CSS `color-gamut` media feature',
|
|
135
134
|
/**
|
|
136
|
-
* @description Explanation text for the 'Emulate vision deficiencies' setting in the Rendering
|
|
135
|
+
* @description Explanation text for the 'Emulate vision deficiencies' setting in the Rendering panel.
|
|
137
136
|
*/
|
|
138
137
|
forcesVisionDeficiencyEmulation: 'Forces vision deficiency emulation',
|
|
139
138
|
/**
|
|
140
|
-
* @description Explanation text for the 'Emulate OS text scale' setting in the Rendering
|
|
139
|
+
* @description Explanation text for the 'Emulate OS text scale' setting in the Rendering panel.
|
|
141
140
|
*/
|
|
142
141
|
forcesOsTextScaleEmulation: 'Forces OS text scale emulation',
|
|
143
142
|
/**
|
|
144
|
-
* @description The name of a checkbox setting in the Rendering
|
|
143
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting disables the
|
|
145
144
|
* page from loading images with the AVIF format.
|
|
146
145
|
*/
|
|
147
146
|
disableAvifImageFormat: 'Disable `AVIF` image format',
|
|
148
147
|
/**
|
|
149
|
-
* @description Explanation text for the image format disabling settings in the Rendering
|
|
148
|
+
* @description Explanation text for the image format disabling settings in the Rendering panel.
|
|
150
149
|
*/
|
|
151
150
|
requiresAPageReloadToApplyAnd: 'Requires a page reload to apply and disables caching for image requests.',
|
|
152
151
|
/**
|
|
153
|
-
* @description The name of a checkbox setting in the Rendering
|
|
152
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting disables the
|
|
154
153
|
* page from loading images with the JPEG XL format.
|
|
155
154
|
*/
|
|
156
155
|
disableJpegXlImageFormat: 'Disable `JPEG XL` image format',
|
|
157
156
|
/**
|
|
158
|
-
* @description The name of a checkbox setting in the Rendering
|
|
157
|
+
* @description The name of a checkbox setting in the Rendering panel. This setting disables the
|
|
159
158
|
* page from loading images with the WebP format.
|
|
160
159
|
*/
|
|
161
160
|
disableWebpImageFormat: 'Disable `WebP` image format',
|
|
162
161
|
/**
|
|
163
|
-
* @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering
|
|
162
|
+
* @description Explanation text for the 'Forces CSS forced-colors' setting in the Rendering panel.
|
|
164
163
|
*/
|
|
165
|
-
forcesCssForcedColors: 'Forces CSS forced-colors media feature',
|
|
164
|
+
forcesCssForcedColors: 'Forces CSS `forced-colors` media feature',
|
|
166
165
|
} as const;
|
|
167
166
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/RenderingOptions.ts', UIStrings);
|
|
168
167
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -10,53 +10,52 @@ import type * as InspectorMain from './inspector_main.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description Title of the Rendering
|
|
13
|
+
* @description Title of the Rendering panel. The Rendering panel is a collection of settings that
|
|
14
14
|
* lets the user debug the rendering (i.e. how the website is drawn onto the screen) of the
|
|
15
|
-
* website.
|
|
16
|
-
* https://developer.chrome.com/docs/devtools/evaluate-performance/reference#rendering
|
|
15
|
+
* website (https://developer.chrome.com/docs/devtools/evaluate-performance/reference#rendering).
|
|
17
16
|
*/
|
|
18
17
|
rendering: 'Rendering',
|
|
19
18
|
/**
|
|
20
|
-
* @description Command for showing the
|
|
19
|
+
* @description Command for showing the Rendering panel.
|
|
21
20
|
*/
|
|
22
21
|
showRendering: 'Show Rendering',
|
|
23
22
|
/**
|
|
24
|
-
* @description Command Menu search query that points to the Rendering
|
|
23
|
+
* @description Command Menu search query that points to the Rendering panel. This refers to the
|
|
25
24
|
* process of drawing pixels onto the screen (called painting).
|
|
26
25
|
*/
|
|
27
26
|
paint: 'paint',
|
|
28
27
|
/**
|
|
29
|
-
* @description Command Menu search query that points to the Rendering
|
|
28
|
+
* @description Command Menu search query that points to the Rendering panel. Layout is a phase of
|
|
30
29
|
* rendering a website where the browser calculates where different elements in the website will go
|
|
31
30
|
* on the screen.
|
|
32
31
|
*/
|
|
33
32
|
layout: 'layout',
|
|
34
33
|
/**
|
|
35
|
-
* @description Command Menu search query that points to the Rendering
|
|
34
|
+
* @description Command Menu search query that points to the Rendering panel. 'fps' is an acronym
|
|
36
35
|
* for 'Frames per second'. It is in lowercase here because the search box the user will type this
|
|
37
36
|
* into is case-insensitive. If there is an equivalent acronym/shortening in the target language
|
|
38
37
|
* then a translation would be appropriate, otherwise it can be left in English.
|
|
39
38
|
*/
|
|
40
39
|
fps: 'fps',
|
|
41
40
|
/**
|
|
42
|
-
* @description Command Menu search query that points to the Rendering
|
|
43
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types. This is something the user
|
|
41
|
+
* @description Command Menu search query that points to the Rendering panel
|
|
42
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_types). This is something the user
|
|
44
43
|
* might type in to search for the setting to change the CSS media type.
|
|
45
44
|
*/
|
|
46
45
|
cssMediaType: 'CSS media type',
|
|
47
46
|
/**
|
|
48
|
-
* @description Command Menu search query that points to the Rendering
|
|
49
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_features This is something the
|
|
47
|
+
* @description Command Menu search query that points to the Rendering panel
|
|
48
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/@media#media_features). This is something the
|
|
50
49
|
* user might type in to search for the setting to change the value of various CSS media features.
|
|
51
50
|
*/
|
|
52
51
|
cssMediaFeature: 'CSS media feature',
|
|
53
52
|
/**
|
|
54
|
-
* @description Command Menu search query that points to the Rendering
|
|
53
|
+
* @description Command Menu search query that points to the Rendering panel. Possible search term
|
|
55
54
|
* when the user wants to find settings related to visual impairment e.g. blurry vision, blindness.
|
|
56
55
|
*/
|
|
57
56
|
visionDeficiency: 'vision deficiency',
|
|
58
57
|
/**
|
|
59
|
-
* @description Command Menu search query that points to the Rendering
|
|
58
|
+
* @description Command Menu search query that points to the Rendering panel. Possible search term
|
|
60
59
|
* when the user wants to find settings related to color vision deficiency/color blindness.
|
|
61
60
|
*/
|
|
62
61
|
colorVisionDeficiency: 'color vision deficiency',
|
|
@@ -65,7 +64,7 @@ const UIStrings = {
|
|
|
65
64
|
*/
|
|
66
65
|
reloadPage: 'Reload page',
|
|
67
66
|
/**
|
|
68
|
-
* @description Title of an action that
|
|
67
|
+
* @description Title of an action that hard reloads the inspected page. A hard reload also
|
|
69
68
|
* clears the browser's cache, forcing it to reload the most recent version of the page.
|
|
70
69
|
*/
|
|
71
70
|
hardReloadPage: 'Hard reload page',
|
|
@@ -93,17 +92,9 @@ const UIStrings = {
|
|
|
93
92
|
*/
|
|
94
93
|
doNotAutoOpen: 'Do not auto-open DevTools for popups',
|
|
95
94
|
/**
|
|
96
|
-
* @description Title of
|
|
97
|
-
* paused by devtools, an overlay is shown on top of the page to indicate that it is paused. The
|
|
98
|
-
* overlay is a pause/unpause button and some text, which appears on top of the paused page. This
|
|
99
|
-
* setting turns off this overlay.
|
|
95
|
+
* @description Title of an action that toggles the "forces CSS prefers-color-scheme" media feature.
|
|
100
96
|
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @description Title of an action that toggle
|
|
104
|
-
* "forces CSS prefers-color-scheme" color
|
|
105
|
-
*/
|
|
106
|
-
toggleCssPrefersColorSchemeMedia: 'Toggle CSS media feature prefers-color-scheme',
|
|
97
|
+
toggleCssPrefersColorSchemeMedia: 'Toggle CSS media feature `prefers-color-scheme`',
|
|
107
98
|
} as const;
|
|
108
99
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/inspector_main-meta.ts', UIStrings);
|
|
109
100
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
@@ -245,15 +236,6 @@ Common.Settings.registerSettingExtension({
|
|
|
245
236
|
],
|
|
246
237
|
});
|
|
247
238
|
|
|
248
|
-
Common.Settings.registerSettingExtension({
|
|
249
|
-
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
250
|
-
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
251
|
-
title: i18nLazyString(UIStrings.disablePaused),
|
|
252
|
-
settingName: 'disable-paused-state-overlay',
|
|
253
|
-
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
254
|
-
defaultValue: false,
|
|
255
|
-
});
|
|
256
|
-
|
|
257
239
|
UI.Toolbar.registerToolbarItem({
|
|
258
240
|
async loadItem() {
|
|
259
241
|
const InspectorMain = await loadInspectorMainModule();
|
|
@@ -18,15 +18,15 @@ import * as Main from '../main/main.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Name of the primary target connection when debugging Node.js.
|
|
22
22
|
*/
|
|
23
23
|
main: 'Main',
|
|
24
24
|
/**
|
|
25
|
-
* @description Title of the 'Scripts'
|
|
25
|
+
* @description Title of the 'Scripts' tab in the navigation tree inside the Sources panel.
|
|
26
26
|
*/
|
|
27
27
|
networkTitle: 'Scripts',
|
|
28
28
|
/**
|
|
29
|
-
* @description Command for showing the 'Scripts'
|
|
29
|
+
* @description Command in the command menu for showing the 'Scripts' tab in the navigation tree inside the Sources panel.
|
|
30
30
|
*/
|
|
31
31
|
showNode: 'Show Scripts',
|
|
32
32
|
} as const;
|
|
@@ -71,9 +71,10 @@ UI.ViewManager.registerViewExtension({
|
|
|
71
71
|
commandPrompt: i18nLazyString(UIStrings.showNode),
|
|
72
72
|
order: 2,
|
|
73
73
|
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
74
|
-
async loadView() {
|
|
74
|
+
async loadView(universe) {
|
|
75
75
|
const Sources = await loadSourcesModule();
|
|
76
|
-
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
76
|
+
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
77
|
+
{forceNew: null, networkProjectManager: universe.networkProjectManager});
|
|
77
78
|
},
|
|
78
79
|
});
|
|
79
80
|
|
|
@@ -16,19 +16,19 @@ const {render, html, Directives: {classMap}} = Lit;
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description
|
|
19
|
+
* @description Text label for the AI assistance button in the main DevTools toolbar when expanded.
|
|
20
20
|
*/
|
|
21
21
|
aiAssistance: 'AI assistance',
|
|
22
22
|
/**
|
|
23
|
-
* @description
|
|
23
|
+
* @description Tooltip for the AI assistance button in the main DevTools toolbar.
|
|
24
24
|
*/
|
|
25
25
|
openAiAssistance: 'Open AI assistance panel',
|
|
26
26
|
/**
|
|
27
|
-
* @description
|
|
27
|
+
* @description Text label for the Gemini button in the main DevTools toolbar when expanded.
|
|
28
28
|
*/
|
|
29
29
|
gemini: 'Gemini',
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description Tooltip for the Gemini button in the main DevTools toolbar.
|
|
32
32
|
*/
|
|
33
33
|
openGemini: 'Open Gemini panel',
|
|
34
34
|
} as const;
|
|
@@ -64,56 +64,56 @@ import {ExecutionContextSelector} from './ExecutionContextSelector.js';
|
|
|
64
64
|
|
|
65
65
|
const UIStrings = {
|
|
66
66
|
/**
|
|
67
|
-
* @description Title of item in main
|
|
67
|
+
* @description Title of the menu item in the main toolbar to customize and control DevTools.
|
|
68
68
|
*/
|
|
69
69
|
customizeAndControlDevtools: 'Customize and control DevTools',
|
|
70
70
|
/**
|
|
71
|
-
* @description
|
|
71
|
+
* @description Label for the dock side menu options in the customize and control menu.
|
|
72
72
|
*/
|
|
73
73
|
dockSide: 'Dock side',
|
|
74
74
|
/**
|
|
75
|
-
* @description
|
|
75
|
+
* @description Tooltip for the dock side menu options explaining how to restore the last dock position.
|
|
76
76
|
* @example {Ctrl+Shift+D} PH1
|
|
77
77
|
*/
|
|
78
78
|
placementOfDevtoolsRelativeToThe: 'Placement of DevTools relative to the page. ({PH1} to restore last position)',
|
|
79
79
|
/**
|
|
80
|
-
* @description
|
|
80
|
+
* @description Tooltip and label for the button to undock DevTools into a separate window.
|
|
81
81
|
*/
|
|
82
82
|
undockIntoSeparateWindow: 'Undock into separate window',
|
|
83
83
|
/**
|
|
84
|
-
* @description
|
|
84
|
+
* @description Tooltip and label for the button to dock DevTools to the bottom of the browser window.
|
|
85
85
|
*/
|
|
86
86
|
dockToBottom: 'Dock to bottom',
|
|
87
87
|
/**
|
|
88
|
-
* @description
|
|
88
|
+
* @description Tooltip and label for the button to dock DevTools to the right of the browser window.
|
|
89
89
|
*/
|
|
90
90
|
dockToRight: 'Dock to right',
|
|
91
91
|
/**
|
|
92
|
-
* @description
|
|
92
|
+
* @description Tooltip and label for the button to dock DevTools to the left of the browser window.
|
|
93
93
|
*/
|
|
94
94
|
dockToLeft: 'Dock to left',
|
|
95
95
|
/**
|
|
96
|
-
* @description
|
|
96
|
+
* @description Action item in the customize and control menu to focus the page being debugged.
|
|
97
97
|
*/
|
|
98
98
|
focusDebuggee: 'Focus page',
|
|
99
99
|
/**
|
|
100
|
-
* @description
|
|
100
|
+
* @description Action item in the customize and control menu to hide the Console drawer.
|
|
101
101
|
*/
|
|
102
|
-
hideConsoleDrawer: 'Hide
|
|
102
|
+
hideConsoleDrawer: 'Hide Console drawer',
|
|
103
103
|
/**
|
|
104
|
-
* @description
|
|
104
|
+
* @description Action item in the customize and control menu to show the Console drawer.
|
|
105
105
|
*/
|
|
106
|
-
showConsoleDrawer: 'Show
|
|
106
|
+
showConsoleDrawer: 'Show Console drawer',
|
|
107
107
|
/**
|
|
108
|
-
* @description
|
|
108
|
+
* @description Submenu item in the customize and control menu to open additional tools and panels.
|
|
109
109
|
*/
|
|
110
110
|
moreTools: 'More tools',
|
|
111
111
|
/**
|
|
112
|
-
* @description
|
|
112
|
+
* @description Submenu item in the customize and control menu to view help and documentation options.
|
|
113
113
|
*/
|
|
114
114
|
help: 'Help',
|
|
115
115
|
/**
|
|
116
|
-
* @description
|
|
116
|
+
* @description Screen reader announcement explaining how to navigate the dock side options using arrow keys.
|
|
117
117
|
*/
|
|
118
118
|
dockSideNavigation: 'Use left and right arrow keys to navigate the options',
|
|
119
119
|
/**
|
|
@@ -121,7 +121,7 @@ const UIStrings = {
|
|
|
121
121
|
*/
|
|
122
122
|
aiModelDownloaded: 'AI model downloaded',
|
|
123
123
|
/**
|
|
124
|
-
* @description
|
|
124
|
+
* @description Title of the menu item in the customize and control menu leading to the DevTools MCP repository.
|
|
125
125
|
*/
|
|
126
126
|
getDevToolsMcp: 'Get `DevTools MCP`'
|
|
127
127
|
} as const;
|
|
@@ -445,7 +445,8 @@ export class MainImpl {
|
|
|
445
445
|
IssuesManager.IssuesManager.IssuesManager.instance({
|
|
446
446
|
forceNew: true,
|
|
447
447
|
ensureFirst: true,
|
|
448
|
-
showThirdPartyIssuesSetting:
|
|
448
|
+
showThirdPartyIssuesSetting:
|
|
449
|
+
IssuesManager.Issue.getShowThirdPartyIssuesSetting(Common.Settings.Settings.instance()),
|
|
449
450
|
hideIssueSetting: IssuesManager.IssuesManager.getHideIssueByCodeSetting(),
|
|
450
451
|
});
|
|
451
452
|
|
|
@@ -454,9 +455,6 @@ export class MainImpl {
|
|
|
454
455
|
targetManager.addEventListener(
|
|
455
456
|
SDK.TargetManager.Events.SUSPEND_STATE_CHANGED, this.#onSuspendStateChanged.bind(this));
|
|
456
457
|
|
|
457
|
-
Workspace.FileManager.FileManager.instance({forceNew: true});
|
|
458
|
-
|
|
459
|
-
Bindings.NetworkProject.NetworkProjectManager.instance();
|
|
460
458
|
new Bindings.PresentationConsoleMessageHelper.PresentationConsoleMessageManager();
|
|
461
459
|
targetManager.setScopeTarget(targetManager.primaryPageTarget());
|
|
462
460
|
UI.Context.Context.instance().addFlavorChangeListener(SDK.Target.Target, ({data}) => {
|
|
@@ -466,8 +464,6 @@ export class MainImpl {
|
|
|
466
464
|
// @ts-expect-error e2e test global
|
|
467
465
|
self.Extensions.extensionServer = PanelCommon.ExtensionServer.ExtensionServer.instance({forceNew: true});
|
|
468
466
|
|
|
469
|
-
new Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(
|
|
470
|
-
isolatedFileSystemManager, Workspace.Workspace.WorkspaceImpl.instance());
|
|
471
467
|
isolatedFileSystemManager.addPlatformFileSystem(
|
|
472
468
|
'snippet://' as Platform.DevToolsPath.UrlString, new Snippets.ScriptSnippetFileSystem.SnippetFileSystem());
|
|
473
469
|
|
|
@@ -476,6 +472,8 @@ export class MainImpl {
|
|
|
476
472
|
|
|
477
473
|
new ExecutionContextSelector(targetManager, UI.Context.Context.instance());
|
|
478
474
|
|
|
475
|
+
this.#universe.domDebuggerManager.initialize();
|
|
476
|
+
this.#universe.cpuThrottlingManager.initialize();
|
|
479
477
|
void this.#universe.liveMetrics.enable();
|
|
480
478
|
CrUXManager.CrUXManager.instance();
|
|
481
479
|
|