Closed Bug 1954181 Opened 7 months ago Closed 7 months ago

"browser.display.foreground_color" preference doesn't change the text color anymore

Categories

(Core :: Disability Access APIs, defect)

Firefox 138
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox136 --- unaffected
firefox137 --- ?
firefox138 --- affected

People

(Reporter: Sasha, Unassigned)

References

Details

Looks like the "browser.display.foreground_color" preference stopped changing the default text color. It works for me in the stable version 136.0.1. But it doesn't work in the Nightly.

Since the status is marked as affected for nightly and as unaffected for release, is it affected or unaffected for beta?
For more information, please visit BugBot documentation.

I can reproduce the behavior-difference, using e.g.
"good" (i.e. text is green)
mozregression --pref "browser.display.foreground_color:#008800" --launch 2025-01-01 -a example.org
"bad" (text is black):
mozregression --pref "browser.display.foreground_color:#008800" --launch 2025-03-14 -a example.org

mozregression traces this to bug 1898096 which appears to have been a rework of how colors are represented per https://blog.monotonous.org/2025/03/06/New-Contrast-Control-Settings/ , so I suspect the fact that this pref no longer "works" might be things working-as-expected (and there are new ways to control colors as detailed in that blog post).

eeejay, could you take a look and confirm whether this is expected?

Component: CSS Parsing and Computation → Disability Access APIs
Depends on: 1898096
Flags: needinfo?(eitan)
OS: macOS → All
Hardware: x86_64 → All

Does the color selection work if the following is set in about:preferences?
General Tab > Contrast Control (formerly Colors) > select "Custom" option instead of "Automatic" or "Off"

(In reply to Daniel Holbert [:dholbert] from comment #2)

mozregression traces this to bug 1898096 which appears to have been a rework of how colors are represented per https://blog.monotonous.org/2025/03/06/New-Contrast-Control-Settings/ , so I suspect the fact that this pref no longer "works" might be things working-as-expected (and there are new ways to control colors as detailed in that blog post).

eeejay, could you take a look and confirm whether this is expected?

Correct, this is the expected behavior now. Changing the colors in pref doesn't do anything outside of custom high contrast mode.

Flags: needinfo?(eitan)

I'm going to close this as wontfix 😬 Please let me know if this is a problem.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.