chrome-devtools-frontend 1.0.1738725 → 1.0.1742811
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/rules/ui-and-widgets/ui-accessibility-and-semantic-html.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +44 -7
- package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +1 -1
- package/.agents/rules/ui-and-widgets/ui-view-output-and-callback-contracts.md +2 -2
- package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +1 -1
- package/.agents/skills/code-review/SKILL.md +23 -6
- package/.agents/skills/devtools-verification/SKILL.md +2 -1
- package/.agents/skills/migrate-chromium-test/SKILL.md +1 -0
- package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -11
- package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +41 -23
- package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +12 -7
- package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -0
- package/.agents/skills/ui-widgets/SKILL.md +22 -7
- package/.agents/skills/version-control/SKILL.md +10 -1
- package/.agents/skills/visual-regression-audit/SKILL.md +88 -0
- package/.gitallowed +2 -1
- package/.stylelintignore +1 -0
- package/.stylelintrc.json +5 -1
- package/AUTHORS +1 -0
- package/DIR_METADATA +2 -1
- package/PRESUBMIT_test.py +143 -0
- package/config/owner/INFRA_OWNERS +0 -1
- package/docs/contributing/infrastructure.md +2 -2
- package/docs/ui_engineering.md +14 -4
- package/eslint.config.mjs +119 -9
- package/front_end/application_tokens.css +0 -65
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/AidaClientTypes.ts +2 -0
- package/front_end/core/host/AidaErrors.ts +3 -3
- package/front_end/core/host/AidaGcaTranslation.ts +39 -0
- package/front_end/core/host/GcaClient.ts +32 -20
- package/front_end/core/host/GcaTypes.ts +4 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/i18n/DevToolsLocale.ts +0 -1
- package/front_end/core/sdk/DebuggerModel.ts +25 -13
- package/front_end/core/sdk/PreloadingModel.ts +2 -2
- package/front_end/core/sdk/RehydratingConnection.ts +59 -30
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/core/sdk/StorageKeyManager.ts +0 -1
- package/front_end/core/sdk/Target.ts +6 -0
- package/front_end/core/sdk/TargetManager.ts +10 -4
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +12 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +159 -52
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +77 -25
- package/front_end/entrypoints/main/MainImpl.ts +32 -15
- package/front_end/models/ai_assistance/AiAgent2.ts +95 -46
- package/front_end/models/ai_assistance/AiConversation.ts +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +9 -2
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +3 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/FileFormatter.ts +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +5 -4
- package/front_end/models/ai_assistance/performance/AICallTree.ts +7 -9
- package/front_end/models/ai_assistance/performance/AIQueries.ts +4 -8
- package/front_end/models/ai_assistance/skills/SkillRegistry.ts +11 -1
- package/front_end/models/ai_assistance/skills/lighthouse.md +1 -0
- package/front_end/models/ai_assistance/skills/network.md +3 -4
- package/front_end/models/ai_assistance/skills/sources.md +1 -2
- package/front_end/models/ai_assistance/skills/styling.md +3 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +11 -3
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +84 -23
- package/front_end/models/ai_assistance/tools/ListSources.ts +41 -13
- package/front_end/models/badges/Badge.ts +0 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +1 -1
- package/front_end/models/breakpoints/BreakpointManager.ts +2 -4
- package/front_end/models/breakpoints/RecurringPauseDetector.ts +140 -0
- package/front_end/models/breakpoints/breakpoints.ts +2 -1
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +2 -2
- package/front_end/models/persistence/Automapping.ts +0 -1
- package/front_end/models/trace/Processor.ts +16 -7
- package/front_end/models/trace/README.md +17 -1
- package/front_end/models/trace/extras/ThirdParties.ts +4 -6
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +159 -125
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/MetaHandler.ts +3 -0
- package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
- package/front_end/models/trace/handlers/types.ts +15 -0
- package/front_end/models/trace/helpers/Extensions.ts +1 -3
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
- package/front_end/models/trace/helpers/Trace.ts +19 -14
- package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
- package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -1
- package/front_end/models/web_mcp/WebMCPModel.ts +19 -9
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +30 -3
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +2 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +1 -22
- package/front_end/panels/ai_assistance/components/chatView.css +0 -180
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -19
- package/front_end/panels/ai_assistance/components/optInChangeDialog.css +1 -1
- package/front_end/panels/ai_assistance/components/walkthroughView.css +0 -13
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -2
- package/front_end/panels/animation/AnimationTimeline.ts +5 -3
- package/front_end/panels/animation/animationTimeline.css +10 -8
- package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -11
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/ReportingApiView.ts +0 -1
- package/front_end/panels/application/SubAppsView.ts +0 -1
- package/front_end/panels/application/WebMCPTreeElement.ts +3 -6
- package/front_end/panels/application/WebMCPView.ts +30 -0
- package/front_end/panels/application/components/ReportsGrid.ts +0 -1
- package/front_end/panels/application/components/backForwardCacheView.css +1 -8
- package/front_end/panels/application/components/permissionsPolicySection.css +2 -2
- package/front_end/panels/application/components/protocolHandlersView.css +46 -39
- package/front_end/panels/application/components/trustTokensView.css +0 -4
- package/front_end/panels/application/cookieItemsView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +0 -6
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +0 -2
- package/front_end/panels/application/preloading/components/PreloadingString.ts +0 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +4 -5
- package/front_end/panels/application/preloading/components/preloadingGrid.css +0 -9
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +2 -9
- package/front_end/panels/application/serviceWorkersView.css +5 -4
- package/front_end/panels/application/storageView.css +0 -5
- package/front_end/panels/application/webMCPView.css +17 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +15 -20
- package/front_end/panels/changes/changesView.css +0 -5
- package/front_end/panels/common/ExtensionServer.ts +80 -10
- package/front_end/panels/console/ConsolePanel.ts +92 -18
- package/front_end/panels/console/consoleContextSelector.css +1 -8
- package/front_end/panels/console/consoleInsightTeaser.css +10 -17
- package/front_end/panels/console/consolePinPane.css +3 -1
- package/front_end/panels/console/consoleView.css +14 -18
- package/front_end/panels/coverage/coverageListView.css +0 -4
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +0 -22
- package/front_end/panels/css_overview/cssOverviewStartView.css +0 -43
- package/front_end/panels/developer_resources/developerResourcesListView.css +0 -4
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +52 -45
- package/front_end/panels/elements/LayoutPane.ts +1 -3
- package/front_end/panels/elements/PropertiesWidget.ts +26 -8
- package/front_end/panels/elements/PropertyRenderer.ts +45 -21
- package/front_end/panels/elements/StandaloneStylesContainer.ts +6 -7
- package/front_end/panels/elements/StyleEditorWidget.ts +110 -63
- package/front_end/panels/elements/StylePropertiesSection.ts +18 -14
- package/front_end/panels/elements/StylePropertyTreeElement.ts +556 -527
- package/front_end/panels/elements/StylesContainer.ts +5 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -15
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/components/CSSVariableValueView.ts +17 -4
- package/front_end/panels/elements/components/StylePropertyEditor.ts +178 -140
- package/front_end/panels/elements/components/cssQuery.css +1 -1
- package/front_end/panels/elements/components/stylePropertyEditor.css +60 -56
- package/front_end/panels/elements/layoutPane.css +2 -2
- package/front_end/panels/elements/metricsSidebarPane.css +7 -8
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -12
- package/front_end/panels/elements/stylesSidebarPane.css +3 -5
- package/front_end/panels/emulation/deviceModeView.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -2
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -7
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
- package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
- package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
- package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +13 -43
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +4 -3
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +1 -6
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/lighthouse/lighthouseStartView.css +5 -16
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +0 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryHighlightChipList.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/linearMemoryViewer.css +2 -2
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -1
- package/front_end/panels/media/playerListView.css +1 -2
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +4 -4
- package/front_end/panels/network/NetworkLogView.ts +603 -582
- package/front_end/panels/network/RequestCookiesView.ts +0 -1
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/networkConfigView.css +3 -4
- package/front_end/panels/network/networkLogView.css +363 -377
- package/front_end/panels/network/networkPanel.css +1 -7
- package/front_end/panels/network/networkTimingTable.css +12 -27
- package/front_end/panels/network/networkWaterfallColumn.css +1 -1
- package/front_end/panels/network/requestConditionsDrawer.css +0 -4
- package/front_end/panels/network/requestCookiesView.css +7 -1
- package/front_end/panels/network/requestPayloadTree.css +0 -4
- package/front_end/panels/profiler/HeapProfileView.ts +1 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -7
- package/front_end/panels/profiler/profilesPanel.css +0 -11
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecorderPanel.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +32 -11
- package/front_end/panels/recorder/StepView.ts +31 -5
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/createRecordingView.css +1 -1
- package/front_end/panels/recorder/recorderPanel.css +0 -9
- package/front_end/panels/recorder/recordingListView.css +4 -4
- package/front_end/panels/recorder/recordingView.css +44 -52
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepEditor.css +4 -4
- package/front_end/panels/recorder/stepView.css +47 -21
- package/front_end/panels/recorder/timelineSection.css +63 -83
- package/front_end/panels/screencast/ScreencastApp.ts +0 -1
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/security/originView.css +2 -2
- package/front_end/panels/sensors/SensorsView.ts +273 -361
- package/front_end/panels/settings/BackendLinkingSettingsTab.ts +0 -1
- package/front_end/panels/settings/backendLinkingSettingsTab.css +7 -7
- package/front_end/panels/settings/components/syncSection.css +0 -1
- package/front_end/panels/settings/workspaceSettingsTab.css +0 -5
- package/front_end/panels/sources/CSSPlugin.ts +177 -98
- package/front_end/panels/sources/DebuggerPausedMessage.ts +100 -27
- package/front_end/panels/sources/NavigatorView.ts +926 -946
- package/front_end/panels/sources/SourcesPanel.ts +9 -2
- package/front_end/panels/sources/breakpointsView.css +6 -28
- package/front_end/panels/sources/components/HeadersView.css +2 -2
- package/front_end/panels/sources/debuggerPausedMessage.css +7 -0
- package/front_end/panels/sources/navigatorTree.css +7 -2
- package/front_end/panels/sources/sourcesNavigator.css +0 -9
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -10
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +3 -0
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +0 -10
- package/front_end/panels/timeline/ModificationsManager.ts +0 -1
- package/front_end/panels/timeline/ThreadAppender.ts +2 -6
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelinePanel.ts +2 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +63 -50
- package/front_end/panels/timeline/TimelineUIUtils.ts +8 -10
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +0 -2
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +1 -6
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +0 -12
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -1
- package/front_end/panels/timeline/components/layoutShiftDetails.css +2 -9
- package/front_end/panels/timeline/components/liveMetricsView.css +0 -16
- package/front_end/panels/timeline/components/metricCard.css +1 -5
- package/front_end/panels/timeline/components/networkRequestDetails.css +3 -3
- package/front_end/panels/timeline/components/networkRequestTooltip.css +6 -4
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -1
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/timelineDetailsView.css +1 -12
- package/front_end/panels/timeline/timelineFlamechartPopover.css +0 -4
- package/front_end/panels/timeline/timelineMiniMap.css +1 -4
- package/front_end/panels/timeline/timelinePanel.css +0 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/timeline/timelineTreeView.css +0 -12
- package/front_end/panels/timeline/utils/EntryNodes.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +2 -8
- package/front_end/panels/whats_new/ReleaseNoteText.ts +1 -1
- package/front_end/third_party/axe-core/README.chromium +2 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/buttons/button.css +0 -28
- package/front_end/ui/components/buttons/textButton.css +1 -45
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/input/checkbox.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/menus/Menu.ts +14 -0
- package/front_end/ui/components/menus/menu.css +2 -14
- package/front_end/ui/components/menus/menuItem.css +0 -4
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/survey_link/surveyLink.css +3 -3
- package/front_end/ui/components/switch/switch.css +3 -2
- package/front_end/ui/components/text_editor/theme.ts +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -24
- package/front_end/ui/legacy/ContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftContextMenu.ts +24 -8
- package/front_end/ui/legacy/Toolbar.ts +1 -1
- package/front_end/ui/legacy/Treeoutline.ts +31 -78
- package/front_end/ui/legacy/UIUtils.ts +9 -17
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -44
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +39 -27
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -10
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -6
- package/front_end/ui/legacy/components/inline_editor/BezierEditor.ts +34 -26
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/swatchPopover.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +83 -21
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +0 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +41 -14
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -9
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +2 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +0 -5
- package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +6 -3
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +95 -1
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +7 -3
- package/front_end/ui/legacy/inspectorCommon.css +7 -81
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +2 -2
- package/front_end/ui/legacy/progressIndicator.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +6 -10
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/front_end/ui/visual_logging/LoggingDriver.ts +4 -0
- package/front_end/ui/visual_logging/visual_logging.ts +1 -1
- package/inspector_overlay/common.ts +0 -3
- package/inspector_overlay/main.ts +1 -3
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/inspector_overlay/tool_source_order.css +0 -4
- package/package.json +1 -1
- package/front_end/generated/SupportedCSSProperties.ts +0 -9689
|
@@ -928,6 +928,19 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
+
/**
|
|
932
|
+
* Returns true when `defaultType` is NONE only because AI Assistance is in the
|
|
933
|
+
* main tab bar. The main tab bar shows one tab at a time, so while AI
|
|
934
|
+
* Assistance is selected there, no domain panel (Elements, Network, ...) can be
|
|
935
|
+
* visible. In that case NONE does not mean that the user moved away, and
|
|
936
|
+
* callers must keep the current conversation and its context.
|
|
937
|
+
*/
|
|
938
|
+
#isDomainPanelHiddenByMainTabBar(defaultType?: AiAssistanceModel.AiHistoryStorage.ConversationType): boolean {
|
|
939
|
+
return AiAssistanceModel.AiUtils.isContextSelectionEnabled() &&
|
|
940
|
+
defaultType === AiAssistanceModel.AiHistoryStorage.ConversationType.NONE &&
|
|
941
|
+
UI.ViewManager.ViewManager.instance().locationNameForViewId(AiAssistancePanel.panelName) === 'panel';
|
|
942
|
+
}
|
|
943
|
+
|
|
931
944
|
#getDefaultConversationType(): AiAssistanceModel.AiHistoryStorage.ConversationType|undefined {
|
|
932
945
|
const {hostConfig} = Root.Runtime;
|
|
933
946
|
const viewManager = UI.ViewManager.ViewManager.instance();
|
|
@@ -978,6 +991,11 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
978
991
|
}
|
|
979
992
|
|
|
980
993
|
const targetConversationType = this.#getDefaultConversationType();
|
|
994
|
+
if (this.#conversation && this.#isDomainPanelHiddenByMainTabBar(targetConversationType)) {
|
|
995
|
+
// Keep the existing empty conversation instead of replacing it with a NONE conversation.
|
|
996
|
+
this.requestUpdate();
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
981
999
|
if (this.#conversation?.type === targetConversationType) {
|
|
982
1000
|
this.requestUpdate();
|
|
983
1001
|
// The above if makes sure even if we have an active agent it's empty
|
|
@@ -1035,8 +1053,9 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1035
1053
|
|
|
1036
1054
|
if (this.#conversation) {
|
|
1037
1055
|
if (this.#conversation.isEmpty && AiAssistanceModel.AiUtils.isContextSelectionEnabled()) {
|
|
1038
|
-
const
|
|
1039
|
-
this.#conversation.
|
|
1056
|
+
const defaultType = this.#getDefaultConversationType();
|
|
1057
|
+
const lookupType = this.#isDomainPanelHiddenByMainTabBar(defaultType) ? this.#conversation.type : defaultType;
|
|
1058
|
+
this.#conversation.setContext(this.#getConversationContext(lookupType));
|
|
1040
1059
|
} else {
|
|
1041
1060
|
const previousContext = this.#conversation.selectedContext;
|
|
1042
1061
|
const previousItem = previousContext?.getItem();
|
|
@@ -1910,6 +1929,15 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
1910
1929
|
step.widgets = data.widgets;
|
|
1911
1930
|
step.state = {type: 'completed'};
|
|
1912
1931
|
commitStep();
|
|
1932
|
+
// Auto-loaded skills are logged for telemetry on the CONTEXT event without
|
|
1933
|
+
// creating a user-facing walkthrough step, because the selected context may
|
|
1934
|
+
// not be relevant to the user's question.
|
|
1935
|
+
if (!this.#conversation?.isReadOnly && AiAssistanceModel.AiUtils.isAiV2Enabled() &&
|
|
1936
|
+
data.autoLearnedSkills) {
|
|
1937
|
+
for (const skill of data.autoLearnedSkills) {
|
|
1938
|
+
void VisualLogging.logFunctionCall('ai-v2-auto-learn-skill', skill);
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1913
1941
|
break;
|
|
1914
1942
|
}
|
|
1915
1943
|
case AiAssistanceModel.AiAgent.ResponseType.TITLE: {
|
|
@@ -2031,7 +2059,6 @@ export class AiAssistancePanel extends UI.Panel.Panel {
|
|
|
2031
2059
|
}
|
|
2032
2060
|
|
|
2033
2061
|
// When there is an answer without any thinking steps, we don't want to show the thinking step.
|
|
2034
|
-
// TODO(crbug.com/463323934): Remove specially handling this case.
|
|
2035
2062
|
if (systemMessage.parts.length > 1) {
|
|
2036
2063
|
const firstPart = systemMessage.parts[0];
|
|
2037
2064
|
if (firstPart.type === 'step' && firstPart.step.state.type === 'in_progress' && !firstPart.step.thought &&
|
|
@@ -1332,16 +1332,14 @@ async function makeBottomUpTimelineTreeWidget(widgetData: AiAssistanceModel.AiAg
|
|
|
1332
1332
|
return null;
|
|
1333
1333
|
}
|
|
1334
1334
|
const events = bottomUpRootNode.events;
|
|
1335
|
-
const startTime = Trace.Helpers.Timing.microToMilli(widgetData.data.bounds.min);
|
|
1336
|
-
const endTime = Trace.Helpers.Timing.microToMilli(widgetData.data.bounds.max);
|
|
1337
1335
|
|
|
1338
1336
|
const renderedWidget = html`<devtools-widget
|
|
1339
1337
|
class="bottom-up-timeline-tree-widget"
|
|
1340
1338
|
${widget(Timeline.TimelineTreeView.BottomUpTimelineTreeView, {
|
|
1341
1339
|
selectedEvents: events,
|
|
1342
1340
|
parsedTrace: widgetData.data.parsedTrace,
|
|
1343
|
-
startTime,
|
|
1344
|
-
endTime,
|
|
1341
|
+
startTime: widgetData.data.bounds.min,
|
|
1342
|
+
endTime: widgetData.data.bounds.max,
|
|
1345
1343
|
compactMode: true,
|
|
1346
1344
|
maxLinkLength: 15,
|
|
1347
1345
|
maxRows: 10,
|
|
@@ -158,10 +158,6 @@
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.ai-css-change {
|
|
162
|
-
margin: var(--sys-size-6) 0;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
161
|
.answer-body-wrapper {
|
|
166
162
|
@container(min-width: 700px) {
|
|
167
163
|
/* Indent the content to align with the walkthrough CTA
|
|
@@ -174,18 +170,6 @@
|
|
|
174
170
|
border-bottom: 0;
|
|
175
171
|
}
|
|
176
172
|
|
|
177
|
-
.message-info {
|
|
178
|
-
display: flex;
|
|
179
|
-
align-items: center;
|
|
180
|
-
height: var(--sys-size-11);
|
|
181
|
-
gap: var(--sys-size-4);
|
|
182
|
-
font: var(--sys-typescale-body4-bold);
|
|
183
|
-
|
|
184
|
-
h2 {
|
|
185
|
-
font: var(--sys-typescale-body4-bold);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
173
|
.actions {
|
|
190
174
|
display: flex;
|
|
191
175
|
flex-direction: column;
|
|
@@ -268,7 +252,7 @@
|
|
|
268
252
|
|
|
269
253
|
.js-code-output {
|
|
270
254
|
devtools-code-block {
|
|
271
|
-
--code-block-max-code-height:
|
|
255
|
+
--code-block-max-code-height: var(--sys-size-17);
|
|
272
256
|
}
|
|
273
257
|
}
|
|
274
258
|
|
|
@@ -377,11 +361,6 @@
|
|
|
377
361
|
}
|
|
378
362
|
}
|
|
379
363
|
|
|
380
|
-
|
|
381
|
-
.error-step {
|
|
382
|
-
color: var(--sys-color-error);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
364
|
.side-effect-confirmation {
|
|
386
365
|
display: flex;
|
|
387
366
|
flex-direction: column;
|
|
@@ -29,12 +29,6 @@
|
|
|
29
29
|
container-name: --chat-ui-container;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.chat-cancel-context-button {
|
|
33
|
-
padding-bottom: 3px;
|
|
34
|
-
padding-right: var(--sys-size-3);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
32
|
.messages-container {
|
|
39
33
|
flex-grow: 1;
|
|
40
34
|
width: 100%;
|
|
@@ -50,10 +44,6 @@
|
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
.select-an-element-text {
|
|
54
|
-
margin-left: var(--sys-size-2);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
47
|
main {
|
|
58
48
|
overflow: hidden auto;
|
|
59
49
|
display: flex;
|
|
@@ -133,176 +123,6 @@ main {
|
|
|
133
123
|
}
|
|
134
124
|
}
|
|
135
125
|
|
|
136
|
-
.change-summary {
|
|
137
|
-
background-color: var(--sys-color-surface3);
|
|
138
|
-
border-radius: var(--sys-shape-corner-medium-small);
|
|
139
|
-
position: relative;
|
|
140
|
-
margin: 0 var(--sys-size-5) var(--sys-size-7) var(--sys-size-5);
|
|
141
|
-
padding: 0 var(--sys-size-5);
|
|
142
|
-
|
|
143
|
-
&.saved-to-disk {
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
& .header-container {
|
|
148
|
-
display: flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
gap: var(--sys-size-3);
|
|
151
|
-
height: var(--sys-size-14);
|
|
152
|
-
padding-left: var(--sys-size-3);
|
|
153
|
-
|
|
154
|
-
devtools-spinner {
|
|
155
|
-
width: var(--sys-size-6);
|
|
156
|
-
height: var(--sys-size-6);
|
|
157
|
-
margin-left: var(--sys-size-3);
|
|
158
|
-
margin-right: var(--sys-size-3);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
& devtools-icon.summary-badge {
|
|
162
|
-
width: var(--sys-size-8);
|
|
163
|
-
height: var(--sys-size-8);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
& .green-bright-icon {
|
|
167
|
-
color: var(--sys-color-green-bright);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
& .on-tonal-icon {
|
|
171
|
-
color: var(--sys-color-on-tonal-container);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
& .header-text {
|
|
175
|
-
font: var(--sys-typescale-body4);
|
|
176
|
-
color: var(--sys-color-on-surface);
|
|
177
|
-
white-space: nowrap;
|
|
178
|
-
overflow-x: hidden;
|
|
179
|
-
text-overflow: ellipsis;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
& .arrow {
|
|
183
|
-
margin-left: auto;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&::marker {
|
|
187
|
-
content: '';
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&:not(.saved-to-disk, &[open]):hover::after {
|
|
192
|
-
content: '';
|
|
193
|
-
height: 100%;
|
|
194
|
-
width: 100%;
|
|
195
|
-
border-radius: inherit;
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 0;
|
|
198
|
-
left: 0;
|
|
199
|
-
pointer-events: none;
|
|
200
|
-
background-color: var(--sys-color-state-hover-on-subtle);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&[open]:not(.saved-to-disk) {
|
|
204
|
-
&::details-content {
|
|
205
|
-
height: fit-content;
|
|
206
|
-
padding: var(--sys-size-2) 0;
|
|
207
|
-
border-radius: inherit;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
summary .arrow {
|
|
211
|
-
transform: rotate(180deg);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
devtools-code-block {
|
|
216
|
-
margin-bottom: var(--sys-size-5);
|
|
217
|
-
|
|
218
|
-
--code-block-background-color: var(--sys-color-surface1);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.error-container {
|
|
222
|
-
display: flex;
|
|
223
|
-
align-items: center;
|
|
224
|
-
gap: var(--sys-size-3);
|
|
225
|
-
color: var(--sys-color-error);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.footer {
|
|
229
|
-
display: flex;
|
|
230
|
-
flex-flow: row wrap;
|
|
231
|
-
justify-content: space-between;
|
|
232
|
-
margin: var(--sys-size-5) 0 var(--sys-size-5) var(--sys-size-2);
|
|
233
|
-
gap: var(--sys-size-6) var(--sys-size-5);
|
|
234
|
-
|
|
235
|
-
.disclaimer-link {
|
|
236
|
-
align-self: center;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.left-side {
|
|
240
|
-
flex-grow: 1;
|
|
241
|
-
display: flex;
|
|
242
|
-
align-self: center;
|
|
243
|
-
gap: var(--sys-size-3);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.save-or-discard-buttons {
|
|
247
|
-
flex-grow: 1;
|
|
248
|
-
display: flex;
|
|
249
|
-
justify-content: flex-end;
|
|
250
|
-
gap: var(--sys-size-3);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.change-workspace {
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: row;
|
|
256
|
-
align-items: center;
|
|
257
|
-
gap: var(--sys-size-3);
|
|
258
|
-
min-width: var(--sys-size-22);
|
|
259
|
-
flex: 1 1 40%;
|
|
260
|
-
|
|
261
|
-
.folder-name {
|
|
262
|
-
white-space: nowrap;
|
|
263
|
-
overflow-x: hidden;
|
|
264
|
-
text-overflow: ellipsis;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.loading-text-container {
|
|
269
|
-
margin-right: var(--sys-size-3);
|
|
270
|
-
display: flex;
|
|
271
|
-
justify-content: center;
|
|
272
|
-
align-items: center;
|
|
273
|
-
gap: var(--sys-size-3);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.apply-to-workspace-container {
|
|
277
|
-
display: flex;
|
|
278
|
-
align-items: center;
|
|
279
|
-
gap: var(--sys-size-3);
|
|
280
|
-
min-width: fit-content;
|
|
281
|
-
justify-content: flex-end;
|
|
282
|
-
flex-grow: 1;
|
|
283
|
-
flex-shrink: 1;
|
|
284
|
-
|
|
285
|
-
devtools-icon {
|
|
286
|
-
/* var(--sys-size-8) is too small and var(--sys-size-9) is too big. */
|
|
287
|
-
width: 18px;
|
|
288
|
-
height: 18px;
|
|
289
|
-
margin-left: var(--sys-size-2);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
@keyframes reveal {
|
|
296
|
-
0%,
|
|
297
|
-
99% {
|
|
298
|
-
opacity: 100%;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
100% {
|
|
302
|
-
opacity: 0%;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
126
|
.sticky {
|
|
307
127
|
position: sticky;
|
|
308
128
|
bottom: 0;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.feature-card {
|
|
82
82
|
display: flex;
|
|
83
83
|
padding: var(--sys-size-4) var(--sys-size-6);
|
|
84
|
-
gap:
|
|
84
|
+
gap: var(--sys-size-6);
|
|
85
85
|
background-color: var(--sys-color-surface2);
|
|
86
86
|
border-radius: var(--sys-shape-corner-medium-small);
|
|
87
87
|
width: 100%;
|
|
@@ -114,22 +114,4 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
.ai-assistance-explore-footer {
|
|
119
|
-
flex-shrink: 0;
|
|
120
|
-
width: 100%;
|
|
121
|
-
display: flex;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
align-items: center;
|
|
124
|
-
padding-block: var(--sys-size-3);
|
|
125
|
-
font: var(--sys-typescale-body5-regular);
|
|
126
|
-
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
127
|
-
text-wrap: balance;
|
|
128
|
-
text-align: center;
|
|
129
|
-
|
|
130
|
-
p {
|
|
131
|
-
margin: 0;
|
|
132
|
-
padding: 0;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
117
|
}
|
|
@@ -67,12 +67,6 @@
|
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.step-container {
|
|
71
|
-
display: flex;
|
|
72
|
-
gap: var(--sys-size-5);
|
|
73
|
-
align-items: flex-start;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
70
|
.step-icon {
|
|
77
71
|
color: var(--sys-color-on-surface-subtle);
|
|
78
72
|
width: var(--sys-size-8);
|
|
@@ -81,13 +75,6 @@
|
|
|
81
75
|
margin-top: var(--sys-size-2);
|
|
82
76
|
}
|
|
83
77
|
|
|
84
|
-
.step-content {
|
|
85
|
-
flex: 1;
|
|
86
|
-
font-size: var(--sys-typescale-body5-size);
|
|
87
|
-
color: var(--sys-color-on-surface);
|
|
88
|
-
line-height: 1.4;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
78
|
.empty-state {
|
|
92
79
|
display: flex;
|
|
93
80
|
align-items: center;
|
|
@@ -11,6 +11,7 @@ import {AnimationUI} from './AnimationUI.js';
|
|
|
11
11
|
|
|
12
12
|
const {render, html, svg, Directives: {classMap, ref}} = Lit;
|
|
13
13
|
|
|
14
|
+
const VIEW_BOX_WIDTH = 112;
|
|
14
15
|
const VIEW_BOX_HEIGHT = 32;
|
|
15
16
|
const MAX_ANIMATION_LINES_TO_SHOW = 10;
|
|
16
17
|
const MIN_ANIMATION_GROUP_DURATION = 750;
|
|
@@ -63,8 +64,8 @@ const DEFAULT_VIEW: View = (input, output, target) => {
|
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
const renderAnimationLines = (): Lit.LitTemplate => {
|
|
66
|
-
const timeToPixelRatio =
|
|
67
|
-
const viewBox = `0 0
|
|
67
|
+
const timeToPixelRatio = VIEW_BOX_WIDTH / Math.max(input.animationGroupDuration, MIN_ANIMATION_GROUP_DURATION);
|
|
68
|
+
const viewBox = `0 0 ${VIEW_BOX_WIDTH} ${VIEW_BOX_HEIGHT}`;
|
|
68
69
|
const lines = input.animations.map((animation, index) => {
|
|
69
70
|
const xStartPoint = animation.delayOrStartTime();
|
|
70
71
|
const xEndPoint = xStartPoint + animation.iterationDuration();
|
|
@@ -108,6 +108,8 @@ const nodeUIsByNode = new WeakMap<SDK.DOMModel.DOMNode, NodeUI>();
|
|
|
108
108
|
const MIN_TIMELINE_CONTROLS_WIDTH = 120;
|
|
109
109
|
const DEFAULT_TIMELINE_CONTROLS_WIDTH = 144;
|
|
110
110
|
const MAX_TIMELINE_CONTROLS_WIDTH = 720;
|
|
111
|
+
const GRID_OFFSET_LEFT = 12;
|
|
112
|
+
const GRID_LABEL_OFFSET_LEFT = GRID_OFFSET_LEFT + 2;
|
|
111
113
|
|
|
112
114
|
const ANIMATION_EXPLANATION_URL =
|
|
113
115
|
'https://developer.chrome.com/docs/devtools/css/animations' as Platform.DevToolsPath.UrlString;
|
|
@@ -1008,7 +1010,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
|
|
|
1008
1010
|
let lastDraw: number|undefined = undefined;
|
|
1009
1011
|
for (let time = 0; time < this.duration(); time += gridSize) {
|
|
1010
1012
|
const line = UI.UIUtils.createSVGChild(this.#grid, 'rect', 'animation-timeline-grid-line');
|
|
1011
|
-
line.setAttribute('x', (time * this.pixelTimeRatio() +
|
|
1013
|
+
line.setAttribute('x', (time * this.pixelTimeRatio() + GRID_OFFSET_LEFT).toString());
|
|
1012
1014
|
line.setAttribute('y', '23');
|
|
1013
1015
|
line.setAttribute('height', '100%');
|
|
1014
1016
|
line.setAttribute('width', '1');
|
|
@@ -1019,7 +1021,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
|
|
|
1019
1021
|
lastDraw = gridWidth;
|
|
1020
1022
|
const label = UI.UIUtils.createSVGChild(this.#grid, 'text', 'animation-timeline-grid-label');
|
|
1021
1023
|
label.textContent = isScrollDriven ? `${time.toFixed(0)}px` : i18n.TimeUtilities.millisToString(time);
|
|
1022
|
-
label.setAttribute('x', (gridWidth +
|
|
1024
|
+
label.setAttribute('x', (gridWidth + GRID_LABEL_OFFSET_LEFT).toString());
|
|
1023
1025
|
label.setAttribute('y', '16');
|
|
1024
1026
|
}
|
|
1025
1027
|
}
|
|
@@ -1119,7 +1121,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
|
|
|
1119
1121
|
|
|
1120
1122
|
// Seek to current mouse position.
|
|
1121
1123
|
if (!this.#gridOffsetLeft) {
|
|
1122
|
-
this.#gridOffsetLeft = this.#grid.getBoundingClientRect().left +
|
|
1124
|
+
this.#gridOffsetLeft = this.#grid.getBoundingClientRect().left + GRID_OFFSET_LEFT;
|
|
1123
1125
|
}
|
|
1124
1126
|
|
|
1125
1127
|
const {x} = event;
|
|
@@ -190,7 +190,7 @@ circle.animation-keyframe-point:active {
|
|
|
190
190
|
.animation-scrubber {
|
|
191
191
|
opacity: 100%;
|
|
192
192
|
position: absolute;
|
|
193
|
-
left: var(--sys-size-
|
|
193
|
+
left: var(--sys-size-6);
|
|
194
194
|
height: 100%;
|
|
195
195
|
width: 100%;
|
|
196
196
|
top: var(--sys-size-12);
|
|
@@ -219,8 +219,9 @@ circle.animation-keyframe-point:active {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.animation-scrubber-head {
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
/* 7px square: 11px .animation-scrubber-line width (2 * --sys-size-4 - --sys-size-1) minus 2 * 2px left/right inset (--sys-size-2) so the 45deg diamond stays centered on the 1px scrubber stem. */
|
|
223
|
+
width: calc(2 * var(--sys-size-4) - var(--sys-size-1) - 2 * var(--sys-size-2));
|
|
224
|
+
height: calc(2 * var(--sys-size-4) - var(--sys-size-1) - 2 * var(--sys-size-2));
|
|
224
225
|
transform: rotate(45deg);
|
|
225
226
|
background: var(--sys-color-error);
|
|
226
227
|
position: absolute;
|
|
@@ -231,8 +232,9 @@ circle.animation-keyframe-point:active {
|
|
|
231
232
|
|
|
232
233
|
.grid-overflow-wrapper {
|
|
233
234
|
position: absolute;
|
|
234
|
-
/* Offset left by the
|
|
235
|
-
|
|
235
|
+
/* Offset left by the 12px scrubber/grid origin (--sys-size-6)
|
|
236
|
+
* so t=0 aligns with --timeline-controls-width without clipping. */
|
|
237
|
+
left: calc(var(--timeline-controls-width) - var(--sys-size-6));
|
|
236
238
|
/* Position below the 28px top toolbar (--sys-size-12) + 48px animation group preview buffer (--sys-size-16) = 76px. */
|
|
237
239
|
top: calc(var(--sys-size-12) + var(--sys-size-16));
|
|
238
240
|
z-index: 1;
|
|
@@ -358,7 +360,7 @@ text.animation-timeline-grid-label {
|
|
|
358
360
|
border-radius: var(--sys-size-2);
|
|
359
361
|
flex: 1 1;
|
|
360
362
|
padding: var(--sys-size-3);
|
|
361
|
-
max-width:
|
|
363
|
+
max-width: var(--sys-size-20);
|
|
362
364
|
animation: newGroupAnim 200ms;
|
|
363
365
|
position: relative;
|
|
364
366
|
}
|
|
@@ -507,8 +509,8 @@ text.animation-timeline-grid-label {
|
|
|
507
509
|
|
|
508
510
|
.animation-remove-button {
|
|
509
511
|
position: absolute;
|
|
510
|
-
top: -
|
|
511
|
-
right: -
|
|
512
|
+
top: calc(-1 * var(--sys-size-2));
|
|
513
|
+
right: calc(-1 * var(--sys-size-2));
|
|
512
514
|
background: var(--sys-color-token-subtle);
|
|
513
515
|
border-radius: var(--sys-shape-corner-medium-small);
|
|
514
516
|
border: 0;
|
|
@@ -1282,14 +1282,13 @@ export class StorageTreeElement extends ApplicationPanelTreeElement {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
1284
|
export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement {
|
|
1285
|
-
private idbDatabaseTreeElements
|
|
1285
|
+
private idbDatabaseTreeElements = new Set<IDBDatabaseTreeElement>();
|
|
1286
1286
|
private storageBucket?: Protocol.Storage.StorageBucket;
|
|
1287
1287
|
constructor(storagePanel: ResourcesPanel, storageBucket?: Protocol.Storage.StorageBucket) {
|
|
1288
1288
|
super(storagePanel, i18nString(UIStrings.indexeddb), i18nString(UIStrings.noIndexeddb),
|
|
1289
1289
|
i18nString(UIStrings.indexeddbDescription), 'indexed-db');
|
|
1290
1290
|
const icon = createIcon('database');
|
|
1291
1291
|
this.setLeadingIcons([icon]);
|
|
1292
|
-
this.idbDatabaseTreeElements = [];
|
|
1293
1292
|
this.storageBucket = storageBucket;
|
|
1294
1293
|
this.initialize();
|
|
1295
1294
|
}
|
|
@@ -1304,9 +1303,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1304
1303
|
SDK.TargetManager.TargetManager.instance().addModelListener(IndexedDBModel,
|
|
1305
1304
|
IndexedDBModelEvents.IndexedDBContentUpdated,
|
|
1306
1305
|
this.indexedDBContentUpdated, this, {scoped: true});
|
|
1307
|
-
|
|
1308
|
-
// variable (indexeddb/live-update-indexeddb-content.js, indexeddb/delete-entry.js).
|
|
1309
|
-
this.idbDatabaseTreeElements = [];
|
|
1306
|
+
this.idbDatabaseTreeElements.clear();
|
|
1310
1307
|
|
|
1311
1308
|
for (const indexedDBModel of SDK.TargetManager.TargetManager.instance().models(IndexedDBModel, {scoped: true})) {
|
|
1312
1309
|
const databases = indexedDBModel.databases();
|
|
@@ -1323,9 +1320,10 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1323
1320
|
}
|
|
1324
1321
|
|
|
1325
1322
|
removeIndexedDBForModel(model: IndexedDBModel): void {
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1328
|
-
|
|
1323
|
+
for (const idbDatabaseTreeElement of this.idbDatabaseTreeElements) {
|
|
1324
|
+
if (idbDatabaseTreeElement.model === model) {
|
|
1325
|
+
this.removeIDBDatabaseTreeElement(idbDatabaseTreeElement);
|
|
1326
|
+
}
|
|
1329
1327
|
}
|
|
1330
1328
|
}
|
|
1331
1329
|
|
|
@@ -1365,7 +1363,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1365
1363
|
return;
|
|
1366
1364
|
}
|
|
1367
1365
|
const idbDatabaseTreeElement = new IDBDatabaseTreeElement(this.resourcesPanel, model, databaseId);
|
|
1368
|
-
this.idbDatabaseTreeElements.
|
|
1366
|
+
this.idbDatabaseTreeElements.add(idbDatabaseTreeElement);
|
|
1369
1367
|
this.appendChild(idbDatabaseTreeElement);
|
|
1370
1368
|
model.refreshDatabase(databaseId);
|
|
1371
1369
|
}
|
|
@@ -1383,7 +1381,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1383
1381
|
private removeIDBDatabaseTreeElement(idbDatabaseTreeElement: IDBDatabaseTreeElement): void {
|
|
1384
1382
|
idbDatabaseTreeElement.clear();
|
|
1385
1383
|
this.removeChild(idbDatabaseTreeElement);
|
|
1386
|
-
|
|
1384
|
+
this.idbDatabaseTreeElements.delete(idbDatabaseTreeElement);
|
|
1387
1385
|
this.setExpandable(this.childCount() > 0);
|
|
1388
1386
|
}
|
|
1389
1387
|
|
|
@@ -1414,7 +1412,12 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1414
1412
|
}
|
|
1415
1413
|
|
|
1416
1414
|
private idbDatabaseTreeElement(model: IndexedDBModel, databaseId: DatabaseId): IDBDatabaseTreeElement|null {
|
|
1417
|
-
|
|
1415
|
+
for (const element of this.idbDatabaseTreeElements) {
|
|
1416
|
+
if (element.databaseId.equals(databaseId) && element.model === model) {
|
|
1417
|
+
return element;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
return null;
|
|
1418
1421
|
}
|
|
1419
1422
|
}
|
|
1420
1423
|
|
|
@@ -119,6 +119,7 @@ export class ExpandableApplicationPanelTreeElement extends ApplicationPanelTreeE
|
|
|
119
119
|
protected emptyCategoryHeadline: string;
|
|
120
120
|
protected categoryDescription: string;
|
|
121
121
|
protected readonly settingsKey: string;
|
|
122
|
+
private wasDescendantSelected = false;
|
|
122
123
|
|
|
123
124
|
constructor(
|
|
124
125
|
resourcesPanel: ResourcesPanel, categoryName: string, emptyCategoryHeadline: string, categoryDescription: string,
|
|
@@ -164,22 +165,84 @@ export class ExpandableApplicationPanelTreeElement extends ApplicationPanelTreeE
|
|
|
164
165
|
this.categoryLink = link;
|
|
165
166
|
}
|
|
166
167
|
|
|
168
|
+
override select(omitFocus?: boolean, selectedByUser?: boolean): boolean {
|
|
169
|
+
if (this.selected && selectedByUser && !this.expanded && this.childCount() > 0) {
|
|
170
|
+
this.expand();
|
|
171
|
+
const childToSelect = this.findChildToAutoSelect();
|
|
172
|
+
if (childToSelect) {
|
|
173
|
+
childToSelect.select(omitFocus, true);
|
|
174
|
+
}
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const previousSelected = this.treeOutline?.selectedTreeElement ?? null;
|
|
179
|
+
this.wasDescendantSelected = Boolean(previousSelected?.hasAncestor(this));
|
|
180
|
+
try {
|
|
181
|
+
return super.select(omitFocus, selectedByUser);
|
|
182
|
+
} finally {
|
|
183
|
+
this.wasDescendantSelected = false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
167
187
|
override onselect(selectedByUser: boolean|undefined): boolean {
|
|
168
188
|
super.onselect(selectedByUser);
|
|
189
|
+
if (selectedByUser && !this.wasDescendantSelected && this.childCount() > 0) {
|
|
190
|
+
if (!this.expanded) {
|
|
191
|
+
this.expand();
|
|
192
|
+
}
|
|
193
|
+
const childToSelect = this.findChildToAutoSelect();
|
|
194
|
+
if (childToSelect) {
|
|
195
|
+
childToSelect.select(/* omitFocus= */ false, /* selectedByUser= */ true);
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
169
199
|
this.updateCategoryView();
|
|
170
200
|
const item = this.createGenericStorageAiContext();
|
|
171
201
|
UI.Context.Context.instance().setFlavor(AiAssistance.StorageItem.StorageItem, item);
|
|
172
202
|
return false;
|
|
173
203
|
}
|
|
174
204
|
|
|
205
|
+
private isOriginStorageCategory(): boolean {
|
|
206
|
+
return this.settingsKey === 'cookies' || this.settingsKey === 'local-storage' ||
|
|
207
|
+
this.settingsKey === 'session-storage';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
private getMainPageOrigin(): string {
|
|
211
|
+
const target = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
|
|
212
|
+
if (!target) {
|
|
213
|
+
return '';
|
|
214
|
+
}
|
|
215
|
+
const mainFrame = target.model(SDK.ResourceTreeModel.ResourceTreeModel)?.mainFrame;
|
|
216
|
+
const url = mainFrame?.unreachableUrl() || mainFrame?.url || target.inspectedURL();
|
|
217
|
+
return url ? Common.ParsedURL.ParsedURL.extractOrigin(url) : '';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
private findChildToAutoSelect(): UI.TreeOutline.TreeElement|null {
|
|
221
|
+
if (!this.isOriginStorageCategory()) {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
const selectableChildren = this.children().filter(child => child.selectable && !child.isExpandable());
|
|
225
|
+
if (selectableChildren.length === 0) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
const mainPageOrigin = this.getMainPageOrigin();
|
|
229
|
+
if (mainPageOrigin) {
|
|
230
|
+
const matchingChild = selectableChildren.find(child => child.titleAsText() === mainPageOrigin);
|
|
231
|
+
if (matchingChild) {
|
|
232
|
+
return matchingChild;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return selectableChildren.length === 1 ? selectableChildren[0] : null;
|
|
236
|
+
}
|
|
237
|
+
|
|
175
238
|
private updateCategoryView(): void {
|
|
176
239
|
const headline = this.childCount() === 0 ? this.emptyCategoryHeadline : this.categoryName;
|
|
177
240
|
this.resourcesPanel.showCategoryView(this.categoryName, headline, this.categoryDescription, this.categoryLink);
|
|
178
241
|
}
|
|
179
242
|
|
|
180
|
-
override appendChild(
|
|
181
|
-
|
|
182
|
-
|
|
243
|
+
override appendChild(child: UI.TreeOutline.TreeElement,
|
|
244
|
+
comparator?: ((arg0: UI.TreeOutline.TreeElement, arg1: UI.TreeOutline.TreeElement) => number)|
|
|
245
|
+
undefined): void {
|
|
183
246
|
super.appendChild(child, comparator);
|
|
184
247
|
// Only update if relevant (changing from 0 to 1 child).
|
|
185
248
|
if (this.selected && this.childCount() === 1) {
|