Merge pull request #351 from lightpanda-io/ignore-blank

browser: ignore about:blank navigation
This commit is contained in:
Pierre Tachoire authored and GitHub committed 2025-01-08 13:54:00 +01:00
commit 90fb90b186
1 file changed
+5
+5
View File
@@ -257,6 +257,11 @@ pub const Page = struct {
log.debug("starting GET {s}", .{uri});
// if the uri is about:blank, nothing to do.
if (std.mem.eql(u8, "about:blank", uri)) {
return;
}
// own the url
if (self.rawuri) |prev| alloc.free(prev);
self.rawuri = try alloc.dupe(u8, uri);