securecontext.https.html (978B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>WebAuthn Secure Context Tests</title> 4 <link rel="author" title="Adam Powers" href="mailto:adam@fidoalliance.org"> 5 <link rel="help" href="https://w3c.github.io/webauthn/#iface-credential"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src=helpers.js></script> 9 <body></body> 10 <script> 11 "use strict"; 12 13 // See https://www.w3.org/TR/secure-contexts/ 14 // Section 1.1 - 1.4 for list of examples referenced below 15 16 // Example 2 17 // https://example.com/ opened in a top-level browsing context is a secure context, as it was delivered over an authenticated and encrypted channel. 18 test (() => { 19 assert_true (typeof navigator.credentials === "object" && typeof navigator.credentials.create === "function"); 20 }, "navigator.credentials.create exists in secure context"); 21 22 // Example 3: TODO 23 // Example 5: TODO 24 // Example 8: TODO 25 // Example 10: TODO 26 // Example 11: TODO 27 28 </script>