Bug 801227 - Crashtest for WebRTC crash [@mozilla::MediaManager::GetUserMedia]. r=jesup
authorHenrik Skupin <hskupin@mozilla.com>
Thu, 15 Nov 2012 19:34:41 +0100
changeset 113399 9c09ed66c0452ea20504fe95a02188e65c5101a6
parent 113398 bbe72fef7e0fa9ef9e1c955fdc7ef916abfabfe4
child 113400 bbd553b9d234abf13fd9fde9cca5353b9d7ba8c9
push id23870
push userryanvm@gmail.com
push dateFri, 16 Nov 2012 01:21:36 +0000
treeherdermozilla-central@58ebb638a7ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs801227
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 801227 - Crashtest for WebRTC crash [@mozilla::MediaManager::GetUserMedia]. r=jesup
dom/media/tests/crashtests/801227.html
dom/media/tests/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/media/tests/crashtests/801227.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=801227
+-->
+<head>
+  <meta charset="utf-8">
+  <title>Abort due to page reload</title>
+  <script type="application/javascript">
+    var pc = new mozRTCPeerConnection();
+
+    var index = localStorage.index || 0;
+    if (index < 3) {
+      localStorage.index = index + 1;
+      window.location.reload();
+    }
+
+    function finish() {
+      delete localStorage["index"];
+
+      pc.close();
+      document.documentElement.removeAttribute("class");
+    }
+
+    navigator.mozGetUserMedia({ audio: true, fake: true }, function (aStream) {
+      pc.addStream(aStream);
+      finish();
+    }, finish);
+  </script>
+</head>
+
+<body>
+</body>
+</html>
+
--- a/dom/media/tests/crashtests/crashtests.list
+++ b/dom/media/tests/crashtests/crashtests.list
@@ -1,4 +1,5 @@
 pref(media.peerconnection.enabled,true) load 780790.html
 pref(media.peerconnection.enabled,true) load 791270.html
 pref(media.peerconnection.enabled,true) load 791278.html
 pref(media.peerconnection.enabled,true) load 791330.html
+pref(media.peerconnection.enabled,true) load 801227.html