Closed Bug 1739699 Opened 4 years ago Closed 4 years ago

The New Update messes up Custom Colors specifically the "Use System Colors" Toggle When applying custom colors.

Categories

(Firefox :: Settings UI, defect)

Firefox 94
defect

Tracking

()

VERIFIED FIXED
94 Branch
Accessibility Severity s3
Tracking Status
firefox-esr91 --- unaffected
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- verified

People

(Reporter: james.hildebrand1, Assigned: emilio)

References

(Regression)

Details

(Keywords: access, regression)

Attachments

(8 files)

Attached image Screenshot (4).png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

Downloaded the new update from Nov. 5 , 2021

Actual results:

The new update forced all of my websites to white. The "Use System Colors" Toggle is Broken in Settings, when applying custom colors and selecting "Always"

Expected results:

The update should have updated seuccessfully and not forced me to find out why all my webpages were magically displaying in blinding white light (My windows color is set to Dark Mode). There is still clear evidence of this bug, as the Firefox settings is displaying in white, while my webpages are displaying my custom colors now.
The previous version had the settings page display in the same colors as my custom colors "Selected in Firefox 'Grey Background, Orange text'", but now this is an impossibility no matter which options are toggled, and settings are turned on or off.

Attached image Screenshot (6).png

The other two pictures demonstrate that the settings screen is not applying either system colors, or custom colors. The only way to get system colors to show is to disable all custom colors. This is a bug. Because then system colors will apply whether the Toggle is applied or not.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Application Update' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Application Update
Product: Firefox → Toolkit

Thanks for the report. I'm pretty sure this is not an issue with the update itself, so I'm moving this out to what I hope is the right component.

Component: Application Update → Preferences
Product: Toolkit → Firefox
Target Milestone: --- → 94 Branch

We suspect this is a regression from bug 1728187.

Regressed by: 1728187
Has Regression Range: --- → yes

:emilio I think this is expected behaviour -- foreground/background are still black/white with windows dark mode enabled, right?
flagging for awareness

Flags: needinfo?(emilio)

So, hold up, there are different things going on here:

  • System colors toggle changing (breaking your custom colors): that's from bug 1593273, I believe.
  • about:preferences not honoring those. I believe that's expected because about:preferences is using system colors on Windows and we honor those when forcing colors as per spec.
  • about:preferences being light (the "use system colors" checkbox not having dark colors). I believe that's expected in Firefox 94 because it doesn't have bug 1733569 and Windows doesn't have native dark mode support. If you use a windows high-contrast theme then it should behave as you expect as that does change system colors.
  • Other websites being light even though you're in OS dark mode and forcing colors. That is expected as per the above.

So yeah, I believe that's expected. In beta and Nightly about:preferences is dark as well (so that covers (2) and (3)). When forcing colors, we could make regular websites dark too, let me see how that'd look like.

Keywords: access
Whiteboard: [access-s3]

This causes (among other things) pages to be dark when using regular
windows system colors and forcing colors to "always", which is nice.

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

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

Status: UNCONFIRMED → NEW
Ever confirmed: true

:emilio I'm a bit concerned about this patch in light of bug 1740850. This might be work to spin off there.
Can you point me to some websites this should affect? I'm assuming sites with color-scheme meta tags will change, but I don't have a shortlist of those to check 😀 I looked at google (search, images, news) and bugzilla, but I'm not sure if those are good test cases.

In nightly, on MacOS I'm seeing the following:

  • No FF HCM > about:preferences doesn't seem to respond to "use system colors". When my OS is dark, preferences is dark using (I assume?) the FF dark theme colors (not my OS colors). When my OS is light, preferences is light with the FF theme colors.
  • With FF HCM > about:preferences is dark using OS colors when my OS is dark, light when my OS is light. I don't see a difference between light mode here and light mode without FF HCM -- but the dark modes are different. This doesn't change with/without "use system colors"

With your patch, on MacOS I get:

  • No FF HCM > about:prefs is dark with FF colors when my OS is dark, light when my OS is light. Use system colors doesn't seem to change this.
  • With FF HCM:
    • Without use system colors > about:preferences is always light
    • With use system colors > about:preferences is light when OS is light and dark (with OS colors) when OS is dark.

The dark mode color inconsistencies should probably be addressed in bug 1740850, but I'm wondering if the "always light" without system colors is better than what we have now -- if about:preferences is always themed either dark or light and NOT themed by user-customized colors in the colors dialog, are we better to err on the side of caution and leave this behaviour as-is? I'm wondering if we could be harming photosensitive users who expect about:preferences to match their customised colors when system colors isn't checked (I know this is maybe an incorrect expectation, given how we think about our about: pages vs. web content, but still wondering). Even with a system dark mode, if they uncheck 'use system colors', they'll get the light version of the page.

Screenshots are all "Always" with "Use system colors" without OS HCM enabled

I get that for testing Linux :-)

Will take a look, that's not the expected rendering of course, it's expected that backgrounds and so on are dark.

Flags: needinfo?(emilio)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #16)

I get that for testing Linux :-)

Will take a look, that's not the expected rendering of course, it's expected that backgrounds and so on are dark.

I figured 😄 lemme know if I can get ya any more info on what I'm seeing here. happy to test other sites too

Ah, I had a local change that I had forgotten to push to make the color functions in here to follow the default color-scheme.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/498dca8a1373 Use preferred color scheme when forcing colors with system colors (except windows HCM). r=morgan
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Morgan, your call re. comment 21. If there aren't too many betas left might be worth letting it ride the trains but maybe you have different opinions :)

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

(In reply to Emilio Cobos Álvarez (:emilio) from comment #22)

Morgan, your call re. comment 21. If there aren't too many betas left might be worth letting it ride the trains but maybe you have different opinions :)

Yeah, let's let this ride the trains. It isn't risky per-say but HCM is rickety and it might uncover some other issues we wanna fix before it hits release.

Flags: needinfo?(mreschenberg)
Flags: qe-verify+

I was able to reproduce the white screens on Win10 using build 94.0(20211025164031) and OS dark theme.
Issue is fixed on Win10/Ubuntu 20.4 using build 96.0b4 (20211212185725) and OS dark theme.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Accessibility Severity: --- → s3
Whiteboard: [access-s3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: