[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.10.0esr-14.5-1] fixup! BB 41631: Prevent weird initial window dimensions caused by subpixel computations



Title: GitLab

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:

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
         }
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx