Closed Bug 1915805 Opened 3 months ago Closed 2 months ago

Revamped sidebar doesn't deal well with sem-transparent toolbar backgrounds (eg Alpenglow)

Categories

(Firefox :: Sidebar, defect, P2)

Unspecified
Linux
defect

Tracking

()

VERIFIED FIXED
132 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox129 --- unaffected
firefox130 --- disabled
firefox131 --- disabled
firefox132 --- verified

People

(Reporter: ke5trel, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-sidebar])

Attachments

(2 files)

STR:

  1. Start with sidebar.verticalTabs = true and sidebar.revamp = true on Ubuntu 24.04.
  2. Enable the "Firefox Alpenglow" theme.
  3. Expand the sidebar.

Sidebar panel is transparent, showing through to the desktop behind it.

Does not happen on Windows 11.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=73d37e644eb977c4205e20c6a349453f39e09ec4&tochange=f81bc4882ecc99d79404676fdcf3dd5b4355800f

Regressed by Bug 1899336.

Set release status flags based on info from the regressing bug 1899336

:sclements, since you are the author of the regressor, bug 1899336, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

I don't see this on mac but I suspect the issue is because the .wrapper was changed to use --toolbar-bgcolor which may not be defined for this theme. I think we need to use --moz-sidebar as a fallback although I'm wondering if that is sufficient for linux. Nikki, can you confirm this is the strategy we're using for other parts of the sidebar that need a fallback?

Severity: -- → S3
Flags: needinfo?(sclements) → needinfo?(nsharpley)
Priority: -- → P2

Set release status flags based on info from the regressing bug 1899336

Summary: Revamped sidebar panel is transparent with custom themes (eg Alpenglow) on Linux, showing through to the desktop → Revamped sidebar doesn't deal well with sem-transparent toolbar backgrounds (eg Alpenglow)

(In reply to Sarah Clements [:sclements] from comment #2)

I don't see this on mac but I suspect the issue is because the .wrapper was changed to use --toolbar-bgcolor which may not be defined for this theme. I think we need to use --moz-sidebar as a fallback although I'm wondering if that is sufficient for linux. Nikki, can you confirm this is the strategy we're using for other parts of the sidebar that need a fallback?

--toolbar-bgcolor is defined for this theme. On Mac, this appears as an overlay over either a dark/light system background. On Linux, this doesn't have a background behind it, which is why we're seeing content behind the sidebar. I am wondering if there's a way to set a background behind the sidebar for those cases where --toolbar-bgcolor has a transparency on Linux? Its interesting that Mac does this automatically.

Flags: needinfo?(nsharpley)
Flags: needinfo?(emilio)

The fact that the macOS window is not transparent is the weird case, not the other way around.

I am wondering if there's a way to set a background behind the sidebar for those cases where --toolbar-bgcolor has a transparency on Linux?

You can potentially move the --tabpanel-background-color to the #browser instead, so that it also covers the sidebar. But I think there's a deeper issue that is that the semi-transparent toolbar bgcolor is intended to go over the toolbox background, not over the content background, so that might cause contrast issues if they don't match or are close...

Ideally we'd "extend" the toolbox background to cover the sidebar as well? Though that might also be non-trivial (specially for images and so).

Flags: needinfo?(emilio)
Whiteboard: [fidefe-sidebar]

Quick note: that the issue with alpenglow on Linux only shows up when using it with a light system theme not when the system is set to a dark theme.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)

You can potentially move the --tabpanel-background-color to the #browser instead, so that it also covers the sidebar. But I think there's a deeper issue that is that the semi-transparent toolbar bgcolor is intended to go over the toolbox background, not over the content background, so that might cause contrast issues if they don't match or are close...

Ideally we'd "extend" the toolbox background to cover the sidebar as well? Though that might also be non-trivial (specially for images and so).

We did look into this and you're right its an issue. I dug around in the AMO theme manifests a while back and found that somewhere around 10% of themes combine a background-image and semi-transparent toolbar color. Our hands are a bit tied with mitigating this issue - we have to be careful about moving the goalposts on the existing published themes in terms of how and where those get applied. We can try to ensure there are good fallbacks and I think a opaque backing color on the sidebar unless the users has opted-in for a transparent sidebar would help. We can pick a default or we can take one of the theme's toolbar or sidebar colors and make it opaque.

Since this is specific to Linux and since it sounds like potential fixes (e.g. along the lines of what's described in comment 6) will be non-trivial we're moving this out of being part of the MVP. However, if there's a quick fix that's low-risk we may re-consider that.

I think what we ideally want to aim for is making the situation consistent for all platforms, so that Linux behaves the same way Windows and Mac do since they are currently working as expected.

Windows has a default background, but it doesn't behave correctly either. I suspect in dark mode you might still get a wrong background or what not.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb3f20098be7 Make sure revamped sidebar is opaque. r=desktop-theme-reviewers,sidebar-reviewers,dao,nsharpley
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Regressions: 1921246
Flags: qe-verify+
Regressions: 1922297

Reproduced the issue with Firefox 131.0a1 (2024-08-30) on Ubuntu 24.04. Using the Alpenglow theme or the theme from comment 4 with Sidebar vertical tabs and then residing the browser will make the sidebar transparent.
The issue is verified fixed with Firefox 132.0b5 on Windows 10x64, macOS 12, and Ubuntu 24.04. The sidebar no longer becomes transparent after using the Alpenglow theme or the theme from comment 4 and then resizing the browser while vertical tabs are active.

Status: RESOLVED → VERIFIED
Has STR: --- → yes
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: