mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Fix compilation errors: add missing log import and remove duplicate
- Add missing `const log = @import("../../log.zig");` in network.zig
- Remove duplicate `log` declaration inside setCdpCookie in storage.zig
(already declared at file scope)
Fixes compilation errors:
- src/cdp/domains/network.zig:124:9: error: use of undeclared identifier 'log'
- src/cdp/domains/storage.zig:135:15: error: local constant shadows declaration of 'log'
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const lp = @import("lightpanda");
|
const lp = @import("lightpanda");
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
const log = @import("../../log.zig");
|
||||||
|
|
||||||
const CdpStorage = @import("storage.zig");
|
const CdpStorage = @import("storage.zig");
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ 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) {
|
||||||
const log = @import("../../log.zig");
|
|
||||||
log.debug(.storage, "partitionKey ignored in setCdpCookie", .{});
|
log.debug(.storage, "partitionKey ignored in setCdpCookie", .{});
|
||||||
}
|
}
|
||||||
// Still reject unsupported features
|
// Still reject unsupported features
|
||||||
|
|||||||
Reference in New Issue
Block a user