summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1766668.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/tests/crashtests/1766668.html')
-rw-r--r--dom/media/tests/crashtests/1766668.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/media/tests/crashtests/1766668.html b/dom/media/tests/crashtests/1766668.html
new file mode 100644
index 0000000000..0ea142e563
--- /dev/null
+++ b/dom/media/tests/crashtests/1766668.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script>
+ document.addEventListener('DOMContentLoaded', async () => {
+ await navigator.mediaDevices.getUserMedia({ 'audio': {} })
+ const peer = new RTCPeerConnection({ 'iceServers': [{ 'urls': 'stun:23.21.150.121' }], 'peerIdentity': 'B' }, {})
+ const stream = await navigator.mediaDevices.getUserMedia({ 'audio': {} })
+ stream.getTracks().forEach((track) => peer.addTrack(track, stream))
+ try { offer = await peer.createOffer({}) } catch (e) { }
+ await peer.setRemoteDescription(offer)
+ })
+</script>