tor-browser

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

blob-url-creation.html (365B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <body>
      4  <script>
      5    'use strict';
      6 
      7    // Create a blob and get its URL.
      8    const blob = new Blob(["TEST"], { type: "text/plain" });
      9    const blob_url = URL.createObjectURL(blob);
     10 
     11    // Send the blob URL back to the opener.
     12    window.parent.postMessage({ type: "blobURL", message: blob_url }, "*");
     13  </script>
     14 </body>