Pier Angelo Vendrame pushed to branch mullvad-browser-128.10.0esr-14.5-1 at The
Tor Project / Applications / Mullvad Browser
Commits:
da091fd9 by Pier Angelo Vendrame at 2025-04-23T17:13:18+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/mullvad-browser/-/commit/da091fd928ebe347ced3f0ff3b61ae6787bcb13e
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/da091fd928ebe347ced3f0ff3b61ae6787bcb13e
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]