Open
Conversation
This PR fix the broken Accept-Encoding and clean the override code to use only firefox settings to set: * User-Agent * Accept-Encoding * Accept-Language This allow to drop the network-patches reducing the maintenance cost. User-Agent and Accept-Language was already no longer used in the patch as mentionned in the browserforge.yml For the Accept-Encoding we are using the firefox settings network.http.accept-encoding.secure. It's important to apply it only for HTTPS because the value for HTTP is different. The fingerprint provided by BrowserForge match the HTTPS settings. I cleaned camoucfg.jvv and properties.json but I'm not 100% sure it's what we need to do.
… 1x1 Previously, VirtualDisplay hardcoded a 1x1x24 pixel screen for Xvfb, which caused rendering issues when using headless='virtual'. The Xvfb screen was too small to accommodate the fingerprint's screen dimensions generated by BrowserForge. Changes: - Add 'screen' parameter to VirtualDisplay.__init__() defaulting to 1920x1080x24 - Convert xvfb_args from class attribute to property to use instance screen size - Pass user-specified window dimensions to Xvfb when available in sync/async API Fixes daijro#458
- timezone-spoofing: Fix use-after-free in TimeZone.cpp GetDefaultTimeZone() where a Span pointed to a destroyed local std::string (daijro#443, daijro#461) - webrtc-ip-spoofing: Add MaskConfig fallback in WebRTCIPManager so CAMOU_CONFIG webrtc:ipv4/ipv6 keys actually work; add missing setWebRTCIPv6 to Window.webidl (daijro#443) - all-addons-private-mode: Update Extension.jsm -> Extension.sys.mjs path for Firefox ESM migration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
Compiled linux build here: https://github.com/coffeegrind123/camoufox-beta/releases/tag/v146.0.1-beta.25-patched built with build.sh on Debian 12
|
Collaborator
|
Hey thanks for opening these. We had both the timezone and webrtc fixes already in progress and had some merged in. I was wondering if your changes had any different functionality than the ones already merged. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Summary
TimeZone.cppGetDefaultTimeZone()where aSpanpointed to a destroyed localstd::string(fixes a few bugs with timezone and webrtc in the ff146 beta #443, All TimeZone-Related Configurations Crash Tabs on macOS #461)MaskConfigfallback inWebRTCIPManagersoCAMOU_CONFIGwebrtc:ipv4/webrtc:ipv6keys actually take effect; add missingsetWebRTCIPv6toWindow.webidl(fixes a few bugs with timezone and webrtc in the ff146 beta #443)Extension.jsm→Extension.sys.mjspath for Firefox ESM migration (patch was silently failing on FF146)Test plan
CAMOU_CONFIG='{"timezone":"America/New_York"}' ./camoufox— no crashCAMOU_CONFIG='{"webrtc:ipv4":"93.171.92.214"}' ./camoufox— check on browserleaks.com/webrtc🤖 Generated with Claude Code