Bug 1946184 - Fix computing the CSD margin right after calling HideWindowChrome(...
[gecko.git] / dom / media / tests / crashtests / 1429507_2.html
blob3c3310d9598bc8219b749d630c46952df800866c
1 <html class="reftest-wait">
2 <body>
3 <script>
4 let o1;
5 let p1, p2;
6 window.addEventListener("MozReftestInvalidate", finish);
7 try { o1 = window.open("") } catch(e) { }
8 try { o1.location.reload() } catch(e) { }
9 try { o2 = o1.navigator } catch(e) { }
10 try { o3 = o2.mediaDevices } catch(e) { }
11 try { o4 = new XMLHttpRequest() } catch(e) { }
12 try { p1 = o3.getUserMedia({video: true, fake: true }).then((stream) => {}).catch((error) => {}) } catch (e) {}
13 try { o4.open("T", "aa", false) } catch(e) { }
14 try { o4.send() } catch(e) { }
15 try { p2 = o3.getUserMedia({video: true}).then((stream) => {}).catch((error) => {}) } catch (e) {}
17 async function finish() {
18 try {
19 await p1;
20 } catch (e) {}
21 try {
22 await p2;
23 } catch (e) {}
24 try {
25 o1.close();
26 } catch (e) {}
27 document.documentElement.className = "";
29 </script>
30 </body>
31 </html>