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
|
@@ -17,163 +17,163 @@ import type * as Main from './main.js';
|
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
20
|
-
* @description
|
|
20
|
+
* @description Action title to focus the page being debugged.
|
|
21
21
|
*/
|
|
22
22
|
focusDebuggee: 'Focus page',
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description Action title and shortcut description to toggle the Console drawer.
|
|
25
25
|
*/
|
|
26
26
|
toggleDrawer: 'Toggle drawer',
|
|
27
27
|
/**
|
|
28
|
-
* @description Title of an action that navigates to the next panel
|
|
28
|
+
* @description Title of an action that navigates to the next panel.
|
|
29
29
|
*/
|
|
30
30
|
nextPanel: 'Next panel',
|
|
31
31
|
/**
|
|
32
|
-
* @description Title of an action that navigates to the previous panel
|
|
32
|
+
* @description Title of an action that navigates to the previous panel.
|
|
33
33
|
*/
|
|
34
34
|
previousPanel: 'Previous panel',
|
|
35
35
|
/**
|
|
36
|
-
* @description Title of an action that reloads
|
|
36
|
+
* @description Title of an action that reloads DevTools.
|
|
37
37
|
*/
|
|
38
38
|
reloadDevtools: 'Reload DevTools',
|
|
39
39
|
/**
|
|
40
|
-
* @description Title of an action in the main
|
|
40
|
+
* @description Title of an action in the main toolbar to restore the last dock position.
|
|
41
41
|
*/
|
|
42
42
|
restoreLastDockPosition: 'Restore last dock position',
|
|
43
43
|
/**
|
|
44
|
-
* @description
|
|
44
|
+
* @description Shortcut description and action title to zoom in.
|
|
45
45
|
*/
|
|
46
46
|
zoomIn: 'Zoom in',
|
|
47
47
|
/**
|
|
48
|
-
* @description
|
|
48
|
+
* @description Shortcut description and action title to zoom out.
|
|
49
49
|
*/
|
|
50
50
|
zoomOut: 'Zoom out',
|
|
51
51
|
/**
|
|
52
|
-
* @description Title of an action that
|
|
52
|
+
* @description Title of an action that resets the zoom level to default.
|
|
53
53
|
*/
|
|
54
54
|
resetZoomLevel: 'Reset zoom level',
|
|
55
55
|
/**
|
|
56
|
-
* @description Title of an action to search
|
|
56
|
+
* @description Title of an action to search within the current panel.
|
|
57
57
|
*/
|
|
58
58
|
searchInPanel: 'Search in panel',
|
|
59
59
|
/**
|
|
60
|
-
* @description Title of an action that cancels the current search
|
|
60
|
+
* @description Title of an action that cancels the current search.
|
|
61
61
|
*/
|
|
62
62
|
cancelSearch: 'Cancel search',
|
|
63
63
|
/**
|
|
64
|
-
* @description Title of an action that finds the next search result
|
|
64
|
+
* @description Title of an action that finds the next search result.
|
|
65
65
|
*/
|
|
66
66
|
findNextResult: 'Find next result',
|
|
67
67
|
/**
|
|
68
|
-
* @description Title of an action to find the previous search result
|
|
68
|
+
* @description Title of an action to find the previous search result.
|
|
69
69
|
*/
|
|
70
70
|
findPreviousResult: 'Find previous result',
|
|
71
71
|
/**
|
|
72
|
-
* @description Title of
|
|
72
|
+
* @description Title of the theme setting under the Appearance category in Settings.
|
|
73
73
|
*/
|
|
74
74
|
theme: 'Theme:',
|
|
75
75
|
/**
|
|
76
|
-
* @description
|
|
76
|
+
* @description Command menu option to switch to the browser's preferred color theme.
|
|
77
77
|
*/
|
|
78
|
-
switchToBrowserPreferredTheme: 'Switch to browser
|
|
78
|
+
switchToBrowserPreferredTheme: 'Switch to browser’s preferred theme',
|
|
79
79
|
/**
|
|
80
|
-
* @description
|
|
80
|
+
* @description Drop-down menu option to match the browser's color theme.
|
|
81
81
|
*/
|
|
82
82
|
autoTheme: 'Auto',
|
|
83
83
|
/**
|
|
84
|
-
* @description
|
|
84
|
+
* @description Command menu option to switch to the light color theme.
|
|
85
85
|
*/
|
|
86
86
|
switchToLightTheme: 'Switch to light theme',
|
|
87
87
|
/**
|
|
88
|
-
* @description
|
|
88
|
+
* @description Drop-down menu option to select the light color theme.
|
|
89
89
|
*/
|
|
90
90
|
lightCapital: 'Light',
|
|
91
91
|
/**
|
|
92
|
-
* @description
|
|
92
|
+
* @description Command menu option to switch to the dark color theme.
|
|
93
93
|
*/
|
|
94
94
|
switchToDarkTheme: 'Switch to dark theme',
|
|
95
95
|
/**
|
|
96
|
-
* @description
|
|
96
|
+
* @description Drop-down menu option to select the dark color theme.
|
|
97
97
|
*/
|
|
98
98
|
darkCapital: 'Dark',
|
|
99
99
|
/**
|
|
100
|
-
* @description
|
|
100
|
+
* @description Tag for theme preference settings when searched in the command menu.
|
|
101
101
|
*/
|
|
102
102
|
darkLower: 'dark',
|
|
103
103
|
/**
|
|
104
|
-
* @description
|
|
104
|
+
* @description Tag for theme preference settings when searched in the command menu.
|
|
105
105
|
*/
|
|
106
106
|
lightLower: 'light',
|
|
107
107
|
/**
|
|
108
|
-
* @description Title of
|
|
108
|
+
* @description Title of the panel layout setting under the Appearance category in Settings.
|
|
109
109
|
*/
|
|
110
110
|
panelLayout: 'Panel layout:',
|
|
111
111
|
/**
|
|
112
|
-
* @description
|
|
112
|
+
* @description Command menu option to use a horizontal panel layout.
|
|
113
113
|
*/
|
|
114
114
|
useHorizontalPanelLayout: 'Use horizontal panel layout',
|
|
115
115
|
/**
|
|
116
|
-
* @description
|
|
116
|
+
* @description Drop-down menu option for horizontal panel layout.
|
|
117
117
|
*/
|
|
118
118
|
horizontal: 'horizontal',
|
|
119
119
|
/**
|
|
120
|
-
* @description
|
|
120
|
+
* @description Command menu option to use a vertical panel layout.
|
|
121
121
|
*/
|
|
122
122
|
useVerticalPanelLayout: 'Use vertical panel layout',
|
|
123
123
|
/**
|
|
124
|
-
* @description
|
|
124
|
+
* @description Drop-down menu option for vertical panel layout.
|
|
125
125
|
*/
|
|
126
126
|
vertical: 'vertical',
|
|
127
127
|
/**
|
|
128
|
-
* @description
|
|
128
|
+
* @description Command menu option to use automatic panel layout.
|
|
129
129
|
*/
|
|
130
130
|
useAutomaticPanelLayout: 'Use automatic panel layout',
|
|
131
131
|
/**
|
|
132
|
-
* @description
|
|
132
|
+
* @description Drop-down menu option for automatic panel layout.
|
|
133
133
|
*/
|
|
134
134
|
auto: 'auto',
|
|
135
135
|
/**
|
|
136
|
-
* @description
|
|
136
|
+
* @description Checkbox label for the setting to use Ctrl plus number keys to switch panels.
|
|
137
137
|
*/
|
|
138
138
|
enableCtrlShortcutToSwitchPanels: 'Use Ctrl + 1-9 to switch panels',
|
|
139
139
|
/**
|
|
140
|
-
* @description
|
|
140
|
+
* @description Checkbox label for the setting to use Command plus number keys to switch panels on Mac.
|
|
141
141
|
*/
|
|
142
142
|
enableShortcutToSwitchPanels: 'Use ⌘ + 1-9 to switch panels',
|
|
143
143
|
/**
|
|
144
|
-
* @description
|
|
144
|
+
* @description Drop-down menu option to dock DevTools to the right.
|
|
145
145
|
*/
|
|
146
146
|
right: 'Right',
|
|
147
147
|
/**
|
|
148
|
-
* @description
|
|
148
|
+
* @description Title of the action and setting option to dock DevTools to the right of the browser window.
|
|
149
149
|
*/
|
|
150
150
|
dockToRight: 'Dock to right',
|
|
151
151
|
/**
|
|
152
|
-
* @description
|
|
152
|
+
* @description Drop-down menu option to dock DevTools to the bottom.
|
|
153
153
|
*/
|
|
154
154
|
bottom: 'Bottom',
|
|
155
155
|
/**
|
|
156
|
-
* @description
|
|
156
|
+
* @description Title of the action and setting option to dock DevTools to the bottom of the browser window.
|
|
157
157
|
*/
|
|
158
158
|
dockToBottom: 'Dock to bottom',
|
|
159
159
|
/**
|
|
160
|
-
* @description
|
|
160
|
+
* @description Drop-down menu option to dock DevTools to the left.
|
|
161
161
|
*/
|
|
162
162
|
left: 'Left',
|
|
163
163
|
/**
|
|
164
|
-
* @description
|
|
164
|
+
* @description Title of the action and setting option to dock DevTools to the left of the browser window.
|
|
165
165
|
*/
|
|
166
166
|
dockToLeft: 'Dock to left',
|
|
167
167
|
/**
|
|
168
|
-
* @description
|
|
168
|
+
* @description Drop-down menu option for undocked DevTools in a separate window.
|
|
169
169
|
*/
|
|
170
170
|
undocked: 'Undocked',
|
|
171
171
|
/**
|
|
172
|
-
* @description
|
|
172
|
+
* @description Title of the action and setting option to undock DevTools into a separate window.
|
|
173
173
|
*/
|
|
174
174
|
undockIntoSeparateWindow: 'Undock into separate window',
|
|
175
175
|
/**
|
|
176
|
-
* @description
|
|
176
|
+
* @description Option label for the default set of DevTools keyboard shortcuts.
|
|
177
177
|
*/
|
|
178
178
|
devtoolsDefault: 'DevTools (Default)',
|
|
179
179
|
/**
|
|
@@ -228,7 +228,7 @@ const UIStrings = {
|
|
|
228
228
|
/**
|
|
229
229
|
* @description Command to turn the browser color scheme matching off through the command menu.
|
|
230
230
|
*/
|
|
231
|
-
dontMatchChromeColorSchemeCommand: 'Don
|
|
231
|
+
dontMatchChromeColorSchemeCommand: 'Don’t match Chrome color scheme',
|
|
232
232
|
/**
|
|
233
233
|
* @description Command to toggle the drawer orientation.
|
|
234
234
|
*/
|
|
@@ -81,9 +81,10 @@ UI.ViewManager.registerViewExtension({
|
|
|
81
81
|
commandPrompt: i18nLazyString(UIStrings.showNode),
|
|
82
82
|
order: 2,
|
|
83
83
|
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
84
|
-
async loadView() {
|
|
84
|
+
async loadView(universe) {
|
|
85
85
|
const Sources = await loadSourcesModule();
|
|
86
|
-
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
86
|
+
return Sources.SourcesNavigator.NetworkNavigatorView.instance(
|
|
87
|
+
{forceNew: null, networkProjectManager: universe.networkProjectManager});
|
|
87
88
|
},
|
|
88
89
|
});
|
|
89
90
|
|
|
@@ -10,7 +10,7 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description
|
|
13
|
+
* @description Name of the primary target connection when debugging a service worker or dedicated worker.
|
|
14
14
|
*/
|
|
15
15
|
main: 'Main',
|
|
16
16
|
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../core/common/common.js';
|
|
6
|
-
import
|
|
6
|
+
import * as Host from '../core/host/host.js';
|
|
7
7
|
import * as Root from '../core/root/root.js';
|
|
8
8
|
import * as SDK from '../core/sdk/sdk.js';
|
|
9
9
|
import * as AutofillManager from '../models/autofill_manager/autofill_manager.js';
|
|
@@ -34,6 +34,7 @@ export class Universe {
|
|
|
34
34
|
readonly context: Root.DevToolsContext.DevToolsContext;
|
|
35
35
|
readonly autofillManager: AutofillManager.AutofillManager.AutofillManager;
|
|
36
36
|
readonly supportsEmulation: boolean;
|
|
37
|
+
readonly fileSystemWorkspaceBinding: Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding;
|
|
37
38
|
|
|
38
39
|
constructor(options: CreationOptions) {
|
|
39
40
|
const context = new Root.DevToolsContext.WritableDevToolsContext();
|
|
@@ -42,6 +43,12 @@ export class Universe {
|
|
|
42
43
|
const console = new Common.Console.Console();
|
|
43
44
|
context.set(Common.Console.Console, console);
|
|
44
45
|
|
|
46
|
+
const hostConfigTracker = new Host.AidaClient.HostConfigTracker();
|
|
47
|
+
context.set(Host.AidaClient.HostConfigTracker, hostConfigTracker);
|
|
48
|
+
|
|
49
|
+
const gdpClient = new Host.GdpClient.GdpClient();
|
|
50
|
+
context.set(Host.GdpClient.GdpClient, gdpClient);
|
|
51
|
+
|
|
45
52
|
// TODO(crbug.com/458180550): Store instance only on this.context instead.
|
|
46
53
|
// For now the global is required as not everything in foundation cleanly
|
|
47
54
|
// reads from the scoped `Settings` instance.
|
|
@@ -52,6 +59,9 @@ export class Universe {
|
|
|
52
59
|
});
|
|
53
60
|
context.set(Common.Settings.Settings, settings);
|
|
54
61
|
|
|
62
|
+
const emulatedDevicesList = new Emulation.EmulatedDevices.EmulatedDevicesList(settings);
|
|
63
|
+
context.set(Emulation.EmulatedDevices.EmulatedDevicesList, emulatedDevicesList);
|
|
64
|
+
|
|
55
65
|
const isolatedFileSystemManager =
|
|
56
66
|
new Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager(settings, console);
|
|
57
67
|
context.set(Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager, isolatedFileSystemManager);
|
|
@@ -108,6 +118,9 @@ export class Universe {
|
|
|
108
118
|
const workspace = new Workspace.Workspace.WorkspaceImpl();
|
|
109
119
|
context.set(Workspace.Workspace.WorkspaceImpl, workspace);
|
|
110
120
|
|
|
121
|
+
const fileManager = new Workspace.FileManager.FileManager();
|
|
122
|
+
context.set(Workspace.FileManager.FileManager, fileManager);
|
|
123
|
+
|
|
111
124
|
const automaticFileSystemWorkspaceBinding =
|
|
112
125
|
new Persistence.AutomaticFileSystemWorkspaceBinding.AutomaticFileSystemWorkspaceBinding(
|
|
113
126
|
automaticFileSystemManager,
|
|
@@ -119,6 +132,9 @@ export class Universe {
|
|
|
119
132
|
automaticFileSystemWorkspaceBinding,
|
|
120
133
|
);
|
|
121
134
|
|
|
135
|
+
this.fileSystemWorkspaceBinding =
|
|
136
|
+
new Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(isolatedFileSystemManager, workspace);
|
|
137
|
+
|
|
122
138
|
const ignoreListManager = new Workspace.IgnoreListManager.IgnoreListManager(settings, targetManager);
|
|
123
139
|
context.set(Workspace.IgnoreListManager.IgnoreListManager, ignoreListManager);
|
|
124
140
|
|
|
@@ -130,6 +146,9 @@ export class Universe {
|
|
|
130
146
|
resourceMapping, targetManager, ignoreListManager, workspace);
|
|
131
147
|
context.set(Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding, debuggerWorkspaceBinding);
|
|
132
148
|
|
|
149
|
+
const networkProjectManager = new Bindings.NetworkProject.NetworkProjectManager();
|
|
150
|
+
context.set(Bindings.NetworkProject.NetworkProjectManager, networkProjectManager);
|
|
151
|
+
|
|
133
152
|
const breakpointManager = new Breakpoints.BreakpointManager.BreakpointManager(targetManager, workspace,
|
|
134
153
|
debuggerWorkspaceBinding, settings);
|
|
135
154
|
context.set(Breakpoints.BreakpointManager.BreakpointManager, breakpointManager);
|
|
@@ -203,10 +222,26 @@ export class Universe {
|
|
|
203
222
|
return this.context.get(SDK.DOMModel.DOMModelUndoStack);
|
|
204
223
|
}
|
|
205
224
|
|
|
225
|
+
get emulatedDevicesList(): Emulation.EmulatedDevices.EmulatedDevicesList {
|
|
226
|
+
return this.context.get(Emulation.EmulatedDevices.EmulatedDevicesList);
|
|
227
|
+
}
|
|
228
|
+
|
|
206
229
|
get eventBreakpointsManager(): SDK.EventBreakpointsModel.EventBreakpointsManager {
|
|
207
230
|
return this.context.get(SDK.EventBreakpointsModel.EventBreakpointsManager);
|
|
208
231
|
}
|
|
209
232
|
|
|
233
|
+
get fileManager(): Workspace.FileManager.FileManager {
|
|
234
|
+
return this.context.get(Workspace.FileManager.FileManager);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
get gdpClient(): Host.GdpClient.GdpClient {
|
|
238
|
+
return this.context.get(Host.GdpClient.GdpClient);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
get hostConfigTracker(): Host.AidaClient.HostConfigTracker {
|
|
242
|
+
return this.context.get(Host.AidaClient.HostConfigTracker);
|
|
243
|
+
}
|
|
244
|
+
|
|
210
245
|
get isolatedFileSystemManager(): Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager {
|
|
211
246
|
return this.context.get(Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager);
|
|
212
247
|
}
|
|
@@ -219,10 +254,18 @@ export class Universe {
|
|
|
219
254
|
return this.context.get(Persistence.NetworkPersistenceManager.NetworkPersistenceManager);
|
|
220
255
|
}
|
|
221
256
|
|
|
257
|
+
get networkProjectManager(): Bindings.NetworkProject.NetworkProjectManager {
|
|
258
|
+
return this.context.get(Bindings.NetworkProject.NetworkProjectManager);
|
|
259
|
+
}
|
|
260
|
+
|
|
222
261
|
get liveMetrics(): LiveMetrics.LiveMetrics {
|
|
223
262
|
return this.context.get(LiveMetrics.LiveMetrics);
|
|
224
263
|
}
|
|
225
264
|
|
|
265
|
+
get frameManager(): SDK.FrameManager.FrameManager {
|
|
266
|
+
return this.context.get(SDK.FrameManager.FrameManager);
|
|
267
|
+
}
|
|
268
|
+
|
|
226
269
|
get pageResourceLoader(): SDK.PageResourceLoader.PageResourceLoader {
|
|
227
270
|
return this.context.get(SDK.PageResourceLoader.PageResourceLoader);
|
|
228
271
|
}
|
|
@@ -819,8 +819,8 @@ inspectorBackend.registerEnum("Network.ContentSecurityPolicySource", {HTTP: "HTT
|
|
|
819
819
|
inspectorBackend.registerEnum("Network.ReportStatus", {Queued: "Queued", Pending: "Pending", MarkedForRemoval: "MarkedForRemoval", Success: "Success"});
|
|
820
820
|
inspectorBackend.registerEnum("Network.DeviceBoundSessionWithUsageUsage", {NotInScope: "NotInScope", InScopeRefreshNotYetNeeded: "InScopeRefreshNotYetNeeded", InScopeRefreshNotAllowed: "InScopeRefreshNotAllowed", ProactiveRefreshNotPossible: "ProactiveRefreshNotPossible", ProactiveRefreshAttempted: "ProactiveRefreshAttempted", Deferred: "Deferred"});
|
|
821
821
|
inspectorBackend.registerEnum("Network.DeviceBoundSessionUrlRuleRuleType", {Exclude: "Exclude", Include: "Include"});
|
|
822
|
-
inspectorBackend.registerEnum("Network.DeviceBoundSessionFetchResult", {Success: "Success", SigningKeyGenerationError: "SigningKeyGenerationError", AttestationKeyGenerationError: "AttestationKeyGenerationError", SigningError: "SigningError", TransientSigningError: "TransientSigningError", ServerRequestedTermination: "ServerRequestedTermination", InvalidSessionId: "InvalidSessionId", InvalidChallenge: "InvalidChallenge", TooManyChallenges: "TooManyChallenges", InvalidFetcherUrl: "InvalidFetcherUrl", InvalidRefreshUrl: "InvalidRefreshUrl", TransientHttpError: "TransientHttpError", ScopeOriginSameSiteMismatch: "ScopeOriginSameSiteMismatch", RefreshUrlSameSiteMismatch: "RefreshUrlSameSiteMismatch", MismatchedSessionId: "MismatchedSessionId", MissingScope: "MissingScope", NoCredentials: "NoCredentials", SubdomainRegistrationWellKnownUnavailable: "SubdomainRegistrationWellKnownUnavailable", SubdomainRegistrationUnauthorized: "SubdomainRegistrationUnauthorized", SubdomainRegistrationWellKnownMalformed: "SubdomainRegistrationWellKnownMalformed", SessionProviderWellKnownUnavailable: "SessionProviderWellKnownUnavailable", RelyingPartyWellKnownUnavailable: "RelyingPartyWellKnownUnavailable", FederatedKeyThumbprintMismatch: "FederatedKeyThumbprintMismatch", InvalidFederatedSessionUrl: "InvalidFederatedSessionUrl", InvalidFederatedKey: "InvalidFederatedKey", TooManyRelyingOriginLabels: "TooManyRelyingOriginLabels", BoundCookieSetForbidden: "BoundCookieSetForbidden", NetError: "NetError", ProxyError: "ProxyError", EmptySessionConfig: "EmptySessionConfig", InvalidCredentialsConfig: "InvalidCredentialsConfig", InvalidCredentialsType: "InvalidCredentialsType", InvalidCredentialsEmptyName: "InvalidCredentialsEmptyName", InvalidCredentialsCookie: "InvalidCredentialsCookie", PersistentHttpError: "PersistentHttpError", RegistrationAttemptedChallenge: "RegistrationAttemptedChallenge", InvalidScopeOrigin: "InvalidScopeOrigin", ScopeOriginContainsPath: "ScopeOriginContainsPath", RefreshInitiatorNotString: "RefreshInitiatorNotString", RefreshInitiatorInvalidHostPattern: "RefreshInitiatorInvalidHostPattern", InvalidScopeSpecification: "InvalidScopeSpecification", MissingScopeSpecificationType: "MissingScopeSpecificationType", EmptyScopeSpecificationDomain: "EmptyScopeSpecificationDomain", EmptyScopeSpecificationPath: "EmptyScopeSpecificationPath", InvalidScopeSpecificationType: "InvalidScopeSpecificationType", InvalidScopeIncludeSite: "InvalidScopeIncludeSite", MissingScopeIncludeSite: "MissingScopeIncludeSite", FederatedNotAuthorizedByProvider: "FederatedNotAuthorizedByProvider", FederatedNotAuthorizedByRelyingParty: "FederatedNotAuthorizedByRelyingParty", SessionProviderWellKnownMalformed: "SessionProviderWellKnownMalformed", SessionProviderWellKnownHasProviderOrigin: "SessionProviderWellKnownHasProviderOrigin", RelyingPartyWellKnownMalformed: "RelyingPartyWellKnownMalformed", RelyingPartyWellKnownHasRelyingOrigins: "RelyingPartyWellKnownHasRelyingOrigins", InvalidFederatedSessionProviderSessionMissing: "InvalidFederatedSessionProviderSessionMissing", InvalidFederatedSessionWrongProviderOrigin: "InvalidFederatedSessionWrongProviderOrigin", InvalidCredentialsCookieCreationTime: "InvalidCredentialsCookieCreationTime", InvalidCredentialsCookieName: "InvalidCredentialsCookieName", InvalidCredentialsCookieParsing: "InvalidCredentialsCookieParsing", InvalidCredentialsCookieUnpermittedAttribute: "InvalidCredentialsCookieUnpermittedAttribute", InvalidCredentialsCookieInvalidDomain: "InvalidCredentialsCookieInvalidDomain", InvalidCredentialsCookiePrefix: "InvalidCredentialsCookiePrefix", InvalidScopeRulePath: "InvalidScopeRulePath", InvalidScopeRuleHostPattern: "InvalidScopeRuleHostPattern", ScopeRuleOriginScopedHostPatternMismatch: "ScopeRuleOriginScopedHostPatternMismatch", ScopeRuleSiteScopedHostPatternMismatch: "ScopeRuleSiteScopedHostPatternMismatch", SigningQuotaExceeded: "SigningQuotaExceeded", InvalidConfigJson: "InvalidConfigJson", InvalidFederatedSessionProviderFailedToRestoreKey: "InvalidFederatedSessionProviderFailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", SessionDeletedDuringRefresh: "SessionDeletedDuringRefresh", CrossOriginRegistrationSiteNotIncluded: "CrossOriginRegistrationSiteNotIncluded"});
|
|
823
|
-
inspectorBackend.registerEnum("Network.RefreshEventDetailsRefreshResult", {Refreshed: "Refreshed", InitializedService: "InitializedService", Unreachable: "Unreachable", ServerError: "ServerError",
|
|
822
|
+
inspectorBackend.registerEnum("Network.DeviceBoundSessionFetchResult", {Success: "Success", SigningKeyGenerationError: "SigningKeyGenerationError", AttestationKeyGenerationError: "AttestationKeyGenerationError", SigningError: "SigningError", TransientSigningError: "TransientSigningError", ServerRequestedTermination: "ServerRequestedTermination", InvalidSessionId: "InvalidSessionId", InvalidChallenge: "InvalidChallenge", TooManyChallenges: "TooManyChallenges", InvalidFetcherUrl: "InvalidFetcherUrl", InvalidRefreshUrl: "InvalidRefreshUrl", TransientHttpError: "TransientHttpError", ScopeOriginSameSiteMismatch: "ScopeOriginSameSiteMismatch", RefreshUrlSameSiteMismatch: "RefreshUrlSameSiteMismatch", MismatchedSessionId: "MismatchedSessionId", MissingScope: "MissingScope", NoCredentials: "NoCredentials", SubdomainRegistrationWellKnownUnavailable: "SubdomainRegistrationWellKnownUnavailable", SubdomainRegistrationUnauthorized: "SubdomainRegistrationUnauthorized", SubdomainRegistrationWellKnownMalformed: "SubdomainRegistrationWellKnownMalformed", SessionProviderWellKnownUnavailable: "SessionProviderWellKnownUnavailable", RelyingPartyWellKnownUnavailable: "RelyingPartyWellKnownUnavailable", FederatedKeyThumbprintMismatch: "FederatedKeyThumbprintMismatch", InvalidFederatedSessionUrl: "InvalidFederatedSessionUrl", InvalidFederatedKey: "InvalidFederatedKey", TooManyRelyingOriginLabels: "TooManyRelyingOriginLabels", BoundCookieSetForbidden: "BoundCookieSetForbidden", NetError: "NetError", ProxyError: "ProxyError", EmptySessionConfig: "EmptySessionConfig", InvalidCredentialsConfig: "InvalidCredentialsConfig", InvalidCredentialsType: "InvalidCredentialsType", InvalidCredentialsEmptyName: "InvalidCredentialsEmptyName", InvalidCredentialsCookie: "InvalidCredentialsCookie", PersistentHttpError: "PersistentHttpError", RegistrationAttemptedChallenge: "RegistrationAttemptedChallenge", InvalidScopeOrigin: "InvalidScopeOrigin", ScopeOriginContainsPath: "ScopeOriginContainsPath", RefreshInitiatorNotString: "RefreshInitiatorNotString", RefreshInitiatorInvalidHostPattern: "RefreshInitiatorInvalidHostPattern", InvalidScopeSpecification: "InvalidScopeSpecification", MissingScopeSpecificationType: "MissingScopeSpecificationType", EmptyScopeSpecificationDomain: "EmptyScopeSpecificationDomain", EmptyScopeSpecificationPath: "EmptyScopeSpecificationPath", InvalidScopeSpecificationType: "InvalidScopeSpecificationType", InvalidScopeIncludeSite: "InvalidScopeIncludeSite", MissingScopeIncludeSite: "MissingScopeIncludeSite", FederatedNotAuthorizedByProvider: "FederatedNotAuthorizedByProvider", FederatedNotAuthorizedByRelyingParty: "FederatedNotAuthorizedByRelyingParty", SessionProviderWellKnownMalformed: "SessionProviderWellKnownMalformed", SessionProviderWellKnownHasProviderOrigin: "SessionProviderWellKnownHasProviderOrigin", RelyingPartyWellKnownMalformed: "RelyingPartyWellKnownMalformed", RelyingPartyWellKnownHasRelyingOrigins: "RelyingPartyWellKnownHasRelyingOrigins", InvalidFederatedSessionProviderSessionMissing: "InvalidFederatedSessionProviderSessionMissing", InvalidFederatedSessionWrongProviderOrigin: "InvalidFederatedSessionWrongProviderOrigin", InvalidCredentialsCookieCreationTime: "InvalidCredentialsCookieCreationTime", InvalidCredentialsCookieName: "InvalidCredentialsCookieName", InvalidCredentialsCookieParsing: "InvalidCredentialsCookieParsing", InvalidCredentialsCookieUnpermittedAttribute: "InvalidCredentialsCookieUnpermittedAttribute", InvalidCredentialsCookieInvalidDomain: "InvalidCredentialsCookieInvalidDomain", InvalidCredentialsCookiePrefix: "InvalidCredentialsCookiePrefix", InvalidScopeRulePath: "InvalidScopeRulePath", InvalidScopeRuleHostPattern: "InvalidScopeRuleHostPattern", ScopeRuleOriginScopedHostPatternMismatch: "ScopeRuleOriginScopedHostPatternMismatch", ScopeRuleSiteScopedHostPatternMismatch: "ScopeRuleSiteScopedHostPatternMismatch", SigningQuotaExceeded: "SigningQuotaExceeded", InvalidConfigJson: "InvalidConfigJson", InvalidFederatedSessionProviderFailedToRestoreKey: "InvalidFederatedSessionProviderFailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", SessionDeletedDuringRefresh: "SessionDeletedDuringRefresh", CrossOriginRegistrationSiteNotIncluded: "CrossOriginRegistrationSiteNotIncluded", InvalidPreProvisionedKeyInitiatorMissing: "InvalidPreProvisionedKeyInitiatorMissing", PreProvisionedKeyAccessNotGranted: "PreProvisionedKeyAccessNotGranted", PreProvisionedKeyNotFound: "PreProvisionedKeyNotFound"});
|
|
823
|
+
inspectorBackend.registerEnum("Network.RefreshEventDetailsRefreshResult", {Refreshed: "Refreshed", InitializedService: "InitializedService", Unreachable: "Unreachable", ServerError: "ServerError", FatalError: "FatalError", SigningQuotaExceeded: "SigningQuotaExceeded", RefreshedAsWaiter: "RefreshedAsWaiter", TransientSigningError: "TransientSigningError"});
|
|
824
824
|
inspectorBackend.registerEnum("Network.TerminationEventDetailsDeletionReason", {Expired: "Expired", FailedToRestoreKey: "FailedToRestoreKey", FailedToUnwrapKey: "FailedToUnwrapKey", StoragePartitionCleared: "StoragePartitionCleared", ClearBrowsingData: "ClearBrowsingData", ServerRequested: "ServerRequested", InvalidSessionParams: "InvalidSessionParams", RefreshFatalError: "RefreshFatalError", DevTools: "DevTools"});
|
|
825
825
|
inspectorBackend.registerEnum("Network.ChallengeEventDetailsChallengeResult", {Success: "Success", NoSessionId: "NoSessionId", NoSessionMatch: "NoSessionMatch", CantSetBoundCookie: "CantSetBoundCookie"});
|
|
826
826
|
inspectorBackend.registerEvent("Network.dataReceived", ["requestId", "timestamp", "dataLength", "encodedDataLength", "data"]);
|
|
@@ -885,6 +885,7 @@ export const generatedProperties = [
|
|
|
885
885
|
"widows",
|
|
886
886
|
"width",
|
|
887
887
|
"will-change",
|
|
888
|
+
"window-drag",
|
|
888
889
|
"word-break",
|
|
889
890
|
"word-spacing",
|
|
890
891
|
"writing-mode",
|
|
@@ -1023,11 +1024,6 @@ export const generatedProperties = [
|
|
|
1023
1024
|
"runtime_flag_status": "stable"
|
|
1024
1025
|
},
|
|
1025
1026
|
{
|
|
1026
|
-
"keywords": [
|
|
1027
|
-
"none",
|
|
1028
|
-
"drag",
|
|
1029
|
-
"no-drag"
|
|
1030
|
-
],
|
|
1031
1027
|
"name": "app-region"
|
|
1032
1028
|
},
|
|
1033
1029
|
{
|
|
@@ -6061,6 +6057,17 @@ export const generatedProperties = [
|
|
|
6061
6057
|
],
|
|
6062
6058
|
"name": "will-change"
|
|
6063
6059
|
},
|
|
6060
|
+
{
|
|
6061
|
+
"inherited": true,
|
|
6062
|
+
"keywords": [
|
|
6063
|
+
"none",
|
|
6064
|
+
"move",
|
|
6065
|
+
"no-drag"
|
|
6066
|
+
],
|
|
6067
|
+
"name": "window-drag",
|
|
6068
|
+
"runtime_flag": "CSSWindowDrag",
|
|
6069
|
+
"runtime_flag_status": "stable"
|
|
6070
|
+
},
|
|
6064
6071
|
{
|
|
6065
6072
|
"inherited": true,
|
|
6066
6073
|
"keywords": [
|
|
@@ -6388,13 +6395,6 @@ export const generatedPropertyValues = {
|
|
|
6388
6395
|
"none"
|
|
6389
6396
|
]
|
|
6390
6397
|
},
|
|
6391
|
-
"app-region": {
|
|
6392
|
-
"values": [
|
|
6393
|
-
"none",
|
|
6394
|
-
"drag",
|
|
6395
|
-
"no-drag"
|
|
6396
|
-
]
|
|
6397
|
-
},
|
|
6398
6398
|
"appearance": {
|
|
6399
6399
|
"values": [
|
|
6400
6400
|
"auto",
|
|
@@ -9174,6 +9174,13 @@ export const generatedPropertyValues = {
|
|
|
9174
9174
|
"auto"
|
|
9175
9175
|
]
|
|
9176
9176
|
},
|
|
9177
|
+
"window-drag": {
|
|
9178
|
+
"values": [
|
|
9179
|
+
"none",
|
|
9180
|
+
"move",
|
|
9181
|
+
"no-drag"
|
|
9182
|
+
]
|
|
9183
|
+
},
|
|
9177
9184
|
"word-break": {
|
|
9178
9185
|
"values": [
|
|
9179
9186
|
"normal",
|
|
@@ -12120,6 +12120,9 @@ export namespace Network {
|
|
|
12120
12120
|
FailedToUnwrapKey = 'FailedToUnwrapKey',
|
|
12121
12121
|
SessionDeletedDuringRefresh = 'SessionDeletedDuringRefresh',
|
|
12122
12122
|
CrossOriginRegistrationSiteNotIncluded = 'CrossOriginRegistrationSiteNotIncluded',
|
|
12123
|
+
InvalidPreProvisionedKeyInitiatorMissing = 'InvalidPreProvisionedKeyInitiatorMissing',
|
|
12124
|
+
PreProvisionedKeyAccessNotGranted = 'PreProvisionedKeyAccessNotGranted',
|
|
12125
|
+
PreProvisionedKeyNotFound = 'PreProvisionedKeyNotFound',
|
|
12123
12126
|
}
|
|
12124
12127
|
|
|
12125
12128
|
/**
|
|
@@ -12171,7 +12174,6 @@ export namespace Network {
|
|
|
12171
12174
|
InitializedService = 'InitializedService',
|
|
12172
12175
|
Unreachable = 'Unreachable',
|
|
12173
12176
|
ServerError = 'ServerError',
|
|
12174
|
-
RefreshQuotaExceeded = 'RefreshQuotaExceeded',
|
|
12175
12177
|
FatalError = 'FatalError',
|
|
12176
12178
|
SigningQuotaExceeded = 'SigningQuotaExceeded',
|
|
12177
12179
|
RefreshedAsWaiter = 'RefreshedAsWaiter',
|
|
@@ -68,7 +68,6 @@ export interface AiConversationOptions {
|
|
|
68
68
|
isReadOnly?: boolean;
|
|
69
69
|
aidaClient?: Host.AidaClient.AidaClient;
|
|
70
70
|
changeManager?: ChangeManager;
|
|
71
|
-
isExternal?: boolean;
|
|
72
71
|
performanceRecordAndReload?: () => Promise<Trace.TraceModel.ParsedTrace>;
|
|
73
72
|
onInspectElement?: () => Promise<SDK.DOMModel.DOMNode|null>;
|
|
74
73
|
networkTimeCalculator?: NetworkTimeCalculator.NetworkTransferTimeCalculator;
|
|
@@ -88,7 +87,6 @@ export class AiConversation {
|
|
|
88
87
|
data: history,
|
|
89
88
|
id: serializedConversation.id,
|
|
90
89
|
isReadOnly: true,
|
|
91
|
-
isExternal: serializedConversation.isExternal,
|
|
92
90
|
});
|
|
93
91
|
}
|
|
94
92
|
|
|
@@ -100,7 +98,6 @@ export class AiConversation {
|
|
|
100
98
|
|
|
101
99
|
#isReadOnly: boolean;
|
|
102
100
|
readonly history: ResponseData[];
|
|
103
|
-
#isExternal: boolean;
|
|
104
101
|
|
|
105
102
|
#aidaClient: Host.AidaClient.AidaClient;
|
|
106
103
|
#changeManager: ChangeManager|undefined;
|
|
@@ -122,7 +119,6 @@ export class AiConversation {
|
|
|
122
119
|
isReadOnly = true,
|
|
123
120
|
aidaClient = new Host.AidaClient.AidaClient(),
|
|
124
121
|
changeManager,
|
|
125
|
-
isExternal = false,
|
|
126
122
|
performanceRecordAndReload,
|
|
127
123
|
onInspectElement,
|
|
128
124
|
networkTimeCalculator,
|
|
@@ -137,7 +133,6 @@ export class AiConversation {
|
|
|
137
133
|
|
|
138
134
|
this.id = id;
|
|
139
135
|
this.#isReadOnly = isReadOnly;
|
|
140
|
-
this.#isExternal = isExternal;
|
|
141
136
|
this.history = this.#reconstructHistory(data);
|
|
142
137
|
// Needs to be last
|
|
143
138
|
this.#updateAgent(type);
|
|
@@ -147,6 +142,18 @@ export class AiConversation {
|
|
|
147
142
|
return this.#isReadOnly;
|
|
148
143
|
}
|
|
149
144
|
|
|
145
|
+
static titleForSerialized(serialized: SerializedConversation): string|undefined {
|
|
146
|
+
const query = serialized.history.find(item => item.type === ResponseType.USER_QUERY)?.query;
|
|
147
|
+
if (!query) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
return AiConversation.title(query);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static title(query: string): string {
|
|
154
|
+
return `${query.substring(0, MAX_TITLE_LENGTH)}${query.length > MAX_TITLE_LENGTH ? '…' : ''}`;
|
|
155
|
+
}
|
|
156
|
+
|
|
150
157
|
get title(): string|undefined {
|
|
151
158
|
const query = this.history.find(response => response.type === ResponseType.USER_QUERY)?.query;
|
|
152
159
|
|
|
@@ -154,11 +161,7 @@ export class AiConversation {
|
|
|
154
161
|
return;
|
|
155
162
|
}
|
|
156
163
|
|
|
157
|
-
|
|
158
|
-
return `[External] ${query.substring(0, MAX_TITLE_LENGTH - 11)}${
|
|
159
|
-
query.length > MAX_TITLE_LENGTH - 11 ? '…' : ''}`;
|
|
160
|
-
}
|
|
161
|
-
return `${query.substring(0, MAX_TITLE_LENGTH)}${query.length > MAX_TITLE_LENGTH ? '…' : ''}`;
|
|
164
|
+
return AiConversation.title(query);
|
|
162
165
|
}
|
|
163
166
|
|
|
164
167
|
get isEmpty(): boolean {
|
|
@@ -322,7 +325,6 @@ export class AiConversation {
|
|
|
322
325
|
})
|
|
323
326
|
.filter(history => !!history),
|
|
324
327
|
type: this.#type,
|
|
325
|
-
isExternal: this.#isExternal,
|
|
326
328
|
};
|
|
327
329
|
}
|
|
328
330
|
|
|
@@ -407,8 +409,8 @@ export class AiConversation {
|
|
|
407
409
|
}
|
|
408
410
|
};
|
|
409
411
|
const targetManager = SDK.TargetManager.TargetManager.instance();
|
|
410
|
-
targetManager.addModelListener(
|
|
411
|
-
|
|
412
|
+
targetManager.addModelListener(SDK.ResourceTreeModel.ResourceTreeModel,
|
|
413
|
+
SDK.ResourceTreeModel.Events.PrimaryPageChanged, listener, this);
|
|
412
414
|
|
|
413
415
|
try {
|
|
414
416
|
if (this.isBlockedByOrigin) {
|
|
@@ -419,8 +421,8 @@ export class AiConversation {
|
|
|
419
421
|
|
|
420
422
|
yield* this.#runAgent(initialQuery, options, {isInitialCall: true});
|
|
421
423
|
} finally {
|
|
422
|
-
targetManager.removeModelListener(
|
|
423
|
-
|
|
424
|
+
targetManager.removeModelListener(SDK.ResourceTreeModel.ResourceTreeModel,
|
|
425
|
+
SDK.ResourceTreeModel.Events.PrimaryPageChanged, listener, this);
|
|
424
426
|
}
|
|
425
427
|
}
|
|
426
428
|
|
|
@@ -491,8 +493,8 @@ export class AiConversation {
|
|
|
491
493
|
if (data.type === ResponseType.CONTEXT_CHANGE) {
|
|
492
494
|
this.setContext(data.context);
|
|
493
495
|
yield*
|
|
494
|
-
this.#runAgent(
|
|
495
|
-
|
|
496
|
+
this.#runAgent(this.#getQueryAfterSelection(initialQuery, data.description), options,
|
|
497
|
+
{isInitialCall: false});
|
|
496
498
|
return;
|
|
497
499
|
}
|
|
498
500
|
}
|