Skip to content

Lightpanda: the headless browser designed for AI and automation

session: drop the extra getOrCreateNavigation in installNewActivePage

Pierre Tachoire5891c1b36eab
diff --git a/src/browser/Session.zig b/src/browser/Session.zig
index 36b28fcbd..8b7a3a75f 100644
--- a/src/browser/Session.zig
+++ b/src/browser/Session.zig
@@ -367,8 +367,6 @@ fn tearDownPage(self: *Session, page: *Page) void {
// and `active`, leaving the session pageless (the caller is responsible
// for any prior teardown of an old page).
fn installNewActivePage(self: *Session, frame_id: u32) !*Frame {
- _ = try self.getOrCreateNavigation(frame_id);
-
const page = try self.allocatePage(frame_id);
errdefer self.queuePageDestruction(page);