fix(events): deliver page.close upon disconnect in FF (#929)
This commit is contained in:
parent
c69dccf7c1
commit
8a35f4023c
|
|
@ -127,6 +127,8 @@ export class BrowserContext extends platform.EventEmitter {
|
|||
|
||||
_browserClosed() {
|
||||
this._closed = true;
|
||||
for (const page of this._delegate.existingPages())
|
||||
page._didClose();
|
||||
this.emit(Events.BrowserContext.Close);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue