Skip to content

Commit

Permalink
fix: route.abort failed missing handle report (#1458)
Browse files Browse the repository at this point in the history
Fixes #1457.
  • Loading branch information
x0day committed Jul 27, 2022
1 parent 6145aff commit 5f95476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playwright/_impl/_network.py
Expand Up @@ -237,9 +237,11 @@ def request(self) -> Request:
return from_channel(self._initializer["request"])

async def abort(self, errorCode: str = None) -> None:
self._check_not_handled()
await self._race_with_page_close(
self._channel.send("abort", locals_to_params(locals()))
)
self._report_handled(True)

async def fulfill(
self,
Expand Down

0 comments on commit 5f95476

Please sign in to comment.