blob: 726b289fbd18e8bd7646f2d6ad0b88b718c16293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src=helpers.js></script>
<script>
"use strict";
virtualAuthenticatorPromiseTest(async t => {
const cred = await navigator.credentials.get({publicKey: {
challenge: new Uint8Array(),
allowCredentials: [{
id: (await createCredential()).rawId,
type: "public-key",
}],
}});
return promise_rejects_dom(t, "NotSupportedError", navigator.credentials.store(cred));
}, {}, "navigator.credentials.store() throws NotAllowedError with a public key credential");
</script>
|