blob: 3e253e4915f700dc8f985485ff0ac0defacc6138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<script src="utils.js"></script>
<title>getGamepads should throw an error in a fenced frame</title>
<script>
const [key] = parseKeylist();
try {
navigator.getGamepads();
writeValueToServer(key, 'Expected exception but successed');
} catch (e) {
writeValueToServer(key, e.name);
}
</script>
</html>
|