tor-browser

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

frameElement-sibling-accessed.html (344B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>This page will set its document.domain on request so that its sibling can access it</title>
      4 
      5 <h1>I did get loaded</h1>
      6 
      7 <script>
      8 "use strict";
      9 
     10 window.onmessage = e => {
     11  const { newDocumentDomain } = e.data;
     12  document.domain = newDocumentDomain;
     13 
     14  parent.postMessage("done", "*");
     15 };
     16 </script>