This commit is contained in:
Karl Seguin
2026-03-16 07:36:14 +08:00
parent 1ec3e156fb
commit 323ec0046c
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ fn deleteCookies(cmd: anytype) !void {
// This allows Puppeteer's page.setCookie() to work, which sends deleteCookies // This allows Puppeteer's page.setCookie() to work, which sends deleteCookies
// with partitionKey as part of its cookie-setting workflow. // with partitionKey as part of its cookie-setting workflow.
if (params.partitionKey != null) { if (params.partitionKey != null) {
log.warn(.not_implemented, "partition key", .{.src = "deleteCookies"}); log.warn(.not_implemented, "partition key", .{ .src = "deleteCookies" });
} }
const bc = cmd.browser_context orelse return error.BrowserContextNotLoaded; const bc = cmd.browser_context orelse return error.BrowserContextNotLoaded;

View File

@@ -132,7 +132,7 @@ pub fn setCdpCookie(cookie_jar: *CookieJar, param: CdpCookie) !void {
// This allows Puppeteer's page.setCookie() to work, which may send cookies with // This allows Puppeteer's page.setCookie() to work, which may send cookies with
// partitionKey as part of its cookie-setting workflow. // partitionKey as part of its cookie-setting workflow.
if (param.partitionKey != null) { if (param.partitionKey != null) {
log.warn(.not_implemented, "partition key", .{.src = "setCdpCookie"}); log.warn(.not_implemented, "partition key", .{ .src = "setCdpCookie" });
} }
// Still reject unsupported features // Still reject unsupported features
if (param.priority != .Medium or param.sameParty != null or param.sourceScheme != null) { if (param.priority != .Medium or param.sameParty != null or param.sourceScheme != null) {