OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Credential Manager: PasswordCredential SecureContext.</title> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script src="/serviceworker/resources/interfaces.js"></script> |
| 6 <script> |
| 7 if (window.location.hostname == "127.0.0.1") { |
| 8 window.location = "http://example.test:8000/credentialmanager/credentialscon
stainer-securecontext.html"; |
| 9 } else { |
| 10 // After redirect, we are in an insecure context, so navigator.credentials |
| 11 // should be unavailable. |
| 12 test(function () { |
| 13 assert_equals(undefined, navigator.credentials); |
| 14 }, 'CredentialsContainer unavailable in insecure context'); |
| 15 } |
| 16 </script> |
OLD | NEW |