From 52a82add9b1caba01b391d83a5c5c9e8186acf79 Mon Sep 17 00:00:00 2001 From: oneflux Date: Mon, 21 Apr 2025 11:14:35 -0700 Subject: [PATCH] get rid of debug mode --- patches/browser-init.patch | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/patches/browser-init.patch b/patches/browser-init.patch index 5d905ac..4929782 100644 --- a/patches/browser-init.patch +++ b/patches/browser-init.patch @@ -28,29 +28,6 @@ index 1cfa4b8497..bdf8d7202e 100644 // When the fingerprinting resistance is enabled, making sure that we don't // have a maximum window to interfere with generating rounded window dimensions. document.documentElement.setAttribute("sizemode", "normal"); -@@ -310,6 +320,22 @@ var gBrowserInit = { - // Update UI if browser is under remote control. - gRemoteControl.updateVisualCue(); - -+ // Camoufox: print URL changes to console -+ if (ChromeUtils.isCamouDebug()) { -+ ChromeUtils.camouDebug("Debug mode ON."); -+ gBrowser.addTabsProgressListener({ -+ onLocationChange(aBrowser, aWebProgress, aRequest, aLocation, aFlags) { -+ if (aBrowser === gBrowser.selectedBrowser) { -+ ChromeUtils.camouDebug("URL changed to: " + aLocation.spec); -+ } -+ } -+ }); -+ -+ gURLBar.addEventListener("change", () => { -+ ChromeUtils.camouDebug("URL bar value changed to: " + gURLBar.value); -+ }); -+ } -+ - // If we are given a tab to swap in, take care of it before first paint to - // avoid an about:blank flash. - let tabToAdopt = this.getTabToAdopt(); @@ -345,6 +371,31 @@ var gBrowserInit = { } }