From 5b6c6710284f45cf0d6f543901e871116d9b0c30 Mon Sep 17 00:00:00 2001 From: DM_ <6091595+x0day@users.noreply.github.com> Date: Wed, 27 Jul 2022 14:10:04 +0800 Subject: [PATCH] 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,