CDP failRequest also cancels (not aborts)

This commit is contained in:
Karl Seguin committed 2026-09-01 15:50:48 +08:00
1 parent 76c8f4bb6e
commit 39ac97f267
1 file changed
+3 -1
+3 -1
View File
@@ -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",