mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: move worlds to CDP (#11852)
This commit is contained in:
parent
dfdd1aab38
commit
194e7f5063
@ -14,7 +14,6 @@ import type {
|
|||||||
WaitTimeoutOptions,
|
WaitTimeoutOptions,
|
||||||
} from '../api/Page.js';
|
} from '../api/Page.js';
|
||||||
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
||||||
import type {IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
|
|
||||||
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
||||||
@ -38,8 +37,8 @@ import type {CDPSession} from './CDPSession.js';
|
|||||||
import type {KeyboardTypeOptions} from './Input.js';
|
import type {KeyboardTypeOptions} from './Input.js';
|
||||||
import {
|
import {
|
||||||
FunctionLocator,
|
FunctionLocator,
|
||||||
type Locator,
|
|
||||||
NodeLocator,
|
NodeLocator,
|
||||||
|
type Locator,
|
||||||
} from './locators/locators.js';
|
} from './locators/locators.js';
|
||||||
import type {Realm} from './Realm.js';
|
import type {Realm} from './Realm.js';
|
||||||
|
|
||||||
@ -270,11 +269,6 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
|||||||
*/
|
*/
|
||||||
_parentId?: string;
|
_parentId?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
worlds!: IsolatedWorldChart;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
@ -20,6 +20,7 @@ import type {
|
|||||||
DeviceRequestPromptManager,
|
DeviceRequestPromptManager,
|
||||||
} from './DeviceRequestPrompt.js';
|
} from './DeviceRequestPrompt.js';
|
||||||
import type {FrameManager} from './FrameManager.js';
|
import type {FrameManager} from './FrameManager.js';
|
||||||
|
import type {IsolatedWorldChart} from './IsolatedWorld.js';
|
||||||
import {IsolatedWorld} from './IsolatedWorld.js';
|
import {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
||||||
import {
|
import {
|
||||||
@ -35,6 +36,7 @@ export class CdpFrame extends Frame {
|
|||||||
#url = '';
|
#url = '';
|
||||||
#detached = false;
|
#detached = false;
|
||||||
#client!: CDPSession;
|
#client!: CDPSession;
|
||||||
|
worlds!: IsolatedWorldChart;
|
||||||
|
|
||||||
_frameManager: FrameManager;
|
_frameManager: FrameManager;
|
||||||
override _id: string;
|
override _id: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user