Re: [webauthn] Add isPlatformAuthenticatorReady function to the API surface

Is this something you expect other credentials types to need in the future? It seems to be to be fairly specific to the `PublicKeyCredential` and the WebAuthn use case. Putting it on `navigator.credentials` seems overly generic.

Did you consider making it an attribute on `PublicKeyCredential`'s interface object instead, something kinda like what HTML is thinking about in https://github.com/whatwg/html/pull/1936?

```
partial interface PublicKeyCredential {
  [Unscopable] readonly attribute Promise<void> platformAuthenticatorReady;
}
```

Used as:

```
PublicKeyCredential.platformAuthenticatorReady.then(_ => {
  // Do stuff here.
});
```

-- 
GitHub Notification of comment by mikewest
Please view or discuss this issue at https://github.com/w3c/webauthn/pull/379#issuecomment-308037955 using your GitHub account

Received on Tuesday, 13 June 2017 07:58:12 UTC