summaryrefslogtreecommitdiffstats
path: root/layout/forms/crashtests/378369.html
blob: 90327735efdff9fc37e3e96097ba21a6ee6b527c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<title>Testcase bug - Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe</title>
</head>
<body>
This page should not crash Mozilla
<iframe style="display: none;"></iframe>

<script>
function docontextmenu(i){
var doc = window.frames[0].document;
  var ev = doc.createEvent ('MouseEvents'); 
  ev.initMouseEvent('contextmenu', true,true, window, 3,5, 5, 400, 400, 0, 0, 0,0,0,null);
  doc.dispatchEvent(ev);
}
setTimeout(docontextmenu,0);
</script>
</body>
</html>