commit 0b7f4fdfe04395efacf2acbc8cc0274b3c88f77e
parent bfe8ed97fbf1f1ef63138fcda9e83c145c5603f3
Author: Tom Ritter <tom@mozilla.com>
Date: Tue, 30 Sep 2025 12:35:27 +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:
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"
};