Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ single_test: true });
function handleEvent(e) {
assert_equals(e.data, 'pass');
done();
}
function on_iframe_load() {
var frameWin = document.getElementById('confirmFrame').contentWindow;
frameWin.postMessage('Confirm', '*');
}
window.addEventListener('message', handleEvent);
</script>
<body>
<iframe id='confirmFrame'
onload='on_iframe_load()'></iframe>
</body>
</html>