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
|
@@ -7,7 +7,7 @@ import '../../ui/kit/kit.js';
|
|
|
7
7
|
import * as Common from '../../core/common/common.js';
|
|
8
8
|
import * as Host from '../../core/host/host.js';
|
|
9
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
10
|
-
import
|
|
10
|
+
import * as Platform from '../../core/platform/platform.js';
|
|
11
11
|
import * as Root from '../../core/root/root.js';
|
|
12
12
|
import * as AiAssistanceModel from '../../models/ai_assistance/ai_assistance.js';
|
|
13
13
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
@@ -24,228 +24,244 @@ const {html, nothing, render, Directives: {ifDefined, classMap}} = Lit;
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description Header text for
|
|
27
|
+
* @description Header text for a list of things to consider in the context of generative AI features.
|
|
28
28
|
*/
|
|
29
29
|
boostYourProductivity: 'Boost your productivity with AI',
|
|
30
30
|
/**
|
|
31
|
-
* @description Text announcing a list of facts to consider
|
|
31
|
+
* @description Text announcing a list of facts to consider when using a generative AI feature.
|
|
32
32
|
*/
|
|
33
33
|
thingsToConsider: 'Things to consider',
|
|
34
34
|
/**
|
|
35
|
-
* @description Text describing a fact to consider when using AI features
|
|
35
|
+
* @description Text describing a fact to consider when using AI features.
|
|
36
36
|
*/
|
|
37
37
|
experimentalFeatures:
|
|
38
38
|
'These features use generative AI and may provide inaccurate or offensive information that doesn’t represent Google’s views',
|
|
39
39
|
/**
|
|
40
|
-
* @description Text describing a fact to consider when using AI features
|
|
40
|
+
* @description Text describing a fact to consider when using AI features.
|
|
41
41
|
*/
|
|
42
42
|
sendsDataToGoogle:
|
|
43
43
|
'These features send relevant data to Google. Google collects this data and feedback to improve its products and services with the help of human reviewers. Avoid sharing sensitive or personal information.',
|
|
44
44
|
/**
|
|
45
|
-
* @description Text describing a fact to consider when using AI features
|
|
45
|
+
* @description Text describing a fact to consider when using AI features.
|
|
46
46
|
*/
|
|
47
47
|
sendsDataToGoogleNoLogging:
|
|
48
48
|
'Your content will not be used by human reviewers to improve AI. Your organization may change these settings at any time.',
|
|
49
49
|
/**
|
|
50
|
-
* @description Text describing a fact to consider when using AI features
|
|
50
|
+
* @description Text describing a fact to consider when using AI features.
|
|
51
51
|
*/
|
|
52
52
|
dataCollection: 'Depending on your region, Google may refrain from data collection',
|
|
53
53
|
/**
|
|
54
|
-
* @description Text describing a fact to consider when using AI features
|
|
54
|
+
* @description Text describing a fact to consider when using AI features.
|
|
55
55
|
*/
|
|
56
56
|
dataCollectionNoLogging:
|
|
57
57
|
'Depending on your Google account management and/or region, Google may refrain from data collection',
|
|
58
58
|
/**
|
|
59
|
-
* @description Text describing the
|
|
59
|
+
* @description Text describing the Console insights feature.
|
|
60
60
|
*/
|
|
61
61
|
helpUnderstandConsole: 'Helps you understand and fix console warnings and errors',
|
|
62
62
|
/**
|
|
63
|
-
* @description Text describing the
|
|
63
|
+
* @description Text describing the auto annotations feature.
|
|
64
64
|
*/
|
|
65
65
|
aIAnnotationsFeatureDescription: 'Automatically generate titles for performance trace annotations',
|
|
66
66
|
/**
|
|
67
|
-
* @description Text explaining AI feature helps annotate a performance trace with auto-generated labels
|
|
67
|
+
* @description Text explaining that the AI feature helps annotate a performance trace with auto-generated labels.
|
|
68
68
|
*/
|
|
69
69
|
helpAnnotatePerformance: 'Helps you annotate your performance trace with auto-generated labels',
|
|
70
70
|
/**
|
|
71
|
-
* @description Label for a button to expand an accordion
|
|
71
|
+
* @description Label for a button to expand an accordion.
|
|
72
72
|
*/
|
|
73
73
|
showMore: 'Show more',
|
|
74
74
|
/**
|
|
75
|
-
* @description Label for a button to collapse an accordion
|
|
75
|
+
* @description Label for a button to collapse an accordion.
|
|
76
76
|
*/
|
|
77
77
|
showLess: 'Show less',
|
|
78
78
|
/**
|
|
79
|
-
* @description Header for a list of feature attributes. 'When
|
|
79
|
+
* @description Header for a list of feature attributes. 'When on, you’ll be able to …'.
|
|
80
80
|
*/
|
|
81
81
|
whenOn: 'When on',
|
|
82
82
|
/**
|
|
83
|
-
* @description Description of the
|
|
83
|
+
* @description Description of the Console insights feature.
|
|
84
84
|
*/
|
|
85
85
|
explainConsole: 'Get explanations for console warnings and errors',
|
|
86
86
|
/**
|
|
87
|
-
* @description Description of the
|
|
87
|
+
* @description Description of the Console insights feature ('these issues' refers to Console warnings and errors).
|
|
88
88
|
*/
|
|
89
89
|
receiveSuggestions: 'Receive suggestions and code samples to address these issues',
|
|
90
90
|
/**
|
|
91
|
-
* @description Explainer for which data is being sent by the
|
|
91
|
+
* @description Explainer for which data is being sent by the Console insights feature.
|
|
92
92
|
*/
|
|
93
93
|
consoleInsightsSendsData:
|
|
94
94
|
'To generate explanations, the console message, associated stack trace, related source code, and the associated network headers are sent to Google. This data may be seen by human reviewers to improve this feature.',
|
|
95
95
|
/**
|
|
96
|
-
* @description Explainer for which data is being sent by the
|
|
96
|
+
* @description Explainer for which data is being sent by the Console insights feature without logging.
|
|
97
97
|
*/
|
|
98
98
|
consoleInsightsSendsDataNoLogging:
|
|
99
99
|
'To generate explanations, the console message, associated stack trace, related source code, and the associated network headers are sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.',
|
|
100
100
|
/**
|
|
101
|
-
* @description Reference to the terms of service and privacy notice
|
|
101
|
+
* @description Reference to the terms of service and privacy notice.
|
|
102
102
|
* @example {Google Terms of Service} PH1
|
|
103
103
|
* @example {Privacy Notice} PH2
|
|
104
104
|
*/
|
|
105
105
|
termsOfServicePrivacyNotice: 'Use of these features is subject to the {PH1} and {PH2}',
|
|
106
106
|
/**
|
|
107
|
-
* @description Text describing the
|
|
107
|
+
* @description Text describing the AI assistance feature.
|
|
108
108
|
*/
|
|
109
109
|
helpUnderstandStyling: 'Get help with understanding CSS styles',
|
|
110
110
|
/**
|
|
111
|
-
* @description Text describing the
|
|
111
|
+
* @description Text describing the AI assistance feature.
|
|
112
112
|
*/
|
|
113
|
-
helpUnderstandStylingAndNetworkRequest: 'Get help with understanding CSS styles
|
|
113
|
+
helpUnderstandStylingAndNetworkRequest: 'Get help with understanding CSS styles and network requests',
|
|
114
114
|
/**
|
|
115
|
-
* @description Text describing the
|
|
115
|
+
* @description Text describing the AI assistance feature.
|
|
116
116
|
*/
|
|
117
117
|
helpUnderstandStylingNetworkAndFile: 'Get help with understanding CSS styles, network requests, and files',
|
|
118
118
|
/**
|
|
119
|
-
* @description Text describing the
|
|
119
|
+
* @description Text describing the AI assistance feature.
|
|
120
120
|
*/
|
|
121
121
|
helpUnderstandStylingNetworkPerformanceAndFile:
|
|
122
122
|
'Get help with understanding CSS styles, network requests, performance, and files',
|
|
123
123
|
/**
|
|
124
|
-
* @description Text describing the
|
|
124
|
+
* @description Text describing the AI assistance feature when V2 is enabled.
|
|
125
125
|
*/
|
|
126
126
|
aiAssistanceDescriptionV2: 'Get context-aware help on the inspected page',
|
|
127
127
|
/**
|
|
128
|
-
* @description First item in the description of the AI assistance feature when V2 is enabled
|
|
128
|
+
* @description First item in the description of the AI assistance feature when V2 is enabled.
|
|
129
129
|
*/
|
|
130
130
|
aiAssistanceWhenOnItem1V2:
|
|
131
131
|
'Debug styling, network, performance, source code, accessibility and storage issues with DevTools AI assistance',
|
|
132
132
|
/**
|
|
133
|
-
* @description Second item in the description of the AI assistance feature when V2 is enabled
|
|
133
|
+
* @description Second item in the description of the AI assistance feature when V2 is enabled.
|
|
134
134
|
*/
|
|
135
|
-
aiAssistanceWhenOnItem2V2: 'Follow the agent
|
|
135
|
+
aiAssistanceWhenOnItem2V2: 'Follow the agent’s reasoning step-by-step and quickly jump to the relevant source data',
|
|
136
136
|
/**
|
|
137
|
-
* @description Explainer for which data is being sent by the AI assistance feature when V2 is enabled
|
|
137
|
+
* @description Explainer for which data is being sent by the AI assistance feature when V2 is enabled.
|
|
138
138
|
*/
|
|
139
139
|
aiAssistanceThingsToConsiderV2:
|
|
140
140
|
'To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won’t always get it right.',
|
|
141
141
|
/**
|
|
142
|
-
* @description Explainer for which data is being sent by the AI assistance feature when V2 is enabled and logging is disabled
|
|
142
|
+
* @description Explainer for which data is being sent by the AI assistance feature when V2 is enabled and logging is disabled.
|
|
143
143
|
*/
|
|
144
144
|
aiAssistanceThingsToConsiderNoLoggingV2:
|
|
145
145
|
'To generate explanations, chat messages, data accessible for this site via DevTools panels and Web APIs, and items you select such as network requests, files, and performance traces are sent to Google. The content you submit and that is generated by this feature will not be used to improve Google’s AI models. This is an experimental AI feature and won’t always get it right.',
|
|
146
146
|
/**
|
|
147
|
-
* @description Text describing the
|
|
147
|
+
* @description Text describing the code suggestions feature.
|
|
148
148
|
*/
|
|
149
149
|
helpUnderstandCodeSuggestions: 'Write code faster with AI-powered suggestions',
|
|
150
150
|
/**
|
|
151
|
-
* @description Text which is a hyperlink to more documentation
|
|
151
|
+
* @description Text which is a hyperlink to more documentation.
|
|
152
152
|
*/
|
|
153
153
|
learnMore: 'Learn more',
|
|
154
154
|
/**
|
|
155
|
-
* @description Description of the AI assistance feature
|
|
155
|
+
* @description Description of the AI assistance feature.
|
|
156
156
|
*/
|
|
157
157
|
explainStyling: 'Understand CSS styles with AI-powered insights',
|
|
158
158
|
/**
|
|
159
|
-
* @description Description of the AI assistance feature
|
|
159
|
+
* @description Description of the AI assistance feature.
|
|
160
160
|
*/
|
|
161
|
-
explainStylingAndNetworkRequest: 'Understand CSS styles
|
|
161
|
+
explainStylingAndNetworkRequest: 'Understand CSS styles and network activity with AI-powered insights',
|
|
162
162
|
/**
|
|
163
|
-
* @description Description of the AI assistance feature
|
|
163
|
+
* @description Description of the AI assistance feature.
|
|
164
164
|
*/
|
|
165
165
|
explainStylingNetworkAndFile: 'Understand CSS styles, network activity, and file origins with AI-powered insights',
|
|
166
166
|
/**
|
|
167
|
-
* @description Description of the AI assistance feature
|
|
167
|
+
* @description Description of the AI assistance feature.
|
|
168
168
|
*/
|
|
169
169
|
explainStylingNetworkPerformanceAndFile:
|
|
170
170
|
'Understand CSS styles, network activity, performance bottlenecks, and file origins with AI-powered insights',
|
|
171
171
|
/**
|
|
172
|
-
* @description Description of the AI assistance feature
|
|
172
|
+
* @description Description of the AI assistance feature.
|
|
173
173
|
*/
|
|
174
174
|
receiveStylingSuggestions: 'Improve your development workflow with contextual explanations and suggestions',
|
|
175
175
|
/**
|
|
176
|
-
* @description Explainer for which data is being sent by the AI assistance feature
|
|
176
|
+
* @description Explainer for which data is being sent by the AI assistance feature.
|
|
177
177
|
*/
|
|
178
178
|
freestylerSendsData:
|
|
179
179
|
'To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data may be seen by human reviewers to improve this feature. Don’t use on pages with personal or sensitive information.',
|
|
180
180
|
/**
|
|
181
|
-
* @description Explainer for which data is being sent by the AI assistance feature
|
|
181
|
+
* @description Explainer for which data is being sent by the AI assistance feature without logging.
|
|
182
182
|
*/
|
|
183
183
|
freestylerSendsDataNoLogging:
|
|
184
184
|
'To generate explanations, your chat messages, any data the inspected page can see using Web APIs, and the items you select such as files, network requests, and performance traces are sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.',
|
|
185
185
|
/**
|
|
186
|
-
* @description Explainer for which data is being sent by the AI
|
|
186
|
+
* @description Explainer for which data is being sent by the AI-generated annotations feature.
|
|
187
187
|
*/
|
|
188
188
|
generatedAiAnnotationsSendData:
|
|
189
189
|
'To generate annotation suggestions, your performance trace is sent to Google. This data may be seen by human reviewers to improve this feature.',
|
|
190
190
|
/**
|
|
191
|
-
* @description Explainer for which data is being sent by the AI
|
|
191
|
+
* @description Explainer for which data is being sent by the AI-generated annotations feature without logging.
|
|
192
192
|
*/
|
|
193
193
|
generatedAiAnnotationsSendDataNoLogging:
|
|
194
194
|
'To generate annotation suggestions, your performance trace is sent to Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.',
|
|
195
195
|
/**
|
|
196
|
-
* @description Description of the
|
|
196
|
+
* @description Description of the code suggestions feature.
|
|
197
197
|
*/
|
|
198
198
|
asYouTypeCodeSuggestions:
|
|
199
199
|
'As you type in the Console or Sources panel, you’ll get code suggestions. Press Tab to accept one.',
|
|
200
200
|
/**
|
|
201
|
-
* @description First item in the description of the
|
|
201
|
+
* @description First item in the description of the code suggestions feature.
|
|
202
202
|
*/
|
|
203
203
|
asYouTypeRelevantDataIsBeingSentToGoogle:
|
|
204
204
|
'As you type, relevant data is being sent to Google to generate code suggestions. Press Tab to accept.',
|
|
205
205
|
/**
|
|
206
|
-
* @description Second item in the description of the
|
|
206
|
+
* @description Second item in the description of the code suggestions feature.
|
|
207
207
|
*/
|
|
208
208
|
describeCodeInComment:
|
|
209
209
|
'In Console or Sources, describe the code you need in a comment, then press Ctrl+I to generate it.',
|
|
210
210
|
/**
|
|
211
|
-
* @description Second item in the description of the
|
|
211
|
+
* @description Second item in the description of the code suggestions feature for macOS.
|
|
212
212
|
*/
|
|
213
213
|
describeCodeInCommentForMacOs:
|
|
214
214
|
'In Console or Sources, describe the code you need in a comment, then press Cmd+I to generate it.',
|
|
215
215
|
/**
|
|
216
|
-
* @description Explainer for which data is being sent for the
|
|
216
|
+
* @description Explainer for which data is being sent for the code suggestions feature.
|
|
217
217
|
*/
|
|
218
218
|
codeSuggestionsSendData:
|
|
219
219
|
'To generate code suggestions, your console input, the history of your current console session, the currently inspected CSS, and the contents of the currently open file are shared with Google. This data may be seen by human reviewers to improve this feature.',
|
|
220
220
|
/**
|
|
221
|
-
* @description Explainer for which data is being sent for the
|
|
221
|
+
* @description Explainer for which data is being sent for the code suggestions feature without logging.
|
|
222
222
|
*/
|
|
223
223
|
codeSuggestionsSendDataNoLogging:
|
|
224
224
|
'To generate code suggestions, your console input, the history of your current console session, the currently inspected CSS, and the contents of the currently open file are shared with Google. This data will not be used to improve Google’s AI models. Your organization may change these settings at any time.',
|
|
225
225
|
/**
|
|
226
|
-
* @description Label for a link to the terms of service
|
|
226
|
+
* @description Label for a link to the terms of service.
|
|
227
227
|
*/
|
|
228
228
|
termsOfService: 'Google Terms of Service',
|
|
229
229
|
/**
|
|
230
|
-
* @description Label for a link to the privacy notice
|
|
230
|
+
* @description Label for a link to the privacy notice.
|
|
231
231
|
*/
|
|
232
232
|
privacyNotice: 'Google Privacy Policy',
|
|
233
233
|
/**
|
|
234
|
-
* @description Label for a toggle to enable the Console
|
|
234
|
+
* @description Label for a toggle to enable the Console insights feature.
|
|
235
235
|
*/
|
|
236
236
|
enableConsoleInsights: 'Enable `Console insights`',
|
|
237
237
|
/**
|
|
238
|
-
* @description Label for a toggle to enable the AI assistance feature
|
|
238
|
+
* @description Label for a toggle to enable the AI assistance feature.
|
|
239
239
|
*/
|
|
240
240
|
enableAiAssistance: 'Enable AI assistance',
|
|
241
241
|
/**
|
|
242
|
-
* @description Label for a toggle to enable the AI annotation feature
|
|
242
|
+
* @description Label for a toggle to enable the AI annotation feature.
|
|
243
243
|
*/
|
|
244
244
|
enableAiSuggestedAnnotations: 'Enable AI suggestions for performance panel annotations',
|
|
245
245
|
/**
|
|
246
|
-
* @description Label for a toggle to enable the AI code suggestions feature
|
|
246
|
+
* @description Label for a toggle to enable the AI code suggestions feature.
|
|
247
247
|
*/
|
|
248
248
|
enableAiCodeSuggestions: 'Enable AI code suggestions',
|
|
249
|
+
/**
|
|
250
|
+
* @description Message shown to the user if the age check isn’t successful.
|
|
251
|
+
*/
|
|
252
|
+
ageRestricted: 'This feature is only available to users 18 years or older.',
|
|
253
|
+
/**
|
|
254
|
+
* @description The error message when the user isn’t logged in to Chrome.
|
|
255
|
+
*/
|
|
256
|
+
notLoggedIn: 'This feature is only available when you sign in to Chrome with your Google account.',
|
|
257
|
+
/**
|
|
258
|
+
* @description Message shown when the user is offline.
|
|
259
|
+
*/
|
|
260
|
+
offline: 'This feature is only available with an active internet connection.',
|
|
261
|
+
/**
|
|
262
|
+
* @description Text informing the user that AI assistance isn’t available in Incognito mode or Guest mode.
|
|
263
|
+
*/
|
|
264
|
+
notAvailableInIncognitoMode: 'AI assistance isn’t available in Incognito mode or Guest mode.',
|
|
249
265
|
} as const;
|
|
250
266
|
const str_ = i18n.i18n.registerUIStrings('panels/settings/AISettingsTab.ts', UIStrings);
|
|
251
267
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -443,10 +459,36 @@ export class AISettingsTab extends UI.Widget.VBox {
|
|
|
443
459
|
this.#view = view ?? AI_SETTINGS_TAB_DEFAULT_VIEW;
|
|
444
460
|
}
|
|
445
461
|
|
|
462
|
+
#getDisabledReasons(): Platform.UIString.LocalizedString[] {
|
|
463
|
+
const preconditions = AiAssistanceModel.AiUtils.getDisabledReasons(this.#aidaAvailability);
|
|
464
|
+
const mappedReasons: Platform.UIString.LocalizedString[] = [];
|
|
465
|
+
for (const precondition of preconditions) {
|
|
466
|
+
switch (precondition) {
|
|
467
|
+
case AiAssistanceModel.AiUtils.FrontendAccessPrecondition.IS_OFF_THE_RECORD:
|
|
468
|
+
mappedReasons.push(i18nString(UIStrings.notAvailableInIncognitoMode));
|
|
469
|
+
break;
|
|
470
|
+
case Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL:
|
|
471
|
+
case Host.AidaClient.AidaAccessPreconditions.SYNC_IS_PAUSED:
|
|
472
|
+
mappedReasons.push(i18nString(UIStrings.notLoggedIn));
|
|
473
|
+
break;
|
|
474
|
+
case Host.AidaClient.AidaAccessPreconditions.NO_INTERNET:
|
|
475
|
+
mappedReasons.push(i18nString(UIStrings.offline));
|
|
476
|
+
break;
|
|
477
|
+
case AiAssistanceModel.AiUtils.FrontendAccessPrecondition.AGE_RESTRICTED:
|
|
478
|
+
mappedReasons.push(i18nString(UIStrings.ageRestricted));
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
Platform.assertNever(precondition, `Unknown precondition: ${precondition}`);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
const settingDisabledReasons =
|
|
485
|
+
Common.Settings.Settings.instance().moduleSetting('ai-assistance-enabled').disabledReasons();
|
|
486
|
+
return [...mappedReasons, ...settingDisabledReasons];
|
|
487
|
+
}
|
|
488
|
+
|
|
446
489
|
override performUpdate(): void {
|
|
447
|
-
const disabledReasons = AiAssistanceModel.AiUtils.getDisabledReasons(this.#aidaAvailability);
|
|
448
490
|
const viewInput: ViewInput = {
|
|
449
|
-
disabledReasons,
|
|
491
|
+
disabledReasons: this.#getDisabledReasons(),
|
|
450
492
|
sharedDisclaimerBulletPoints: this.#getSharedDisclaimerBulletPoints(),
|
|
451
493
|
settingToParams: this.#settingToParams,
|
|
452
494
|
expandSetting: this.#expandSetting.bind(this),
|
|
@@ -16,11 +16,11 @@ const {styleMap} = Directives;
|
|
|
16
16
|
|
|
17
17
|
const UIStrings = {
|
|
18
18
|
/**
|
|
19
|
-
* @description Text in
|
|
19
|
+
* @description Text in edit file system view of the Workspace settings in Settings to indicate that the following string is a folder URL.
|
|
20
20
|
*/
|
|
21
21
|
url: 'URL',
|
|
22
22
|
/**
|
|
23
|
-
* @description Text in
|
|
23
|
+
* @description Text in edit file system view of the Workspace settings in Settings.
|
|
24
24
|
*/
|
|
25
25
|
excludedFolders: 'Excluded sub-folders',
|
|
26
26
|
/**
|
|
@@ -18,74 +18,74 @@ import settingsScreenStyles from './settingsScreen.css.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Header text content in Framework Ignore List
|
|
21
|
+
* @description Header text content in Framework Ignore List settings tab of the Settings for enabling or disabling ignore listing.
|
|
22
22
|
*/
|
|
23
23
|
frameworkIgnoreList: 'Ignore listing',
|
|
24
24
|
/**
|
|
25
|
-
* @description Checkbox label in Framework Ignore List
|
|
25
|
+
* @description Checkbox label in Framework Ignore List settings tab of the Settings.
|
|
26
26
|
*/
|
|
27
27
|
ignoreListingDescription:
|
|
28
28
|
'When enabled, the debugger will skip over ignore-listed scripts and will ignore exceptions that only affect them and the Performance panel will collapse matching flamechart items.',
|
|
29
29
|
/**
|
|
30
|
-
* @description Text in Framework Ignore List
|
|
30
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
31
31
|
*/
|
|
32
32
|
ignoreListContentScripts: 'Content scripts injected by extensions',
|
|
33
33
|
/**
|
|
34
|
-
* @description Text in Framework Ignore List
|
|
34
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
35
35
|
*/
|
|
36
36
|
ignoreListAnonymousScripts: 'Anonymous scripts from eval or console',
|
|
37
37
|
/**
|
|
38
|
-
* @description Text in Framework Ignore List
|
|
38
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
39
39
|
*/
|
|
40
40
|
automaticallyIgnoreListKnownThirdPartyScripts: 'Known third-party scripts from source maps',
|
|
41
41
|
/**
|
|
42
|
-
* @description Text in Framework Ignore List
|
|
42
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
43
43
|
*/
|
|
44
44
|
ignoreListing: 'Ignore listing',
|
|
45
45
|
/**
|
|
46
|
-
* @description Text in Framework Ignore List
|
|
46
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
47
47
|
*/
|
|
48
48
|
enableIgnoreListingTooltip: 'Uncheck to disable all ignore listing',
|
|
49
49
|
/**
|
|
50
|
-
* @description Text in Framework Ignore List
|
|
50
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
51
51
|
*/
|
|
52
52
|
generalExclusionRules: 'General exclusion rules',
|
|
53
53
|
/**
|
|
54
|
-
* @description Text in Framework Ignore List
|
|
54
|
+
* @description Text in Framework Ignore List settings tab of the Settings.
|
|
55
55
|
*/
|
|
56
56
|
customExclusionRules: 'Custom exclusion rules',
|
|
57
57
|
/**
|
|
58
|
-
* @description Text of the add pattern button in Framework Ignore List
|
|
58
|
+
* @description Text of the add pattern button in Framework Ignore List settings tab of the Settings.
|
|
59
59
|
*/
|
|
60
60
|
addPattern: 'Add regex rule',
|
|
61
61
|
/**
|
|
62
|
-
* @description
|
|
62
|
+
* @description ARIA accessible name in Framework Ignore List settings tab of the Settings.
|
|
63
63
|
*/
|
|
64
|
-
addFilenamePattern: 'Add a regular expression rule for the script
|
|
64
|
+
addFilenamePattern: 'Add a regular expression rule for the script’s URL',
|
|
65
65
|
/**
|
|
66
|
-
* @description Pattern title in Framework Ignore List
|
|
66
|
+
* @description Pattern title in Framework Ignore List settings tab of the Settings.
|
|
67
67
|
* @example {ad.*?} PH1
|
|
68
68
|
*/
|
|
69
69
|
ignoreScriptsWhoseNamesMatchS: 'Ignore scripts whose names match \'\'{PH1}\'\'',
|
|
70
70
|
/**
|
|
71
|
-
* @description
|
|
71
|
+
* @description ARIA accessible name in Framework Ignore List settings tab of the Settings. It labels the input
|
|
72
72
|
* field used to add new or edit existing regular expressions that match file names to ignore in the debugger.
|
|
73
73
|
*/
|
|
74
|
-
pattern: 'Add a regular expression rule for the script
|
|
74
|
+
pattern: 'Add a regular expression rule for the script’s URL',
|
|
75
75
|
/**
|
|
76
|
-
* @description Error message in Framework Ignore List settings
|
|
76
|
+
* @description Error message in Framework Ignore List settings tab that declares the pattern must not be empty.
|
|
77
77
|
*/
|
|
78
|
-
patternCannotBeEmpty: 'Rule can
|
|
78
|
+
patternCannotBeEmpty: 'Rule can’t be empty',
|
|
79
79
|
/**
|
|
80
|
-
* @description Error message in Framework Ignore List settings
|
|
80
|
+
* @description Error message in Framework Ignore List settings tab that declares the pattern already exists.
|
|
81
81
|
*/
|
|
82
82
|
patternAlreadyExists: 'Rule already exists',
|
|
83
83
|
/**
|
|
84
|
-
* @description Error message in Framework Ignore List settings
|
|
84
|
+
* @description Error message in Framework Ignore List settings tab that declares the pattern must be a valid regular expression.
|
|
85
85
|
*/
|
|
86
86
|
patternMustBeAValidRegular: 'Rule must be a valid regular expression',
|
|
87
87
|
/**
|
|
88
|
-
* @description Text that is usually a hyperlink to more documentation
|
|
88
|
+
* @description Text that is usually a hyperlink to more documentation.
|
|
89
89
|
*/
|
|
90
90
|
learnMore: 'Learn more',
|
|
91
91
|
} as const;
|
|
@@ -18,7 +18,7 @@ import settingsScreenStyles from './settingsScreen.css.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Text for keyboard shortcuts
|
|
21
|
+
* @description Text for keyboard shortcuts.
|
|
22
22
|
*/
|
|
23
23
|
shortcuts: 'Shortcuts',
|
|
24
24
|
/**
|
|
@@ -26,58 +26,57 @@ const UIStrings = {
|
|
|
26
26
|
*/
|
|
27
27
|
matchShortcutsFromPreset: 'Shortcut preset',
|
|
28
28
|
/**
|
|
29
|
-
* @description Screen reader label for list of keyboard shortcuts in
|
|
29
|
+
* @description Screen reader label for list of keyboard shortcuts in Settings.
|
|
30
30
|
*/
|
|
31
31
|
keyboardShortcutsList: 'Keyboard shortcuts list',
|
|
32
32
|
/**
|
|
33
|
-
* @description Screen reader label for an icon denoting a shortcut that has been changed from its default
|
|
33
|
+
* @description Screen reader label for an icon denoting a shortcut that has been changed from its default.
|
|
34
34
|
*/
|
|
35
35
|
shortcutModified: 'Shortcut modified',
|
|
36
36
|
/**
|
|
37
|
-
* @description Screen reader label for an empty shortcut cell in custom shortcuts settings tab
|
|
37
|
+
* @description Screen reader label for an empty shortcut cell in custom shortcuts settings tab.
|
|
38
38
|
*/
|
|
39
39
|
noShortcutForAction: 'No shortcut for action',
|
|
40
40
|
/**
|
|
41
|
-
* @description Link text in the settings
|
|
41
|
+
* @description Link text in the settings tab to add another shortcut for an action.
|
|
42
42
|
*/
|
|
43
43
|
addAShortcut: 'Add a shortcut',
|
|
44
44
|
/**
|
|
45
|
-
* @description Placeholder text in the settings
|
|
46
|
-
* Explaining that key strokes are going to be recoded.
|
|
45
|
+
* @description Placeholder text in the settings tab when adding a new shortcut, explaining that keystrokes are going to be recorded.
|
|
47
46
|
*/
|
|
48
|
-
recordingKeys: '
|
|
47
|
+
recordingKeys: 'Recording keys',
|
|
49
48
|
/**
|
|
50
|
-
* @description Label for a button in the settings
|
|
49
|
+
* @description Label for a button in the settings tab that confirms changes to a keyboard shortcut.
|
|
51
50
|
*/
|
|
52
51
|
confirmChanges: 'Confirm changes',
|
|
53
52
|
/**
|
|
54
|
-
* @description Label for a button in the settings
|
|
53
|
+
* @description Label for a button in the settings tab that discards changes to the shortcut being edited.
|
|
55
54
|
*/
|
|
56
55
|
discardChanges: 'Discard changes',
|
|
57
56
|
/**
|
|
58
|
-
* @description Label for a button in the settings
|
|
57
|
+
* @description Label for a button in the settings tab that removes a keyboard shortcut.
|
|
59
58
|
*/
|
|
60
59
|
removeShortcut: 'Remove shortcut',
|
|
61
60
|
/**
|
|
62
|
-
* @description Label for a button in the settings
|
|
61
|
+
* @description Label for a button in the settings tab that edits a keyboard shortcut.
|
|
63
62
|
*/
|
|
64
63
|
editShortcut: 'Edit shortcut',
|
|
65
64
|
/**
|
|
66
|
-
* @description Message shown in
|
|
65
|
+
* @description Message shown in Settings when the user inputs a modifier-only shortcut such as Ctrl+Shift.
|
|
67
66
|
*/
|
|
68
|
-
shortcutsCannotContainOnly: 'Shortcuts
|
|
67
|
+
shortcutsCannotContainOnly: 'Shortcuts can’t contain only modifier keys.',
|
|
69
68
|
/**
|
|
70
|
-
* @description
|
|
69
|
+
* @description Message shown in shortcuts settings when the user inputs a shortcut that is already in use.
|
|
71
70
|
* @example {Performance} PH1
|
|
72
71
|
* @example {Start/stop recording} PH2
|
|
73
72
|
*/
|
|
74
73
|
thisShortcutIsInUseByS: 'This shortcut is in use by {PH1}: {PH2}.',
|
|
75
74
|
/**
|
|
76
|
-
* @description Message shown in
|
|
75
|
+
* @description Message shown in Settings when restoring default shortcuts.
|
|
77
76
|
*/
|
|
78
77
|
RestoreDefaultShortcuts: 'Restore default shortcuts',
|
|
79
78
|
/**
|
|
80
|
-
* @description Message shown in
|
|
79
|
+
* @description Message shown in Settings to show the full list of keyboard shortcuts.
|
|
81
80
|
*/
|
|
82
81
|
FullListOfDevtoolsKeyboard: 'Full list of DevTools keyboard shortcuts and gestures',
|
|
83
82
|
/**
|
|
@@ -85,20 +84,20 @@ const UIStrings = {
|
|
|
85
84
|
*/
|
|
86
85
|
ResetShortcutsForAction: 'Reset shortcuts for action',
|
|
87
86
|
/**
|
|
88
|
-
* @description Screen reader announcement for shortcut removed
|
|
87
|
+
* @description Screen reader announcement for shortcut removed.
|
|
89
88
|
* @example {Start/stop recording} PH1
|
|
90
89
|
*/
|
|
91
90
|
shortcutRemoved: '{PH1} Shortcut removed',
|
|
92
91
|
/**
|
|
93
|
-
* @description Screen reader announcement for shortcut restored to default
|
|
92
|
+
* @description Screen reader announcement for shortcut restored to default.
|
|
94
93
|
*/
|
|
95
94
|
shortcutChangesRestored: 'Changes to shortcut restored to default',
|
|
96
95
|
/**
|
|
97
|
-
* @description Screen reader announcement for applied
|
|
96
|
+
* @description Screen reader announcement for applied shortcut changes.
|
|
98
97
|
*/
|
|
99
98
|
shortcutChangesApplied: 'Changes to shortcut applied',
|
|
100
99
|
/**
|
|
101
|
-
* @description Screen reader announcement for discarded
|
|
100
|
+
* @description Screen reader announcement for discarded shortcut changes.
|
|
102
101
|
*/
|
|
103
102
|
shortcutChangesDiscarded: 'Changes to shortcut discarded',
|
|
104
103
|
} as const;
|
|
@@ -27,35 +27,35 @@ import settingsScreenStyles from './settingsScreen.css.js';
|
|
|
27
27
|
|
|
28
28
|
const UIStrings = {
|
|
29
29
|
/**
|
|
30
|
-
* @description Name of the Settings view
|
|
30
|
+
* @description Name of the Settings view.
|
|
31
31
|
*/
|
|
32
32
|
settings: 'Settings',
|
|
33
33
|
/**
|
|
34
|
-
* @description Text for keyboard shortcuts
|
|
34
|
+
* @description Text for keyboard shortcuts.
|
|
35
35
|
*/
|
|
36
36
|
shortcuts: 'Shortcuts',
|
|
37
37
|
/**
|
|
38
|
-
* @description Text of button in Settings
|
|
38
|
+
* @description Text of button in Settings screen of the Settings.
|
|
39
39
|
*/
|
|
40
40
|
restoreDefaultsAndReload: 'Restore defaults and reload',
|
|
41
41
|
/**
|
|
42
|
-
* @description Card header in Experiments settings tab that
|
|
42
|
+
* @description Card header in Experiments settings tab that lists all available stable experiments that can be turned on or off.
|
|
43
43
|
*/
|
|
44
44
|
experiments: 'Experiments',
|
|
45
45
|
/**
|
|
46
|
-
* @description Number of experiments from the filtered list of
|
|
46
|
+
* @description Number of experiments from the filtered list of experiments.
|
|
47
47
|
*/
|
|
48
48
|
experimentsFound: '{n, plural, =1 {# experiment found} other {# experiments found}}',
|
|
49
49
|
/**
|
|
50
|
-
* @description Message shown in the experiments
|
|
50
|
+
* @description Message shown in the experiments tab to warn users about any possible unstable features.
|
|
51
51
|
*/
|
|
52
52
|
theseExperimentsCouldBeUnstable: 'Warning: These experiments could be unstable or unreliable.',
|
|
53
53
|
/**
|
|
54
|
-
* @description Message to display if a setting change requires a reload of DevTools
|
|
54
|
+
* @description Message to display if a setting change requires a reload of DevTools.
|
|
55
55
|
*/
|
|
56
56
|
settingsChangedReloadDevTools: 'Settings changed. To apply, reload DevTools.',
|
|
57
57
|
/**
|
|
58
|
-
* @description Message to display if a setting change requires a
|
|
58
|
+
* @description Message to display if a setting change requires a restart of Chrome.
|
|
59
59
|
*/
|
|
60
60
|
settingsChangedRestartChrome: 'Settings changed. To apply, restart Chrome.',
|
|
61
61
|
/**
|
|
@@ -64,15 +64,15 @@ const UIStrings = {
|
|
|
64
64
|
*/
|
|
65
65
|
noResults: 'No experiments match the filter',
|
|
66
66
|
/**
|
|
67
|
-
* @description Text that is usually a hyperlink to more documentation
|
|
67
|
+
* @description Text that is usually a hyperlink to more documentation.
|
|
68
68
|
*/
|
|
69
69
|
learnMore: 'Learn more',
|
|
70
70
|
/**
|
|
71
|
-
* @description Text that is usually a hyperlink to a feedback form
|
|
71
|
+
* @description Text that is usually a hyperlink to a feedback form.
|
|
72
72
|
*/
|
|
73
73
|
sendFeedback: 'Send feedback',
|
|
74
74
|
/**
|
|
75
|
-
* @description Placeholder text in search bar
|
|
75
|
+
* @description Placeholder text in search bar.
|
|
76
76
|
*/
|
|
77
77
|
searchExperiments: 'Search experiments',
|
|
78
78
|
} as const;
|