-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't drop "conditional" from CredentialMediationRequirement. #1391
Conversation
Thanks for the PR! This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged. |
This removal was added in c06ba31 without a specific commit message. The comment says that this enum value depends on `isConditionalMediationAvailable`, which is true, but a number of APIs depend on feature detection yet are not removed. This enum value is supported in Safari (as of iOS 16 & macOS 13) and Chromium and, without this change, developers will have to cast "conditional" whenever used.
(Never mind. Can't sign CLA so hopefully someone else will run into this same issue and fix it.) |
That "depends on" comment is not about feature detection but about the support status of the corresponding IDL attribute. In other words, it should exist only if the attribute exists. Unfortunately I haven't really automated this so far :( |
(Filed mdn/browser-compat-data#17827) |
Looks like it is supported by Chrome, and Safari now. Are we able to bump this? Trying to use TypeScript with a webauthn implementation :) |
https://github.com/mdn/browser-compat-data/blob/e0f7feac0db49548fa953beb605f03c3814d4a82/api/Credential.json#L79 suggests it's not in Chrome, can you file a bug there if Chrome indeed supports it? |
As the manager of Chrome's WebAuthn team I can confirm that Chrome supports it for public-key credentials. |
In that case please file an issue on BCD and then it will be half-automatically added here. |
Actually it seems Chrome does have |
Excellent, thank you, also sorry for commenting on the wrong thread. I had multiple PRs open and got confused. I intended to comment on #1454. |
#1454 is blocked on CLA too, it'll be helpful if you can file another PR. |
This removal was added in c06ba31
without a specific commit message. The comment says that this enum value
depends on
isConditionalMediationAvailable
, which is true, but anumber of APIs depend on feature detection yet are not removed.
This enum value is supported in Safari (as of iOS 16 & macOS 13) and
Chromium and, without this change, developers will have to cast
"conditional" whenever used.