mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-19 10:59:28 -04:00
CDP failRequest also cancels (not aborts)
This commit is contained in:
1 file changed
+3
-1
@@ -407,7 +407,9 @@ fn failRequest(cmd: *CDP.Command) !void {
|
||||
return cmd.sendResult(null, .{});
|
||||
};
|
||||
|
||||
defer transfer.abortParked(error.Abort);
|
||||
// The client is cancelling the request: consumers see it as a cancel
|
||||
// (XHR fires abort, not error), like any other Transfer.cancel().
|
||||
defer transfer.abortParked(error.TransferCanceled);
|
||||
|
||||
log.info(.cdp, "request intercept", .{
|
||||
.state = "fail",
|
||||
|
||||
Reference in new issue
Block a user