mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 22:43:48 +00:00
remove remaining direct v8 references
This commit is contained in:
@@ -275,12 +275,10 @@ fn resolveNode(cmd: anytype) !void {
|
||||
|
||||
var js_context = page.js;
|
||||
if (params.executionContextId) |context_id| {
|
||||
const v8_context = v8.Context{ .handle = js_context.handle };
|
||||
if (v8_context.debugContextId() != context_id) {
|
||||
if (js_context.debugContextId() != context_id) {
|
||||
for (bc.isolated_worlds.items) |*isolated_world| {
|
||||
js_context = &(isolated_world.executor.context orelse return error.ContextNotFound);
|
||||
const isolated_v8_context = v8.Context{ .handle = js_context.handle };
|
||||
if (isolated_v8_context.debugContextId() == context_id) {
|
||||
if (js_context.debugContextId() == context_id) {
|
||||
break;
|
||||
}
|
||||
} else return error.ContextNotFound;
|
||||
|
||||
@@ -196,8 +196,7 @@ fn createIsolatedWorld(cmd: anytype) !void {
|
||||
const aux_data = try std.fmt.allocPrint(cmd.arena, "{{\"isDefault\":false,\"type\":\"isolated\",\"frameId\":\"{s}\"}}", .{params.frameId});
|
||||
bc.inspector.contextCreated(js_context, world.name, "", aux_data, false);
|
||||
|
||||
const v8_context = v8.Context{ .handle = js_context.handle };
|
||||
return cmd.sendResult(.{ .executionContextId = v8_context.debugContextId() }, .{});
|
||||
return cmd.sendResult(.{ .executionContextId = js_context.debugContextId() }, .{});
|
||||
}
|
||||
|
||||
fn navigate(cmd: anytype) !void {
|
||||
|
||||
Reference in New Issue
Block a user