Lightpanda: the headless browser designed for AI and automation
Merge pull request #3775 from navidemad/fix-location-entry-base
Karl Seguin9ba2b764d8c5
diff --cc src/browser/webapi/Window.zigindex 704131643,bb7a0cde5..64942f43e--- a/src/browser/webapi/Window.zig+++ b/src/browser/webapi/Window.zig@@@ -357,12 -356,13 +357,13 @@@ pub fn getLocation(self: *const Windowreturn self._location;}+ // [PutForwards=href]: window.location = url is location.href = url.fn setLocation(self: *Window, url: [:0]const u8, frame: *Frame) !void {- return frame.scheduleNavigation(url, .{ .reason = .script, .kind = .{ .push = null } }, .{ .script = self._frame });+ return self._location.assign(url, frame);}-pub fn getHistory(_: *Window, frame: *Frame) *History {- return &frame._session.history;+pub fn getHistory(self: *Window) *History {+ return &self._history;}fn getNavigation(_: *Window, frame: *Frame) *Navigation {