WPT failures in /webauthn/createcredential-pubkeycredparams.https.html
Categories
(Core :: DOM: Web Authentication, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: twisniewski, Assigned: twisniewski)
References
Details
Attachments
(1 file)
We're failing four tets in this WPT:
It's just because we're not throwing a TypeError, but rather a SecurityError.
We can pass the tests by just changing this line to something like:
promise->MaybeRejectWithTypeError("No supported types in pubKeyCredParams");
But I think the test is wrong, and should expect a NotSupportedError as we fail with, as per https://www.w3.org/TR/webauthn-2/#ref-for-list-is-empty%E2%91%A1
What do you think, :jschanck?
Comment 1•1 year ago
|
||
Yes, the test is wrong. There's an open pull request to fix it: https://github.com/web-platform-tests/wpt/pull/34471, although there's no activity on it recently. We can try to move that along.
| Assignee | ||
Comment 2•1 year ago
|
||
Sure, I've commented on the related crbug to see if they would mind me adjusting the test's expectations early, given that their bug has stalled.
| Assignee | ||
Comment 3•1 year ago
|
||
They replied to go for it, so since we pass their proposed WPT changes in https://github.com/web-platform-tests/wpt/pull/34471/files, I think we ought to just land that patch (but that patch requires an modification to add quotes to NotSupportedError error, so I can't just merge it as-is, so I'll add a revised patch here with just that change compared to their proposed commit).
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
| bugherder | ||
Description
•