blob: 034595ebdb627313c29532c7ecd1d647031ff049 [file] [log] [blame] [edit]
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Gamepad Test: non-secure contexts</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
assert_false("getGamepads" in Navigator.prototype, "not in prototype");
assert_false("getGamepads" in navigator, "not on instance");
}, "Gamepad API is not exposed in insecure contexts");
</script>