Merge pull request #1391 from lightpanda-io/lowmem-on-page-reset

call env.lowMemoryNotification() during page reset
This commit is contained in:
Karl Seguin
2026-01-21 13:23:24 +08:00
committed by GitHub

View File

@@ -225,6 +225,7 @@ fn reset(self: *Page, comptime initializing: bool) !void {
self._session.browser.http_client.abort();
self._script_manager.deinit();
_ = self._session.browser.page_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
self._session.browser.env.lowMemoryNotification();
}
self._factory = Factory.init(self);