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
|
@@ -48,6 +48,7 @@ const Browser_js_1 = require("../cdp/Browser.js");
|
|
|
48
48
|
const Connection_js_1 = require("../cdp/Connection.js");
|
|
49
49
|
const Errors_js_1 = require("../common/Errors.js");
|
|
50
50
|
const util_js_1 = require("../common/util.js");
|
|
51
|
+
const incremental_id_generator_js_1 = require("../util/incremental-id-generator.js");
|
|
51
52
|
const NodeWebSocketTransport_js_1 = require("./NodeWebSocketTransport.js");
|
|
52
53
|
const PipeTransport_js_1 = require("./PipeTransport.js");
|
|
53
54
|
/**
|
|
@@ -72,7 +73,7 @@ class BrowserLauncher {
|
|
|
72
73
|
return this.#browser;
|
|
73
74
|
}
|
|
74
75
|
async launch(options = {}) {
|
|
75
|
-
const { dumpio = false, enableExtensions = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, acceptInsecureCerts = false, networkEnabled = true, defaultViewport = util_js_1.DEFAULT_VIEWPORT, downloadBehavior, slowMo = 0, timeout = 30000, waitForInitialPage = true, protocolTimeout, handleDevToolsAsPage, } = options;
|
|
76
|
+
const { dumpio = false, enableExtensions = false, env = process.env, handleSIGINT = true, handleSIGTERM = true, handleSIGHUP = true, acceptInsecureCerts = false, networkEnabled = true, defaultViewport = util_js_1.DEFAULT_VIEWPORT, downloadBehavior, slowMo = 0, timeout = 30000, waitForInitialPage = true, protocolTimeout, handleDevToolsAsPage, idGenerator = (0, incremental_id_generator_js_1.createIncrementalIdGenerator)(), } = options;
|
|
76
77
|
let { protocol } = options;
|
|
77
78
|
// Default to 'webDriverBiDi' for Firefox.
|
|
78
79
|
if (this.#browser === 'firefox' && protocol === undefined) {
|
|
@@ -129,6 +130,7 @@ class BrowserLauncher {
|
|
|
129
130
|
defaultViewport,
|
|
130
131
|
acceptInsecureCerts,
|
|
131
132
|
networkEnabled,
|
|
133
|
+
idGenerator,
|
|
132
134
|
});
|
|
133
135
|
}
|
|
134
136
|
else {
|
|
@@ -137,6 +139,7 @@ class BrowserLauncher {
|
|
|
137
139
|
timeout,
|
|
138
140
|
protocolTimeout,
|
|
139
141
|
slowMo,
|
|
142
|
+
idGenerator,
|
|
140
143
|
});
|
|
141
144
|
}
|
|
142
145
|
else {
|
|
@@ -144,6 +147,7 @@ class BrowserLauncher {
|
|
|
144
147
|
timeout,
|
|
145
148
|
protocolTimeout,
|
|
146
149
|
slowMo,
|
|
150
|
+
idGenerator,
|
|
147
151
|
});
|
|
148
152
|
}
|
|
149
153
|
if (protocol === 'webDriverBiDi') {
|
|
@@ -234,7 +238,8 @@ class BrowserLauncher {
|
|
|
234
238
|
async createCdpSocketConnection(browserProcess, opts) {
|
|
235
239
|
const browserWSEndpoint = await browserProcess.waitForLineOutput(browsers_1.CDP_WEBSOCKET_ENDPOINT_REGEX, opts.timeout);
|
|
236
240
|
const transport = await NodeWebSocketTransport_js_1.NodeWebSocketTransport.create(browserWSEndpoint);
|
|
237
|
-
return new Connection_js_1.Connection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout
|
|
241
|
+
return new Connection_js_1.Connection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout,
|
|
242
|
+
/* rawErrors */ false, opts.idGenerator);
|
|
238
243
|
}
|
|
239
244
|
/**
|
|
240
245
|
* @internal
|
|
@@ -244,7 +249,8 @@ class BrowserLauncher {
|
|
|
244
249
|
// 4th and 5th items to stdio array
|
|
245
250
|
const { 3: pipeWrite, 4: pipeRead } = browserProcess.nodeProcess.stdio;
|
|
246
251
|
const transport = new PipeTransport_js_1.PipeTransport(pipeWrite, pipeRead);
|
|
247
|
-
return new Connection_js_1.Connection('', transport, opts.slowMo, opts.protocolTimeout
|
|
252
|
+
return new Connection_js_1.Connection('', transport, opts.slowMo, opts.protocolTimeout,
|
|
253
|
+
/* rawErrors */ false, opts.idGenerator);
|
|
248
254
|
}
|
|
249
255
|
/**
|
|
250
256
|
* @internal
|
|
@@ -272,7 +278,7 @@ class BrowserLauncher {
|
|
|
272
278
|
const browserWSEndpoint = (await browserProcess.waitForLineOutput(browsers_1.WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX, opts.timeout)) + '/session';
|
|
273
279
|
const transport = await NodeWebSocketTransport_js_1.NodeWebSocketTransport.create(browserWSEndpoint);
|
|
274
280
|
const BiDi = await Promise.resolve().then(() => __importStar(require(/* webpackIgnore: true */ '../bidi/bidi.js')));
|
|
275
|
-
const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout);
|
|
281
|
+
const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.idGenerator, opts.slowMo, opts.protocolTimeout);
|
|
276
282
|
return await BiDi.BidiBrowser.create({
|
|
277
283
|
connection: bidiConnection,
|
|
278
284
|
closeCallback,
|
package/front_end/third_party/puppeteer/package/lib/cjs/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,qCAAmC;AACnC,qCAA+B;AAC/B,yCAA+B;AAE/B,kDAO6B;AAE7B,4DAMwC;AAExC,kDAA6C;AAC7C,wDAAgD;AAChD,mDAAiD;AAEjD,+CAA+D;
|
|
1
|
+
{"version":3,"file":"BrowserLauncher.js","sourceRoot":"","sources":["../../../../src/node/BrowserLauncher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,qCAAmC;AACnC,qCAA+B;AAC/B,yCAA+B;AAE/B,kDAO6B;AAE7B,4DAMwC;AAExC,kDAA6C;AAC7C,wDAAgD;AAChD,mDAAiD;AAEjD,+CAA+D;AAE/D,qFAG6C;AAG7C,2EAAyF;AACzF,yDAAiD;AAajD;;;;GAIG;AACH,MAAsB,eAAe;IACnC,QAAQ,CAAmB;IAE3B;;OAEG;IACH,SAAS,CAAgB;IAEzB;;OAEG;IACH,YAAY,SAAwB,EAAE,OAAyB;Q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AC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;YACN,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AA5eD,0CA4eC"}
|
|
@@ -6,8 +6,8 @@ export declare class Mutex {
|
|
|
6
6
|
#private;
|
|
7
7
|
static Guard: {
|
|
8
8
|
new (mutex: Mutex, onRelease?: () => void): {
|
|
9
|
-
"__#
|
|
10
|
-
"__#
|
|
9
|
+
"__#59745@#mutex": Mutex;
|
|
10
|
+
"__#59745@#onRelease"?: () => void;
|
|
11
11
|
[Symbol.dispose](): void;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -8,6 +8,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.packageVersion = void 0;
|
|
9
9
|
// If moved update release-please config
|
|
10
10
|
// x-release-please-start-version
|
|
11
|
-
exports.packageVersion = '24.
|
|
11
|
+
exports.packageVersion = '24.29.0';
|
|
12
12
|
// x-release-please-end
|
|
13
13
|
//# sourceMappingURL=version.js.map
|
|
@@ -291,10 +291,12 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
291
291
|
* returns all {@link 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
|
|
|
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
|
/**
|
|
@@ -3048,7 +3048,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
3048
3048
|
*/
|
|
3049
3049
|
// If moved update release-please config
|
|
3050
3050
|
// x-release-please-start-version
|
|
3051
|
-
const packageVersion = '24.
|
|
3051
|
+
const packageVersion = '24.29.0';
|
|
3052
3052
|
// x-release-please-end
|
|
3053
3053
|
|
|
3054
3054
|
/**
|
|
@@ -3827,12 +3827,14 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
3827
3827
|
* returns all {@link Page | pages} in all
|
|
3828
3828
|
* {@link BrowserContext | browser contexts}.
|
|
3829
3829
|
*
|
|
3830
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
3831
|
+
*
|
|
3830
3832
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
3831
3833
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
3832
3834
|
*/
|
|
3833
|
-
async pages() {
|
|
3835
|
+
async pages(includeAll = false) {
|
|
3834
3836
|
const contextPages = await Promise.all(this.browserContexts().map(context => {
|
|
3835
|
-
return context.pages();
|
|
3837
|
+
return context.pages(includeAll);
|
|
3836
3838
|
}));
|
|
3837
3839
|
// Flatten array.
|
|
3838
3840
|
return contextPages.reduce((acc, x) => {
|
|
@@ -12709,8 +12711,13 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
12709
12711
|
if (!frame) {
|
|
12710
12712
|
return;
|
|
12711
12713
|
}
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
+
try {
|
|
12715
|
+
const iframeSnapshot = await frame.accessibility.snapshot(options);
|
|
12716
|
+
root.iframeSnapshot = iframeSnapshot ?? undefined;
|
|
12717
|
+
} catch (error) {
|
|
12718
|
+
// Frames can get detached at any time resulting in errors.
|
|
12719
|
+
debugError(error);
|
|
12720
|
+
}
|
|
12714
12721
|
} catch (e_1) {
|
|
12715
12722
|
env_1.error = e_1;
|
|
12716
12723
|
env_1.hasError = true;
|
|
@@ -13404,7 +13411,6 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13404
13411
|
* Copyright 2023 Google Inc.
|
|
13405
13412
|
* SPDX-License-Identifier: Apache-2.0
|
|
13406
13413
|
*/
|
|
13407
|
-
const idGenerator = createIncrementalIdGenerator();
|
|
13408
13414
|
/**
|
|
13409
13415
|
* Manages callbacks and their IDs for the protocol request/response communication.
|
|
13410
13416
|
*
|
|
@@ -13413,9 +13419,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13413
13419
|
var _callbacks = /*#__PURE__*/new WeakMap();
|
|
13414
13420
|
var _idGenerator = /*#__PURE__*/new WeakMap();
|
|
13415
13421
|
class CallbackRegistry {
|
|
13416
|
-
constructor() {
|
|
13422
|
+
constructor(idGenerator) {
|
|
13417
13423
|
_classPrivateFieldInitSpec(this, _callbacks, new Map());
|
|
13418
|
-
_classPrivateFieldInitSpec(this, _idGenerator,
|
|
13424
|
+
_classPrivateFieldInitSpec(this, _idGenerator, void 0);
|
|
13425
|
+
_classPrivateFieldSet(_idGenerator, this, idGenerator);
|
|
13419
13426
|
}
|
|
13420
13427
|
create(label, timeout, request) {
|
|
13421
13428
|
const callback = new Callback(_classPrivateFieldGet(_idGenerator, this).call(this), label, timeout);
|
|
@@ -13557,7 +13564,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13557
13564
|
super();
|
|
13558
13565
|
_classPrivateFieldInitSpec(this, _sessionId, void 0);
|
|
13559
13566
|
_classPrivateFieldInitSpec(this, _targetType, void 0);
|
|
13560
|
-
_classPrivateFieldInitSpec(this, _callbacks2,
|
|
13567
|
+
_classPrivateFieldInitSpec(this, _callbacks2, void 0);
|
|
13561
13568
|
_classPrivateFieldInitSpec(this, _connection, void 0);
|
|
13562
13569
|
_classPrivateFieldInitSpec(this, _parentSessionId, void 0);
|
|
13563
13570
|
_classPrivateFieldInitSpec(this, _target, void 0);
|
|
@@ -13565,6 +13572,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13565
13572
|
_classPrivateFieldInitSpec(this, _detached, false);
|
|
13566
13573
|
_classPrivateFieldSet(_connection, this, connection);
|
|
13567
13574
|
_classPrivateFieldSet(_targetType, this, targetType);
|
|
13575
|
+
_classPrivateFieldSet(_callbacks2, this, new CallbackRegistry(connection._idGenerator));
|
|
13568
13576
|
_classPrivateFieldSet(_sessionId, this, sessionId);
|
|
13569
13577
|
_classPrivateFieldSet(_parentSessionId, this, parentSessionId);
|
|
13570
13578
|
_classPrivateFieldSet(_rawErrors, this, rawErrors);
|
|
@@ -13680,9 +13688,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13680
13688
|
var _manuallyAttached = /*#__PURE__*/new WeakMap();
|
|
13681
13689
|
var _callbacks3 = /*#__PURE__*/new WeakMap();
|
|
13682
13690
|
var _rawErrors2 = /*#__PURE__*/new WeakMap();
|
|
13691
|
+
var _idGenerator2 = /*#__PURE__*/new WeakMap();
|
|
13683
13692
|
var _Connection_brand = /*#__PURE__*/new WeakSet();
|
|
13684
13693
|
class Connection extends EventEmitter {
|
|
13685
|
-
constructor(url, transport, delay = 0, timeout, rawErrors = false) {
|
|
13694
|
+
constructor(url, transport, delay = 0, timeout, rawErrors = false, idGenerator = createIncrementalIdGenerator()) {
|
|
13686
13695
|
super();
|
|
13687
13696
|
_classPrivateMethodInitSpec(this, _Connection_brand);
|
|
13688
13697
|
_classPrivateFieldInitSpec(this, _url2, void 0);
|
|
@@ -13694,8 +13703,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13694
13703
|
_classPrivateFieldInitSpec(this, _manuallyAttached, new Set());
|
|
13695
13704
|
_classPrivateFieldInitSpec(this, _callbacks3, void 0);
|
|
13696
13705
|
_classPrivateFieldInitSpec(this, _rawErrors2, false);
|
|
13706
|
+
_classPrivateFieldInitSpec(this, _idGenerator2, void 0);
|
|
13697
13707
|
_classPrivateFieldSet(_rawErrors2, this, rawErrors);
|
|
13698
|
-
_classPrivateFieldSet(
|
|
13708
|
+
_classPrivateFieldSet(_idGenerator2, this, idGenerator);
|
|
13709
|
+
_classPrivateFieldSet(_callbacks3, this, new CallbackRegistry(idGenerator));
|
|
13699
13710
|
_classPrivateFieldSet(_url2, this, url);
|
|
13700
13711
|
_classPrivateFieldSet(_delay2, this, delay);
|
|
13701
13712
|
_classPrivateFieldSet(_timeout2, this, timeout ?? 180_000);
|
|
@@ -13721,6 +13732,12 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
13721
13732
|
get _closed() {
|
|
13722
13733
|
return _classPrivateFieldGet(_closed, this);
|
|
13723
13734
|
}
|
|
13735
|
+
/**
|
|
13736
|
+
* @internal
|
|
13737
|
+
*/
|
|
13738
|
+
get _idGenerator() {
|
|
13739
|
+
return _classPrivateFieldGet(_idGenerator2, this);
|
|
13740
|
+
}
|
|
13724
13741
|
/**
|
|
13725
13742
|
* @internal
|
|
13726
13743
|
*/
|
|
@@ -20952,6 +20969,12 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
20952
20969
|
isJavaScriptEnabled() {
|
|
20953
20970
|
return _classPrivateFieldGet(_emulationManager, this).javascriptEnabled;
|
|
20954
20971
|
}
|
|
20972
|
+
async openDevTools() {
|
|
20973
|
+
const pageTargetId = this.target()._targetId;
|
|
20974
|
+
const browser = this.browser();
|
|
20975
|
+
const devtoolsPage = await browser._createDevToolsPage(pageTargetId);
|
|
20976
|
+
return devtoolsPage;
|
|
20977
|
+
}
|
|
20955
20978
|
async waitForFileChooser(options = {}) {
|
|
20956
20979
|
const needsEnable = _classPrivateFieldGet(_fileChooserDeferreds, this).size === 0;
|
|
20957
20980
|
const {
|
|
@@ -21783,9 +21806,9 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
21783
21806
|
return target.browserContext() === this;
|
|
21784
21807
|
});
|
|
21785
21808
|
}
|
|
21786
|
-
async pages() {
|
|
21809
|
+
async pages(includeAll = false) {
|
|
21787
21810
|
const pages = await Promise.all(this.targets().filter(target => {
|
|
21788
|
-
return target.type() === 'page' || target.type() === 'other' && _classPrivateFieldGet(_browser, this)._getIsPageTargetCallback()?.(target);
|
|
21811
|
+
return target.type() === 'page' || (target.type() === 'other' || includeAll) && _classPrivateFieldGet(_browser, this)._getIsPageTargetCallback()?.(target);
|
|
21789
21812
|
}).map(target => {
|
|
21790
21813
|
return target.page();
|
|
21791
21814
|
}));
|
|
@@ -22141,10 +22164,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22141
22164
|
var _attachedToTargetListenersBySession = /*#__PURE__*/new WeakMap();
|
|
22142
22165
|
var _detachedFromTargetListenersBySession = /*#__PURE__*/new WeakMap();
|
|
22143
22166
|
var _initializeDeferred = /*#__PURE__*/new WeakMap();
|
|
22144
|
-
var _targetsIdsForInit = /*#__PURE__*/new WeakMap();
|
|
22145
22167
|
var _waitForInitiallyDiscoveredTargets = /*#__PURE__*/new WeakMap();
|
|
22146
22168
|
var _discoveryFilter = /*#__PURE__*/new WeakMap();
|
|
22147
|
-
var
|
|
22169
|
+
var _targetsIdsForInit = /*#__PURE__*/new WeakMap();
|
|
22170
|
+
var _initialAttachDone = /*#__PURE__*/new WeakMap();
|
|
22148
22171
|
var _TargetManager_brand = /*#__PURE__*/new WeakSet();
|
|
22149
22172
|
var _onSessionDetached = /*#__PURE__*/new WeakMap();
|
|
22150
22173
|
var _onTargetCreated = /*#__PURE__*/new WeakMap();
|
|
@@ -22187,24 +22210,19 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22187
22210
|
_classPrivateFieldInitSpec(this, _attachedToTargetListenersBySession, new WeakMap());
|
|
22188
22211
|
_classPrivateFieldInitSpec(this, _detachedFromTargetListenersBySession, new WeakMap());
|
|
22189
22212
|
_classPrivateFieldInitSpec(this, _initializeDeferred, Deferred.create());
|
|
22190
|
-
_classPrivateFieldInitSpec(this, _targetsIdsForInit, new Set());
|
|
22191
22213
|
_classPrivateFieldInitSpec(this, _waitForInitiallyDiscoveredTargets, true);
|
|
22192
22214
|
_classPrivateFieldInitSpec(this, _discoveryFilter, [{}]);
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22202
|
-
|
|
22203
|
-
|
|
22204
|
-
_classPrivateFieldGet(_targetsIdsForInit, this).add(targetId);
|
|
22205
|
-
}
|
|
22206
|
-
}
|
|
22207
|
-
});
|
|
22215
|
+
// IDs of tab targets detected while running the initial Target.setAutoAttach
|
|
22216
|
+
// request. These are the targets whose initialization we want to await for
|
|
22217
|
+
// before resolving puppeteer.connect() or launch() to avoid flakiness.
|
|
22218
|
+
// Whenever a sub-target whose parent is a tab target is attached, we remove
|
|
22219
|
+
// the tab target from this list. Once the list is empty, we resolve the
|
|
22220
|
+
// initializeDeferred.
|
|
22221
|
+
_classPrivateFieldInitSpec(this, _targetsIdsForInit, new Set());
|
|
22222
|
+
// This is false until the connection-level Target.setAutoAttach request is
|
|
22223
|
+
// done. It indicates whethere we are running the initial auto-attach step or
|
|
22224
|
+
// if we are handling targets after that.
|
|
22225
|
+
_classPrivateFieldInitSpec(this, _initialAttachDone, false);
|
|
22208
22226
|
_classPrivateFieldInitSpec(this, _onSessionDetached, session => {
|
|
22209
22227
|
_assertClassBrand(_TargetManager_brand, this, _removeAttachmentListeners).call(this, session);
|
|
22210
22228
|
});
|
|
@@ -22287,7 +22305,6 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22287
22305
|
// should determine if a target is auto-attached or not with the help of
|
|
22288
22306
|
// CDP.
|
|
22289
22307
|
if (targetInfo.type === 'service_worker') {
|
|
22290
|
-
_assertClassBrand(_TargetManager_brand, this, _finishInitializationIfReady).call(this, targetInfo.targetId);
|
|
22291
22308
|
await silentDetach();
|
|
22292
22309
|
if (_classPrivateFieldGet(_attachedTargetsByTargetId, this).has(targetInfo.targetId)) {
|
|
22293
22310
|
return;
|
|
@@ -22300,12 +22317,18 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22300
22317
|
}
|
|
22301
22318
|
const isExistingTarget = _classPrivateFieldGet(_attachedTargetsByTargetId, this).has(targetInfo.targetId);
|
|
22302
22319
|
const target = isExistingTarget ? _classPrivateFieldGet(_attachedTargetsByTargetId, this).get(targetInfo.targetId) : _classPrivateFieldGet(_targetFactory, this).call(this, targetInfo, session, parentSession instanceof CdpCDPSession ? parentSession : undefined);
|
|
22320
|
+
const parentTarget = parentSession instanceof CdpCDPSession ? parentSession.target() : null;
|
|
22303
22321
|
if (_classPrivateFieldGet(_targetFilterCallback, this) && !_classPrivateFieldGet(_targetFilterCallback, this).call(this, target)) {
|
|
22304
22322
|
_classPrivateFieldGet(_ignoredTargets, this).add(targetInfo.targetId);
|
|
22305
|
-
|
|
22323
|
+
if (parentTarget?.type() === 'tab') {
|
|
22324
|
+
_assertClassBrand(_TargetManager_brand, this, _finishInitializationIfReady).call(this, parentTarget._targetId);
|
|
22325
|
+
}
|
|
22306
22326
|
await silentDetach();
|
|
22307
22327
|
return;
|
|
22308
22328
|
}
|
|
22329
|
+
if (_classPrivateFieldGet(_waitForInitiallyDiscoveredTargets, this) && event.targetInfo.type === 'tab' && !_classPrivateFieldGet(_initialAttachDone, this)) {
|
|
22330
|
+
_classPrivateFieldGet(_targetsIdsForInit, this).add(event.targetInfo.targetId);
|
|
22331
|
+
}
|
|
22309
22332
|
_assertClassBrand(_TargetManager_brand, this, _setupAttachmentListeners).call(this, session);
|
|
22310
22333
|
if (isExistingTarget) {
|
|
22311
22334
|
session.setTarget(target);
|
|
@@ -22315,14 +22338,14 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22315
22338
|
_classPrivateFieldGet(_attachedTargetsByTargetId, this).set(targetInfo.targetId, target);
|
|
22316
22339
|
_classPrivateFieldGet(_attachedTargetsBySessionId, this).set(session.id(), target);
|
|
22317
22340
|
}
|
|
22318
|
-
const parentTarget = parentSession instanceof CDPSession ? parentSession.target() : null;
|
|
22319
22341
|
parentTarget?._addChildTarget(target);
|
|
22320
22342
|
parentSession.emit(exports.CDPSessionEvent.Ready, session);
|
|
22321
|
-
_classPrivateFieldGet(_targetsIdsForInit, this).delete(target._targetId);
|
|
22322
22343
|
if (!isExistingTarget) {
|
|
22323
22344
|
this.emit("targetAvailable" /* TargetManagerEvent.TargetAvailable */, target);
|
|
22324
22345
|
}
|
|
22325
|
-
|
|
22346
|
+
if (parentTarget?.type() === 'tab') {
|
|
22347
|
+
_assertClassBrand(_TargetManager_brand, this, _finishInitializationIfReady).call(this, parentTarget._targetId);
|
|
22348
|
+
}
|
|
22326
22349
|
// TODO: the browser might be shutting down here. What do we do with the
|
|
22327
22350
|
// error?
|
|
22328
22351
|
await Promise.all([session.send('Target.setAutoAttach', {
|
|
@@ -22359,7 +22382,6 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22359
22382
|
discover: true,
|
|
22360
22383
|
filter: _classPrivateFieldGet(_discoveryFilter, this)
|
|
22361
22384
|
});
|
|
22362
|
-
_classPrivateFieldGet(_storeExistingTargetsForInit, this).call(this);
|
|
22363
22385
|
await _classPrivateFieldGet(_connection3, this).send('Target.setAutoAttach', {
|
|
22364
22386
|
waitForDebuggerOnStart: true,
|
|
22365
22387
|
flatten: true,
|
|
@@ -22369,6 +22391,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22369
22391
|
exclude: true
|
|
22370
22392
|
}, ..._classPrivateFieldGet(_discoveryFilter, this)]
|
|
22371
22393
|
});
|
|
22394
|
+
_classPrivateFieldSet(_initialAttachDone, this, true);
|
|
22372
22395
|
_assertClassBrand(_TargetManager_brand, this, _finishInitializationIfReady).call(this);
|
|
22373
22396
|
await _classPrivateFieldGet(_initializeDeferred, this).valueOrThrow();
|
|
22374
22397
|
}
|
|
@@ -22424,6 +22447,11 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22424
22447
|
if (targetId !== undefined) {
|
|
22425
22448
|
_classPrivateFieldGet(_targetsIdsForInit, this).delete(targetId);
|
|
22426
22449
|
}
|
|
22450
|
+
// If we are still initializing it might be that we have not learned about
|
|
22451
|
+
// some targets yet.
|
|
22452
|
+
if (!_classPrivateFieldGet(_initialAttachDone, this)) {
|
|
22453
|
+
return;
|
|
22454
|
+
}
|
|
22427
22455
|
if (_classPrivateFieldGet(_targetsIdsForInit, this).size === 0) {
|
|
22428
22456
|
_classPrivateFieldGet(_initializeDeferred, this).resolve();
|
|
22429
22457
|
}
|
|
@@ -22632,6 +22660,26 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22632
22660
|
}
|
|
22633
22661
|
return page;
|
|
22634
22662
|
}
|
|
22663
|
+
async _createDevToolsPage(pageTargetId) {
|
|
22664
|
+
const openDevToolsResponse = await _classPrivateFieldGet(_connection4, this).send('Target.openDevTools', {
|
|
22665
|
+
targetId: pageTargetId
|
|
22666
|
+
});
|
|
22667
|
+
const target = await this.waitForTarget(t => {
|
|
22668
|
+
return t._targetId === openDevToolsResponse.targetId;
|
|
22669
|
+
});
|
|
22670
|
+
if (!target) {
|
|
22671
|
+
throw new Error(`Missing target for DevTools page (id = ${pageTargetId})`);
|
|
22672
|
+
}
|
|
22673
|
+
const initialized = (await target._initializedDeferred.valueOrThrow()) === exports.InitializationStatus.SUCCESS;
|
|
22674
|
+
if (!initialized) {
|
|
22675
|
+
throw new Error(`Failed to create target for DevTools page (id = ${pageTargetId})`);
|
|
22676
|
+
}
|
|
22677
|
+
const page = await target.page();
|
|
22678
|
+
if (!page) {
|
|
22679
|
+
throw new Error(`Failed to create a DevTools Page for target (id = ${pageTargetId})`);
|
|
22680
|
+
}
|
|
22681
|
+
return page;
|
|
22682
|
+
}
|
|
22635
22683
|
async installExtension(path) {
|
|
22636
22684
|
const {
|
|
22637
22685
|
id
|
|
@@ -22719,9 +22767,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22719
22767
|
_isPageTarget: isPageTarget,
|
|
22720
22768
|
slowMo = 0,
|
|
22721
22769
|
protocolTimeout,
|
|
22722
|
-
handleDevToolsAsPage
|
|
22770
|
+
handleDevToolsAsPage,
|
|
22771
|
+
idGenerator = createIncrementalIdGenerator()
|
|
22723
22772
|
} = options;
|
|
22724
|
-
const connection = new Connection(url, connectionTransport, slowMo, protocolTimeout);
|
|
22773
|
+
const connection = new Connection(url, connectionTransport, slowMo, protocolTimeout, /* rawErrors */false, idGenerator);
|
|
22725
22774
|
const {
|
|
22726
22775
|
browserContextIds
|
|
22727
22776
|
} = await connection.send('Target.getBrowserContexts');
|
|
@@ -22845,6 +22894,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22845
22894
|
if (parsed.sessionId === 'tabTargetSessionId') {
|
|
22846
22895
|
_assertClassBrand(_ExtensionTransport_brand, this, _dispatchResponse).call(this, {
|
|
22847
22896
|
method: 'Target.attachedToTarget',
|
|
22897
|
+
sessionId: 'tabTargetSessionId',
|
|
22848
22898
|
params: {
|
|
22849
22899
|
targetInfo: pageTargetInfo,
|
|
22850
22900
|
sessionId: 'pageTargetSessionId'
|
|
@@ -22940,7 +22990,10 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
22940
22990
|
* @public
|
|
22941
22991
|
*/
|
|
22942
22992
|
function _dispatchResponse(message) {
|
|
22943
|
-
|
|
22993
|
+
// Dispatch in a new task like other transports.
|
|
22994
|
+
setTimeout(() => {
|
|
22995
|
+
this.onmessage?.(JSON.stringify(message));
|
|
22996
|
+
}, 0);
|
|
22944
22997
|
}
|
|
22945
22998
|
const PredefinedNetworkConditions = Object.freeze({
|
|
22946
22999
|
// Generally aligned with DevTools
|
|
@@ -24545,10 +24598,11 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
24545
24598
|
const BiDi = await Promise.resolve().then(() => _interopRequireWildcard(require(/* webpackIgnore: true */'./bidi/bidi.js')));
|
|
24546
24599
|
const {
|
|
24547
24600
|
slowMo = 0,
|
|
24548
|
-
protocolTimeout
|
|
24601
|
+
protocolTimeout,
|
|
24602
|
+
idGenerator = createIncrementalIdGenerator()
|
|
24549
24603
|
} = options;
|
|
24550
24604
|
// Try pure BiDi first.
|
|
24551
|
-
const pureBidiConnection = new BiDi.BidiConnection(url, connectionTransport, slowMo, protocolTimeout);
|
|
24605
|
+
const pureBidiConnection = new BiDi.BidiConnection(url, connectionTransport, idGenerator, slowMo, protocolTimeout);
|
|
24552
24606
|
try {
|
|
24553
24607
|
const result = await pureBidiConnection.send('session.status', {});
|
|
24554
24608
|
if ('type' in result && result.type === 'success') {
|
|
@@ -24569,7 +24623,7 @@ var Puppeteer = function (exports, _PuppeteerURL, _LazyArg, _ARIAQueryHandler, _
|
|
|
24569
24623
|
// Unbind the connection to avoid memory leaks.
|
|
24570
24624
|
pureBidiConnection.unbind();
|
|
24571
24625
|
// Fall back to CDP over BiDi reusing the WS connection.
|
|
24572
|
-
const cdpConnection = new Connection(url, connectionTransport, slowMo, protocolTimeout, /* rawErrors= */true);
|
|
24626
|
+
const cdpConnection = new Connection(url, connectionTransport, slowMo, protocolTimeout, /* rawErrors= */true, idGenerator);
|
|
24573
24627
|
const version = await cdpConnection.send('Browser.getVersion');
|
|
24574
24628
|
if (version.product.toLowerCase().includes('firefox')) {
|
|
24575
24629
|
throw new UnsupportedOperation('Firefox is not supported in BiDi over CDP mode.');
|
|
@@ -285,10 +285,12 @@ export declare abstract class Browser extends EventEmitter<BrowserEvents> {
|
|
|
285
285
|
* returns all {@link Page | pages} in all
|
|
286
286
|
* {@link BrowserContext | browser contexts}.
|
|
287
287
|
*
|
|
288
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
289
|
+
*
|
|
288
290
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
289
291
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
290
292
|
*/
|
|
291
|
-
pages(): Promise<Page[]>;
|
|
293
|
+
pages(includeAll?: boolean): Promise<Page[]>;
|
|
292
294
|
/**
|
|
293
295
|
* Gets a string representing this {@link Browser | browser's} name and
|
|
294
296
|
* version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,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P,CAAC,aAAa,CAAC,IAAI,IAAI;IAOhC,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,IAAI,OAAO;CACrC"}
|
|
@@ -99,12 +99,14 @@ export class Browser extends EventEmitter {
|
|
|
99
99
|
* returns all {@link Page | pages} in all
|
|
100
100
|
* {@link BrowserContext | browser contexts}.
|
|
101
101
|
*
|
|
102
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
103
|
+
*
|
|
102
104
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
103
105
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
104
106
|
*/
|
|
105
|
-
async pages() {
|
|
107
|
+
async pages(includeAll = false) {
|
|
106
108
|
const contextPages = await Promise.all(this.browserContexts().map(context => {
|
|
107
|
-
return context.pages();
|
|
109
|
+
return context.pages(includeAll);
|
|
108
110
|
}));
|
|
109
111
|
// Flatten array.
|
|
110
112
|
return contextPages.reduce((acc, x) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,cAAc,EACd,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EAAC,YAAY,EAAiB,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AA0CxE;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,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ext
|
|
|
119
119
|
* Gets a list of all open {@link Page | pages} inside this
|
|
120
120
|
* {@link BrowserContext | browser context}.
|
|
121
121
|
*
|
|
122
|
+
* @param includeAll - experimental, setting to true includes all kinds of pages.
|
|
123
|
+
*
|
|
122
124
|
* @remarks Non-visible {@link Page | pages}, such as `"background_page"`,
|
|
123
125
|
* will not be listed here. You can find them using {@link Target.page}.
|
|
124
126
|
*/
|
|
125
|
-
abstract pages(): Promise<Page[]>;
|
|
127
|
+
abstract pages(includeAll?: boolean): Promise<Page[]>;
|
|
126
128
|
/**
|
|
127
129
|
* Grants this {@link BrowserContext | browser context} the given
|
|
128
130
|
* `permissions` within the given `origin`.
|