tor-browser

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

non-initial-about-blank.https.html (568B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 <script>
      7 async_test(t => {
      8  const frame = document.createElement("iframe");
      9  t.add_cleanup(() => frame.remove());
     10  let i = 0;
     11  frame.onload = t.step_func(() => {
     12    i++;
     13    assert_equals(frame.contentDocument.URL, "about:blank");
     14    frame.src = "about:blank";
     15    if (i == 2) {
     16      t.done();
     17    }
     18  });
     19  document.body.append(frame);
     20 }, "Cross-Origin-Embedder-Policy and about:blank");
     21 </script>