summaryrefslogtreecommitdiffstats
path: root/docshell/test/mochitest/file_bug540462.html
blob: ab8c07eba506c8b6c1a54c5ff61c7b3ff3fce989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
  <head>
    <script>
    // <!--
    function test() {
      document.open();
      document.write(
      `<html>
        <body onload='opener.documentWriteLoad(); rel();'>
          <a href='foo.html'>foo</a>
          <script>
            function rel() { setTimeout('location.reload()', 0); }
          <\/script>
        </body>
      </html>`
      );
      document.close();
    }
    // -->
    </script>
  </head>
  <body onload="setTimeout('test()', 0)">
    Test for bug 540462
  </body>
</html>