blob: 45d113bb99515c5c7e9a5f4b0e0ed3cf0c3426b3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="/js-test-resources/js-test.js"></script>
<script>
description("Tests that third-party iframes cannot request access to device motion events.");
jsTestIsAsync = true;
// If prompted, allow.
if (window.testRunner)
testRunner.setShouldAllowDeviceOrientationAndMotionAccess(true);
onmessage = (_e) => {
e = _e;
shouldBeEqualToString("e.data", "denied");
finishJSTest();
};
</script>
<iframe src="http://localhost:8000/device-orientation/resources/request-motion-events.html"></iframe>
</body>
</html>