tor-browser

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

006.html (692B)


      1 <!doctype html>
      2 <title>Cancelling error after document.open</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <iframe src="/common/blank.html"></iframe>
      7 <script>
      8 var t = async_test();
      9 var iframe;
     10 onload = t.step_func(function() {
     11  var iframe = document.getElementsByTagName("iframe")[0];
     12  var img = iframe.contentDocument.createElement("img");
     13  img.onerror = t.step_func(function() {assert_unreached()})
     14  img.src = "missing";
     15  iframe.contentDocument.body.appendChild(img);
     16  assert_equals(iframe.contentDocument.open(), iframe.contentDocument);
     17  setTimeout(function() {t.done();}, 500);
     18 });
     19 </script>