Skip to content

Commit 5c2500e

Browse files
authored
cherry-pick(#1458): fix: route.abort failed missing handle report (#1472)
1 parent 67ea47b commit 5c2500e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playwright/_impl/_network.py

+2
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,11 @@ def request(self) -> Request:
237237
return from_channel(self._initializer["request"])
238238

239239
async def abort(self, errorCode: str = None) -> None:
240+
self._check_not_handled()
240241
await self._race_with_page_close(
241242
self._channel.send("abort", locals_to_params(locals()))
242243
)
244+
self._report_handled(True)
243245

244246
async def fulfill(
245247
self,

0 commit comments

Comments
 (0)