https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 692d06d8abb80685ed82a207400a91e90570e966 authored by Jonathon Kereliuk on 03 April 2018, 17:34:40 UTC
remove junk
Tip revision: 692d06d
EventListener-incumbent-global-subframe-1.sub.html
<!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>
back to top