tor-browser

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

022-1.html (838B)


      1 <!doctype html>
      2 <title>Removing drop targetted document before the queue is processed</title>
      3 <style>
      4  html, body, div {
      5    height: 100%;
      6    width: 100%;
      7    margin: 0;
      8    padding: 0;
      9    background-color: blue;
     10  }
     11 </style>
     12 <script type="text/javascript">
     13 window.onload = function () {
     14        var blue = document.getElementsByTagName('div')[0];
     15        blue.ondragenter = blue.ondragover = blue.ondrop = function (e) {
     16                e.preventDefault();
     17        };
     18        window.addEventListener('message',function (){
     19                var xhr = new XMLHttpRequest();
     20                xhr.open('GET','/common/blank.html?pipe=trickle(d5)',false);
     21                xhr.send(null); //should not end within the lifetime of this document
     22        },false);
     23 };
     24 </script>
     25 <div></div>
     26 <noscript><p>Enable JavaScript and reload</p></noscript>