https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e2dc266c6bd1d441938dfe828d552542a0c0b2b7 authored by Geoffrey Sneddon on 09 April 2018, 14:44:16 UTC
fixup! Fix #2669: Add alternate_hosts
Tip revision: e2dc266
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