Tor-mode OS-spoof: force Windows identity (Tor Browser cohort)#40
Merged
Conversation
The last identity lever: Tor Browser presents the Windows UA/oscpu/appVersion/ platform for ALL desktop platforms so Mac/Linux users hide in the majority. RFP ignores general.*.override, so this is a patch. Far smaller than the original SPEC: every spoofed value except navigator. platform flows from the SPOOFED_* macros in nsRFPService.h (UA via nsRFPService, oscpu/appVersion via Navigator + WorkerNavigator, workers via RuntimeService calling Navigator::Get*). So one #ifdef in the header forces them consistently; navigator.platform (the one hardcoded site) gets a one-line condition. No per-site coordination, no runtime pref, no inconsistency risk. Gated on -DBEARBROWSER_FORCE_WIN_SPOOF, set in the tor-mode mozconfig by apply-sourceos-overlays.sh (which also injects the patch). Default 150 build never defines it -> real OS. maxTouchPoints stays 0 (Tor desktop), not 10. Verified: applies cleanly to firefox-140.12.0 locally; CI tor-esr-patch-apply now registers it. Compile-verification lands with the Forgejo build. The .SPEC.md (original ~8-site runtime approach) is superseded by this patch.
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.
Adds the compile-time OS-spoof patch so Tor mode presents the Windows identity on all desktop platforms (Tor Browser cohort). Applies cleanly to firefox-140.12.0 (verified locally + CI tor-esr-patch-apply). Gated on -DBEARBROWSER_FORCE_WIN_SPOOF, set only in the tor-mode build. Compile-verification lands with the Forgejo build.
🤖 Generated with Claude Code