mirror of
https://github.com/daijro/camoufox.git
synced 2026-08-25 16:00:28 +00:00
0bd32a0652
Major fixes accomplished: - Fixed ALL 10 malformed patch errors (blank context lines and hunk counts) - Removed Git version trailers from 2 patches causing parse errors - Fixed BrowsingContext.h by adding HasOrientationOverride field for Firefox 146 - Updated Navigator.cpp Webdriver function line number (2318 → 2363) - Fixed Navigator.cpp include order to match Firefox 146 structure - Applied comprehensive blank line and hunk count fixes to 18 patch files Results: - Reduced reject files from 33 → 13 (60% reduction) - Reduced failing hunks from 56 → 24 (57% reduction) - 0 malformed errors (was 10) - Build completes successfully with 'make dir' Remaining work: - 24 failing hunks across 13 files (mostly line number adjustments) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
diff --git a/devtools/server/actors/thread.js b/devtools/server/actors/thread.js
|
|
index d91f463..3c1ba5a 100644
|
|
--- a/devtools/server/actors/thread.js
|
|
+++ b/devtools/server/actors/thread.js
|
|
@@ -386,7 +386,8 @@ class ThreadActor extends Actor {
|
|
attach(options) {
|
|
// Note that the client avoids trying to call attach if already attached.
|
|
// But just in case, avoid any possible duplicate call to attach.
|
|
- if (this.alreadyAttached) {
|
|
+ let forceDetach = Services.prefs.getBoolPref("librewolf.debugger.force_detach", false);
|
|
+ if (this.alreadyAttached || forceDetach) {
|
|
return;
|
|
}
|
|
|
|
diff --git a/devtools/server/actors/webconsole/listeners/console-api.js b/devtools/server/actors/webconsole/listeners/console-api.js
|
|
index 3e5d0bc..8260e2b 100644
|
|
--- a/devtools/server/actors/webconsole/listeners/console-api.js
|
|
+++ b/devtools/server/actors/webconsole/listeners/console-api.js
|
|
@@ -97,6 +97,7 @@ class ConsoleAPIListener {
|
|
* The message object receives from the ConsoleAPIStorage service.
|
|
*/
|
|
onConsoleAPILogEvent(message) {
|
|
- if (!this.handler) {
|
|
+ let disableConsole = Services.prefs.getBoolPref("librewolf.console.logging_disabled", false);
|
|
+ if (!this.handler || disableConsole) {
|
|
return;
|
|
}
|