dom/media/tests/crashtests/801227.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/media/tests/crashtests/801227.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html class="reftest-wait">
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=801227
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Abort due to page reload</title>
    1.12 +  <script type="application/javascript">
    1.13 +    var pc = new mozRTCPeerConnection();
    1.14 +
    1.15 +    var index = localStorage.index || 0;
    1.16 +    if (index < 3) {
    1.17 +      localStorage.index = index + 1;
    1.18 +      window.location.reload();
    1.19 +    }
    1.20 +
    1.21 +    function finish() {
    1.22 +      delete localStorage["index"];
    1.23 +
    1.24 +      pc.close();
    1.25 +      document.documentElement.removeAttribute("class");
    1.26 +    }
    1.27 +
    1.28 +    navigator.mozGetUserMedia({ audio: true, fake: true }, function (aStream) {
    1.29 +      pc.addStream(aStream);
    1.30 +      finish();
    1.31 +    }, finish);
    1.32 +  </script>
    1.33 +</head>
    1.34 +
    1.35 +<body>
    1.36 +</body>
    1.37 +</html>
    1.38 +

mercurial