1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/media/tests/crashtests/855796.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=855796 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Bug 855796</title> 1.12 + <script type="application/javascript"> 1.13 + var pc1, pc2, pc1_offer, pc2_answer; 1.14 + 1.15 + function onFailure(code) { 1.16 + stop(); 1.17 + } 1.18 + 1.19 + function stop() { 1.20 + pc1.close(); 1.21 + pc1 = null; 1.22 + pc2.close(); 1.23 + pc2 = null; 1.24 + document.documentElement.removeAttribute("class"); 1.25 + } 1.26 + 1.27 + function step1(offer) { 1.28 + pc1_offer = offer; 1.29 + pc1_offer.sdp = "v=0\r\no=Mozilla-SIPUA 2208 0 IN IP4 0.0.0.0\r\ns=SIP Call\r\nt=0 0\r\na=ice-pwd:4450d5a4a5f097855c16fa079893be18\r\na=fingerprint:sha-256 23:9A:2E:43:94:42:CF:46:68:FC:62:F9:F4:48:61:DB:2F:8C:C9:FF:6B:25:54:9D:41:09:EF:83:A8:19:FC:B6\r\nm=audio 56187 RTP/SAVPF 109 0 8 101\r\nc=IN IP4 77.9.79.167\r\na=rtpmap:109 opus/48000/2\r\na=ptime:20\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-15\r\na=sendrecv\r\na=candidate:0 1 UDP 2113601791 192.168.178.20 56187 typ host\r\na=candidate:1 1 UDP 1694236671 77.9.79.167 56187 typ srflx raddr 192.168.178.20 rport 56187\r\na=candidate:0 2 UDP 2113601790 192.168.178.20 52955 typ host\r\na=candidate:1 2 UDP 1694236670 77.9.79.167 52955 typ srflx raddr 192.168.178.20 rport 52955\r\nm=video 49929 RTP/SAVPF 120\r\nc=IN IP4 77.9.79.167\r\na=rtpmap:120 VP8/90000\r\na=recvonly\r\na=candidate:0 1 UDP 2113601791 192.168.178.20 49929 typ host\r\na=candidate:1 1 UDP 1694236671 77.9.79.167 49929 typ srflx raddr 192.168.178.20 rport 49929\r\na=candidate:0 2 UDP 2113601790 192.168.178.20 50769 typ host\r\na=candidate:1 2 UDP 1694236670 77.9.79.167 50769 typ srflx raddr 192.168.178.20 rport 50769\r\nm=application 54054 SCTP/DTLS 5000 \r\nc=IN IP4 77.9.79.167\r\na=fmtp:HuRUu]Dtcl\\zM,7(OmEU%O$gU]x/z\tD protocol=webrtc-datachannel;streams=16\r\na=sendrecv\r\n"; 1.30 + pc1.setLocalDescription(pc1_offer, step2, onFailure); 1.31 + } 1.32 + 1.33 + function step2() { 1.34 + pc2.setRemoteDescription(pc1_offer, step3, onFailure); 1.35 + } 1.36 + 1.37 + function step3() { 1.38 + pc2.createAnswer(step4, onFailure); 1.39 + } 1.40 + 1.41 + function step4(answer) { 1.42 + pc2_answer = answer; 1.43 + pc2.setLocalDescription(pc2_answer, step5, onFailure); 1.44 + } 1.45 + 1.46 + function step5() { 1.47 + pc1.setRemoteDescription(pc2_answer, step6, onFailure); 1.48 + } 1.49 + 1.50 + function step6() { 1.51 + stop(); 1.52 + } 1.53 + 1.54 + function start() { 1.55 + pc1 = new mozRTCPeerConnection(); 1.56 + pc2 = new mozRTCPeerConnection(); 1.57 + navigator.mozGetUserMedia({audio:true, video:true, fake:true}, function(s) { 1.58 + pc1.addStream(s); 1.59 + navigator.mozGetUserMedia({audio:true, video:true, fake:true}, function(s) { 1.60 + pc2.addStream(s); 1.61 + pc1.createOffer(step1, onFailure); 1.62 + }, onFailure); 1.63 + }, onFailure); 1.64 + } 1.65 + </script> 1.66 +</head> 1.67 + 1.68 +<body onload="setTimeout(start, 100)"> 1.69 +</html>