Emit http_request_fail notification

CDP translate this into a Network.loadingFailed. This is necessary to make sure
every Network.requestWillBeSent is paired with either a Network.loadingFailed
or a Network.responseReceived.
This commit is contained in:
Karl Seguin committed 2025-06-06 19:15:47 +08:00
1 parent 305460dedb
commit 2b48902f1b
7 files changed
+72 -4

No files matched your search

-2
View File
@@ -127,7 +127,6 @@ pub const Loop = struct {
}
}
// JS callbacks APIs
// -----------------
@@ -255,7 +254,6 @@ pub const Loop = struct {
}
}.onConnect;
const callback = try self.event_callback_pool.create();
errdefer self.event_callback_pool.destroy(callback);
callback.* = .{ .loop = self, .ctx = ctx };