Pier Angelo Vendrame pushed to branch tor-browser-128.10.0esr-14.5-1 at The Tor 
Project / Applications / Tor Browser


Commits:
7369c198 by Pier Angelo Vendrame at 2025-04-23T16:28:43+02:00
fixup! BB 41631: Prevent weird initial window dimensions caused by subpixel 
computations

BB 43672: Compensate window.resizeTo truncating by ceiling newwin sizes.

- - - - -


1 changed file:

- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs


Changes:

=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -958,7 +958,8 @@ class _RFPHelper {
       if (x11Height < targetHeight) {
         targetHeight = x11Height + 2;
       }
-      aWindow.resizeTo(targetWidth, targetHeight);
+      // resizeTo truncates on X11, so we compensate.
+      aWindow.resizeTo(Math.ceil(targetWidth), Math.ceil(targetHeight));
     } else {
       aWindow.resizeBy(deltaWidth, deltaHeight);
     }



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/7369c198ec39bc9f5bb1db5d55111f8dcfe2ce5a

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/7369c198ec39bc9f5bb1db5d55111f8dcfe2ce5a
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to