blob: f54ab3343cf0242705122f19c31aeb2f95754b90 [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/js-test-pre.js"></script>
<script src="/resources/notifications-test-pre.js"></script>
<p id="description"></p>
<div id="console"></div>
<iframe id="testFrame" src="resources/request-in-detached-frame-subframe.html"></iframe>
<script>
description("This test checks accessing Notification.permission in a detached iframe.");
if (window.testRunner)
testRunner.waitUntilDone();
onload = () => {
testFrame.contentWindow.postMessage("foo", "*");
setTimeout(() => {
testCompleted();
}, 100);
};
</script>