From 5ec48fdbe6a1d63e81e519c16e12fe7f1313e805 Mon Sep 17 00:00:00 2001 From: daijro Date: Mon, 3 Feb 2025 22:54:21 -0600 Subject: [PATCH] Keep legacy allowMainWorld behavior --- additions/juggler/content/FrameTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/additions/juggler/content/FrameTree.js b/additions/juggler/content/FrameTree.js index c67beb4..e4a7db1 100644 --- a/additions/juggler/content/FrameTree.js +++ b/additions/juggler/content/FrameTree.js @@ -546,7 +546,7 @@ class Frame { }); // Camoufox: Create a main world for the isolated context if (this.allowMW) { - const mainWorld = this._runtime.createMW(this.domWindow(), sandbox); + const mainWorld = this._runtime.createMW(this.domWindow(), this.domWindow()); world.mainEquivalent = mainWorld; } this._worldNameToContext.set(name, world);