Closed Bug 1852778 Opened 1 year ago Closed 1 year ago

Title bar is barely visible in Customize mode if system theme is set to dark

Categories

(Firefox :: Toolbars and Customization, defect, P1)

Firefox 119
Desktop
All
defect

Tracking

()

VERIFIED FIXED
119 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 --- unaffected
firefox119 --- verified

People

(Reporter: csasca, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Found in

  • Firefox 119.0a1

Affected versions

  • Firefox 119.0a1

Tested platforms

  • Affected platforms: Windows 11, macOS 13.5.2
  • Unaffected platforms: Ubuntu 22.04

Preconditions

  • Have the system theme set to dark

Steps to reproduce

  1. Launch Firefox with a clean profile
  2. Access customize mode
  3. Look over the Title bar option

Expected result

  • The Title bar option is visible

Actual result

  • The Title bar option is barely visible

Regression range

  • Will see for a regression

Additional notes

  • The issue can be seen in the attachment
  • This only happens if the system theme is set to Dark and Firefox has the Auto theme. Will not reproduce if dark is manually selected from Themes within Firefox.

:csasca, if you think that's a regression, could you try to find a regression range using for example mozregression?

Hey kcochrane - do you think this is similar to what you experienced with the dark theme on Firefox View?

Flags: needinfo?(kcochrane)

Looked for regression and this is what I got in the info panel:
Bug 1843044 - Make the default theme work with dark color schemes. r=dao,pbz

This builds on the light-dark() function added in bug 1845679 to provide
custom colors for both the default light and dark themes, and remove the
"default theme in dark mode" bits.

This is all to be landed after the soft-freeze in any case. Untested on
macOS for now, but no reason it shouldn't work. Will test later today.

On the light theme we were relying on Field / FieldText being black /
white for toolbar-field-focus, so make that explicit too:

InspectorUtils.colorToRGBA("Field", document) // Object { a: 1, b: 255, g: 255, r: 255 }
InspectorUtils.colorToRGBA("FieldText", document) // Object { a: 1, b: 0, g: 0, r: 0 }.

Regressed by: 1843044

mconley, yeah it looks like this was caused by the same patch that affected dark mode in Firefox View! I've written that up in bug 1852603. In our case, we were previously able to access --newtab variables from Firefox View using styles applied to the :root element in contentTheme.js. After bug 1843044, we know longer get access to those variables, so our page background is falling back to --in-content-page-background which looks much too dark in dark mode. The theming on Firefox View should match the new tab page. Let me know if I can be of any more help here!

Flags: needinfo?(kcochrane)

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

:emilio, since you are the author of the regressor, bug 1843044, could you take a look?

For more information, please visit BugBot documentation.

Assignee: nobody → emilio
Blocks: 1852956
No longer blocks: 1852956
Flags: needinfo?(emilio)
Attachment #9352899 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9f36682c7da0 Proposal 1: Remove non-color-scheme-respecting platform-specific CSS for customize mode buttons. r=desktop-theme-reviewers,dao
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Flags: qe-verify+
Regressions: 1855875

Reproduced with Fx 119.0a1 (2023-09-12) on Windows 10 .
Verified fixed with Fx 120.0a1(2023-10-01) and Fx 119.0b3 on Windows 10, macOS 13 and Ubuntu 22..

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

Attachment

General

Created:
Updated:
Size: