tor-browser

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

popup-same-origin-non-initial-about-blank.https.html (680B)


      1 <!doctype html>
      2 <title>Cross-Origin-Opener-Policy: about:blank</title>
      3 <script src=/resources/testharness.js></script>
      4 <script src=/resources/testharnessreport.js></script>
      5 <script>
      6 async_test(t => {
      7  const popup = window.open("resources/coop-coep.py?coop=same-origin&coep=&navigate=about:blank");
      8  t.add_cleanup(() => popup.close());
      9  assert_equals(window, popup.opener);
     10 
     11  popup.onload = t.step_func(() => {
     12    assert_true(popup.location.href.endsWith("&navigate=about:blank"));
     13    // Use wait_for_callback as about:blank cannot message back.
     14    t.step_wait_func_done(() => popup.location.href === "about:blank");
     15  });
     16 }, "Navigating a popup to about:blank");
     17 </script>