Closed Bug 1892553 Opened 1 year ago Closed 1 year ago

WPT failures in /webauthn/createcredential-pubkeycredparams.https.html

Categories

(Core :: DOM: Web Authentication, defect, P5)

defect

Tracking

()

RESOLVED FIXED
127 Branch
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?

Flags: needinfo?(jschanck)

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.

Severity: -- → S4
Flags: needinfo?(jschanck)
Priority: -- → P5

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.

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: nobody → twisniewski
Status: NEW → ASSIGNED
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46105 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: