tor-browser

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

page_post_controlled.html (617B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <!DOCTYPE HTML>
      6 <html>
      7 <head>
      8  <meta charset="utf-8">
      9 </head>
     10 <body>
     11 <script type="text/javascript">
     12  window.parent.postMessage({
     13    controlled: !!navigator.serviceWorker.controller
     14  }, "*");
     15 
     16  addEventListener("message", e => {
     17    if (e.data == "create nested iframe") {
     18      const iframe = document.createElement('iframe');
     19      document.body.appendChild(iframe);
     20      iframe.src = location.href;
     21    } else {
     22      window.parent.postMessage(e.data, "*");
     23    }
     24  });
     25 </script>
     26 </body>
     27 </html>