From 00a91c7dac5321818f1f3be8cac779be0c2b3db7 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 3 Jun 2026 16:37:03 +0200 Subject: [PATCH] cdp: fix network.getCookies url build When getting cookies from CDP, we musn't apply specific cookies's path/host extraction for the target URL, but use the simple URL rules. --- src/cdp/domains/network.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdp/domains/network.zig b/src/cdp/domains/network.zig index 864c72f5..f8ee7310 100644 --- a/src/cdp/domains/network.zig +++ b/src/cdp/domains/network.zig @@ -231,8 +231,8 @@ fn getCookies(cmd: *CDP.Command) !void { var urls = try std.ArrayList(CdpStorage.PreparedUri).initCapacity(cmd.arena, param_urls.len); for (param_urls) |url| { urls.appendAssumeCapacity(.{ - .host = try Cookie.parseDomain(cmd.arena, url, null), - .path = try Cookie.parsePath(cmd.arena, url, null), + .host = URL.getHostname(url), + .path = URL.getPathname(url), .secure = URL.isSecure(url), }); }