Skip to content

Commit

Permalink
fix(firefox): ensure a exception catch when async send call to a dead…
Browse files Browse the repository at this point in the history
… object; (#5805)
  • Loading branch information
saraivagilberto committed Mar 12, 2021
1 parent ad69b2a commit 7fcb892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dispatchers/browserContextDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class BrowserContextDispatcher extends Dispatcher<BrowserContext, channel
await this._context._setRequestInterceptor(undefined);
return;
}
this._context._setRequestInterceptor((route, request) => {
await this._context._setRequestInterceptor((route, request) => {
this._dispatchEvent('route', { route: new RouteDispatcher(this._scope, route), request: RequestDispatcher.from(this._scope, request) });
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/dispatchers/pageDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class PageDispatcher extends Dispatcher<Page, channels.PageInitializer> i
await this._page._setClientRequestInterceptor(undefined);
return;
}
this._page._setClientRequestInterceptor((route, request) => {
await this._page._setClientRequestInterceptor((route, request) => {
this._dispatchEvent('route', { route: new RouteDispatcher(this._scope, route), request: RequestDispatcher.from(this._scope, request) });
});
}
Expand Down

0 comments on commit 7fcb892

Please sign in to comment.