blob: 3d9e53c6707d8133013c4e8707a8831f0c7cda5f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// localhost is secure by default.
internals.markContextAsInsecure();
test(() => {
assert_equals(self.crypto.subtle, undefined);
assert_false("subtle" in self.crypto);
}, "Non-secure context window does not have access to crypto.subtle");
</script>
</body>
</html>