Pier Angelo Vendrame pushed to branch base-browser-128.10.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits: 6bb0d464 by Pier Angelo Vendrame at 2025-04-23T17:20:56+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/6bb0d464...
tbb-commits@lists.torproject.org