Revision e5dc8cdd0af144fc9566677f16b2b10fec07732f authored by kritisingh1 on 03 April 2018, 16:06:36 UTC, committed by kritisingh1 on 03 April 2018, 16:06:36 UTC
1 parent 7c51ebb
Raw File
wakelock-insecure-context.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Wake Lock API is not exposed in an insecure context</title>
<link rel="help" href="https://w3c.github.io/wake-lock/#wake-locks">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>

test(t => {
  assert_false("getWakeLock" in navigator, "'getWakeLock' must not be exposed");
}, "Wake Lock API is not exposed in an insecure context");

</script>
back to top