Bug 801227 - Crashtest for WebRTC crash [@mozilla::MediaManager::GetUserMedia]. r=jesup

This commit is contained in:
Henrik Skupin 2012-11-15 19:34:41 +01:00
parent 29ae85a79e
commit d1a9d692b4
2 changed files with 36 additions and 0 deletions

View File

@ -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>

View File

@ -2,3 +2,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
pref(media.peerconnection.enabled,true) load 801227.html