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
|
@@ -108,8 +108,11 @@ export const withSourcePuppeteerURLIfNone = <T extends NonNullable<unknown>>(
|
|
|
108
108
|
// which is precisely what we want.
|
|
109
109
|
return stack[2];
|
|
110
110
|
};
|
|
111
|
-
const site = new Error().stack as unknown as NodeJS.CallSite;
|
|
111
|
+
const site = new Error().stack as unknown as NodeJS.CallSite | undefined;
|
|
112
112
|
Error.prepareStackTrace = original;
|
|
113
|
+
if (!site) {
|
|
114
|
+
return object;
|
|
115
|
+
}
|
|
113
116
|
return Object.assign(object, {
|
|
114
117
|
[SOURCE_URL]: PuppeteerURL.fromCallSite(functionName, site),
|
|
115
118
|
});
|
|
@@ -197,28 +200,35 @@ export async function getReadableAsTypedArray(
|
|
|
197
200
|
): Promise<Uint8Array | null> {
|
|
198
201
|
const buffers: Uint8Array[] = [];
|
|
199
202
|
const reader = readable.getReader();
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
try {
|
|
204
|
+
if (path) {
|
|
205
|
+
const fileHandle = await environment.value.openFileForWriting(path);
|
|
206
|
+
try {
|
|
207
|
+
while (true) {
|
|
208
|
+
const {done, value} = await reader.read();
|
|
209
|
+
if (done) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
buffers.push(value);
|
|
213
|
+
await fileHandle.writeFile(value);
|
|
214
|
+
}
|
|
215
|
+
} finally {
|
|
216
|
+
await fileHandle.close();
|
|
217
|
+
}
|
|
218
|
+
} else {
|
|
203
219
|
while (true) {
|
|
204
220
|
const {done, value} = await reader.read();
|
|
205
221
|
if (done) {
|
|
206
222
|
break;
|
|
207
223
|
}
|
|
208
224
|
buffers.push(value);
|
|
209
|
-
await fileHandle.writeFile(value);
|
|
210
225
|
}
|
|
211
|
-
} finally {
|
|
212
|
-
await fileHandle.close();
|
|
213
|
-
}
|
|
214
|
-
} else {
|
|
215
|
-
while (true) {
|
|
216
|
-
const {done, value} = await reader.read();
|
|
217
|
-
if (done) {
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
buffers.push(value);
|
|
221
226
|
}
|
|
227
|
+
} catch (error) {
|
|
228
|
+
// Release the underlying stream (e.g. the protocol stream handle) if
|
|
229
|
+
// the stream was not read to the end.
|
|
230
|
+
await reader.cancel().catch(() => {});
|
|
231
|
+
throw error;
|
|
222
232
|
}
|
|
223
233
|
try {
|
|
224
234
|
const concat = mergeUint8Arrays(buffers);
|
|
@@ -251,6 +261,13 @@ export async function getReadableFromProtocolStream(
|
|
|
251
261
|
controller.close();
|
|
252
262
|
}
|
|
253
263
|
},
|
|
264
|
+
async cancel() {
|
|
265
|
+
try {
|
|
266
|
+
await client.send('IO.close', {handle});
|
|
267
|
+
} catch {
|
|
268
|
+
// The stream or the session can be closed already.
|
|
269
|
+
}
|
|
270
|
+
},
|
|
254
271
|
});
|
|
255
272
|
}
|
|
256
273
|
|
|
@@ -28,6 +28,7 @@ import {CdpBrowser} from '../cdp/Browser.js';
|
|
|
28
28
|
import {Connection} from '../cdp/Connection.js';
|
|
29
29
|
import type {WsOptions} from '../common/ConnectOptions.js';
|
|
30
30
|
import {DEBUG_PREFIXES, type Logger} from '../common/Debug.js';
|
|
31
|
+
import type {DownloadBehavior} from '../common/DownloadBehavior.js';
|
|
31
32
|
import {TimeoutError} from '../common/Errors.js';
|
|
32
33
|
import type {SupportedBrowser} from '../common/SupportedBrowser.js';
|
|
33
34
|
import {
|
|
@@ -262,6 +263,7 @@ export abstract class BrowserLauncher {
|
|
|
262
263
|
protocolTimeout,
|
|
263
264
|
slowMo,
|
|
264
265
|
defaultViewport,
|
|
266
|
+
downloadBehavior,
|
|
265
267
|
acceptInsecureCerts,
|
|
266
268
|
networkEnabled,
|
|
267
269
|
idGenerator,
|
|
@@ -296,6 +298,7 @@ export abstract class BrowserLauncher {
|
|
|
296
298
|
browserCloseCallback,
|
|
297
299
|
{
|
|
298
300
|
defaultViewport,
|
|
301
|
+
downloadBehavior,
|
|
299
302
|
acceptInsecureCerts,
|
|
300
303
|
networkEnabled,
|
|
301
304
|
issuesEnabled,
|
|
@@ -408,24 +411,25 @@ export abstract class BrowserLauncher {
|
|
|
408
411
|
// Attempt to close the browser gracefully
|
|
409
412
|
try {
|
|
410
413
|
await cdpConnection.closeBrowser();
|
|
411
|
-
await browserProcess.hasClosed();
|
|
412
414
|
} catch (error) {
|
|
413
415
|
this.#logger?.(DEBUG_PREFIXES.error)?.(error);
|
|
414
416
|
await browserProcess.close();
|
|
417
|
+
return;
|
|
415
418
|
}
|
|
416
|
-
} else {
|
|
417
|
-
// Wait for a possible graceful shutdown.
|
|
418
|
-
await firstValueFrom(
|
|
419
|
-
race(
|
|
420
|
-
from(browserProcess.hasClosed()),
|
|
421
|
-
timer(5000).pipe(
|
|
422
|
-
mergeMap(() => {
|
|
423
|
-
return from(browserProcess.close());
|
|
424
|
-
}),
|
|
425
|
-
),
|
|
426
|
-
),
|
|
427
|
-
);
|
|
428
419
|
}
|
|
420
|
+
// Wait for a possible graceful shutdown. The browser can accept the
|
|
421
|
+
// close command and then not exit (e.g. on Windows). Kill the browser
|
|
422
|
+
// process after a timeout so that the close does not wait forever.
|
|
423
|
+
await firstValueFrom(
|
|
424
|
+
race(
|
|
425
|
+
from(browserProcess.hasClosed()),
|
|
426
|
+
timer(5000).pipe(
|
|
427
|
+
mergeMap(() => {
|
|
428
|
+
return from(browserProcess.close());
|
|
429
|
+
}),
|
|
430
|
+
),
|
|
431
|
+
),
|
|
432
|
+
);
|
|
429
433
|
}
|
|
430
434
|
|
|
431
435
|
/**
|
|
@@ -525,6 +529,7 @@ export abstract class BrowserLauncher {
|
|
|
525
529
|
closeCallback: BrowserCloseCallback,
|
|
526
530
|
opts: {
|
|
527
531
|
defaultViewport: Viewport | null;
|
|
532
|
+
downloadBehavior?: DownloadBehavior;
|
|
528
533
|
acceptInsecureCerts?: boolean;
|
|
529
534
|
networkEnabled: boolean;
|
|
530
535
|
issuesEnabled: boolean;
|
|
@@ -545,6 +550,7 @@ export abstract class BrowserLauncher {
|
|
|
545
550
|
closeCallback,
|
|
546
551
|
process: browserProcess.nodeProcess,
|
|
547
552
|
defaultViewport: opts.defaultViewport,
|
|
553
|
+
downloadBehavior: opts.downloadBehavior,
|
|
548
554
|
acceptInsecureCerts: opts.acceptInsecureCerts,
|
|
549
555
|
networkEnabled: opts.networkEnabled,
|
|
550
556
|
issuesEnabled: opts.issuesEnabled,
|
|
@@ -564,6 +570,7 @@ export abstract class BrowserLauncher {
|
|
|
564
570
|
slowMo: number;
|
|
565
571
|
idGenerator: GetIdFn;
|
|
566
572
|
defaultViewport: Viewport | null;
|
|
573
|
+
downloadBehavior?: DownloadBehavior;
|
|
567
574
|
acceptInsecureCerts?: boolean;
|
|
568
575
|
networkEnabled?: boolean;
|
|
569
576
|
issuesEnabled?: boolean;
|
|
@@ -596,6 +603,7 @@ export abstract class BrowserLauncher {
|
|
|
596
603
|
closeCallback,
|
|
597
604
|
process: browserProcess.nodeProcess,
|
|
598
605
|
defaultViewport: opts.defaultViewport,
|
|
606
|
+
downloadBehavior: opts.downloadBehavior,
|
|
599
607
|
acceptInsecureCerts: opts.acceptInsecureCerts,
|
|
600
608
|
networkEnabled: opts.networkEnabled ?? true,
|
|
601
609
|
issuesEnabled: opts.issuesEnabled ?? true,
|
|
@@ -167,20 +167,21 @@ export class ChromeLauncher extends BrowserLauncher {
|
|
|
167
167
|
override defaultArgs(options: LaunchOptions = {}): string[] {
|
|
168
168
|
// See https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
// Feature flags are merged below; clone so repeated defaultArgs() /
|
|
171
|
+
// launch() calls do not mutate the caller's options.args.
|
|
172
|
+
const args = structuredClone(options.args ?? []);
|
|
173
|
+
|
|
174
|
+
const userDisabledFeatures = getFeatures('--disable-features', args);
|
|
175
|
+
if (userDisabledFeatures.length > 0) {
|
|
176
|
+
removeMatchingFlags(args, '--disable-features');
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
const turnOnExperimentalFeaturesForTesting =
|
|
179
180
|
process.env['PUPPETEER_TEST_EXPERIMENTAL_CHROME_FEATURES'] === 'true';
|
|
180
181
|
|
|
181
|
-
const userEnabledFeatures = getFeatures('--enable-features',
|
|
182
|
-
if (
|
|
183
|
-
removeMatchingFlags(
|
|
182
|
+
const userEnabledFeatures = getFeatures('--enable-features', args);
|
|
183
|
+
if (userEnabledFeatures.length > 0) {
|
|
184
|
+
removeMatchingFlags(args, '--enable-features');
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
// Merge default enabled features with user-provided ones, if any.
|
|
@@ -254,7 +255,6 @@ export class ChromeLauncher extends BrowserLauncher {
|
|
|
254
255
|
const {
|
|
255
256
|
devtools = false,
|
|
256
257
|
headless = !devtools,
|
|
257
|
-
args = [],
|
|
258
258
|
userDataDir,
|
|
259
259
|
enableExtensions = false,
|
|
260
260
|
} = options;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
10
|
export const PUPPETEER_REVISIONS = Object.freeze({
|
|
11
|
-
chrome: '
|
|
12
|
-
'chrome-headless-shell': '
|
|
13
|
-
firefox: '
|
|
11
|
+
chrome: '157.0.8103.50',
|
|
12
|
+
'chrome-headless-shell': '157.0.8103.50',
|
|
13
|
+
firefox: 'stable_159.0.1',
|
|
14
14
|
});
|
|
@@ -202,7 +202,7 @@ export function bubble<T extends EventType[]>(events?: T) {
|
|
|
202
202
|
bubbleInitializer.apply(this, [events]);
|
|
203
203
|
|
|
204
204
|
const handler = bubbleHandlers.get(this)!.get(events)!;
|
|
205
|
-
emitter.on('*', handler
|
|
205
|
+
emitter.on('*', handler);
|
|
206
206
|
return emitter;
|
|
207
207
|
},
|
|
208
208
|
};
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"package/lib/puppeteer/bidi/HTTPResponse.js",
|
|
45
45
|
"package/lib/puppeteer/bidi/Input.js",
|
|
46
46
|
"package/lib/puppeteer/bidi/JSHandle.js",
|
|
47
|
+
"package/lib/puppeteer/bidi/NetworkEvents.js",
|
|
47
48
|
"package/lib/puppeteer/bidi/Page.js",
|
|
48
49
|
"package/lib/puppeteer/bidi/Realm.js",
|
|
49
50
|
"package/lib/puppeteer/bidi/ScreenRecording.js",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"package/lib/puppeteer/cdp/NetworkManager.js",
|
|
96
97
|
"package/lib/puppeteer/cdp/Page.js",
|
|
97
98
|
"package/lib/puppeteer/cdp/PredefinedNetworkConditions.js",
|
|
99
|
+
"package/lib/puppeteer/cdp/ResponseBodyStream.js",
|
|
98
100
|
"package/lib/puppeteer/cdp/ScreenRecording.js",
|
|
99
101
|
"package/lib/puppeteer/cdp/Target.js",
|
|
100
102
|
"package/lib/puppeteer/cdp/TargetManageEvents.js",
|
|
@@ -52,7 +52,7 @@ slot {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
:host([aria-pressed="true"]) slot {
|
|
55
|
-
color: var(--
|
|
55
|
+
color: var(--sys-color-on-primary);
|
|
56
56
|
background-color: var(--override-adorner-active-background-color, var(--sys-color-primary));
|
|
57
57
|
border: var(--sys-size-1) solid var(--override-adorner-active-background-color, var(--sys-color-primary));
|
|
58
58
|
|
|
@@ -288,20 +288,6 @@ button {
|
|
|
288
288
|
top: 0;
|
|
289
289
|
left: 0;
|
|
290
290
|
background-color: var(--hover-layer-color); /* stylelint-disable-line plugin/use_theme_colors */
|
|
291
|
-
|
|
292
|
-
&.primary {
|
|
293
|
-
border: var(--button-border-size) solid color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
&.tonal {
|
|
297
|
-
background: color-mix(in srgb, var(--sys-color-tonal-container), var(--sys-color-state-hover-on-subtle));
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
&.toobar {
|
|
301
|
-
devtools-icon {
|
|
302
|
-
color: var(--icon-default-hover);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
291
|
}
|
|
306
292
|
|
|
307
293
|
&:active::before,
|
|
@@ -314,20 +300,6 @@ button {
|
|
|
314
300
|
top: 0;
|
|
315
301
|
left: 0;
|
|
316
302
|
background-color: var(--active-layer-color); /* stylelint-disable-line plugin/use_theme_colors */
|
|
317
|
-
|
|
318
|
-
&.primary {
|
|
319
|
-
border: var(--button-border-size) solid color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-ripple-primary) 32%);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
&.tonal {
|
|
323
|
-
background: color-mix(in srgb, var(--sys-color-tonal-container), var(--sys-color-state-ripple-primary) 50%);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
&.toolbar {
|
|
327
|
-
devtools-icon {
|
|
328
|
-
color: var(--icon-toggled);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
303
|
}
|
|
332
304
|
}
|
|
333
305
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
background-color: var(--sys-color-state-hover-on-subtle);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.text-button:not(:disabled
|
|
32
|
+
.text-button:not(:disabled):focus-visible {
|
|
33
33
|
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
34
34
|
color: var(--sys-color-on-primary);
|
|
35
35
|
background-color: var(--sys-color-cdt-base-container);
|
|
@@ -55,30 +55,6 @@
|
|
|
55
55
|
height: unset;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.text-button.primary-button,
|
|
59
|
-
.text-button.primary-button:not(:disabled):focus {
|
|
60
|
-
background-color: var(--sys-color-primary);
|
|
61
|
-
border: none;
|
|
62
|
-
color: var(--sys-color-on-primary);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.text-button.primary-button:not(:disabled):active {
|
|
66
|
-
background-color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-ripple-primary) 32%);
|
|
67
|
-
color: var(--sys-color-on-primary);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.text-button.primary-button:not(:disabled):hover {
|
|
71
|
-
background-color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
|
|
72
|
-
color: var(--sys-color-on-primary);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.text-button.primary-button:not(:disabled):focus-visible {
|
|
76
|
-
background-color: var(--sys-color-primary);
|
|
77
|
-
outline-offset: var(--sys-size-2);
|
|
78
|
-
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
79
|
-
color: var(--sys-color-on-primary);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
58
|
@media (forced-colors: active) {
|
|
83
59
|
.text-button {
|
|
84
60
|
background-color: ButtonFace;
|
|
@@ -110,24 +86,4 @@
|
|
|
110
86
|
color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
|
|
111
87
|
box-shadow: var(--sys-color-primary);
|
|
112
88
|
}
|
|
113
|
-
|
|
114
|
-
.text-button.primary-button {
|
|
115
|
-
forced-color-adjust: none;
|
|
116
|
-
background-color: Highlight;
|
|
117
|
-
color: HighlightText;
|
|
118
|
-
border: var(--sys-size-1) solid Highlight;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.text-button.primary-button:not(:disabled):focus-visible {
|
|
122
|
-
background-color: Highlight;
|
|
123
|
-
color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
|
|
124
|
-
border-color: ButtonText;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.text-button.primary-button:not(:disabled):hover,
|
|
128
|
-
.text-button.primary-button:not(:disabled):active {
|
|
129
|
-
background-color: HighlightText;
|
|
130
|
-
color: Highlight !important; /* stylelint-disable-line declaration-no-important */
|
|
131
|
-
border-color: Highlight;
|
|
132
|
-
}
|
|
133
89
|
}
|
|
@@ -32,12 +32,10 @@
|
|
|
32
32
|
padding: 0 var(--sys-size-3);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.diff-line-marker-addition,
|
|
36
35
|
.diff-line-addition {
|
|
37
36
|
background-color: var(--sys-color-surface-green);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
.diff-line-marker-deletion,
|
|
41
39
|
.diff-line-deletion {
|
|
42
40
|
background-color: var(--sys-color-surface-error);
|
|
43
41
|
}
|
|
@@ -34,9 +34,9 @@ input[type="checkbox"] {
|
|
|
34
34
|
|
|
35
35
|
&:not(:disabled):focus-visible::before {
|
|
36
36
|
content: "";
|
|
37
|
-
height:
|
|
38
|
-
width:
|
|
39
|
-
border-radius:
|
|
37
|
+
height: var(--sys-size-7);
|
|
38
|
+
width: var(--sys-size-7);
|
|
39
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
40
40
|
position: absolute;
|
|
41
41
|
border: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
42
42
|
}
|
|
@@ -21,6 +21,7 @@ button {
|
|
|
21
21
|
background: transparent;
|
|
22
22
|
margin: 0;
|
|
23
23
|
padding: 0;
|
|
24
|
+
line-height: inherit;
|
|
24
25
|
|
|
25
26
|
&.link {
|
|
26
27
|
cursor: pointer;
|
|
@@ -33,8 +34,7 @@ button {
|
|
|
33
34
|
|
|
34
35
|
devtools-icon {
|
|
35
36
|
width: var(--sys-size-8);
|
|
36
|
-
height: var(--sys-size-
|
|
37
|
-
vertical-align: middle;
|
|
37
|
+
height: var(--sys-size-7);
|
|
38
38
|
|
|
39
39
|
&[name="issue-cross-filled"] {
|
|
40
40
|
color: var(--icon-error);
|
|
@@ -59,6 +59,7 @@ export interface MenuData {
|
|
|
59
59
|
const selectedItemCheckmark = new URL('../../../Images/checkmark.svg', import.meta.url).toString();
|
|
60
60
|
|
|
61
61
|
export class Menu extends HTMLElement {
|
|
62
|
+
static readonly observedAttributes: string[] = ['origin'];
|
|
62
63
|
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
63
64
|
#dialog: Dialogs.Dialog.Dialog|null = null;
|
|
64
65
|
#itemIsFocused = false;
|
|
@@ -81,6 +82,19 @@ export class Menu extends HTMLElement {
|
|
|
81
82
|
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render);
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
attributeChangedCallback(_name: string, oldValue: string|null, newValue: string|null): void {
|
|
86
|
+
if (oldValue === newValue) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.#props.origin = newValue ? () => {
|
|
90
|
+
const root = this.getRootNode() as Document | ShadowRoot | Element;
|
|
91
|
+
const element =
|
|
92
|
+
'getElementById' in root ? root.getElementById(newValue) : root.querySelector(`#${CSS.escape(newValue)}`);
|
|
93
|
+
return element instanceof HTMLElement ? element : new DOMPoint(0, 0);
|
|
94
|
+
} : null;
|
|
95
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render);
|
|
96
|
+
}
|
|
97
|
+
|
|
84
98
|
get open(): boolean {
|
|
85
99
|
return this.#props.open;
|
|
86
100
|
}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
width: fit-content;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--sys-color-cdt-base-container);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
:host([has-open-dialog]) {
|
|
16
|
-
background-color: var(--
|
|
16
|
+
background-color: var(--sys-color-neutral-container);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
* {
|
|
@@ -31,15 +31,3 @@
|
|
|
31
31
|
#container:focus {
|
|
32
32
|
outline: none;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
@keyframes slideIn {
|
|
36
|
-
from {
|
|
37
|
-
transform: var(--translate-dialog);
|
|
38
|
-
opacity: 0%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
to {
|
|
42
|
-
transform: none;
|
|
43
|
-
opacity: 100%;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -23,6 +23,7 @@ button {
|
|
|
23
23
|
padding: 0;
|
|
24
24
|
font-family: inherit;
|
|
25
25
|
font-size: inherit;
|
|
26
|
+
line-height: inherit;
|
|
26
27
|
color: inherit;
|
|
27
28
|
|
|
28
29
|
&.link {
|
|
@@ -36,8 +37,7 @@ button {
|
|
|
36
37
|
|
|
37
38
|
devtools-icon {
|
|
38
39
|
width: var(--sys-size-8);
|
|
39
|
-
height: var(--sys-size-
|
|
40
|
-
vertical-align: middle;
|
|
40
|
+
height: var(--sys-size-7);
|
|
41
41
|
color: var(--icon-no-request);
|
|
42
42
|
|
|
43
43
|
.link > & {
|
|
@@ -124,7 +124,7 @@ export class SurveyLink extends HTMLElement {
|
|
|
124
124
|
<button
|
|
125
125
|
class="link ${linkState}" tabindex=${ariaDisabled ? '-1' : '0'}
|
|
126
126
|
.disabled=${ariaDisabled} aria-disabled=${ariaDisabled} @click=${this.#sendSurvey}>
|
|
127
|
-
<devtools-icon class="link-icon" name="review" style="color: var(--sys-color-primary); width:
|
|
127
|
+
<devtools-icon class="link-icon" name="review" style="color: var(--sys-color-primary); width: 16px; height: 16px">
|
|
128
128
|
</devtools-icon>
|
|
129
129
|
${linkText}
|
|
130
130
|
</button>`;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.link {
|
|
13
|
-
padding: var(--
|
|
14
|
-
text-decoration:
|
|
13
|
+
padding: var(--sys-size-3) 0 0 0;
|
|
14
|
+
text-decoration: underline;
|
|
15
15
|
cursor: pointer;
|
|
16
|
-
font-size: var(--
|
|
16
|
+
font-size: var(--sys-typescale-body2-size);
|
|
17
17
|
color: var(--sys-color-primary);
|
|
18
18
|
outline-offset: var(--sys-size-2);
|
|
19
19
|
border: none;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:host {
|
|
8
8
|
position: relative;
|
|
9
9
|
display: inline-block;
|
|
10
|
-
width:
|
|
10
|
+
width: var(--sys-size-12);
|
|
11
11
|
height: var(--sys-size-8);
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -62,7 +62,8 @@ input:checked {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& + .slider::before {
|
|
65
|
-
|
|
65
|
+
/* Center --sys-size-6 thumb inside right --sys-size-8 (:host height) pill cap minus --sys-size-1 (.slider border). */
|
|
66
|
+
left: calc(100% - var(--sys-size-6) - ((var(--sys-size-8) - var(--sys-size-6)) / 2 - var(--sys-size-1)));
|
|
66
67
|
height: var(--sys-size-6);
|
|
67
68
|
width: var(--sys-size-6);
|
|
68
69
|
top: calc(50% - var(--sys-size-4));
|
|
@@ -6,7 +6,7 @@ import * as CM from '../../../third_party/codemirror.next/codemirror.next.js';
|
|
|
6
6
|
|
|
7
7
|
export const editorTheme: CM.Extension = CM.EditorView.theme({
|
|
8
8
|
'&.cm-editor': {
|
|
9
|
-
color: '
|
|
9
|
+
color: 'var(--sys-color-on-surface)',
|
|
10
10
|
cursor: 'auto',
|
|
11
11
|
'&.cm-focused': {
|
|
12
12
|
outline: 'none',
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
|
+
import * as Platform from '../../../core/platform/platform.js';
|
|
6
7
|
import * as UI from '../../legacy/legacy.js';
|
|
7
8
|
import {AsyncDirective, Directives, html, type LitTemplate, nothing, render} from '../../lit/lit.js';
|
|
8
9
|
import * as VisualLogging from '../../visual_logging/visual_logging.js';
|
|
@@ -657,6 +658,34 @@ export class Tooltip extends HTMLElement {
|
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
|
|
661
|
+
export class IdFactory {
|
|
662
|
+
static #nextId = 0;
|
|
663
|
+
#keys = new Map<string|number, number>();
|
|
664
|
+
#id: string;
|
|
665
|
+
|
|
666
|
+
constructor(id?: string) {
|
|
667
|
+
this.#id = id ?? `id${IdFactory.#nextId++}`;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
keyed(key: string|number, ...additionalSuffixes: Array<number|string>): string {
|
|
671
|
+
const keyedId = Platform.MapUtilities.getWithDefault(this.#keys, key, () => 0);
|
|
672
|
+
this.#keys.set(key, keyedId + 1);
|
|
673
|
+
return this.get(key, ...additionalSuffixes, keyedId);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
get(suffix: string|number, ...additionalSuffixes: Array<number|string>): string {
|
|
677
|
+
return `${this.#id}-${[suffix, ...additionalSuffixes].join('-')}`;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
clearKeys(): void {
|
|
681
|
+
this.#keys.clear();
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
subfactory(name: string, suffix: string|number): IdFactory {
|
|
685
|
+
return new IdFactory(`${name}-${this.#id}-${suffix}`);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
660
689
|
type IfExpandedContent = LitTemplate|Iterable<LitTemplate>|Promise<LitTemplate|Iterable<LitTemplate>>;
|
|
661
690
|
|
|
662
691
|
class IfExpandedDirective extends AsyncDirective.AsyncDirective {
|
|
@@ -19,10 +19,6 @@ li {
|
|
|
19
19
|
border: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.tree-item:hover {
|
|
23
|
-
background-color: var(--sys-color-state-hover-on-subtle);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
.tree-node-key {
|
|
27
23
|
white-space: var(--override-key-whitespace-wrapping);
|
|
28
24
|
/* Override the default |min-width: auto| to avoid overflows of flex items */
|
|
@@ -36,7 +32,7 @@ li {
|
|
|
36
32
|
mask-image: var(--image-file-arrow-collapse);
|
|
37
33
|
background-color: var(--icon-default);
|
|
38
34
|
margin-top: calc(-1 * var(--sys-size-2));
|
|
39
|
-
margin-right:
|
|
35
|
+
margin-right: var(--sys-size-3);
|
|
40
36
|
content: "";
|
|
41
37
|
text-shadow: none;
|
|
42
38
|
height: var(--sys-size-7);
|
|
@@ -75,25 +71,6 @@ li.is-top-level:last-child {
|
|
|
75
71
|
border-bottom: var(--override-top-node-border);
|
|
76
72
|
}
|
|
77
73
|
|
|
78
|
-
:host([animated]) li:not(.is-top-level) {
|
|
79
|
-
animation-name: slideIn;
|
|
80
|
-
animation-duration: 150ms;
|
|
81
|
-
animation-timing-function: cubic-bezier(0, 0, 0.3, 1);
|
|
82
|
-
animation-fill-mode: forwards;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@keyframes slideIn {
|
|
86
|
-
from {
|
|
87
|
-
transform: translateY(-5px);
|
|
88
|
-
opacity: 0%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
to {
|
|
92
|
-
transform: none;
|
|
93
|
-
opacity: 100%;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
74
|
.arrow-and-key-wrapper {
|
|
98
75
|
display: flex;
|
|
99
76
|
align-content: center;
|