mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 23:38:57 +00:00
Merge pull request #1223 from lightpanda-io/cdp-grantuniversal
cdp: use default value for grantUniveralAccess
This commit is contained in:
@@ -20,6 +20,7 @@ const std = @import("std");
|
|||||||
const Page = @import("../../browser/page.zig").Page;
|
const Page = @import("../../browser/page.zig").Page;
|
||||||
const timestampF = @import("../../datetime.zig").timestamp;
|
const timestampF = @import("../../datetime.zig").timestamp;
|
||||||
const Notification = @import("../../notification.zig").Notification;
|
const Notification = @import("../../notification.zig").Notification;
|
||||||
|
const log = @import("../../log.zig");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
||||||
@@ -133,10 +134,10 @@ fn createIsolatedWorld(cmd: anytype) !void {
|
|||||||
const params = (try cmd.params(struct {
|
const params = (try cmd.params(struct {
|
||||||
frameId: []const u8,
|
frameId: []const u8,
|
||||||
worldName: []const u8,
|
worldName: []const u8,
|
||||||
grantUniveralAccess: bool,
|
grantUniveralAccess: bool = false,
|
||||||
})) 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