1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/media/tests/crashtests/802982.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=802982 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Excessive getUserMedia calls</title> 1.12 + <script type="application/javascript"> 1.13 + 1.14 + function finish() { 1.15 + document.documentElement.removeAttribute("class"); 1.16 + } 1.17 + 1.18 + function boom() 1.19 + { 1.20 + for (var j = 0; j < 100; ++j) { 1.21 + navigator.mozGetUserMedia({}, function(){}, function(){}); 1.22 + } 1.23 + finish(); // we're not waiting for success/error callbacks here 1.24 + } 1.25 + 1.26 + </script> 1.27 +</head> 1.28 + 1.29 +<body onload="setTimeout(boom, 100)"> 1.30 +</html>