Closed Bug 1774661 Opened 3 years ago Closed 9 months ago

[wpt-sync] Sync PR 34471 - webauthn: Change PublicKeyCredentialType enum to DOMString type

Categories

(Core :: DOM: Web Authentication, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 34471 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/34471
Details from upstream follow.

Amos Lim <eui-sang.lim@samsung.com> wrote:

webauthn: Change PublicKeyCredentialType enum to DOMString type

PublicKeyCredentialType enum should be replaced with DOMString
in PublicKeyCredentialDescriptor and PublicKeyCredentialParameters
to comply to the spec.

In CredentialCreationOptions, if options.pubKeyCredParams's
size is non-zero and credTypesAndPubKeyAlgs is empty,
it should throw a "NotSupportedError" DOMException. [1]

[1] https://w3c.github.io/webauthn/#sctn-createCredential

Bug: 1122731
Change-Id: Ia20645561da332442fb398ebbfc1bc56687670c4
Reviewed-on: https://chromium-review.googlesource.com/3705259
WPT-Export-Revision: a914ecdbdaf57194c37162b49ab6c0ce214c94c2

Component: web-platform-tests → DOM: Web Authentication
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.