tor-browser

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

default-enabled-features-subframe-fencedframe.https.html (725B)


      1 <!DOCTYPE html>
      2 <script src="utils.js"></script>
      3 <script src="/common/get-host-info.sub.js"></script>
      4 
      5 <body>
      6 <script>
      7 // This page is loaded into a fenced frame. The document policies for this page
      8 // disable shared storage. This then creates a child iframe to determine if
      9 // document deliviered policies are reflected in the child frame.
     10 const [key, should_restrict_select_url] = parseKeylist();
     11 
     12 const iframe_url = generateURL(
     13    'default-enabled-features-subframe-iframe.https.html', [key]);
     14 const iframe = document.createElement("iframe");
     15 iframe.src = iframe_url;
     16 if (should_restrict_select_url == "true") {
     17  iframe.allow = "shared-storage-select-url 'none';"
     18 }
     19 document.body.appendChild(iframe);
     20 </script>
     21 </body>