tor-browser

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

commit 0513c93aee2080340797e7e846c4d80ba8190fd6
parent c80ee4f8e66950d59a9f2ccd4b5c79fbaa2e8736
Author: Tom Ritter <tom@mozilla.com>
Date:   Wed, 17 Dec 2025 17:44:38 +0000

Bug 1976287: Add an RFPTarget for making WebGL Vendor constant r=timhuang

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

Diffstat:
Mdom/canvas/ClientWebGLContext.cpp | 3+++
Mtoolkit/components/resistfingerprinting/RFPTargets.inc | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dom/canvas/ClientWebGLContext.cpp b/dom/canvas/ClientWebGLContext.cpp @@ -2457,6 +2457,9 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, case dom::WEBGL_debug_renderer_info_Binding::UNMASKED_VENDOR_WEBGL: if (ShouldResistFingerprinting(RFPTarget::WebGLRenderInfo)) { ret = Some("Mozilla"_ns); + } else if (ShouldResistFingerprinting( + RFPTarget::WebGLVendorConstant)) { + ret = Some("Mozilla"_ns); } else { ret = GetUnmaskedVendor(); if (ret && diff --git a/toolkit/components/resistfingerprinting/RFPTargets.inc b/toolkit/components/resistfingerprinting/RFPTargets.inc @@ -110,6 +110,7 @@ ITEM_VALUE(NavigatorHWConcurrencyTiered,74) ITEM_VALUE(WebGLRandomization, 75) ITEM_VALUE(EfficientCanvasRandomization, 76) ITEM_VALUE(WebGLVendorSanitize, 77) +ITEM_VALUE(WebGLVendorConstant, 78) // !!! Adding a new target? Rename PointerId and repurpose it.