Skip to content

Commit

Permalink
fix(events): deliver page.close upon disconnect in FF (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Feb 11, 2020
1 parent c69dccf commit 8a35f40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/browserContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8a35f40

Please sign in to comment.