[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-115.7.0esr-13.5-1] fixup! Bug 32308: use direct browser sizing for letterboxing.
richard (@richard)
git at gitlab.torproject.org
Thu Feb 8 14:47:33 UTC 2024
richard pushed to branch base-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
c87452dd by hackademix at 2024-02-08T14:47:01+00:00
fixup! Bug 32308: use direct browser sizing for letterboxing.
Bug 42390: hide the browser border decorator when corners are flat.
- - - - -
2 changed files:
- browser/base/content/browser.css
- toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
Changes:
=====================================
browser/base/content/browser.css
=====================================
@@ -159,6 +159,7 @@ body {
--letterboxing-gradient-color1: var(--letterboxing-bgcolor);
--letterboxing-gradient-color2: color-mix(in srgb, var(--chrome-content-separator-color) 50%, var(--letterboxing-bgcolor));
--letterboxing-border-color: var(--letterboxing-bgcolor);
+ --letterboxing-decorator-visibility: visible;
}
.letterboxing.letterboxing-vcenter .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) {
@@ -174,7 +175,7 @@ body {
> .browserStack:not(.exclude-letterboxing)
> .browserDecorator {
display: initial;
- visibility: visible;
+ visibility: var(--letterboxing-decorator-visibility);
border-radius: var(--letterboxing-border-radius);
border-top-left-radius: var(--letterboxing-border-top-radius);
border-top-right-radius: var(--letterboxing-border-top-radius);
=====================================
toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
=====================================
@@ -684,6 +684,7 @@ class _RFPHelper {
borderRadius = "";
}
styleChanges.queueIfNeeded(browserParent, {
+ "--letterboxing-decorator-visibility": borderRadius === 0 ? "hidden" : "",
'--letterboxing-border-radius': borderRadius
});
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/c87452dd83173b08065d1b40ad3ce73a6ebde4c4
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/c87452dd83173b08065d1b40ad3ce73a6ebde4c4
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/20240208/6e1a1c2a/attachment-0001.htm>
More information about the tbb-commits
mailing list