feat(page): emit the event after removing the Worker (#7080)
This commit is contained in:
parent
943477cc1e
commit
e34a6d5318
@ -507,8 +507,8 @@ export class Page extends EventEmitter {
|
|||||||
client.on('Target.detachedFromTarget', (event) => {
|
client.on('Target.detachedFromTarget', (event) => {
|
||||||
const worker = this._workers.get(event.sessionId);
|
const worker = this._workers.get(event.sessionId);
|
||||||
if (!worker) return;
|
if (!worker) return;
|
||||||
this.emit(PageEmittedEvents.WorkerDestroyed, worker);
|
|
||||||
this._workers.delete(event.sessionId);
|
this._workers.delete(event.sessionId);
|
||||||
|
this.emit(PageEmittedEvents.WorkerDestroyed, worker);
|
||||||
});
|
});
|
||||||
|
|
||||||
this._frameManager.on(FrameManagerEmittedEvents.FrameAttached, (event) =>
|
this._frameManager.on(FrameManagerEmittedEvents.FrameAttached, (event) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user