tor-browser

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

default-enabled-features-subframe-iframe.https.html (656B)


      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 an iframe that is nested within a fenced frame tree.
      8 // This is used to tell the test whether policies that are restricted by a
      9 // fenced frame's document policies also are restricted in subframes.
     10 const [key] = parseKeylist();
     11 
     12 const allows_shared_storage =
     13    document.featurePolicy.allowsFeature('shared-storage');
     14 const allows_select_url =
     15    document.featurePolicy.allowsFeature('shared-storage-select-url');
     16 
     17 writeValueToServer(key, allows_shared_storage + "," + allows_select_url);
     18 </script>
     19 </body>