tor-browser

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

protocol-handler.html (502B)


      1 <!DOCTYPE html>
      2 <title>Prerendering custom protocol handler</title>
      3 <script>
      4  // This page should be used by the protocol-handler-*register.https.html
      5  // tests as the handler for their test custom protocols.
      6 
      7  // Get URL parameters
      8  const urlParams = new URLSearchParams(window.location.search);
      9  const id = urlParams.get('id');
     10  const s = urlParams.get('s');
     11  // This page will be hosted in an iframe. Post message to parent window.
     12  window.parent.postMessage({id: id, s: s}, '*');
     13 </script>