Add origins safety cleanup when destroying the context for the root page

This commit is contained in:
Karl Seguin
2026-03-09 08:47:43 +08:00
parent 94ce5edd20
commit 753391b7e2
3 changed files with 34 additions and 5 deletions

View File

@@ -759,7 +759,7 @@ const IsolatedWorld = struct {
pub fn removeContext(self: *IsolatedWorld) !void {
const ctx = self.context orelse return error.NoIsolatedContextToRemove;
self.browser.env.destroyContext(ctx);
self.browser.env.destroyContext(ctx, false);
self.context = null;
}