Bug 378369 - Crash test.

This commit is contained in:
Martijn Wargers 2013-02-23 11:38:13 +01:00
parent 44d4350e86
commit 70af7d5ab6
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,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>

View File

@ -20,6 +20,7 @@ load 367587-1.html
load 370703-1.html
load 370940-1.html
load 373586-1.xhtml
load 378369.html
asserts(5-10) load 378413-1.xhtml # bug 424225, bug 402850?
load 380116-1.xhtml
load 382212-1.xhtml