mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
27 lines
838 B
HTML
27 lines
838 B
HTML
<!doctype html>
|
|
<title>Removing drop targetted document before the queue is processed</title>
|
|
<style>
|
|
html, body, div {
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
window.onload = function () {
|
|
var blue = document.getElementsByTagName('div')[0];
|
|
blue.ondragenter = blue.ondragover = blue.ondrop = function (e) {
|
|
e.preventDefault();
|
|
};
|
|
window.addEventListener('message',function (){
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET','/common/blank.html?pipe=trickle(d5)',false);
|
|
xhr.send(null); //should not end within the lifetime of this document
|
|
},false);
|
|
};
|
|
</script>
|
|
<div></div>
|
|
<noscript><p>Enable JavaScript and reload</p></noscript>
|