tor-browser

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

file_bug1691153.html (592B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <meta charset="UTF-8">
      5    <title>bug 1691153</title>
      6 </head>
      7 <body>
      8 <h1>bug 1691153</h1>
      9 <script>
     10 function toBlobURL(data, mimeType) {
     11  return URL.createObjectURL(
     12    new Blob([data], {
     13      type: mimeType,
     14    })
     15  );
     16 }
     17 // closing script element literal split up to not end the parent script element
     18 let testurl = toBlobURL("<body></body>", "text/html");
     19 addEventListener("message", event => {
     20  if (event.data == "getblob") {
     21    postMessage({ bloburl: testurl }, "*");
     22  }
     23 });
     24 // the blob URL should have a content principal
     25 </script>
     26 </body>
     27 </html>