<!DOCTYPE html>
<html>
<body>
<script>
addEventListener("devicemotion", () => {});

internals.withUserGesture(() => {
    DeviceMotionEvent.requestPermission().then((result) => {
        top.postMessage(result, "*");
    });
});
</script>
</body>
</html>
