tor-browser

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

load-pageshow-events-window-open.html (1183B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <title>"load" and "pageshow" events don't fire on window.open() that stays on the initial empty document</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="resources/helpers.js"></script>
      7 <body></body>
      8 <script>
      9 "use strict";
     10 
     11 promise_test(async t => {
     12  const w = window.open();
     13  return assertNoLoadAndPageshowEvent(t, w)
     14 }, "load event does not fire on window.open()");
     15 
     16 promise_test(async t => {
     17  const w = window.open("");
     18  return assertNoLoadAndPageshowEvent(t, w)
     19 }, "load event does not fire on window.open('')");
     20 
     21 promise_test(async t => {
     22  const w = window.open("about:blank");
     23  return assertNoLoadAndPageshowEvent(t, w)
     24 }, "load event does not fire on window.open('about:blank')");
     25 
     26 promise_test(async t => {
     27  const w = window.open("about:blank#foo");
     28  return assertNoLoadAndPageshowEvent(t, w)
     29 }, "load event does not fire on window.open('about:blank#foo')");
     30 
     31 promise_test(async t => {
     32  const w = window.open("about:blank?foo");
     33  return assertNoLoadAndPageshowEvent(t, w)
     34 }, "load event does not fire on window.open('about:blank?foo')");
     35 </script>