fix(events): deliver page.close upon disconnect in FF (#929)

This commit is contained in:
Pavel Feldman 2020-02-11 11:13:08 -08:00 committed by GitHub
parent c69dccf7c1
commit 8a35f4023c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}