summaryrefslogtreecommitdiffstats
path: root/dom/ipc/tests/file_cancel_content_js.html
blob: d2caf03c6aee2115718eff3e8bbbe3959606fd2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
  <head>
    <title>Wait for it...</title>
  </head>
  <body>
  Try to go to another page.
  <script>
    addEventListener("StartLongLoop", function() {
      setTimeout(() => {
        const start = Date.now();
        while (Date.now() - start < 7500);
        window.dispatchEvent(new CustomEvent("LongLoopEnded"));
      });
    });
  </script>
  </body>
</html>