Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /digital-credentials/non-secure-contexts.http.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Digital Credentials: non-secure contexts</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
assert_false(isSecureContext, "This test must run in an insecure context.");
assert_false("DigitalCredential" in self, "DigitalCredential must not be exposed in non-secure contexts.");
}, "When in a non-secure context, there is no access to digital credentials.");
</script>