Closed Bug 1878071 Opened 1 year ago Closed 1 year ago

Very hard to see icons of autofill passkey entries saved in iCloud with dark theme

Categories

(Core :: DOM: Web Authentication, defect)

Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- unaffected
firefox123 --- verified
firefox124 --- verified

People

(Reporter: bmaris, Assigned: jschanck)

References

Details

Attachments

(3 files)

Found in

  • Latest Nightly 124.0a1

Affected versions

  • Latest Nightly 124.0a1
  • Firefox 123.0b4

Tested platforms

  • Affected platforms: MacOS 13
  • Unaffected platforms: Windows 11, Ubuntu 22.04

Preconditions

  • Have security.webauthn.enable_macos_passkeys set to true in mac 13 or mac 14
  • Have a iClould account connected to the used Mac.
  • Have the Dark theme active in Firefox.

Steps to reproduce

  1. Visit https://webauthn.io/
  2. Use a few usernames to register
  3. Click the textarea where the username is entered.

Expected result

  • All the passkey entries are easy visible in the autofill menu.

Actual result

  • The icon of the passkeys is very hard to see when having the dark theme active..

Regression range

  • Not a regression, this was introduced along with the Conditional Mediation feature enabled in bug 1865379 in Nightly 2024-01-17.

Additional notes

  • The icons are clearly visible using the Light theme.

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

:victoria, thoughts on this?

Flags: needinfo?(victoria)

Hi! There should be a primary "Default" icon color in both dark and light mode, which matches other icons in Firefox. There should be a variable for #FBFBFE icons in dark mode.

Flags: needinfo?(victoria)

If I understand correctly then, the issue is that the svg has three explicit fill="black" attributes. The image in Comment 4 is what I get if I change those to fill="context-fill". Is that the right change to make?

Yes, that looks good!

Assignee: nobody → jschanck
Status: NEW → ASSIGNED
Pushed by jschanck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81fbc704e4b7 use context-fill color for passkey icon. r=keeler
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

The patch landed in nightly and beta is affected.
:jschanck, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox123 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jschanck)

Comment on attachment 9377808 [details]
Bug 1878071 - use context-fill color for passkey icon. r=keeler

Beta/Release Uplift Approval Request

  • User impact if declined: The passkey icon in the autofill dropdown is the wrong color in dark mode.
  • Is this code covered by automated tests?: No
  • 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): Not risky. SVG-only change.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(jschanck)
Attachment #9377808 - Flags: approval-mozilla-beta?

Comment on attachment 9377808 [details]
Bug 1878071 - use context-fill color for passkey icon. r=keeler

Approved for 123 beta 7, thanks.

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

Looking good on both Latest Nightly 124.0a1 and Firefox 123.0b7 on macOS 13.6 with both light and dark theme, high contrast and inverted colors etc.

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

Attachment

General

Created:
Updated:
Size: