From aea00355c2d26fa49bfc5fd056cf5b18098c558b Mon Sep 17 00:00:00 2001 From: oneflux Date: Mon, 21 Apr 2025 20:09:44 -0700 Subject: [PATCH] re-enable remote subframes --- patches/disable-remote-subframes.patch | 35 -------------------------- 1 file changed, 35 deletions(-) delete mode 100644 patches/disable-remote-subframes.patch diff --git a/patches/disable-remote-subframes.patch b/patches/disable-remote-subframes.patch deleted file mode 100644 index fd63e9d..0000000 --- a/patches/disable-remote-subframes.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp -index 2471976f64..d14edc9195 100644 ---- a/docshell/base/BrowsingContext.cpp -+++ b/docshell/base/BrowsingContext.cpp -@@ -83,6 +83,7 @@ - #include "nsScriptError.h" - #include "nsThreadUtils.h" - #include "xpcprivate.h" -+#include "MaskConfig.hpp" - - #include "AutoplayPolicy.h" - #include "GVAutoplayRequestStatusIPC.h" -@@ -1772,7 +1773,10 @@ NS_IMETHODIMP BrowsingContext::SetRemoteSubframes(bool aUseRemoteSubframes) { - return NS_ERROR_UNEXPECTED; - } - -- mUseRemoteSubframes = aUseRemoteSubframes; -+ // Camoufox: Disable remote subframes by default -+ if (MaskConfig::GetBool("enableRemoteSubframes")) { -+ mUseRemoteSubframes = aUseRemoteSubframes; -+ } - return NS_OK; - } - -diff --git a/docshell/base/moz.build b/docshell/base/moz.build -index 3520e9d75a..0f73f2dd82 100644 ---- a/docshell/base/moz.build -+++ b/docshell/base/moz.build -@@ -124,3 +124,5 @@ LOCAL_INCLUDES += [ - EXTRA_JS_MODULES += ["URIFixup.sys.mjs"] - - include("/tools/fuzzing/libfuzzer-config.mozbuild") -+ -+LOCAL_INCLUDES += ['/camoucfg'] -\ No newline at end of file