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,
|
||||
} from '../api/Page.js';
|
||||
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
||||
import type {IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
|
||||
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
||||
@ -38,8 +37,8 @@ import type {CDPSession} from './CDPSession.js';
|
||||
import type {KeyboardTypeOptions} from './Input.js';
|
||||
import {
|
||||
FunctionLocator,
|
||||
type Locator,
|
||||
NodeLocator,
|
||||
type Locator,
|
||||
} from './locators/locators.js';
|
||||
import type {Realm} from './Realm.js';
|
||||
|
||||
@ -270,11 +269,6 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
||||
*/
|
||||
_parentId?: string;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
worlds!: IsolatedWorldChart;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
@ -20,6 +20,7 @@ import type {
|
||||
DeviceRequestPromptManager,
|
||||
} from './DeviceRequestPrompt.js';
|
||||
import type {FrameManager} from './FrameManager.js';
|
||||
import type {IsolatedWorldChart} from './IsolatedWorld.js';
|
||||
import {IsolatedWorld} from './IsolatedWorld.js';
|
||||
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
||||
import {
|
||||
@ -35,6 +36,7 @@ export class CdpFrame extends Frame {
|
||||
#url = '';
|
||||
#detached = false;
|
||||
#client!: CDPSession;
|
||||
worlds!: IsolatedWorldChart;
|
||||
|
||||
_frameManager: FrameManager;
|
||||
override _id: string;
|
||||
|
Loading…
Reference in New Issue
Block a user