tor-browser

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

test_navigate_window_open_aboutblank.html (622B)


      1 <!DOCTYPE html>
      2 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      3 <script src="/tests/SimpleTest/EventUtils.js"></script>
      4 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
      5 <script>
      6  SimpleTest.requestFlakyTimeout("Needed to wait for opened window to fully finish loading before navigating it.");
      7 
      8  add_task(async function navigateWindowOpenedExplicitAboutBlank() {
      9    let w = window.open("about:blank");
     10    
     11    await new Promise(resolve => setTimeout(() => {
     12      w.location = "about:blank#0";
     13      ok(true, "setting location did not lead to a crash");
     14      resolve();
     15    }, 1000));
     16  });
     17 </script>