Lightpanda: the headless browser designed for AI and automation
webapi: use the local arena for the normalized hash
Francis Bouvier65a3ce33c050
diff --git a/src/browser/webapi/Location.zig b/src/browser/webapi/Location.zigindex 85a118365..06d40666a 100644--- a/src/browser/webapi/Location.zig+++ b/src/browser/webapi/Location.zig@@ -112,7 +112,9 @@ pub fn setHash(_: *const Location, hash: []const u8, frame: *Frame) !void {} else if (hash[0] == '#') {break :blk hash;}- break :blk try std.fmt.allocPrint(frame.call_arena, "#{s}", .{hash});+ // Scratch only: scheduleNavigation dupes the URL into its own arena+ // synchronously, so the local arena suffices.+ break :blk try std.fmt.allocPrint(frame.local_arena, "#{s}", .{hash});};// Per the Location hash setter, when the fragment doesn't change no