summaryrefslogtreecommitdiff
path: root/dom/events/crashtests/1143972-1.html
blob: 992bf94782da36539e6e74f907e4f750d5db8305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE HTML>
<script>
var x;
function doTest() {
  f.contentDocument.body.onclick = function (event) {
    x = event.offsetX;
  }
  f.contentDocument.body.dispatchEvent(f.contentWindow.ev);
}
</script>
<iframe id="f" style="display:none" onload="doTest()"
        src="data:text/html,<script>var ev = new MouseEvent('click', {clientX:0, clientY:0})</script>"></iframe>