tor-browser

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

in-removed-iframe.https.html (732B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 'use strict';
      6 setup({ single_test: true });
      7 
      8 function iframeOnLoad() {
      9  const target = document.querySelector('#target');
     10  const wt = target.contentWindow.wt;
     11  target.remove();
     12  const streams = wt.incomingBidirectionalStreams;
     13  assert_equals(typeof streams, 'object', 'streams should be an object');
     14  done();
     15 }
     16 </script>
     17 
     18 <iframe id=target onload="iframeOnLoad()" srcdoc="
     19 <!doctype html>
     20 <script src=/common/get-host-info.sub.js></script>
     21 <script src=resources/webtransport-test-helpers.sub.js></script>
     22 <script>
     23 window.wt = new WebTransport(webtransport_url('echo.py'));
     24 </script>
     25 "></iframe>