tor-browser

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

fedcm-iframe-level2.html (643B)


      1 <!doctype html>
      2 <link rel="help" href="https://wicg.github.io/FedCM">
      3 <script src="/common/get-host-info.sub.js"></script>
      4 <div id=log>
      5 <script>
      6 'use strict';
      7 
      8 const host = get_host_info();
      9 const remoteBaseURL =
     10    host.AUTHENTICATED_ORIGIN +
     11    window.location.pathname.replace(/\/[^\/]*$/, '/');
     12 
     13 window.onload = async () => {
     14  const urlParams = new URLSearchParams(window.location.search);
     15  let iframe = document.createElement("iframe");
     16  iframe.src = remoteBaseURL + "fedcm-iframe.html";
     17  if (urlParams.get("permission") != '0') {
     18    iframe.allow = "identity-credentials-get";
     19  }
     20  document.body.appendChild(iframe);
     21 };
     22 
     23 </script>