chrome-devtools-frontend 1.0.1538523 → 1.0.1539972
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/eslint.config.mjs +1 -1
- package/front_end/core/common/Debouncer.ts +2 -2
- package/front_end/core/common/Gzip.ts +1 -1
- package/front_end/core/common/Throttler.ts +3 -3
- package/front_end/core/host/GdpClient.ts +4 -0
- package/front_end/core/protocol_client/CDPConnection.ts +12 -10
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +181 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +55 -249
- package/front_end/core/protocol_client/protocol_client.ts +2 -2
- package/front_end/core/sdk/ChildTargetManager.ts +5 -41
- package/front_end/core/sdk/Connections.ts +9 -58
- package/front_end/core/sdk/DOMModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +3 -16
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +4 -0
- package/front_end/core/sdk/Target.ts +3 -6
- package/front_end/core/sdk/TargetManager.ts +1 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +13 -26
- package/front_end/entrypoints/node_app/{NodeConnectionsPanel.ts → app/NodeConnectionsPanel.ts} +8 -8
- package/front_end/entrypoints/node_app/{NodeMain.ts → app/NodeMain.ts} +12 -11
- package/front_end/entrypoints/node_app/app/app.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +4 -2
- package/front_end/generated/Deprecation.ts +8 -0
- package/front_end/generated/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +18 -36
- package/front_end/generated/SupportedCSSProperties.js +50 -9
- package/front_end/generated/protocol.ts +2 -2
- package/front_end/models/ai_assistance/EvaluateAction.ts +88 -5
- package/front_end/models/ai_assistance/injected.ts +15 -2
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/trace/Styles.ts +1 -1
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +18 -3
- package/front_end/models/trace/types/TraceEvents.ts +19 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +49 -26
- package/front_end/panels/ai_assistance/PatchWidget.ts +22 -12
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -135
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +170 -0
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatView.css +0 -31
- package/front_end/panels/ai_assistance/components/disabledWidget.css +45 -0
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +4 -4
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +123 -95
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/NodeStackTraceWidget.ts +8 -2
- package/front_end/panels/elements/PropertiesWidget.ts +3 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -5
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -3
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +12 -5
- package/front_end/panels/network/RequestInitiatorView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +2 -1
- package/front_end/panels/network/RequestTimingView.ts +4 -2
- package/front_end/panels/network/components/EditableSpan.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +24 -17
- package/front_end/panels/protocol_monitor/JSONEditor.ts +2 -2
- package/front_end/panels/recorder/RecorderController.ts +6 -7
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +7 -6
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
- package/front_end/panels/sources/BreakpointsView.ts +3 -3
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +10 -10
- package/front_end/panels/timeline/TimelinePanel.ts +3 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +21 -24
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +9 -5
- package/front_end/panels/timeline/components/LiveMetricsView.ts +20 -9
- package/front_end/panels/timeline/components/MetricCard.ts +4 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +3 -2
- package/front_end/panels/utils/utils.ts +4 -2
- package/front_end/services/puppeteer/PuppeteerConnection.ts +57 -53
- 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/cjs/puppeteer/api/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +29 -27
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +97 -43
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +21 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +30 -28
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +38 -10
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +32 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +2 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +36 -43
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +7 -5
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +22 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.ts +15 -5
- package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -1
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/menus/Menu.ts +5 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.docs.ts +22 -0
- package/front_end/ui/components/switch/Switch.docs.ts +38 -0
- package/front_end/ui/components/tooltips/Tooltip.ts +69 -45
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -2
- package/front_end/ui/legacy/SelectMenu.docs.ts +14 -0
- package/front_end/ui/legacy/Slider.docs.ts +49 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +453 -347
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +77 -5
- package/front_end/ui/legacy/components/utils/Linkifier.ts +62 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
- package/front_end/core/protocol_client/NodeURL.ts +0 -42
- package/front_end/third_party/puppeteer/package/src/templates/version.ts.tmpl +0 -4
- package/front_end/ui/components/docs/color_swatch/basic.html +0 -32
- package/front_end/ui/components/docs/color_swatch/basic.ts +0 -38
- package/front_end/ui/components/docs/color_swatch/change-color.html +0 -24
- package/front_end/ui/components/docs/color_swatch/change-color.ts +0 -28
- package/front_end/ui/components/docs/combo_box/basic.html +0 -20
- package/front_end/ui/components/docs/combo_box/basic.ts +0 -49
- package/front_end/ui/components/docs/computed_style_property/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/basic.ts +0 -19
- package/front_end/ui/components/docs/computed_style_property/traceable.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/traceable.ts +0 -16
- package/front_end/ui/components/docs/computed_style_trace/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_trace/basic.ts +0 -24
- package/front_end/ui/components/docs/console_insight/basic.html +0 -28
- package/front_end/ui/components/docs/console_insight/basic.ts +0 -103
- package/front_end/ui/components/docs/console_insight/error.html +0 -28
- package/front_end/ui/components/docs/console_insight/error.ts +0 -33
- package/front_end/ui/components/docs/console_insight/loading.html +0 -28
- package/front_end/ui/components/docs/console_insight/loading.ts +0 -47
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.html +0 -43
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +0 -54
- package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.html +0 -38
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +0 -90
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.html +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.ts +0 -62
- package/front_end/ui/components/docs/icon_button/basic.html +0 -34
- package/front_end/ui/components/docs/icon_button/basic.ts +0 -67
- package/front_end/ui/components/docs/issue_counter/basic.html +0 -35
- package/front_end/ui/components/docs/issue_counter/basic.ts +0 -34
- package/front_end/ui/components/docs/issue_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/issue_link_icon/basic.ts +0 -26
- package/front_end/ui/components/docs/legacy_color_invert/basic.html +0 -77
- package/front_end/ui/components/docs/legacy_color_invert/basic.ts +0 -98
- package/front_end/ui/components/docs/linear_memory_inspector/basic.html +0 -26
- package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +0 -44
- package/front_end/ui/components/docs/menu/basic.html +0 -28
- package/front_end/ui/components/docs/menu/basic.ts +0 -66
- package/front_end/ui/components/docs/recorder_control_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +0 -15
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +0 -26
- package/front_end/ui/components/docs/recorder_select_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +0 -81
- package/front_end/ui/components/docs/recorder_split_view/basic.html +0 -17
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +0 -22
- package/front_end/ui/components/docs/request_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/request_link_icon/basic.ts +0 -21
- package/front_end/ui/components/docs/slider/basic.ts +0 -62
- package/front_end/ui/components/docs/style_property_editor/flex.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/flex.ts +0 -52
- package/front_end/ui/components/docs/style_property_editor/grid.html +0 -22
- package/front_end/ui/components/docs/style_property_editor/grid.ts +0 -50
- package/front_end/ui/components/docs/style_property_editor/masonry.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/masonry.ts +0 -50
- package/front_end/ui/components/docs/survey_link/basic.html +0 -20
- package/front_end/ui/components/docs/survey_link/basic.ts +0 -28
- package/front_end/ui/components/docs/switch/basic.ts +0 -51
- package/front_end/ui/components/docs/tree_outline/basic.html +0 -33
- package/front_end/ui/components/docs/tree_outline/basic.ts +0 -38
- package/front_end/ui/components/docs/tree_outline/custom-renderers.html +0 -32
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +0 -61
- package/front_end/ui/components/docs/tree_outline/lazy-children.html +0 -32
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +0 -91
- package/front_end/ui/components/docs/tree_outline/sample-data.ts +0 -67
- package/front_end/ui/components/helpers/directives.ts +0 -38
- /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qCAAqC,CAAC;AAEjE,OAAO,EAAC,aAAa,EAAmB,MAAM,aAAa,CAAC;AAG5D;;;;GAIG;AACH,qBAAa,gBAAgB;;gBAIf,WAAW,EAAE,OAAO;IAIhC,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC;IAoBnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQ1C,OAAO,CACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,GAAG,aAAa,EACpC,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI;IAqBP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAQzC,KAAK,IAAI,IAAI;IAQb;;OAEG;IACH,wBAAwB,IAAI,KAAK,EAAE;CAWpC;AACD;;GAEG;AAEH,qBAAa,QAAQ;;gBAOP,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAevD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK7B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAE9B;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CACF"}
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js
CHANGED
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Deferred } from '../util/Deferred.js';
|
|
7
7
|
import { rewriteError } from '../util/ErrorLike.js';
|
|
8
|
-
import { createIncrementalIdGenerator } from '../util/incremental-id-generator.js';
|
|
9
8
|
import { ProtocolError, TargetCloseError } from './Errors.js';
|
|
10
9
|
import { debugError } from './util.js';
|
|
11
|
-
const idGenerator = createIncrementalIdGenerator();
|
|
12
10
|
/**
|
|
13
11
|
* Manages callbacks and their IDs for the protocol request/response communication.
|
|
14
12
|
*
|
|
@@ -16,7 +14,10 @@ const idGenerator = createIncrementalIdGenerator();
|
|
|
16
14
|
*/
|
|
17
15
|
export class CallbackRegistry {
|
|
18
16
|
#callbacks = new Map();
|
|
19
|
-
#idGenerator
|
|
17
|
+
#idGenerator;
|
|
18
|
+
constructor(idGenerator) {
|
|
19
|
+
this.#idGenerator = idGenerator;
|
|
20
|
+
}
|
|
20
21
|
create(label, timeout, request) {
|
|
21
22
|
const callback = new Callback(this.#idGenerator(), label, timeout);
|
|
22
23
|
this.#callbacks.set(callback.id, callback);
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallbackRegistry.js","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
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OAAO,CAAC,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,CAAC,KAAc;QACpB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAY;QACjB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;IACvC,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF"}
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts
CHANGED
|
@@ -96,6 +96,13 @@ export interface ConnectOptions {
|
|
|
96
96
|
browserWSEndpoint?: string;
|
|
97
97
|
browserURL?: string;
|
|
98
98
|
transport?: ConnectionTransport;
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*
|
|
102
|
+
* Custom ID generator for CDP / BiDi messages. Useful if the same transport
|
|
103
|
+
* is shared for multiple connections.
|
|
104
|
+
*/
|
|
105
|
+
idGenerator?: () => number;
|
|
99
106
|
/**
|
|
100
107
|
* Headers to use for the web socket connection.
|
|
101
108
|
* @remarks
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/ConnectOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAA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AM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,MAAM,CAAC;IAE3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,8BAA8B,CAAC;CAC/C"}
|
|
@@ -3,6 +3,7 @@ import type { Browser, BrowserCloseCallback } from '../api/Browser.js';
|
|
|
3
3
|
import { Connection } from '../cdp/Connection.js';
|
|
4
4
|
import type { SupportedBrowser } from '../common/SupportedBrowser.js';
|
|
5
5
|
import type { Viewport } from '../common/Viewport.js';
|
|
6
|
+
import { type GetIdFn } from '../util/incremental-id-generator.js';
|
|
6
7
|
import type { ChromeReleaseChannel, LaunchOptions } from './LaunchOptions.js';
|
|
7
8
|
import type { PuppeteerNode } from './PuppeteerNode.js';
|
|
8
9
|
/**
|
|
@@ -58,6 +59,7 @@ export declare abstract class BrowserLauncher {
|
|
|
58
59
|
timeout: number;
|
|
59
60
|
protocolTimeout: number | undefined;
|
|
60
61
|
slowMo: number;
|
|
62
|
+
idGenerator: GetIdFn;
|
|
61
63
|
}): Promise<Connection>;
|
|
62
64
|
/**
|
|
63
65
|
* @internal
|
|
@@ -66,6 +68,7 @@ export declare abstract class BrowserLauncher {
|
|
|
66
68
|
timeout: number;
|
|
67
69
|
protocolTimeout: number | undefined;
|
|
68
70
|
slowMo: number;
|
|
71
|
+
idGenerator: GetIdFn;
|
|
69
72
|
}): Promise<Connection>;
|
|
70
73
|
/**
|
|
71
74
|
* @internal
|
|
@@ -82,6 +85,7 @@ export declare abstract class BrowserLauncher {
|
|
|
82
85
|
timeout: number;
|
|
83
86
|
protocolTimeout: number | undefined;
|
|
84
87
|
slowMo: number;
|
|
88
|
+
idGenerator: GetIdFn;
|
|
85
89
|
defaultViewport: Viewport | null;
|
|
86
90
|
acceptInsecureCerts?: boolean;
|
|
87
91
|
networkEnabled?: boolean;
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/BrowserLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"BrowserLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/BrowserLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAEpE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,uBAAuB,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AC,EAAE,OAAO,CAAC;KAC1B,GACA,OAAO,CAAC,OAAO,CAAC;IAyBnB;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAOlC;;OAEG;IACH,qBAAqB,CACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,EAC5B,YAAY,UAAO,GAClB,MAAM;CAiEV"}
|
|
@@ -12,6 +12,7 @@ import { CdpBrowser } from '../cdp/Browser.js';
|
|
|
12
12
|
import { Connection } from '../cdp/Connection.js';
|
|
13
13
|
import { TimeoutError } from '../common/Errors.js';
|
|
14
14
|
import { debugError, DEFAULT_VIEWPORT } from '../common/util.js';
|
|
15
|
+
import { createIncrementalIdGenerator, } from '../util/incremental-id-generator.js';
|
|
15
16
|
import { NodeWebSocketTransport as WebSocketTransport } from './NodeWebSocketTransport.js';
|
|
16
17
|
import { PipeTransport } from './PipeTransport.js';
|
|
17
18
|
/**
|
|
@@ -36,7 +37,7 @@ export class BrowserLauncher {
|
|
|
36
37
|
return this.#browser;
|
|
37
38
|
}
|
|
38
39
|
async launch(options = {}) {
|
|
39
|
-
const { dumpio = false, enableExtensions = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, acceptInsecureCerts = false, networkEnabled = true, defaultViewport = DEFAULT_VIEWPORT, downloadBehavior, slowMo = 0, timeout = 30000, waitForInitialPage = true, protocolTimeout, handleDevToolsAsPage, } = options;
|
|
40
|
+
const { dumpio = false, enableExtensions = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, acceptInsecureCerts = false, networkEnabled = true, defaultViewport = DEFAULT_VIEWPORT, downloadBehavior, slowMo = 0, timeout = 30000, waitForInitialPage = true, protocolTimeout, handleDevToolsAsPage, idGenerator = createIncrementalIdGenerator(), } = options;
|
|
40
41
|
let { protocol } = options;
|
|
41
42
|
// Default to 'webDriverBiDi' for Firefox.
|
|
42
43
|
if (this.#browser === 'firefox' && protocol === undefined) {
|
|
@@ -93,6 +94,7 @@ export class BrowserLauncher {
|
|
|
93
94
|
defaultViewport,
|
|
94
95
|
acceptInsecureCerts,
|
|
95
96
|
networkEnabled,
|
|
97
|
+
idGenerator,
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
100
|
else {
|
|
@@ -101,6 +103,7 @@ export class BrowserLauncher {
|
|
|
101
103
|
timeout,
|
|
102
104
|
protocolTimeout,
|
|
103
105
|
slowMo,
|
|
106
|
+
idGenerator,
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
else {
|
|
@@ -108,6 +111,7 @@ export class BrowserLauncher {
|
|
|
108
111
|
timeout,
|
|
109
112
|
protocolTimeout,
|
|
110
113
|
slowMo,
|
|
114
|
+
idGenerator,
|
|
111
115
|
});
|
|
112
116
|
}
|
|
113
117
|
if (protocol === 'webDriverBiDi') {
|
|
@@ -198,7 +202,8 @@ export class BrowserLauncher {
|
|
|
198
202
|
async createCdpSocketConnection(browserProcess, opts) {
|
|
199
203
|
const browserWSEndpoint = await browserProcess.waitForLineOutput(CDP_WEBSOCKET_ENDPOINT_REGEX, opts.timeout);
|
|
200
204
|
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
|
201
|
-
return new Connection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout
|
|
205
|
+
return new Connection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout,
|
|
206
|
+
/* rawErrors */ false, opts.idGenerator);
|
|
202
207
|
}
|
|
203
208
|
/**
|
|
204
209
|
* @internal
|
|
@@ -208,7 +213,8 @@ export class BrowserLauncher {
|
|
|
208
213
|
// 4th and 5th items to stdio array
|
|
209
214
|
const { 3: pipeWrite, 4: pipeRead } = browserProcess.nodeProcess.stdio;
|
|
210
215
|
const transport = new PipeTransport(pipeWrite, pipeRead);
|
|
211
|
-
return new Connection('', transport, opts.slowMo, opts.protocolTimeout
|
|
216
|
+
return new Connection('', transport, opts.slowMo, opts.protocolTimeout,
|
|
217
|
+
/* rawErrors */ false, opts.idGenerator);
|
|
212
218
|
}
|
|
213
219
|
/**
|
|
214
220
|
* @internal
|
|
@@ -236,7 +242,7 @@ export class BrowserLauncher {
|
|
|
236
242
|
const browserWSEndpoint = (await browserProcess.waitForLineOutput(WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX, opts.timeout)) + '/session';
|
|
237
243
|
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
|
238
244
|
const BiDi = await import(/* webpackIgnore: true */ '../bidi/bidi.js');
|
|
239
|
-
const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout);
|
|
245
|
+
const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.idGenerator, opts.slowMo, opts.protocolTimeout);
|
|
240
246
|
return await BiDi.BidiBrowser.create({
|
|
241
247
|
connection: bidiConnection,
|
|
242
248
|
closeCallback,
|
package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserLauncher.js","sourceRoot":"","sources":["../../../../src/node/BrowserLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,4BAA4B,EAC5B,MAAM,EACN,YAAY,IAAI,oBAAoB,EACpC,uCAAuC,EACvC,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,cAAc,EACd,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,GACN,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC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page | pages} in all
|
|
292
292
|
* {@link BrowserContext | browser contexts}.
|
|
293
293
|
*
|
|
294
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
295
|
+
*
|
|
294
296
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
295
297
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
296
298
|
*/
|
|
297
|
-
pages(): Promise<Page[]>;
|
|
299
|
+
pages(includeAll?: boolean): Promise<Page[]>;
|
|
298
300
|
/**
|
|
299
301
|
* Gets a string representing this {@link Browser | browser's} name and
|
|
300
302
|
* version.
|
|
@@ -470,10 +472,12 @@ export declare abstract class BrowserContext extends EventEmitter<BrowserContext
|
|
|
470
472
|
* Gets a list of all open {@link Page | pages} inside this
|
|
471
473
|
* {@link BrowserContext | browser context}.
|
|
472
474
|
*
|
|
475
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
476
|
+
*
|
|
473
477
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
474
478
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
475
479
|
*/
|
|
476
|
-
abstract pages(): Promise<Page[]>;
|
|
480
|
+
abstract pages(includeAll?: boolean): Promise<Page[]>;
|
|
477
481
|
/**
|
|
478
482
|
* Grants this {@link BrowserContext | browser context} the given
|
|
479
483
|
* `permissions` within the given `origin`.
|
|
@@ -984,13 +988,14 @@ connect: (options: Puppeteer_2.ConnectOptions) => Promise<Puppeteer_2.Browser>;
|
|
|
984
988
|
*/
|
|
985
989
|
export declare class Connection extends EventEmitter<CDPSessionEvents> {
|
|
986
990
|
#private;
|
|
987
|
-
constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number, rawErrors?: boolean);
|
|
991
|
+
constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number, rawErrors?: boolean, idGenerator?: () => number);
|
|
988
992
|
static fromSession(session: CDPSession): Connection | undefined;
|
|
989
993
|
|
|
990
994
|
get timeout(): number;
|
|
991
995
|
|
|
992
996
|
|
|
993
997
|
|
|
998
|
+
|
|
994
999
|
/**
|
|
995
1000
|
* @param sessionId - The session id
|
|
996
1001
|
* @returns The current CDP session if it exists
|
|
@@ -1103,6 +1108,7 @@ export declare interface ConnectOptions {
|
|
|
1103
1108
|
browserWSEndpoint?: string;
|
|
1104
1109
|
browserURL?: string;
|
|
1105
1110
|
transport?: ConnectionTransport;
|
|
1111
|
+
|
|
1106
1112
|
/**
|
|
1107
1113
|
* Headers to use for the web socket connection.
|
|
1108
1114
|
* @remarks
|
|
@@ -6378,6 +6384,11 @@ export declare abstract class Page extends EventEmitter<PageEvents> {
|
|
|
6378
6384
|
|
|
6379
6385
|
|
|
6380
6386
|
|
|
6387
|
+
/**
|
|
6388
|
+
* Opens DevTools for the current Page and returns the DevTools Page. This
|
|
6389
|
+
* method is only available in Chrome.
|
|
6390
|
+
*/
|
|
6391
|
+
abstract openDevTools(): Promise<Page>;
|
|
6381
6392
|
}
|
|
6382
6393
|
|
|
6383
6394
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puppeteer-core",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.29.0",
|
|
4
4
|
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"puppeteer",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"author": "The Chromium Authors",
|
|
150
150
|
"license": "Apache-2.0",
|
|
151
151
|
"dependencies": {
|
|
152
|
-
"@puppeteer/browsers": "2.10.
|
|
152
|
+
"@puppeteer/browsers": "2.10.13",
|
|
153
153
|
"chromium-bidi": "10.5.1",
|
|
154
154
|
"debug": "^4.4.3",
|
|
155
155
|
"devtools-protocol": "0.0.1521046",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"ws": "^8.18.3"
|
|
159
159
|
},
|
|
160
160
|
"devDependencies": {
|
|
161
|
-
"@types/chrome": "0.1.
|
|
161
|
+
"@types/chrome": "0.1.27",
|
|
162
162
|
"@types/debug": "4.1.12",
|
|
163
163
|
"@types/node": "^18.17.15",
|
|
164
164
|
"@types/ws": "8.18.1",
|
|
@@ -392,13 +392,15 @@ export abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
392
392
|
* returns all {@link Page | pages} in all
|
|
393
393
|
* {@link BrowserContext | browser contexts}.
|
|
394
394
|
*
|
|
395
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
396
|
+
*
|
|
395
397
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
396
398
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
397
399
|
*/
|
|
398
|
-
async pages(): Promise<Page[]> {
|
|
400
|
+
async pages(includeAll = false): Promise<Page[]> {
|
|
399
401
|
const contextPages = await Promise.all(
|
|
400
402
|
this.browserContexts().map(context => {
|
|
401
|
-
return context.pages();
|
|
403
|
+
return context.pages(includeAll);
|
|
402
404
|
}),
|
|
403
405
|
);
|
|
404
406
|
// Flatten array.
|
|
@@ -186,10 +186,12 @@ export abstract class BrowserContext extends EventEmitter<BrowserContextEvents>
|
|
|
186
186
|
* Gets a list of all open {@link Page | pages} inside this
|
|
187
187
|
* {@link BrowserContext | browser context}.
|
|
188
188
|
*
|
|
189
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
190
|
+
*
|
|
189
191
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
190
192
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
191
193
|
*/
|
|
192
|
-
abstract pages(): Promise<Page[]>;
|
|
194
|
+
abstract pages(includeAll?: boolean): Promise<Page[]>;
|
|
193
195
|
|
|
194
196
|
/**
|
|
195
197
|
* Grants this {@link BrowserContext | browser context} the given
|
|
@@ -3168,6 +3168,12 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|
|
3168
3168
|
[asyncDisposeSymbol](): Promise<void> {
|
|
3169
3169
|
return this.close();
|
|
3170
3170
|
}
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* Opens DevTools for the current Page and returns the DevTools Page. This
|
|
3174
|
+
* method is only available in Chrome.
|
|
3175
|
+
*/
|
|
3176
|
+
abstract openDevTools(): Promise<Page>;
|
|
3171
3177
|
}
|
|
3172
3178
|
|
|
3173
3179
|
/**
|
|
@@ -10,6 +10,7 @@ import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
|
|
10
10
|
import type {ConnectOptions} from '../common/ConnectOptions.js';
|
|
11
11
|
import {ProtocolError, UnsupportedOperation} from '../common/Errors.js';
|
|
12
12
|
import {debugError, DEFAULT_VIEWPORT} from '../common/util.js';
|
|
13
|
+
import {createIncrementalIdGenerator} from '../util/incremental-id-generator.js';
|
|
13
14
|
|
|
14
15
|
import type {BidiBrowser} from './Browser.js';
|
|
15
16
|
import type {BidiConnection} from './Connection.js';
|
|
@@ -66,12 +67,17 @@ async function getBiDiConnection(
|
|
|
66
67
|
closeCallback: BrowserCloseCallback;
|
|
67
68
|
}> {
|
|
68
69
|
const BiDi = await import(/* webpackIgnore: true */ './bidi.js');
|
|
69
|
-
const {
|
|
70
|
+
const {
|
|
71
|
+
slowMo = 0,
|
|
72
|
+
protocolTimeout,
|
|
73
|
+
idGenerator = createIncrementalIdGenerator(),
|
|
74
|
+
} = options;
|
|
70
75
|
|
|
71
76
|
// Try pure BiDi first.
|
|
72
77
|
const pureBidiConnection = new BiDi.BidiConnection(
|
|
73
78
|
url,
|
|
74
79
|
connectionTransport,
|
|
80
|
+
idGenerator,
|
|
75
81
|
slowMo,
|
|
76
82
|
protocolTimeout,
|
|
77
83
|
);
|
|
@@ -102,6 +108,7 @@ async function getBiDiConnection(
|
|
|
102
108
|
slowMo,
|
|
103
109
|
protocolTimeout,
|
|
104
110
|
/* rawErrors= */ true,
|
|
111
|
+
idGenerator,
|
|
105
112
|
);
|
|
106
113
|
|
|
107
114
|
const version = await cdpConnection.send('Browser.getVersion');
|
|
@@ -224,7 +224,7 @@ export class BidiBrowserContext extends BrowserContext {
|
|
|
224
224
|
return this.#browser;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
override async pages(): Promise<BidiPage[]> {
|
|
227
|
+
override async pages(_includeAll = false): Promise<BidiPage[]> {
|
|
228
228
|
return [...this.userContext.browsingContexts].map(context => {
|
|
229
229
|
return this.#pages.get(context)!;
|
|
230
230
|
});
|
|
@@ -14,6 +14,7 @@ import {ConnectionClosedError} from '../common/Errors.js';
|
|
|
14
14
|
import type {EventsWithWildcard} from '../common/EventEmitter.js';
|
|
15
15
|
import {EventEmitter} from '../common/EventEmitter.js';
|
|
16
16
|
import {debugError} from '../common/util.js';
|
|
17
|
+
import type {GetIdFn} from '../util/incremental-id-generator.js';
|
|
17
18
|
|
|
18
19
|
import {BidiCdpSession} from './CDPSession.js';
|
|
19
20
|
import type {
|
|
@@ -57,12 +58,13 @@ export class BidiConnection
|
|
|
57
58
|
#delay: number;
|
|
58
59
|
#timeout = 0;
|
|
59
60
|
#closed = false;
|
|
60
|
-
#callbacks
|
|
61
|
+
#callbacks: CallbackRegistry;
|
|
61
62
|
#emitters: Array<EventEmitter<any>> = [];
|
|
62
63
|
|
|
63
64
|
constructor(
|
|
64
65
|
url: string,
|
|
65
66
|
transport: ConnectionTransport,
|
|
67
|
+
idGenerator: GetIdFn,
|
|
66
68
|
delay = 0,
|
|
67
69
|
timeout?: number,
|
|
68
70
|
) {
|
|
@@ -70,6 +72,7 @@ export class BidiConnection
|
|
|
70
72
|
this.#url = url;
|
|
71
73
|
this.#delay = delay;
|
|
72
74
|
this.#timeout = timeout ?? 180_000;
|
|
75
|
+
this.#callbacks = new CallbackRegistry(idGenerator);
|
|
73
76
|
|
|
74
77
|
this.#transport = transport;
|
|
75
78
|
this.#transport.onmessage = this.onMessage.bind(this);
|
|
@@ -286,6 +286,10 @@ export class BidiPage extends Page {
|
|
|
286
286
|
throw new Error('Method not implemented for WebDriver BiDi yet.');
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
override openDevTools(): Promise<Page> {
|
|
290
|
+
throw new Error('Method not implemented for WebDriver BiDi yet.');
|
|
291
|
+
}
|
|
292
|
+
|
|
289
293
|
async focusedFrame(): Promise<BidiFrame> {
|
|
290
294
|
using handle = (await this.mainFrame()
|
|
291
295
|
.isolatedRealm()
|
|
@@ -432,18 +436,42 @@ export class BidiPage extends Page {
|
|
|
432
436
|
|
|
433
437
|
override async setViewport(viewport: Viewport | null): Promise<void> {
|
|
434
438
|
if (!this.browser().cdpSupported) {
|
|
435
|
-
|
|
436
|
-
viewport
|
|
437
|
-
|
|
439
|
+
const viewportSize =
|
|
440
|
+
viewport?.width && viewport?.height
|
|
441
|
+
? {
|
|
442
|
+
width: viewport.width,
|
|
443
|
+
height: viewport.height,
|
|
444
|
+
}
|
|
445
|
+
: null;
|
|
446
|
+
|
|
447
|
+
const devicePixelRatio = viewport?.deviceScaleFactor
|
|
448
|
+
? viewport.deviceScaleFactor
|
|
449
|
+
: null;
|
|
450
|
+
|
|
451
|
+
// If `viewport` is not set, remove screen orientation override.
|
|
452
|
+
const screenOrientation: Bidi.Emulation.ScreenOrientation | null =
|
|
453
|
+
viewport
|
|
454
|
+
? viewport.isLandscape
|
|
438
455
|
? {
|
|
439
|
-
|
|
440
|
-
|
|
456
|
+
natural: Bidi.Emulation.ScreenOrientationNatural.Landscape,
|
|
457
|
+
type: 'landscape-primary',
|
|
441
458
|
}
|
|
442
|
-
:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
459
|
+
: {
|
|
460
|
+
natural: Bidi.Emulation.ScreenOrientationNatural.Portrait,
|
|
461
|
+
type: 'portrait-primary',
|
|
462
|
+
}
|
|
463
|
+
: null;
|
|
464
|
+
|
|
465
|
+
await Promise.all([
|
|
466
|
+
this.#frame.browsingContext.setViewport({
|
|
467
|
+
viewport: viewportSize,
|
|
468
|
+
devicePixelRatio,
|
|
469
|
+
}),
|
|
470
|
+
this.#frame.browsingContext.setScreenOrientationOverride(
|
|
471
|
+
screenOrientation,
|
|
472
|
+
),
|
|
473
|
+
]);
|
|
474
|
+
|
|
447
475
|
this.#viewport = viewport;
|
|
448
476
|
return;
|
|
449
477
|
}
|
|
@@ -601,6 +601,19 @@ export class BrowsingContext extends EventEmitter<{
|
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
+
@throwIfDisposed<BrowsingContext>(context => {
|
|
605
|
+
// SAFETY: Disposal implies this exists.
|
|
606
|
+
return context.#reason!;
|
|
607
|
+
})
|
|
608
|
+
async setScreenOrientationOverride(
|
|
609
|
+
screenOrientation: Bidi.Emulation.ScreenOrientation | null,
|
|
610
|
+
): Promise<void> {
|
|
611
|
+
await this.#session.send('emulation.setScreenOrientationOverride', {
|
|
612
|
+
screenOrientation,
|
|
613
|
+
contexts: [this.id],
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
|
|
604
617
|
@throwIfDisposed<BrowsingContext>(context => {
|
|
605
618
|
// SAFETY: Disposal implies this exists.
|
|
606
619
|
return context.#reason!;
|
|
@@ -8,6 +8,7 @@ import type {Protocol} from 'devtools-protocol';
|
|
|
8
8
|
|
|
9
9
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
|
10
10
|
import type {Realm} from '../api/Realm.js';
|
|
11
|
+
import {debugError} from '../common/util.js';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Represents a Node and the properties of it that are relevant to Accessibility.
|
|
@@ -238,8 +239,13 @@ export class Accessibility {
|
|
|
238
239
|
if (!frame) {
|
|
239
240
|
return;
|
|
240
241
|
}
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
try {
|
|
243
|
+
const iframeSnapshot = await frame.accessibility.snapshot(options);
|
|
244
|
+
root.iframeSnapshot = iframeSnapshot ?? undefined;
|
|
245
|
+
} catch (error) {
|
|
246
|
+
// Frames can get detached at any time resulting in errors.
|
|
247
|
+
debugError(error);
|
|
248
|
+
}
|
|
243
249
|
}
|
|
244
250
|
for (const child of root.children) {
|
|
245
251
|
await populateIframes(child);
|
|
@@ -382,6 +382,38 @@ export class CdpBrowser extends BrowserBase {
|
|
|
382
382
|
return page;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
async _createDevToolsPage(pageTargetId: string): Promise<Page> {
|
|
386
|
+
const openDevToolsResponse = await this.#connection.send(
|
|
387
|
+
'Target.openDevTools',
|
|
388
|
+
{
|
|
389
|
+
targetId: pageTargetId,
|
|
390
|
+
},
|
|
391
|
+
);
|
|
392
|
+
const target = (await this.waitForTarget(t => {
|
|
393
|
+
return (t as CdpTarget)._targetId === openDevToolsResponse.targetId;
|
|
394
|
+
})) as CdpTarget;
|
|
395
|
+
if (!target) {
|
|
396
|
+
throw new Error(
|
|
397
|
+
`Missing target for DevTools page (id = ${pageTargetId})`,
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
const initialized =
|
|
401
|
+
(await target._initializedDeferred.valueOrThrow()) ===
|
|
402
|
+
InitializationStatus.SUCCESS;
|
|
403
|
+
if (!initialized) {
|
|
404
|
+
throw new Error(
|
|
405
|
+
`Failed to create target for DevTools page (id = ${pageTargetId})`,
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
const page = await target.page();
|
|
409
|
+
if (!page) {
|
|
410
|
+
throw new Error(
|
|
411
|
+
`Failed to create a DevTools Page for target (id = ${pageTargetId})`,
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
return page;
|
|
415
|
+
}
|
|
416
|
+
|
|
385
417
|
override async installExtension(path: string): Promise<string> {
|
|
386
418
|
const {id} = await this.#connection.send('Extensions.loadUnpacked', {path});
|
|
387
419
|
return id;
|