Sign in
webkit
/
WebKit
/
0f9dda3eb5e8bee1224032800f3b156cd5ce812d
/
.
/
LayoutTests
/
http
/
tests
/
device-orientation
/
resources
/
request-motion-events.html
blob: 76f28713b815d961d8d86ecfdcfec8ccc0bbc08f [
file
] [
log
] [
blame
]
<!DOCTYPE html>
<html>
<body>
<script>
addEventListener
(
"devicemotion"
,
()
=>
{});
internals
.
withUserGesture
(()
=>
{
DeviceMotionEvent
.
requestPermission
().
then
((
result
)
=>
{
top
.
postMessage
(
result
,
"*"
);
});
});
</script>
</body>
</html>