tor-browser

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

window-open-defaults.window.js (425B)


      1 async_test(t => {
      2  const frame = document.createElement("iframe");
      3  t.add_cleanup(() => frame.remove());
      4  frame.name = "foo";
      5  frame.src = "/common/blank.html";
      6  frame.onload = t.step_func(() => {
      7    frame.onload = t.unreached_func();
      8    t.step_timeout(() => t.done(), 500);
      9    assert_equals(window[0], window.open(undefined, "foo"));
     10  });
     11  document.body.append(frame);
     12 }, "window.open()'s url parameter default");