gecko-dev/layout/style/crashtests/1320423-1.html
Cameron McCormack ce08748113 Bug 1320423 - Null check cursor images to handled failed loads. r=dbaron
--HG--
extra : rebase_source : ccc18acf3ec30be54ebe2e2130d7bec55b857b16
2016-11-26 15:00:53 +08:00

23 lines
462 B
HTML

<!DOCTYPE html>
<html>
<style>
#target {
cursor: url(file:///somewhere/cursor.png), pointer;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: yellow;
}
#target:hover {
background: green;
}
</style>
<div id=target></div>
<script>
var target = document.getElementById("target");
var x = window.outerWidth / 2, y = window.outerHeight / 2;
SpecialPowers.DOMWindowUtils.sendMouseEvent("mouseover", x, y, 0, 0, 0);
</script>