<!DOCTYPE html> | |
<iframe src="{{location[scheme]}}://{{domains[www2]}}:{{ports[http][0]}}{{location[path]}}/../EventListener-incumbent-global-subsubframe.sub.html"></iframe> | |
<script> | |
document.domain = "{{host}}"; | |
onmessage = function(e) { | |
if (e.data == "start") { | |
frames[0].document.body.addEventListener("click", frames[0].postMessage.bind(frames[0], "respond", "*", undefined)); | |
frames[0].postMessage("sendclick", "*"); | |
} else { | |
parent.postMessage(e.data, "*"); | |
} | |
} | |
</script> |