Closed Bug 1973777 Opened 1 year ago Closed 1 year ago

Photon Colors theme light sidebar has become dark with low contrast black text

Categories

(Firefox :: Theme, defect)

Firefox 140
defect

Tracking

()

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

People

(Reporter: ke5trel, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

STR:

  1. Install Photon Colors theme (2,342 users).
  2. Open the bookmarks sidebar (Ctrl+B).

Expected:
Sidebar is light and/or text has good contrast.

Actual:
Sidebar has dark background with black text and low contrast.

Sidebar header has white text without contrast issue.

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

Regressed by Bug 1968040.

Dupe of bug 1971487, right?

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1971487
Resolution: --- → DUPLICATE

No, reproducible on latest Nightly 142.0a1 (2025-06-24).

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1971487
Resolution: DUPLICATE → ---

I can't repro this... Does this repro on a clean profile for you?

Flags: needinfo?(ke5trel)

Huh, nvm, I can repro on a clean profile, doesn't repro with sidebar.revamp = true.

Assignee: nobody → emilio
Flags: needinfo?(ke5trel)

This was setting the color scheme of the sidebar based off the newtab
colors, so the fact that it worked was total luck.

This was added for bug 1786627 for Firefox View. Instead, make
firefoxview.css and common-shared work with both light and dark modes
via light-dark, and since it wants the same color-scheme as the new tab,
do so.

This might end up with mismatched colors (dark sidebar header, light
sidebar background), but that's better than the current behavior and
allows you to use the sidebar.

The reason this fixes the issue is that it gets the background-color
from the color-scheme of the #sidebar browser, which is set via style
attribute (see the other patch which removes this behavior).

Comment on attachment 9496562 [details]
Bug 1973777 - Wallpaper for 140-141: set sidebar background for legacy sidebar on sidebar browser too. r=#theme,#sidebar-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: prevents unusable sidebar on themes with dark background but light toolbars.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Specific to legacy sidebar and somewhat easy to verify.
  • String changes made/needed: none
  • Is Android affected?: No
Attachment #9496562 - Flags: approval-mozilla-release?
Attachment #9496562 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9496562 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Emilio, do you intend to land it on firefox-main before we uplift it the beta and release?

Flags: needinfo?(emilio)

No, comment 7 is only for beta / release, the right fix is the other patch.

Flags: needinfo?(emilio)

I was able to reproduce the issue on Ubuntu 22 using Firefox build 141.0a1(2025.06.22) and steps from description.
Verified as fixed on Win11/Ubuntu22/Mac 12.6 using Firefox 141.0b2.

QA Contact: tzsoldos
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

Still an issue in main.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

https://phabricator.services.mozilla.com/D254860 was created targeting firefox-autoland so Phabricator didn't close it automatically after the commit was pushed to firefox-beta.

QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141]
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Depends on: 1973817
Resolution: --- → FIXED

Emilio said his patch may still be worth taking, adding a needinfo as a reminder.

Flags: needinfo?(emilio)

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

Comment on attachment 9496562 [details]
Bug 1973777 - Wallpaper for 140-141: set sidebar background for legacy sidebar on sidebar browser too. r=#theme,#sidebar-reviewers!

See Comment 17

Attachment #9496562 - 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

Target Milestone: --- → 142 Branch
Blocks: 1974573

Thanks, moved it to bug 1973777.

Flags: needinfo?(emilio)

Comment on attachment 9496559 [details]
Bug 1973777 - Stop setting browser color-scheme from contentTheme.js. r=dao,#theme

Revision D254857 was moved to bug 1974573. Setting attachment 9496559 [details] to obsolete.

Attachment #9496559 - Attachment is obsolete: true

bug 1974573 of course :)

Attachment #9496562 - Attachment is obsolete: true

Verified as fixed on Windows 11, Ubuntu22 and macOS 10.15 using Firefox 140.0.4, the sidebar is light and/or text has good contrast with Photon Colors theme.

Verified as fixed on Windows 11, Ubuntu22 and macOS 10.15 using Firefox 142.0a1, the sidebar is light and/or text has good contrast with Photon Colors theme.

QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] → [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] [uplift]

Verified as fixed on Windows 11, Ubuntu22 and macOS 10.15 using Firefox 140.1.0esr, the sidebar is light and/or text has good contrast with Photon Colors theme.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] [uplift] → [qa-triage-done-c142/b141] [qa-ver-done-c142/b141] [uplift]
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: