forked from mirrors/gecko-dev
Bug 1870113 - remove the webauthn conditional mediation unsupported wpt. r=keeler
The test removed here incorrectly assumes that conditional mediation can only be offered in the presence of a platform authenticator. Conditional mediation can always be offered. Differential Revision: https://phabricator.services.mozilla.com/D196590
This commit is contained in:
parent
32d68b87c3
commit
f41c93f550
2 changed files with 1 additions and 18 deletions
|
|
@ -3,7 +3,3 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "android": FAIL
|
if os == "android": FAIL
|
||||||
PASS
|
PASS
|
||||||
[Conditional mediation not supported]
|
|
||||||
expected:
|
|
||||||
if os == "android": PASS
|
|
||||||
FAIL
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,7 @@
|
||||||
<script>
|
<script>
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// Test that a configuration that must support conditional mediation reports
|
// Test that conditional mediation is supported.
|
||||||
// supporting it.
|
|
||||||
virtualAuthenticatorPromiseTest(async t => {
|
virtualAuthenticatorPromiseTest(async t => {
|
||||||
assert_own_property(window.PublicKeyCredential, "isConditionalMediationAvailable");
|
assert_own_property(window.PublicKeyCredential, "isConditionalMediationAvailable");
|
||||||
assert_true(await window.PublicKeyCredential.isConditionalMediationAvailable());
|
assert_true(await window.PublicKeyCredential.isConditionalMediationAvailable());
|
||||||
|
|
@ -22,16 +21,4 @@ virtualAuthenticatorPromiseTest(async t => {
|
||||||
transport: "internal",
|
transport: "internal",
|
||||||
}, "Conditional mediation supported");
|
}, "Conditional mediation supported");
|
||||||
|
|
||||||
// Test that a configuration that cannot possibly support conditional mediation
|
|
||||||
// does not report supporting it.
|
|
||||||
virtualAuthenticatorPromiseTest(async t => {
|
|
||||||
assert_own_property(window.PublicKeyCredential, "isConditionalMediationAvailable");
|
|
||||||
assert_false(await window.PublicKeyCredential.isConditionalMediationAvailable());
|
|
||||||
}, {
|
|
||||||
protocol: "ctap2",
|
|
||||||
hasResidentKey: false,
|
|
||||||
hasUserVerification: false,
|
|
||||||
transport: "nfc",
|
|
||||||
}, "Conditional mediation not supported");
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue