tor-browser

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

fission_iframe.html (873B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf8">
      5  <title>Test fission iframe document</title>
      6  <!-- Any copyright is dedicated to the Public Domain.
      7     - http://creativecommons.org/publicdomain/zero/1.0/ -->
      8  <script>
      9    "use strict";
     10    const params = new URLSearchParams(document.location.search);
     11    const hashSuffix = params.get("hashSuffix") || "in-iframe";
     12    // eslint-disable-next-line no-unused-vars
     13    const worker = new Worker("test_worker.js#simple-worker-" + hashSuffix);
     14    // eslint-disable-next-line no-unused-vars
     15    const sharedWorker = new SharedWorker("test_worker.js#shared-worker-" + hashSuffix);
     16 
     17    /* exported logMessageInWorker */
     18    function logMessageInWorker(message) {
     19      worker.postMessage({
     20        type: "log-in-worker",
     21        message,
     22      });
     23    }
     24  </script>
     25 </head>
     26 <body>
     27 <p>remote iframe</p>
     28 </body>
     29 </html>