tor-browser

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

svg-policy-resource-doc-includes.html (966B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>svg-policy-with-resource</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7    <script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script>
      8    <script src="../support/alertAssert.sub.js?alerts=[]"></script>
      9    <script>
     10        window.addEventListener("message", function(event) {
     11            alert_assert(event.data);
     12        }, false);
     13        window.addEventListener('load', function() {
     14            setTimeout(function() {
     15                log("TEST COMPLETE");
     16            }, 0);
     17        });
     18    </script>
     19 </head>
     20 
     21 <body>
     22    <p>Tests that an SVG loaded in an iframe with a policy enforces it, not
     23    the policy enforced by this parent frame.  The SVG should render and
     24    not redirect to a different resource.</p>
     25    <iframe name="test_target" id="test_iframe" src="scripted.svg"></iframe>
     26    <div id="log"></div>
     27 </body>
     28 
     29 </html>