summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/xhr-with-pagehide-1.html
blob: 86f074868f7e3297706e8a10b3f4ddc9cf889f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <title>
    Crashtest to make sure that a sync XHR during pageload doesn't prevent
    pagehide event from firing.
  </title>
  <script>
    function finishTest() {
      // Visual indication that we got this far, for humans viewing the test:
      document.documentElement.style.backgroundColor = "lime";

      // Actually finish the test:
      document.documentElement.className = "";
    }
  </script>
</head>
<body>
  <iframe src="xhr-with-pagehide-1-helper.html"></iframe>
</body>
</html>