mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 378369 - Crash test.
This commit is contained in:
parent
44d4350e86
commit
70af7d5ab6
19
layout/forms/crashtests/378369.html
Normal file
19
layout/forms/crashtests/378369.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user