-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Makefile & add navigation debugging
- Loading branch information
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/browser/base/content/browser-init.js b/browser/base/content/browser-init.js | ||
index cc7fa914c0..760a95487e 100644 | ||
--- a/browser/base/content/browser-init.js | ||
+++ b/browser/base/content/browser-init.js | ||
@@ -257,6 +257,21 @@ var gBrowserInit = { | ||
// Update UI if browser is under remote control. | ||
gRemoteControl.updateVisualCue(); | ||
|
||
+ // Camoufox: print URL changes to console | ||
+ if (ChromeUtils.isCamouDebug()) { | ||
+ 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters