summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe-postmessage-to-parent-parent.sub.html
blob: 25c4af19a3e2296cbbbcb31755e5f4ce0c3ea510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html>
  <head>
    <title>Resource file for test of Referer with location.replace</title>
  </head>
  <body>
    <div></div>
    <script>
      const referer = "{{header_or_default(referer, missing)}}"
      window.parent.parent.postMessage(referer);
      document.querySelector("div").textContent = `Referer header: ${referer}`;
    </script>
  </body>
</html>