Closed Bug 1634449 Opened 5 years ago Closed 5 years ago

White text on white background in the Find text box

Categories

(Firefox :: Theme, defect)

75 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 77
Tracking Status
firefox77 --- verified

People

(Reporter: pedro, Assigned: emilio)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

I run firefox in Ubuntu with the following theme settings:

  • System GTK is set to Adwaita-dark
  • Firefox theme is set to Light

Actual results:

I bring up the search box in any page with Ctrl-F and type. White text on white background is the result

Expected results:

I should be getting white text on white background. It works properly if I do any of the following:

  • Set the system theme to the normal light Adwaita
  • Set the firefox theme to the default or dark themes
  • Set the system to light Adwaita and Firefox to the dark theme (the exact opposite)

For some reason only this combination causes a problem.

Having searched better this seems like a duplicate of this:

https://bugzilla.mozilla.org/show_bug.cgi?id=1411425

I commented on that bug but am still seeing it even long after the fix was supposed to be done. So maybe what I'm seeing is a different issue?

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Let me poke real quick, I don't think it's necessarily a dupe...

Flags: needinfo?(emilio)

Sorry for the lag. This is a bug in the light theme, it's setting a background but not the foreground color, so the result if you use a dark system theme is white on white.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Component: Widget: Gtk → Theme
Ever confirmed: true
Flags: needinfo?(emilio)
Product: Core → Firefox

We're setting the background but not the text color on the light theme,
which means that per these two rules:

https://searchfox.org/mozilla-central/rev/7fd1c1c34923ece7ad8c822bee062dd0491d64dc/toolkit/themes/shared/findBar.inc.css#63-64

You'll get:

background-color: #fff;
color: -moz-Field;

If you have a dark system theme (like Adwaita Dark on Linux) where
-moz-Field is dark, then badness happens and you get white-on-white.

The color is just tab_background_text, which seems to work quite nicely
and is the same that the dark theme does for this field.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26952e3b6113 Set toolbar_field_text in the light theme. r=dao

Thanks!

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77

This issue is Verified as fixed in our latest Nightly build as well as Beta 77.0b2.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Just installed Firefox 77.0.1 and this is indeed fixed. Thanks!

This has regressed for me, either because of Firefox 79 or the new user session I was forced to create in the upgrade to 79. I am once again seeing white text on white background in the Find box when using a dark system theme and the light Firefox theme.

Can you file a bug? I can't reproduce it on Nightly though.

The bug is exactly this one. Should a new one be filed?

Yes, generally reopening closed bugs is not great, specially if they were closed long ago.

Duplicate of this bug: 1566308
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: