801227.html (742B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=801227 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Abort due to page reload</title> 9 <script type="application/javascript"> 10 var pc = new RTCPeerConnection(); 11 12 var index = localStorage.index || 0; 13 if (index < 3) { 14 localStorage.index = index + 1; 15 window.location.reload(); 16 } 17 18 function finish() { 19 delete localStorage["index"]; 20 21 pc.close(); 22 document.documentElement.removeAttribute("class"); 23 } 24 25 navigator.mediaDevices.getUserMedia({ audio: true, fake: true }).then(function (aStream) { 26 pc.addStream(aStream); 27 finish(); 28 }, finish); 29 </script> 30 </head> 31 32 <body> 33 </body> 34 </html>