Closed Bug 1971487 Opened 9 months ago Closed 9 months ago

Sidebar text has changed from white to black for some themes resulting in low contrast with dark background

Categories

(Firefox :: Theme, defect, P1)

Firefox 140
defect

Tracking

()

VERIFIED FIXED
141 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 141+ fixed
firefox139 --- unaffected
firefox140 + verified
firefox141 --- verified
firefox142 --- verified

People

(Reporter: ke5trel, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

STR:

  1. Install Colorful Abstract Neon theme (22,133 users).
  2. Open the bookmarks sidebar (Ctrl+B).

Expected:
Sidebar text is light with good contrast against dark background.

Actual:
Sidebar text is black with low contrast against dark background.

Search textbox also changed from dark to white.

New sidebars not affected, history sidebar affected with sidebar.revamp = false.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a3ce95c88b35238208165e94db12f6b0d970a8cc&tochange=b8fa32e6c490b9b978c64b704fd8ceeb5d1f987d

Regressed by Bug 1968040.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)

:hjones could this be triaged? We are already in RC for Fx140, do we need to keep this on the radar for a ride along.

Flags: needinfo?(hjones)

:emilio I'm curious if this might have the same root cause and fix as bug 1971273?

Severity: -- → S3
Flags: needinfo?(hjones)
Priority: -- → P1

Since Bug 1971273 landed the scope has expanded, now all sidebars are affected including the new ones.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f50011f5fabdd20fcf236c2a64cfe2560ff96712&tochange=10864b035131b9085c25c652161998a443093108

Regressed by Bug 1971273.

Regressed by: 1971273

Hmm, with bug 1971273, the changes from bug 1968040 seem to have become irrelevant for things like the customize sidebar doc and the bookmarks sidebar? So I guess this isn't my regression anymore? :)

Flags: needinfo?(dao+bmo) → needinfo?(emilio)

They are not irrelevant. That rule still applies and is the root cause of the issue afaict. But seems easy to write a quick fix for it pre-soft-freeze, at least.

Flags: needinfo?(emilio)

This is a targetted fix intended to land pre-soft-freeze.

The issue is that contentTheme sets lwtheme, so anything that imports
global.css and uses contentTheme.js now gets a light color scheme.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

This is to land after the soft freeze.

I added this for bug 1877298, and since then we stopped trying to do
what that bug was doing.

Now it's unused, and after the regressing bug it causes problems,
because the presence of a theme is not indicative of whether the page
should itself be themed (that's for [lwt-{sidebar,newtab}] attributes to
decide).

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/09ba48590299 https://hg.mozilla.org/integration/autoland/rev/42f3095b4fe8 Prevent unthemed sidebars with themed browsers from forcing a light color scheme. r=dao,desktop-theme-reviewers
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4bc0dcd80faf https://hg.mozilla.org/integration/autoland/rev/b9cb5d3dd933 Stop setting lwtheme attribute in contentTheme.js, and revert the previous patch. r=desktop-theme-reviewers,dao

Bug 1973767 is possibly a duplicate of this?
:emilio, could you add a release/esr140 uplift request on this?
Assuming only https://hg.mozilla.org/mozilla-central/rev/42f3095b4fe8 is needed?

Flags: needinfo?(emilio)

Let's also please have QA verify this and if anything else needs uplift before doing so.

Duplicate of this bug: 1973767

(In reply to Donal Meehan [:dmeehan] from comment #15)

Assuming only https://hg.mozilla.org/mozilla-central/rev/42f3095b4fe8 is needed?

Correct.

Flags: needinfo?(emilio)

Comment on attachment 9496024 [details]
Bug 1971487 - Prevent unthemed sidebars with themed browsers from forcing a light color scheme. r=dao,#sidebar-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Theming regression (see dupe).
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0, or see dupes.
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Targeted CSS fix.
  • String changes made/needed: none
  • Is Android affected?: No
Attachment #9496024 - Flags: approval-mozilla-release?
Attachment #9496024 - Flags: approval-mozilla-esr140?
See Also: → 1973777
Duplicate of this bug: 1973777
No longer duplicate of this bug: 1973777
QA Whiteboard: [qa-triage-done-c142/b141][qa-ver-needed-c142/b141]
QA Whiteboard: [qa-triage-done-c142/b141][qa-ver-needed-c142/b141] → [uplift][qa-triage-done-c142/b141][qa-ver-needed-c142/b141]
QA Contact: mchiorean

I was able to reproduce the issue on Win11x64 using Firefox build 141.0a1(20250611215745) and steps from description/duplicate bug.
Verified as fixed on Win11x64/Ubuntu22/Mac 12.6 using Firefox builds 141.0b1 and 142.0a1.
Waiting for next 140.0 release to check the uplift.

Duplicate of this bug: 1973927

Setting Fx140 to fixed since the regressor was backed out of release
https://bugzilla.mozilla.org/show_bug.cgi?id=1968040#c6

Duplicate of this bug: 1973978

Verified as fixed on Win11x64/Ubuntu22/Mac12.6 using Firefox build 140.0.1(20250625213854).

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-triage-done-c142/b141][qa-ver-needed-c142/b141] → [uplift][qa-triage-done-c142/b141][qa-ver-done-c142/b141]
Flags: qe-verify+
See Also: → 1974207

Comment on attachment 9496024 [details]
Bug 1971487 - Prevent unthemed sidebars with themed browsers from forcing a light color scheme. r=dao,#sidebar-reviewers

Rejecting release uplift request. The regressor was backed out of release for Fx140.

Attachment #9496024 - Flags: approval-mozilla-release? → approval-mozilla-release-

Setting ESR140 to fixed since the regressor was backed out of ESR140
https://bugzilla.mozilla.org/show_bug.cgi?id=1968040#c8

Comment on attachment 9496024 [details]
Bug 1971487 - Prevent unthemed sidebars with themed browsers from forcing a light color scheme. r=dao,#sidebar-reviewers

Rejecting ESR140 uplift request. The regressor was backed out of ESR140 for 140.1esr

Attachment #9496024 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: