tor-browser

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

crossOrigin.sub.html (753B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Actions in cross-origin iframe</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 
      9 <iframe
     10  src="https://{{host}}:{{ports[https][1]}}/infrastructure/testdriver/actions/support/actions.html?parent"></iframe>
     11 
     12 <script>
     13 setup({single_test: true});
     14 addEventListener("message", (msg) => {
     15    if (msg.data === "PASS") {
     16        done();
     17    } else if (msg.data === "FAIL") {
     18        assert_unreached("actions failed");
     19    } else {
     20        assert_unreached("testdriver.js-internal messages should not be exposed to tests");
     21    }
     22 });
     23 </script>