mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 801227 - Crashtest for WebRTC crash [@mozilla::MediaManager::GetUserMedia]. r=jesup
This commit is contained in:
parent
29ae85a79e
commit
d1a9d692b4
35
dom/media/tests/crashtests/801227.html
Normal file
35
dom/media/tests/crashtests/801227.html
Normal 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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user