summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1429507_2.html
blob: 3c3310d9598bc8219b749d630c46952df800866c (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
<html class="reftest-wait">
  <body>
    <script>
      let o1;
      let p1, p2;
      window.addEventListener("MozReftestInvalidate", finish);
      try { o1 = window.open("") } catch(e) { }
      try { o1.location.reload() } catch(e) { }
      try { o2 = o1.navigator } catch(e) { }
      try { o3 = o2.mediaDevices } catch(e) { }
      try { o4 = new XMLHttpRequest() } catch(e) { }
      try { p1 = o3.getUserMedia({video: true, fake: true }).then((stream) => {}).catch((error) => {}) } catch (e) {}
      try { o4.open("T", "aa", false) } catch(e) { }
      try { o4.send() } catch(e) { }
      try { p2 = o3.getUserMedia({video: true}).then((stream) => {}).catch((error) => {}) } catch (e) {}

      async function finish() {
        try {
          await p1;
        } catch (e) {}
        try {
          await p2;
        } catch (e) {}
        try {
          o1.close();
        } catch (e) {}
        document.documentElement.className = "";
      }
    </script>
  </body>
</html>