Page.scheduleNavigation for location changes

This commit is contained in:
Karl Seguin
2025-12-22 12:19:08 +08:00
parent da32440a14
commit d9c53a3def
15 changed files with 187 additions and 92 deletions

View File

@@ -221,7 +221,8 @@ fn navigate(cmd: anytype) !void {
try page.navigate(params.url, .{
.reason = .address_bar,
.cdp_id = cmd.input.id,
}, .{ .push = null });
.kind = .{ .push = null },
});
}
pub fn pageNavigate(arena: Allocator, bc: anytype, event: *const Notification.PageNavigate) !void {

View File

@@ -209,8 +209,7 @@ fn createTarget(cmd: anytype) !void {
if (!std.mem.eql(u8, "about:blank", params.url)) {
try page.navigate(
params.url,
.{ .reason = .address_bar },
.{ .push = null },
.{ .reason = .address_bar, .kind = .{ .push = null } },
);
}