Closed Bug 1730592 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 30700 - [SPCWPT] Getting payment-credential should cause NotAllowedError

Categories

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

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Liquan (Max) Gu <maxlg@chromium.org>' wrote:

[SPCWPT] Getting payment-credential should cause NotAllowedError

The SPC spec specifies that getting credential with payment extension
should cause NotAllowedError[1]:

"When making an assertion with a AuthenticationExtensionsPaymentInputs
extension_inputs: If not in a "secure-payment-confirmation" payment
handler, return a "NotAllowedError" DOMException..."

But the implementation throws NotSupportedError in this case. This CL
aligns the implementation to the spec.

[1] https://www.w3.org/TR/secure-payment-confirmation/#sctn-payment-extension-registration

Change-Id: I977ca63d254dd4e2e7b346cae423d001c1409d47

Reviewed-on: https://chromium-review.googlesource.com/3158922
WPT-Export-Revision: 6ee1523878a792097280471d775e1c5b7528fc53

Component: web-platform-tests → DOM: Web Authentication
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 9 subtests

Status Summary

Firefox

TIMEOUT: 2
NOTRUN : 7

Chrome

OK : 1
PASS : 8
FAIL : 1

Safari

ERROR : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/webauthn/getcredential-extensions.https.html: TIMEOUT (Chrome: OK, Safari: ERROR)
Bad extensions: extensions is string: TIMEOUT (Chrome: PASS)
extensions is null: NOTRUN (Chrome: PASS)
extensions is empty Array: NOTRUN (Chrome: PASS)
extensions is empty ArrayBuffer: NOTRUN (Chrome: PASS)
ignored extension: NOTRUN (Chrome: PASS)
extension ID too long: NOTRUN (Chrome: PASS)
credProps is only supported at registration: NOTRUN (Chrome: PASS)
Payment extension is only supported at registration: NOTRUN (Chrome: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a02a47cfbccd [wpt PR 30700] - [SPCWPT] Getting payment-credential should cause NotAllowedError, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.