mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
cdp: use default value for grantUniveralAccess
In createIsolatedWorld, we set a default value to false for optional grantUniveralAccess parameter.
This commit is contained in:
committed by
Karl Seguin
parent
7a69e3fc9b
commit
fe96bc7895
@@ -19,6 +19,7 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Page = @import("../../browser/Page.zig");
|
const Page = @import("../../browser/Page.zig");
|
||||||
const Notification = @import("../../Notification.zig");
|
const Notification = @import("../../Notification.zig");
|
||||||
|
const log = @import("../../log.zig");
|
||||||
const timestampF = @import("../../datetime.zig").timestamp;
|
const timestampF = @import("../../datetime.zig").timestamp;
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
@@ -139,7 +140,7 @@ fn createIsolatedWorld(cmd: anytype) !void {
|
|||||||
grantUniveralAccess: bool,
|
grantUniveralAccess: bool,
|
||||||
})) orelse return error.InvalidParams;
|
})) orelse return error.InvalidParams;
|
||||||
if (!params.grantUniveralAccess) {
|
if (!params.grantUniveralAccess) {
|
||||||
std.debug.print("grantUniveralAccess == false is not yet implemented", .{});
|
log.warn(.cdp, "not implemented", .{ .feature = "grantUniveralAccess == false is not yet implemented" });
|
||||||
// When grantUniveralAccess == false and the client attempts to resolve
|
// When grantUniveralAccess == false and the client attempts to resolve
|
||||||
// or otherwise access a DOM or other JS Object from another context that should fail.
|
// or otherwise access a DOM or other JS Object from another context that should fail.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user