tor-browser

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

file_frame_src.js (402B)


      1 let testframe = document.getElementById("testframe");
      2 testframe.onload = function () {
      3  parent.postMessage(
      4    {
      5      result: "frame-allowed",
      6      href: document.location.href,
      7    },
      8    "*"
      9  );
     10 };
     11 testframe.onerror = function () {
     12  parent.postMessage(
     13    {
     14      result: "frame-blocked",
     15      href: document.location.href,
     16    },
     17    "*"
     18  );
     19 };
     20 testframe.src = "file_frame_src_inner.html";