tor-browser

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

third_party_window.html (673B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <html>
      6 <head>
      7  <title>Indexed Database Test</title>
      8  <script type="text/javascript">
      9    let init = false;
     10    onmessage = evt => {
     11      if (!init) {
     12        init = true;
     13 
     14        let iframe = document.getElementById("iframe1");
     15        iframe.src = evt.data.iframeUrl;
     16 
     17        iframe.addEventListener("load", () => {
     18          iframe.contentWindow.postMessage(JSON.stringify(evt.data), "*");
     19        });
     20 
     21        return;
     22      }
     23 
     24      opener.postMessage(evt.data, "*");
     25    };
     26  </script>
     27 </head>
     28 
     29 <body>
     30  <iframe id="iframe1"></iframe>
     31 </body>
     32 
     33 </html>