summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1453030.html
blob: 32be04ed1dfc37c7d4078dd355ad2c401f83ef1e (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
36
37
38
39
<html class="reftest-wait">
  <head>
    <script>
      let o3;

      var index = localStorage.index_1453030_html || 0;
      localStorage.index_1453030_html = ++index;

      function getDTMF () {
        try { o4 = o2.dtmf } catch(e) { }
        try { o4.insertDTMF("1BC1D55", new Uint32Array([3538134876])[0], new Uint32Array([666182017])[0]) } catch (e) { }

        setTimeout(finish, 0);
      }

      function finish() {
        try { o3.close(); } catch (e) {}
        document.documentElement.removeAttribute("class");
      }
      onbeforeunload = function() {
        try { o3.close(); } catch (e) {}
      }

      if (index == 1) {
        o1 = new RTCPeerConnection({ }, null)
        window.navigator.mediaDevices.getUserMedia({video: true, fake: true}).then((stream) => {
          o2 = o1.addTrack(stream.getVideoTracks()[0], stream)
        }).catch((error) => {})
        o3 = window.open("datr=0")
        setTimeout(getDTMF, 400)
        setTimeout(window.location.reload.bind(window.location), 500);
      } else {
        try { delete localStorage["index_1453030_html"]; } catch (e) {}
        finish();
      }

    </script>
  </head>
</html>