summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe-contents.sub.html
blob: 8ac0a264dbc1d2b2d9a45ad8e51e3bfbc064254d (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.postMessage(referer);
      document.querySelector("div").textContent = `Referer header: ${referer}`;
    </script>
  </body>
</html>