Skip to content

Commit

Permalink
cherry-pick(#1458): fix: route.abort failed missing handle report (#1472
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rwoll committed Aug 1, 2022
1 parent 67ea47b commit 5c2500e
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 5c2500e

Please sign in to comment.