summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/801227.html
blob: 2dded54510dcb2f62b36f50664f7a2fadc47c163 (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
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML>
<html class="reftest-wait">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=801227
-->
<head>
  <meta charset="utf-8">
  <title>Abort due to page reload</title>
  <script type="application/javascript">
    var pc = new RTCPeerConnection();

    var index = localStorage.index || 0;
    if (index < 3) {
      localStorage.index = index + 1;
      window.location.reload();
    }

    function finish() {
      delete localStorage["index"];

      pc.close();
      document.documentElement.removeAttribute("class");
    }

    navigator.mozGetUserMedia({ audio: true, fake: true }, function (aStream) {
      pc.addStream(aStream);
      finish();
    }, finish);
  </script>
</head>

<body>
</body>
</html>