swh:1:snp:b37d435721bbd450624165f334724e3585346499
Raw File
Tip revision: aa55daaf59e0a6408467a84104c68b6016067a59 authored by Josh Matthews on 26 September 2018, 15:25:34 UTC
Whitelist duplicate CSS reference tests.
Tip revision: aa55daa
EventListener-incumbent-global-subsubframe.sub.html
<!DOCTYPE html>
<script>
  function getTheListener() {
    return postMessage.bind(this, "respond", "*", undefined)
  }
  document.domain = "{{host}}";
  onmessage = function (e) {
    if (e.data == "sendclick") {
      document.body.click();
    } else {
      parent.postMessage(
        {
          actual: e.origin,
          expected: "{{location[scheme]}}://{{domains[www1]}}:{{ports[http][0]}}",
          reason: "Incumbent should have been the caller of addEventListener()"
        },
        "*")
    };
  }
</script>
back to top