Closed Bug 1866120 Opened 2 years ago Closed 2 years ago

The webcompat reporter's confirmation screen is not readable in some combinations of High Contrast and Browser Themes on Windows

Categories

(Firefox :: General, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
122 Branch
Accessibility Severity s2
Tracking Status
firefox-esr115 --- disabled
firefox120 --- disabled
firefox121 --- verified
firefox122 --- verified

People

(Reporter: danibodea, Assigned: itiel_yn8)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(2 files)

Found in

  • Beta v121.0b1

Affected versions

  • Nightly v121.0a1
  • Beta v121.0b1

Tested platforms

  • Affected platforms: Windows 10
  • Unaffected platforms: MacOS, Ubuntu

Steps to reproduce

  1. Make sure new webcopmpat feature is enabled:
    ui.new-webcompat-reporter.enabled = true
  2. Enable High Contrast White in Windows
  3. Enable the Dark Theme in Firefox
  4. Load any webpage
  5. Go to Hamburger Menu / Report broken site
  6. Sent a report and observe the confirmation screen.

Expected result

  • The confirmation screen is properly displayed.

Actual result

  • The text color contrast is incorrect and unreadable.

Regression range

  • not a regression, but an implementation flaw.

Additional information

  • The combinations of faulty behaviors:
  1. HC-White + AlpenglowTheme
  2. HC-White + Dark Theme
  3. HC-Black + Light Theme

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

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

Component: General → Theme
Attached image HC vs theme.png
Component: Theme → General

Marking it as access-s2 since the text would not be accessible for HCM users.

Using CanvasText for the foreground color and Canvas for the background for text, and ButtonText and ButtonFace color combination in prefers-contrast query could resolve the issue. Refer to the HCM playground (NDA'ed link) for examples of expected view on Windows 10 and 11 with different HCM themes on

Accessibility Severity: --- → s2

The severity field for this bug is set to S3. However, the accessibility severity is higher, .
:mossop, could you consider increasing the severity?

For more information, please visit BugBot documentation.

Flags: needinfo?(dtownsend)
Severity: S3 → S2
Flags: needinfo?(dtownsend)

Thomas, itiel, if either of you are available to get to this soon enough, we could consider requesting an uplift.

Assignee: nobody → itiel_yn8
Flags: needinfo?(twisniewski)
Flags: needinfo?(itiel_yn8)

It's next on my docket. I was hoping to get a patch together tomorrow, but we'll see.

Flags: needinfo?(twisniewski)
Flags: needinfo?(itiel_yn8)
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb86f35848f6 do not use color-background-success for the Report Broken Site confirmation screen if @media(prefers-contrast); r=Gijs,desktop-theme-reviewers,Itiel
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

This fix has been verified in Nightly v122.0a1 from 2023-12-06. Branch 121 is not fixed.

Comment on attachment 9367048 [details]
Bug 1866120 - do not use color-background-success for the Report Broken Site confirmation screen if @media(prefers-contrast); r?gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Users with certain high contrast configurations may not be able to see some the text on the Report Broken Site feature's confirmation dialog.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The Report Broken Site feature is not enabled by default in 121.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9367048 - Flags: approval-mozilla-beta?

Comment on attachment 9367048 [details]
Bug 1866120 - do not use color-background-success for the Report Broken Site confirmation screen if @media(prefers-contrast); r?gijs

Approved for 121.0b9.

Attachment #9367048 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I have verified this fix in Beta v121.0b9 taken from treeherder. COnfirmation message is now readable in the mentioned combinatins of theme and screen reader.

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

Attachment

General

Created:
Updated:
Size: