require_securecontext.html (505B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Test that Credential Management requires secure contexts</title> 4 <link rel="help" href="https://w3c.github.io/webappsec-credential-management/#idl-index"> 5 <script src=/resources/testharness.js></script> 6 <script src=/resources/testharnessreport.js></script> 7 <script> 8 "use strict"; 9 test(() => { 10 assert_false(isSecureContext); 11 assert_false('credentials' in navigator); 12 }, "Credential Management must not be accessible in insecure contexts"); 13 </script>