tor-browser

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

iframe-creation.sub.html (587B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <body>
      4  <script>
      5    'use strict';
      6 
      7    const iframe = document.createElement("iframe");
      8    iframe.src = "https://{{hosts[][]}}:{{ports[https][0]}}/storage-access-api/resources/blob-url-creation.html";
      9    document.body.appendChild(iframe);
     10 
     11    // Send the blob URL back to the opener.
     12    window.addEventListener("message", async e => {
     13      if (e.data.type !== "blobURL") {
     14        return;
     15      }
     16      const blob_url = e.data.message;
     17      window.opener.postMessage({ type: "blobURL", message: blob_url }, "*");
     18    });
     19 </script>
     20 </body>