Bug 244107

Summary: [WebAuthn] Conditional UI for webauthn autocomplete breaks with multiple input text fields
Product: WebKit Reporter: Kevin Flanagan <kevin.flanagan>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, cdumez, pascoe, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: Other   

Description Kevin Flanagan 2022-08-18 15:50:48 PDT
DescriptionKevin Flanagan 2022-08-18 09:01:21 PDT
On the latest nightly build of Webkit on macOS 13 beta 5 the conditional UI (https://github.com/w3c/webauthn/wiki/Explainer:-WebAuthn-Conditional-UI) functionality for Passkeys only works as long as there is only one <input> text field on the page.

Reproducing Steps:
1. Webpage with <input autocomplete="webauthn" >
2. Perform webauthn get with a conditional mediation:
navigator.credentials.get({
  mediation: 'conditional',
  publicKey: {
    challenge: <challengeFromServer>,
  }
});
3. Click into the input box - note that the conditional UI appears
4. Add a second <input type="text"> field to the page (with or without the autocomplete tag). 
5. Perform same webauthn get - the conditional UI autocomplete does not appear.
Comment 1 Radar WebKit Bug Importer 2022-08-25 15:51:14 PDT
<rdar://problem/99159442>
Comment 2 Brent Fulgham 2023-04-11 17:11:00 PDT
The cause of this bug was outside of WebKit code, so resolving as MOVED.

We believe this is fixed in iOS 16.4.1 and macOS 13.3.1.