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

This commit is contained in:
Pavel 2020-02-11 11:12:18 -08:00
parent 72b9cf010e
commit ec73e15689

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