tor-browser

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

test_bug1686716.html (765B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>bug 1686716</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script src="/tests/SimpleTest/EventUtils.js"></script>
      8  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
      9  <script>
     10  SimpleTest.waitForExplicitFinish();
     11  function test() {
     12    var ifr = document.getElementsByTagName("iframe")[0];
     13    ifr.contentWindow.addEventListener("drop",
     14      function(event) {
     15        ifr.remove();
     16        event.preventDefault();
     17      });
     18    sendDragEvent({type: "drop"}, ifr.contentDocument.body, ifr.contentWindow);
     19    ok(true, "Should not crash.");
     20    SimpleTest.finish();
     21  }
     22  </script>
     23 </head>
     24 <body onload="test()">
     25 <iframe></iframe>
     26 <p id="display"></p>
     27 </body>
     28 </html>