Bug 791330 - Crashtest for WebRTC crash [@ mozilla::NrIceCtx::GetGlobalAttributes], r=jesup
authorHenrik Skupin <hskupin@mozilla.com>
Tue, 23 Oct 2012 16:18:09 -0400
changeset 111315 04a2e09f4bc1da54f8638abdb5f66a62f1eb2fd5
parent 111314 f10906c2a70508ba1db3c972cabda00249a43184
child 111316 531b7f4293e9c1d9fa8eea6f2d4f5ee2bcff2347
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersjesup
bugs791330
milestone19.0a1
Bug 791330 - Crashtest for WebRTC crash [@ mozilla::NrIceCtx::GetGlobalAttributes], r=jesup
dom/media/tests/crashtests/791330.html
dom/media/tests/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/media/tests/crashtests/791330.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=791330
+-->
+<head>
+  <meta charset="utf-8">
+  <title>PeerConnection test - operate on closed connection</title>
+  <script type="application/javascript">
+    function finish() {
+      document.documentElement.removeAttribute("class");
+    }
+
+    function runTest() {
+      var pc = mozRTCPeerConnection();
+      pc.close();
+
+      navigator.mozGetUserMedia({audio: true, fake: true}, function (stream) {
+        pc.addStream(stream);
+        pc.createOffer(function (offer) {
+        }, finish);
+      }, function () {});
+    }
+  </script>
+</head>
+
+<body onload="setTimeout(runTest, 100)">
+</body>
+</html>
--- a/dom/media/tests/crashtests/crashtests.list
+++ b/dom/media/tests/crashtests/crashtests.list
@@ -1,3 +1,4 @@
 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