Skip to content

Commit

Permalink
Merge pull request #351 from lightpanda-io/ignore-blank
Browse files Browse the repository at this point in the history
browser: ignore about:blank navigation
  • Loading branch information
krichprollsch authored Jan 8, 2025
2 parents 07869f3 + 5f8327e commit 90fb90b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/browser/browser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 90fb90b

Please sign in to comment.