Closed Bug 1762018 Opened 2 years ago Closed 2 years ago

nightly black on black in search box on DDG

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 100
defect

Tracking

()

VERIFIED FIXED
100 Branch
Accessibility Severity s2
Tracking Status
firefox-esr91 --- unaffected
firefox98 --- unaffected
firefox99 --- unaffected
firefox100 --- fixed

People

(Reporter: mozilla, Assigned: emilio)

References

(Regression)

Details

(Keywords: access, regression)

Attachments

(4 files)

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

Steps to reproduce:

Used duckduckgo search engine or youtube.com search box with latest nightly build.

Actual results:

The search box now has black on black text when typing.

Expected results:

The search box should have had white on black text when typing.

I tried running mozregression on the issue, but could not reproduce it. This only started happening in the last few days. Sunday, 20220327? It was not present last week, everything was working correctly. I'll see if I can change the test configuration to something that will reproduce the issue so I can find the culprit.

This is the culprit:
17:15.11 INFO: No more integration revisions, bisection finished.
17:15.11 INFO: Last good revision: 94f858bf3452c1b6ed988b84d172d7e2412b9d5f
17:15.12 INFO: First bad revision: 4d1ab24c2912de564c9688c20290c3573cd07974
17:15.12 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=94f858bf3452c1b6ed988b84d172d7e2412b9d5f&tochange=4d1ab24c2912de564c9688c20290c3573cd07974

To get mozregression to work, I had to go into settings, then manage colors, I reset all the colors for dark theme and to suit my eyes, I then selected to apply them always. That is the configuration I use locally, so it makes sense that it would also fail when applied to the mozregression downloads.

These are the settings that I had for colors to get the regression to trigger. The actual setting is now called manage colors, but has the same settings.

I used youtube.com, the search box at the top, as it was easier than duckduckgo, to validate error or not.

The Bugbug bot thinks this bug should belong to the 'Firefox::Search' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Search

Thank you for filing and finding the regression range.

Component: Search → CSS Parsing and Computation
Flags: needinfo?(emilio)
Product: Firefox → Core
Regressed by: 1666059
Summary: nightly black on black in search box → nightly black on black in search box on DDG

What colors did you get pre-regression? Presumably a white-ish background?

(Can check in a bit but if you can answer before I get to it that'd be great)

Flags: needinfo?(mozilla)

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

@7 Yes, the default appears to be black on white for the search box when it is working.

Flags: needinfo?(mozilla)

This patch is a bit bigger than I'd like, but it's mostly moving code
around to centralize the color/color-scheme decisions we make when
forcing colors.

In practice, the only behavior change should be that when "use system
colors" is false and we force colors, we force a color-scheme that
matches the user-chosen background (via the LookAndFeel::IsDarkColor
check).

That should make sure that text from system colors is light and matches
the user expectations.

Before this patch, we used to force the color-scheme to light, but that
was just so that we ended up looking at mLightColors. Instead, we
achieve that via a separate bit (mForcedLightColorSet, naming up for
debate, not a fan), so that we can use the right system colors
otherwise.

Another alternative I considered is making all non-link system colors
return mDefaultBackground / mDefault depending on whether they are
background / foreground colors. That seemed a lot more work and
potentially a regression in various ways. I think this should be
strictly an improvement instead.

Not sure how to come up with a test for this right now without
hard-coding colors... Will try to come up with something tomorrow.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(emilio)
Has Regression Range: --- → yes
Severity: -- → S2
Keywords: access
Whiteboard: [access-s2]

For some reason this test passes when ran standalone but fails when ran
as part of the whole directory. Needs more debugging.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d97c7b1b9b5
Derive a color scheme when forcing preference colors. r=morgan

Backed out for causing mochitest failures in test_bug232227.html

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | dom/canvas/test/test_bug232227.html | Stand-in computed color: ActiveBorder is correct. - got "rgb(250, 250, 250)", expected "rgb(180, 180, 180)"
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/09b4766eb9a5
Derive a color scheme when forcing preference colors. r=morgan
Attachment #9270324 - Attachment description: WIP: Bug 1762018 - Attempt at a reftest. → Bug 1762018 - Reftest. r=morgan
Flags: needinfo?(emilio)

Backed out for causing reftest failures on no-system-colors-color-scheme.html.

Push with failures

Failure log
Reftest analyzer link

Backout link

''' INFO '''

In the test image, the letters from the second row are grey and they should have been white.

''' INFO '''

Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch

Hi Marco, is there something wrong with mach try auto and reftests? How can a new added reftest not run when push via mach try auto? https://treeherder.mozilla.org/jobs?repo=try&revision=2b1c15caea76837ed7ca033565c89553979d3795

Flags: needinfo?(emilio) → needinfo?(mcastelluccio)

The layout/reftests/high-contrast/reftest.list group was selected with 99% confidence, but unfortunately because of bug 1608836 the scheduler in m-c is not using reftest group selections but reftest task selections (which are far less precise).
Anyway, for modified tests, even when not selected, they are at least run by test-verify (in your push the group was run, for example, in test-linux1804-64-qr/debug-test-verify-gpu-fis-e10s).

Flags: needinfo?(mcastelluccio)

Beginning with yesterday's nightly, things are working again. And working better than they originally did! Text is now white / light grey on dark grey / black background, instead of the original black on white. And the settings page, that used to be black text on white is now also white / light grey on dark grey.

Thank you!

Sweet, thanks for confirming!

Status: RESOLVED → VERIFIED
Blocks: 1656363
Blocks: 1626679
Accessibility Severity: --- → s2
Whiteboard: [access-s2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: