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

Commits:

1 changed file:

Changes:

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