Skip to content

Commit 5f8327e

Browse files
committed
browser: ignore about:blank navigation
1 parent 07869f3 commit 5f8327e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/browser/browser.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ pub const Page = struct {
257257

258258
log.debug("starting GET {s}", .{uri});
259259

260+
// if the uri is about:blank, nothing to do.
261+
if (std.mem.eql(u8, "about:blank", uri)) {
262+
return;
263+
}
264+
260265
// own the url
261266
if (self.rawuri) |prev| alloc.free(prev);
262267
self.rawuri = try alloc.dupe(u8, uri);

0 commit comments

Comments
 (0)