[tbb-commits] [Git][tpo/applications/tor-browser][tor-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:46:31 UTC 2024
richard pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
0efa3dd9 by hackademix at 2024-02-08T14:44:25+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/0efa3dd93339e7f996070d5170b4fddf5fc11b60
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0efa3dd93339e7f996070d5170b4fddf5fc11b60
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/53b25d88/attachment-0001.htm>
More information about the tbb-commits
mailing list