[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.3.1esr-13.0-1] fixup! Bug 32308: use direct browser sizing for letterboxing. Bug 30556: align...
ma1 (@ma1)
git at gitlab.torproject.org
Mon Oct 9 18:41:42 UTC 2023
ma1 pushed to branch tor-browser-115.3.1esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits:
10f40c2f by hackademix at 2023-10-09T19:54:52+02:00
fixup! Bug 32308: use direct browser sizing for letterboxing. Bug 30556: align letterboxing with 200x100 new win width stepping
Bug 41259: Do not interfere with devtools responsive mode sizing.
- - - - -
2 changed files:
- browser/base/content/browser.css
- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
Changes:
=====================================
browser/base/content/browser.css
=====================================
@@ -140,7 +140,7 @@ body {
Never modify the following selector without synchronizing
LETTERBOX_CSS_SELECTOR in RFPHelper.jsm!
**/
-.letterboxing .browserStack:not(.exclude-letterboxing) > browser {
+.letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) > browser {
/* width & height to be dynamically set by RFPHelper.jsm */
outline: 1px solid var(--chrome-content-separator-color);
}
@@ -149,7 +149,7 @@ body {
outline: initial;
}
-:root:not([inDOMFullscreen]) .letterboxing.letterboxing-ready .browserStack:not(.exclude-letterboxing) {
+:root:not([inDOMFullscreen]) .letterboxing.letterboxing-ready .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) {
place-content: start center;
}
=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -437,7 +437,7 @@ class _RFPHelper {
// preemptively in order to beat race conditions on tab/window creation
const LETTERBOX_CSS_URL = "chrome://browser/content/browser.css";
const LETTERBOX_CSS_SELECTOR =
- ".letterboxing .browserStack:not(.exclude-letterboxing) > browser";
+ ".letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) > browser";
for (let ss of document.styleSheets) {
if (ss.href !== LETTERBOX_CSS_URL) {
continue;
@@ -557,8 +557,8 @@ class _RFPHelper {
const roundDimensions = (aWidth, aHeight) => {
const r = (aWidth, aHeight) => ({
- width: `${aWidth}px`,
- height: `${aHeight}px`,
+ width: `var(--rdm-width, ${aWidth}px)`,
+ height: `var(--rdm-height, ${aHeight}px)`,
});
let result;
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/10f40c2f2ceb7f2a4eb82c8540d5e01b99be9220
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/10f40c2f2ceb7f2a4eb82c8540d5e01b99be9220
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/20231009/8d2c376e/attachment-0001.htm>
More information about the tbb-commits
mailing list