Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /screen-wake-lock/wakelock-insecure-context.any.html - WPT Dashboard Interop Dashboard
- /screen-wake-lock/wakelock-insecure-context.any.worker.html - WPT Dashboard Interop Dashboard
//META: title=Wake Lock API is not exposed in an insecure context
test(() => {
assert_false("WakeLock" in self, "'WakeLock' must not be exposed");
}, "Wake Lock API is not exposed in an insecure context");