DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c68fe15a81fc)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<html>
<head>
<title>Testcase bug - Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe</title>
</head>
<body>
<body>
This page should not crash Mozilla
<iframe style="display: none;"></iframe>

<script>
function docontextmenu(i){
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>