richard pushed to branch mullvad-browser-115.11.0esr-13.5-1 at The Tor Project 
/ Applications / Mullvad Browser


Commits:
532087af by Pier Angelo Vendrame at 2024-05-13T19:56:57+00:00
Revert "Bug 41740: Change the RFP value of devicePixelRatio to 2"

This reverts commit 94c39de65acb82efc7ecabbd7125f8d2aeb46d02.

- - - - -
bed64b83 by Fatih at 2024-05-13T19:56:57+00:00
Bug 1830629: Remove unnecessary checks for pdf.js for RFP. r=tjr

resource:// is exempt from RFP, so we no longer need to check pdf.js 
specifically.

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

- - - - -


1 changed file:

- dom/base/nsGlobalWindowInner.cpp


Changes:

=====================================
dom/base/nsGlobalWindowInner.cpp
=====================================
@@ -3604,20 +3604,9 @@ double 
nsGlobalWindowInner::GetDevicePixelRatio(CallerType aCallerType,
     return 1.0;
   }
 
-  if (nsIGlobalObject::ShouldResistFingerprinting(aCallerType,
-                                                  RFPTarget::Unknown)) {
-    // Spoofing the DevicePixelRatio causes blurriness in some situations
-    // on HiDPI displays. pdf.js is a non-system caller; but it can't
-    // expose the fingerprintable information, so we can safely disable
-    // spoofing in this situation. It doesn't address the issue for
-    // web-rendered content (including pdf.js instances on the web.)
-    // In the future we hope to have a better solution to fix all HiDPI
-    // blurriness...
-    nsAutoCString origin;
-    nsresult rv = this->GetPrincipal()->GetOrigin(origin);
-    if (NS_FAILED(rv) || origin != "resource://pdf.js"_ns) {
-      return 2.0;
-    }
+  if (nsIGlobalObject::ShouldResistFingerprinting(
+          aCallerType, RFPTarget::Unknown)) {
+    return 2.0;
   }
 
   if (aCallerType == CallerType::NonSystem) {



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/5ee488b03f88108cf97e60146bb762ef20f5e972...bed64b838cfebd5ad0aa56692fed78b1fe7d2d94

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/5ee488b03f88108cf97e60146bb762ef20f5e972...bed64b838cfebd5ad0aa56692fed78b1fe7d2d94
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits

Reply via email to