cherry-pick(release-1.9): fix(BrowserContext): race between continue and close (#5771)

This commit is contained in:
Dmitry Gozman 2021-03-09 15:25:11 -08:00 committed by GitHub
parent 11968ce392
commit e42fe217e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,8 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel,
return; return;
} }
} }
route.continue(); // it can race with BrowserContext.close() which then throws since its closed
route.continue().catch(() => {});
} }
async _onBinding(bindingCall: BindingCall) { async _onBinding(bindingCall: BindingCall) {