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