From fc46d63f046b792d3a9758e6567bfe9941dda130 Mon Sep 17 00:00:00 2001 From: DM_ <6091595+x0day@users.noreply.github.com> Date: Thu, 28 Jul 2022 00:45:50 +0800 Subject: [PATCH] cherry-pick(#1458): fix: route.abort failed missing handle report Fixes #1457. --- playwright/_impl/_network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playwright/_impl/_network.py b/playwright/_impl/_network.py index 5fc408042..1ea51e465 100644 --- a/playwright/_impl/_network.py +++ b/playwright/_impl/_network.py @@ -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,