tor-browser

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

test_initial_aboutblank.html (950B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test feature policy - Initial about:blank</title>
      5  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7 </head>
      8 <body>
      9 <iframe name="parentIframe" allow="fullscreen 'none'" srcdoc="
     10  <iframe name='regular'></iframe>
     11  <iframe name='transient'></iframe>
     12  <script>transient.stop()</script>
     13 "></iframe>
     14 
     15 <script type="text/javascript">
     16 add_task(function testAboutBlank() {
     17  isDeeply(frames[0].transient.document.featurePolicy.allowedFeatures(),
     18           frames[0].document.featurePolicy.allowedFeatures(),
     19           "check allowed feature list for initial about:blank");
     20  isDeeply(frames[0].regular.document.featurePolicy.allowedFeatures(),
     21           frames[0].document.featurePolicy.allowedFeatures(),
     22           "check allowed feature list for real load about:blank");
     23 });
     24 </script>
     25 </body>
     26 </html>