Skip to content

Lightpanda: the headless browser designed for AI and automation

Merge pull request #3514 from lightpanda-io/loopback-secure-cookies

Karl Seguin8bc4cf687722
diff --cc src/browser/webapi/storage/Cookie.zig
index 5dd5f951e,5dcfa1c68..19657c3a0
--- a/src/browser/webapi/storage/Cookie.zig
+++ b/src/browser/webapi/storage/Cookie.zig
@@@ -1521,10 -1405,10 +1546,10 @@@ test "Cookie: appliesTo with empty doma
const target = PreparedUri{
.host = "example.com",
.path = "/",
- .secure = false,
+ .trustworthy = false,
};
- try testing.expectEqual(false, cookie.appliesTo(&target, true, true, true));
+ try testing.expectEqual(false, cookie.appliesTo(&target, .{ .same_site = true, .is_http = true, .kind = .navigation }));
}
test "Cookie: matchesHost is case-insensitive" {