tor-browser

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

preflight-cache-partitioning.sub.html (562B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Helper page for testing preflight cache partitioning</title>
      4 <iframe id="iframe" src="http://{{host}}:{{ports[http][0]}}/cors/resources/preflight-cache-partitioning-iframe.sub.html"></iframe>
      5 <script>
      6 window.onmessage = (e) => {
      7  switch (e.data.type || "") {
      8    case "pass":
      9    case "fail":
     10    case "loaded":
     11      opener.postMessage(e.data, "*");
     12      break;
     13    default:
     14      let iframe = document.getElementById("iframe");
     15      iframe.contentWindow.postMessage(e.data, "*");
     16      break;
     17  }
     18 };
     19 
     20 </script>