blob: 4b185fd3a7443bc19fcd929abf60240f47666a1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
// Currently, the Sanitizer requires a secure context.
test(t => {
assert_false(globalThis.isSecureContext);
assert_equals("Sanitizer" in globalThis, globalThis.isSecureContext);
assert_equals("setHTML" in document.body, globalThis.isSecureContext);
}, "Sanitizer API in an insecure context.");
</script>
</body>
</html>
|