23 lines
830 B
HTML
23 lines
830 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<script>
|
|
async function boom() {
|
|
const pc1 = new RTCPeerConnection();
|
|
const pc2 = new RTCPeerConnection();
|
|
const channel1 = pc1.createDataChannel("dummy");
|
|
channel1.close();
|
|
pc1.onicecandidate = e => pc2.addIceCandidate(e.candidate);
|
|
pc2.onicecandidate = e => pc1.addIceCandidate(e.candidate);
|
|
await pc1.setLocalDescription();
|
|
await pc2.setRemoteDescription(pc1.localDescription);
|
|
await pc2.setLocalDescription();
|
|
await pc1.setRemoteDescription(pc2.localDescription);
|
|
const channel2 = pc2.createDataChannel("real");
|
|
await new Promise(r => channel2.onopen = r);
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
boom();
|
|
</script>
|
|
</head>
|
|
</html>
|