Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

agl
Copy link

@agl agl commented Sep 4, 2022

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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2022

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.
@agl
Copy link
Author

agl commented Sep 4, 2022

(Never mind. Can't sign CLA so hopefully someone else will run into this same issue and fix it.)

@agl agl closed this Sep 4, 2022
@saschanaz
Copy link
Contributor

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 :(

@saschanaz
Copy link
Contributor

(Filed mdn/browser-compat-data#17827)

@christianb-cc
Copy link

(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 :)

@saschanaz

@saschanaz
Copy link
Contributor

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?

@agl
Copy link
Author

agl commented Feb 1, 2023

suggests it's not in Chrome

As the manager of Chrome's WebAuthn team I can confirm that Chrome supports it for public-key credentials.

@saschanaz
Copy link
Contributor

saschanaz commented Feb 1, 2023

In that case please file an issue on BCD and then it will be half-automatically added here.

@saschanaz
Copy link
Contributor

Actually it seems Chrome does have PublicKeyCredential.isConditionalMediationAvailable() but not Credential.isConditionalMediationAvailable(), is it somehow slipped? Anyway I'll go merge #1454.

@christianb-cc
Copy link

Actually it seems Chrome does have PublicKeyCredential.isConditionalMediationAvailable() but not Credential.isConditionalMediationAvailable(), is it somehow slipped? Anyway I'll go merge #1454.

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.

@saschanaz
Copy link
Contributor

#1454 is blocked on CLA too, it'll be helpful if you can file another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants