Bug 287686
| Summary: | autocomplete="email" doesn't work when it also contains "webauthn" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jesper van den Ende <jespertheend> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | akeerthi, cdumez, nitinmahendru, pascoe, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | macOS 14 | ||
Jesper van den Ende
Our site has a passwordless login screen, which allows us to use a single interface for both logging in and registering a new account.
But since we'd like to autofill passkeys with as little friction as possible, we need to include the "webauthn" autocomplete parameter as well.
However, this seems to completely break the autofilling of any email addresses.
I'm also seeing this on iOS 18.3.1
Steps to reproduce:
1. Visit https://webauthn-plus-email-autocomplete.glitch.me/
2. Click the 'Email' text field
3. Start typing your email address
Expected:
The field autocompletes with an email address or a list of email addresses
For reference, you can check the 'control' page to see what the autofill list should look like
Actual:
No autocompletion whatsoever
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jesper van den Ende
It seems like older versions of safari also have broken email autocomplete when the address bar contains the text 'login', I've added some more pages to test some things.
I also found another bug where webauthn autocomplete appears in input elements which only have autocomplete="email" (without webauthn).
This doesn't happen in Technology Preview though, since webauthn autofill is completely broken for me in TP. (https://bugs.webkit.org/show_bug.cgi?id=287685)
Radar WebKit Bug Importer
<rdar://problem/145266070>
pascoe@apple.com
*** This bug has been marked as a duplicate of bug 286978 ***