Skip to content

Commit 0149ce7

Browse files
committed
browser: ignore about:blank navigation
1 parent 98b8277 commit 0149ce7

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
@@ -276,6 +276,11 @@ pub const Page = struct {
276276

277277
log.debug("starting GET {s}", .{uri});
278278

279+
// if the uri is about:blank, nothing to do.
280+
if (std.mem.eql(u8, "about:blank", uri)) {
281+
return;
282+
}
283+
279284
// own the url
280285
if (self.rawuri) |prev| alloc.free(prev);
281286
self.rawuri = try alloc.dupe(u8, uri);

0 commit comments

Comments
 (0)