[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-102.6.0esr-12.5-1] fixup! Bug 32308: use direct browser sizing for letterboxing.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Fri Jan 13 08:19:48 UTC 2023



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


Commits:
a191ab73 by hackademix at 2023-01-12T23:47:27+01:00
fixup! Bug 32308: use direct browser sizing for letterboxing.

Bug 41573: fix needless letterboxing on startup windows at some resolutions.

- - - - -


1 changed file:

- toolkit/components/resistfingerprinting/RFPHelper.jsm


Changes:

=====================================
toolkit/components/resistfingerprinting/RFPHelper.jsm
=====================================
@@ -413,9 +413,10 @@ class _RFPHelper {
       [containerWidth, containerHeight],
     ] = await win.promiseDocumentFlushed(() =>
       // Read layout info only inside this callback and do not write, to avoid additional reflows
-      [aBrowser, browserParent, browserContainer]
-        .map(e => e.getBoundingClientRect())
-        .map(r => [r.width, r.height])
+      [aBrowser, browserParent, browserContainer].map(element => [
+        element.clientWidth,
+        element.clientHeight,
+      ])
     );
 
     log(



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

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230113/1d03b1ad/attachment-0001.htm>


More information about the tbb-commits mailing list