From caee513701524ff2be384f0a92786339200f2957 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Thu, 7 May 2026 18:09:27 +0200 Subject: [PATCH] abort all http navigation before starting the pending one --- src/browser/Session.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/browser/Session.zig b/src/browser/Session.zig index e8f80e38..f30d672b 100644 --- a/src/browser/Session.zig +++ b/src/browser/Session.zig @@ -491,6 +491,9 @@ pub fn initiateRootNavigation(self: *Session, frame_id: u32, url: [:0]const u8, log.debug(.browser, "initiate root navigation", .{ .url = url }); } + // Cancel existing http requests for the active page. + self.browser.http_client.abortFrame(page.frame._frame_id, .{ .scope = .full }); + // No frame_created notification yet — CDP must not see the pending page // (no isolated worlds, no Target.* visibility). Both the pending main // world and the isolated worlds get registered with the V8 inspector at