mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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) => {
|
||||
const worker = this._workers.get(event.sessionId);
|
||||
if (!worker) return;
|
||||
this.emit(PageEmittedEvents.WorkerDestroyed, worker);
|
||||
this._workers.delete(event.sessionId);
|
||||
this.emit(PageEmittedEvents.WorkerDestroyed, worker);
|
||||
});
|
||||
|
||||
this._frameManager.on(FrameManagerEmittedEvents.FrameAttached, (event) =>
|
||||
|
Loading…
Reference in New Issue
Block a user