File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
packages/puppeteer-core/src/cdp Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -454,10 +454,7 @@ export class FrameManager extends EventEmitter<FrameManagerEvents> {
454
454
}
455
455
if ( contextPayload . auxData && contextPayload . auxData [ 'isDefault' ] ) {
456
456
world = frame . worlds [ MAIN_WORLD ] ;
457
- } else if (
458
- contextPayload . name === UTILITY_WORLD_NAME &&
459
- ! frame . worlds [ PUPPETEER_WORLD ] . hasContext ( )
460
- ) {
457
+ } else if ( contextPayload . name === UTILITY_WORLD_NAME ) {
461
458
// In case of multiple sessions to the same target, there's a race between
462
459
// connections so we might end up creating multiple isolated worlds.
463
460
// We can use either.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import type {TimeoutSettings} from '../common/TimeoutSettings.js';
16
16
import type { EvaluateFunc , HandleFor } from '../common/types.js' ;
17
17
import {
18
18
fromEmitterEvent ,
19
+ timeout ,
19
20
withSourcePuppeteerURLIfNone ,
20
21
} from '../common/util.js' ;
21
22
import { disposeSymbol } from '../util/disposable.js' ;
@@ -143,7 +144,8 @@ export class IsolatedWorld extends Realm {
143
144
// The message has to match the CDP message expected by the WaitTask class.
144
145
throw new Error ( 'Execution context was destroyed' ) ;
145
146
} )
146
- )
147
+ ) ,
148
+ timeout ( this . timeoutSettings . timeout ( ) )
147
149
)
148
150
)
149
151
) ;
You can’t perform that action at this time.
0 commit comments