[webauthn] Conditional Mediation feature discovery should really return a promise (#1745)

nsatragno has just created a new issue for https://github.com/w3c/webauthn:

== Conditional Mediation feature discovery should really return a promise ==
_(filing a new issue for this as it's a small change and I don't want to pile more stuff on the conditional mediation issue / pr)_

@emlun [pointed out](https://github.com/w3c/webauthn/pull/1576/files#r750426635) that since `isUserVerifyingPlatformAuthenticatorAvailable()` returns a promise, maybe `isConditionalMediationAvailable()` should return a promise as well. I said no because the browser could figure this out quickly without blocking, but after implementing, I realized I was wrong (-:. The details are that on Windows, we'll gate availability on dynamically determining if the webauthn DLL exposes required functions, which is slow.

Let's have `isConditionalMediationAvailable` return a `Promise<bool>` with the availability instead.

Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1745 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 10 June 2022 20:28:42 UTC