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