tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1903905.html (830B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4    <script>
      5       async function boom() {
      6        const pc1 = new RTCPeerConnection();
      7        const pc2 = new RTCPeerConnection();
      8        const channel1 = pc1.createDataChannel("dummy");
      9        channel1.close();
     10        pc1.onicecandidate = e => pc2.addIceCandidate(e.candidate);
     11        pc2.onicecandidate = e => pc1.addIceCandidate(e.candidate);
     12        await pc1.setLocalDescription();
     13        await pc2.setRemoteDescription(pc1.localDescription);
     14        await pc2.setLocalDescription();
     15        await pc1.setRemoteDescription(pc2.localDescription);
     16        const channel2 = pc2.createDataChannel("real");
     17        await new Promise(r => channel2.onopen = r);
     18        document.documentElement.removeAttribute("class");
     19      }
     20      boom();
     21    </script>
     22 </head>
     23 </html>