tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit fbed3a3535d295061597036ba6ffabfd3ef10d78
parent dd12e6ea3dbf4da850e9b00db5adee67c36b0144
Author: Tom Ritter <tom@mozilla.com>
Date:   Thu,  2 Oct 2025 03:03:15 +0000

Bug 1990514: Promote Screen Available Resolution and Touch Points to Baseline FPP in Nightly r=timhuang

Differential Revision: https://phabricator.services.mozilla.com/D266012

Diffstat:
Mtoolkit/components/resistfingerprinting/RFPTargetsDefaultBaseline.inc | 13+++++++++++--
Mtoolkit/components/resistfingerprinting/nsRFPService.cpp | 2+-
2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/toolkit/components/resistfingerprinting/RFPTargetsDefaultBaseline.inc b/toolkit/components/resistfingerprinting/RFPTargetsDefaultBaseline.inc @@ -4,4 +4,14 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // #ifdef NIGHTLY_BUILD is supported as a preprocessor macro. -// If any others are needed, update extract_rfp_targets.py -\ No newline at end of file +// If any others are needed, update extract_rfp_targets.py + +#ifdef NIGHTLY_BUILD +DESKTOP_DEFAULT(ScreenAvailToResolution) +DESKTOP_DEFAULT(MaxTouchPointsCollapse) +#endif + +#ifdef NIGHTLY_BUILD +ANDROID_DEFAULT(ScreenAvailToResolution) +ANDROID_DEFAULT(MaxTouchPointsCollapse) +#endif diff --git a/toolkit/components/resistfingerprinting/nsRFPService.cpp b/toolkit/components/resistfingerprinting/nsRFPService.cpp @@ -148,7 +148,7 @@ static constexpr uint32_t kVideoDroppedRatio = 1; # define DESKTOP_DEFAULT(name) RFPTarget::name, #endif -MOZ_CONSTINIT const RFPTargetSet kDefaultFingerprintingProtectionsBase = { +MOZ_RUNINIT const RFPTargetSet kDefaultFingerprintingProtectionsBase = { #include "RFPTargetsDefaultBaseline.inc" };