From git at gitlab.torproject.org Fri Nov 1 08:21:18 2024 From: git at gitlab.torproject.org (Pier Angelo Vendrame (@pierov)) Date: Fri, 01 Nov 2024 08:21:18 +0000 Subject: [tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-128.4.0esr-14.5-1] 4 commits: dropme! Bug 32308: Use direct browser sizing for letterboxing. Message-ID: <67248f7ec3fca_15aa568ff114197373d@gitlab-02.mail> Pier Angelo Vendrame pushed to branch tor-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Tor Browser Commits: 385447ad by Pier Angelo Vendrame at 2024-10-31T19:10:50+01:00 dropme! Bug 32308: Use direct browser sizing for letterboxing. Revert a couple of lines to make the backport easier. - - - - - 4a33efb7 by hackademix at 2024-10-31T19:10:51+01:00 Bug 1556002 - Update initial window size and letterboxing stepping. r=tjr Differential Revision: https://phabricator.services.mozilla.com/D226598 - - - - - 036aaa05 by Pier Angelo Vendrame at 2024-10-31T19:13:04+01:00 fixup! Bug 32308: Use direct browser sizing for letterboxing. Restore our changes after backporting MozBug 1556002. - - - - - 8a4eb9d3 by Pier Angelo Vendrame at 2024-10-31T19:13:50+01:00 fixup! Firefox preference overrides. Remove our custom letterboxing size, since they are going to be also Firefox's default one after MozBug 1556002. - - - - - 6 changed files: - browser/app/profile/001-base-profile.js - browser/components/resistfingerprinting/test/browser/browser_dynamical_window_rounding.js - browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_max_inner.js - browser/components/resistfingerprinting/test/browser/head.js - modules/libpref/init/StaticPrefList.yaml - toolkit/components/resistfingerprinting/RFPHelper.sys.mjs Changes: ===================================== browser/app/profile/001-base-profile.js ===================================== @@ -445,9 +445,6 @@ pref("privacy.resistFingerprinting.letterboxing.gradient", true); pref("privacy.resistFingerprinting.letterboxing.rememberSize", false); // tor-browser#41695: how many warnings we show if user closes them without restoring the window size pref("privacy.resistFingerprinting.resizeWarnings", 3); -// tor-browser#33282: new windows start at 1400x900 when there's enough screen space, otherwise down by 200x100 blocks -pref("privacy.window.maxInnerWidth", 1400); -pref("privacy.window.maxInnerHeight", 900); // Enforce Network Information API as disabled pref("dom.netinfo.enabled", false); pref("network.http.referer.defaultPolicy", 2); // Bug 32948: Make referer behavior consistent regardless of private browing mode status ===================================== browser/components/resistfingerprinting/test/browser/browser_dynamical_window_rounding.js ===================================== @@ -53,8 +53,8 @@ function checkForDefaultSetting( aRealHeight ) { // We can get the rounded size by subtracting twice the margin. - let targetWidth = aRealWidth - 2 * RFPHelper.steppedRange(aRealWidth); - let targetHeight = aRealHeight - 2 * RFPHelper.steppedRange(aRealHeight); + let targetWidth = aRealWidth - 2 * RFPHelper.steppedSize(aRealWidth, true); + let targetHeight = aRealHeight - 2 * RFPHelper.steppedSize(aRealHeight); // This platform-specific code is explained in the large comment below. if (getPlatform() != "linux") { ===================================== browser/components/resistfingerprinting/test/browser/browser_roundedWindow_open_max_inner.js ===================================== @@ -4,23 +4,26 @@ * maximum values. */ +let targetWidth = Services.prefs.getIntPref("privacy.window.maxInnerWidth"); +let targetHeight = Services.prefs.getIntPref("privacy.window.maxInnerHeight"); + OpenTest.run([ { - settingWidth: 1025, - settingHeight: 1050, - targetWidth: 1000, - targetHeight: 1000, + settingWidth: targetWidth + 25, + settingHeight: targetHeight + 50, + targetWidth, + targetHeight, }, { settingWidth: 9999, settingHeight: 9999, - targetWidth: 1000, - targetHeight: 1000, + targetWidth, + targetHeight, }, { - settingWidth: 999, - settingHeight: 999, - targetWidth: 1000, - targetHeight: 1000, + settingWidth: targetWidth - 1, + settingHeight: targetHeight - 1, + targetWidth, + targetHeight, }, ]); ===================================== browser/components/resistfingerprinting/test/browser/head.js ===================================== @@ -306,19 +306,28 @@ async function calcMaximumAvailSize(aChromeWidth, aChromeHeight) { let availWidth = window.screen.availWidth; let availHeight = window.screen.availHeight; - // Ideally, we would round the window size as 1000x1000. But the available - // screen space might not suffice. So, we decide the size according to the - // available screen size. - let availContentWidth = Math.min(1000, availWidth - chromeUIWidth); + // Ideally, we would round the window size as + // privacy.window.maxInnerWidth x privacy.window.maxInnerHeight. But the + // available screen space might not suffice. So, we decide the size according + // to the available screen size. + let maxInnerWidth = Services.prefs.getIntPref("privacy.window.maxInnerWidth"); + let maxInnerHeight = Services.prefs.getIntPref( + "privacy.window.maxInnerHeight" + ); + + let availContentWidth = Math.min(maxInnerWidth, availWidth - chromeUIWidth); let availContentHeight; // If it is GTK window, we would consider the system decorations when we // calculating avail content height since the system decorations won't be // reported when we get available screen dimensions. if (AppConstants.MOZ_WIDGET_GTK) { - availContentHeight = Math.min(1000, -40 + availHeight - chromeUIHeight); + availContentHeight = Math.min( + maxInnerHeight, + -40 + availHeight - chromeUIHeight + ); } else { - availContentHeight = Math.min(1000, availHeight - chromeUIHeight); + availContentHeight = Math.min(maxInnerHeight, availHeight - chromeUIHeight); } // Rounded the desire size to the nearest 200x100. ===================================== modules/libpref/init/StaticPrefList.yaml ===================================== @@ -14352,12 +14352,12 @@ - name: privacy.window.maxInnerWidth type: int32_t - value: 1000 + value: 1400 mirror: always - name: privacy.window.maxInnerHeight type: int32_t - value: 1000 + value: 900 mirror: always - name: privacy.sanitize.useOldClearHistoryDialog ===================================== toolkit/components/resistfingerprinting/RFPHelper.sys.mjs ===================================== @@ -522,14 +522,14 @@ class _RFPHelper { /** * Given a width or height, rounds it with the proper stepping. */ - steppedSize(aDimension, isWidth = false) { + steppedSize(aDimension, aIsWidth = false) { let stepping; if (aDimension <= 50) { return 0; } else if (aDimension <= 500) { stepping = 50; } else if (aDimension <= 1600) { - stepping = isWidth ? 200 : 100; + stepping = aIsWidth ? 200 : 100; } else { stepping = 200; } View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/3f690c6b5a2cd76227ff7f71ec708e1f6cfd52cb...8a4eb9d3fed4690c966ff6cffe2e77f91ffbfd98 -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/3f690c6b5a2cd76227ff7f71ec708e1f6cfd52cb...8a4eb9d3fed4690c966ff6cffe2e77f91ffbfd98 You're receiving this email because of your account on gitlab.torproject.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From git at gitlab.torproject.org Fri Nov 1 16:55:57 2024 From: git at gitlab.torproject.org (morgan (@morgan)) Date: Fri, 01 Nov 2024 16:55:57 +0000 Subject: [tbb-commits] [Git][tpo/applications/mullvad-browser-update-responses][main] alpha: new version, 14.0a10 Message-ID: <6725081df9f3_15aa57a74c2024848@gitlab-02.mail> morgan pushed to branch main at The Tor Project / Applications / mullvad-browser-update-responses Commits: 00b72352 by Morgan at 2024-11-01T16:55:50+00:00 alpha: new version, 14.0a10 - - - - - 29 changed files: - update_1/alpha/.htaccess - + update_1/alpha/14.0a10-linux-x86_64-ALL.xml - + update_1/alpha/14.0a10-macos-ALL.xml - + update_1/alpha/14.0a10-windows-x86_64-ALL.xml - ? update_1/alpha/14.0a6-14.0a9-linux-x86_64-ALL.xml - ? update_1/alpha/14.0a6-14.0a9-macos-ALL.xml - ? update_1/alpha/14.0a6-14.0a9-windows-x86_64-ALL.xml - + update_1/alpha/14.0a7-14.0a10-linux-x86_64-ALL.xml - + update_1/alpha/14.0a7-14.0a10-macos-ALL.xml - + update_1/alpha/14.0a7-14.0a10-windows-x86_64-ALL.xml - ? update_1/alpha/14.0a7-14.0a9-linux-x86_64-ALL.xml - ? update_1/alpha/14.0a7-14.0a9-macos-ALL.xml - ? update_1/alpha/14.0a7-14.0a9-windows-x86_64-ALL.xml - + update_1/alpha/14.0a8-14.0a10-linux-x86_64-ALL.xml - + update_1/alpha/14.0a8-14.0a10-macos-ALL.xml - + update_1/alpha/14.0a8-14.0a10-windows-x86_64-ALL.xml - ? update_1/alpha/14.0a8-14.0a9-linux-x86_64-ALL.xml - ? update_1/alpha/14.0a8-14.0a9-macos-ALL.xml - ? update_1/alpha/14.0a8-14.0a9-windows-x86_64-ALL.xml - + update_1/alpha/14.0a9-14.0a10-linux-x86_64-ALL.xml - + update_1/alpha/14.0a9-14.0a10-macos-ALL.xml - + update_1/alpha/14.0a9-14.0a10-windows-x86_64-ALL.xml - ? update_1/alpha/14.0a9-linux-x86_64-ALL.xml - ? update_1/alpha/14.0a9-macos-ALL.xml - ? update_1/alpha/14.0a9-windows-x86_64-ALL.xml - update_1/alpha/download-linux-x86_64.json - update_1/alpha/download-macos.json - update_1/alpha/download-windows-x86_64.json - update_1/alpha/downloads.json Changes: ===================================== update_1/alpha/.htaccess ===================================== @@ -1,22 +1,22 @@ RewriteEngine On -RewriteRule ^[^/]+/14.0a9/ no-update.xml [last] -RewriteRule ^Linux_x86_64-gcc3/14.0a6/ALL 14.0a6-14.0a9-linux-x86_64-ALL.xml [last] -RewriteRule ^Linux_x86_64-gcc3/14.0a7/ALL 14.0a7-14.0a9-linux-x86_64-ALL.xml [last] -RewriteRule ^Linux_x86_64-gcc3/14.0a8/ALL 14.0a8-14.0a9-linux-x86_64-ALL.xml [last] -RewriteRule ^Linux_x86_64-gcc3/[^/]+/ALL 14.0a9-linux-x86_64-ALL.xml [last] -RewriteRule ^Linux_x86_64-gcc3/ 14.0a9-linux-x86_64-ALL.xml [last] -RewriteRule ^Darwin_x86_64-gcc3/14.0a6/ALL 14.0a6-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_x86_64-gcc3/14.0a7/ALL 14.0a7-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_x86_64-gcc3/14.0a8/ALL 14.0a8-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_x86_64-gcc3/[^/]+/ALL 14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_x86_64-gcc3/ 14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_aarch64-gcc3/14.0a6/ALL 14.0a6-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_aarch64-gcc3/14.0a7/ALL 14.0a7-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_aarch64-gcc3/14.0a8/ALL 14.0a8-14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_aarch64-gcc3/[^/]+/ALL 14.0a9-macos-ALL.xml [last] -RewriteRule ^Darwin_aarch64-gcc3/ 14.0a9-macos-ALL.xml [last] -RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a6/ALL 14.0a6-14.0a9-windows-x86_64-ALL.xml [last] -RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a7/ALL 14.0a7-14.0a9-windows-x86_64-ALL.xml [last] -RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a8/ALL 14.0a8-14.0a9-windows-x86_64-ALL.xml [last] -RewriteRule ^WINNT_x86_64-gcc3-x64/[^/]+/ALL 14.0a9-windows-x86_64-ALL.xml [last] -RewriteRule ^WINNT_x86_64-gcc3-x64/ 14.0a9-windows-x86_64-ALL.xml [last] +RewriteRule ^[^/]+/14.0a10/ no-update.xml [last] +RewriteRule ^Linux_x86_64-gcc3/14.0a7/ALL 14.0a7-14.0a10-linux-x86_64-ALL.xml [last] +RewriteRule ^Linux_x86_64-gcc3/14.0a8/ALL 14.0a8-14.0a10-linux-x86_64-ALL.xml [last] +RewriteRule ^Linux_x86_64-gcc3/14.0a9/ALL 14.0a9-14.0a10-linux-x86_64-ALL.xml [last] +RewriteRule ^Linux_x86_64-gcc3/[^/]+/ALL 14.0a10-linux-x86_64-ALL.xml [last] +RewriteRule ^Linux_x86_64-gcc3/ 14.0a10-linux-x86_64-ALL.xml [last] +RewriteRule ^Darwin_x86_64-gcc3/14.0a7/ALL 14.0a7-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_x86_64-gcc3/14.0a8/ALL 14.0a8-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_x86_64-gcc3/14.0a9/ALL 14.0a9-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_x86_64-gcc3/[^/]+/ALL 14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_x86_64-gcc3/ 14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_aarch64-gcc3/14.0a7/ALL 14.0a7-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_aarch64-gcc3/14.0a8/ALL 14.0a8-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_aarch64-gcc3/14.0a9/ALL 14.0a9-14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_aarch64-gcc3/[^/]+/ALL 14.0a10-macos-ALL.xml [last] +RewriteRule ^Darwin_aarch64-gcc3/ 14.0a10-macos-ALL.xml [last] +RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a7/ALL 14.0a7-14.0a10-windows-x86_64-ALL.xml [last] +RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a8/ALL 14.0a8-14.0a10-windows-x86_64-ALL.xml [last] +RewriteRule ^WINNT_x86_64-gcc3-x64/14.0a9/ALL 14.0a9-14.0a10-windows-x86_64-ALL.xml [last] +RewriteRule ^WINNT_x86_64-gcc3-x64/[^/]+/ALL 14.0a10-windows-x86_64-ALL.xml [last] +RewriteRule ^WINNT_x86_64-gcc3-x64/ 14.0a10-windows-x86_64-ALL.xml [last] ===================================== update_1/alpha/14.0a10-linux-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a10-macos-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a10-windows-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a6-14.0a9-linux-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a6-14.0a9-macos-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a6-14.0a9-windows-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a7-14.0a10-linux-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a7-14.0a10-macos-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a7-14.0a10-windows-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a7-14.0a9-linux-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a7-14.0a9-macos-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a7-14.0a9-windows-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a8-14.0a10-linux-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a8-14.0a10-macos-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a8-14.0a10-windows-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a8-14.0a9-linux-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a8-14.0a9-macos-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a8-14.0a9-windows-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a9-14.0a10-linux-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a9-14.0a10-macos-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a9-14.0a10-windows-x86_64-ALL.xml ===================================== @@ -0,0 +1,2 @@ + + ===================================== update_1/alpha/14.0a9-linux-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a9-macos-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/14.0a9-windows-x86_64-ALL.xml deleted ===================================== @@ -1,2 +0,0 @@ - - ===================================== update_1/alpha/download-linux-x86_64.json ===================================== @@ -1 +1 @@ -{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-linux-x86_64-14.0a9.tar.xz","git_tag":"mb-14.0a9-build1","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-linux-x86_64-14.0a9.tar.xz.asc","version":"14.0a9"} \ No newline at end of file +{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-linux-x86_64-14.0a10.tar.xz","git_tag":"mb-14.0a10-build1","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-linux-x86_64-14.0a10.tar.xz.asc","version":"14.0a10"} \ No newline at end of file ===================================== update_1/alpha/download-macos.json ===================================== @@ -1 +1 @@ -{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-macos-14.0a9.dmg","git_tag":"mb-14.0a9-build1","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-macos-14.0a9.dmg.asc","version":"14.0a9"} \ No newline at end of file +{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-macos-14.0a10.dmg","git_tag":"mb-14.0a10-build1","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-macos-14.0a10.dmg.asc","version":"14.0a10"} \ No newline at end of file ===================================== update_1/alpha/download-windows-x86_64.json ===================================== @@ -1 +1 @@ -{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-windows-x86_64-14.0a9.exe","git_tag":"mb-14.0a9-build1","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-windows-x86_64-14.0a9.exe.asc","version":"14.0a9"} \ No newline at end of file +{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-windows-x86_64-14.0a10.exe","git_tag":"mb-14.0a10-build1","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-windows-x86_64-14.0a10.exe.asc","version":"14.0a10"} \ No newline at end of file ===================================== update_1/alpha/downloads.json ===================================== @@ -1 +1 @@ -{"downloads":{"linux-x86_64":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-linux-x86_64-14.0a9.tar.xz","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-linux-x86_64-14.0a9.tar.xz.asc"}},"macos":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-macos-14.0a9.dmg","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-macos-14.0a9.dmg.asc"}},"win64":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-windows-x86_64-14.0a9.exe","sig":"https://cdn.mullvad.net/browser/14.0a9/mullvad-browser-windows-x86_64-14.0a9.exe.asc"}}},"tag":"mb-14.0a9-build1","version":"14.0a9"} \ No newline at end of file +{"downloads":{"linux-x86_64":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-linux-x86_64-14.0a10.tar.xz","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-linux-x86_64-14.0a10.tar.xz.asc"}},"macos":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-macos-14.0a10.dmg","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-macos-14.0a10.dmg.asc"}},"win64":{"ALL":{"binary":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-windows-x86_64-14.0a10.exe","sig":"https://cdn.mullvad.net/browser/14.0a10/mullvad-browser-windows-x86_64-14.0a10.exe.asc"}}},"tag":"mb-14.0a10-build1","version":"14.0a10"} \ No newline at end of file View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser-update-responses/-/commit/00b72352dfd4b3de958c49a765bf44c5f0501b83 -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser-update-responses/-/commit/00b72352dfd4b3de958c49a765bf44c5f0501b83 You're receiving this email because of your account on gitlab.torproject.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: