tor-browser

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

003.html (571B)


      1 <!doctype html>
      2 <title>Navigation from unload whilst traversing history</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <iframe src="003-1.html"></iframe>
      7 <script>
      8 var t = async_test();
      9 
     10 var pages = [];
     11 var iframe = document.getElementsByTagName("iframe")[0];
     12 
     13 
     14 onmessage = t.step_func(function(e) {
     15  pages.push(e.data);
     16  if(pages.length == 3) {
     17    assert_array_equals(pages, ["003-1", "003-2", "003-1"]);
     18    t.done();
     19    iframe.parentNode.removeChild(iframe);
     20  }
     21 });
     22 </script>