tor-browser

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

frame-in-frame.sub.html (631B)


      1 <!DOCTYPE html>
      2 <html>
      3 <body>
      4    <script src='/resources/testharness.js'></script>
      5    <script src='/resources/testharnessreport.js'></script>
      6    <script src='/content-security-policy/frame-ancestors/support/frame-ancestors-test.sub.js'></script>
      7 
      8    <span id="escape">{{GET[policy]}}</span>
      9 
     10    <script>
     11        test = async_test("Testing a {{GET[child]}}-origin child with a policy of {{GET[policy]}} nested in a {{GET[parent]}}-origin parent");
     12        const policy = document.getElementById("escape").textContent;
     13        originFrameShouldBe("{{GET[child]}}", "{{GET[expectation]}}", policy);
     14    </script>
     15 </body>
     16 </html>