Files
camoufox/patches/config.patch
T
Nirupam BhowmickandClaude 0bd32a0652 fix: resolve all malformed patch errors and reduce failing hunks by 57%
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>
2025-12-25 20:14:01 +00:00

44 lines
1.1 KiB
Diff

diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
index bb0f71dd60..3ad3d84b82 100644
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
@@ -260,6 +260,11 @@
#endif
#endif
+; Camoufox specific files
+@RESPATH@/defaults/pref/local-settings.js
+@RESPATH@/distribution/policies.json
+@RESPATH@/camoufox.cfg
+
; [Default Preferences]
; All the pref files must be part of base to prevent migration bugs
@RESPATH@/browser/@PREF_DIR@/firefox.js
diff --git a/lw/moz.build b/lw/moz.build
index e69de29bb2..208184547e 100644
--- a/lw/moz.build
+++ b/lw/moz.build
@@ -0,0 +1,14 @@
+FINAL_TARGET_FILES += [
+ "camoufox.cfg",
+ "chrome.css",
+ "properties.json"
+]
+
+FINAL_TARGET_FILES.distribution += [
+ "policies.json",
+]
+
+# local-settings does not yet end up being pacakged.
+FINAL_TARGET_FILES.defaults.pref += [
+ "local-settings.js",
+]
diff --git a/moz.build b/moz.build
index 9db27fd056..e1ec1dc872 100644
--- a/moz.build
+++ b/moz.build
@@ -228,2 +228,4 @@ SPHINX_TREES["jsloader"] = "docs/jsloader"
include("build/templates.mozbuild")
+
+DIRS += ["lw"]