378369.html 554 B

1234567891011121314151617181920
  1. <html>
  2. <head>
  3. <title>Testcase bug - Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe</title>
  4. </head>
  5. <body>
  6. This page should not crash Mozilla
  7. <iframe style="display: none;"></iframe>
  8. <script>
  9. function docontextmenu(i){
  10. var doc = window.frames[0].document;
  11. var ev = doc.createEvent ('MouseEvents');
  12. ev.initMouseEvent('contextmenu', true,true, window, 3,5, 5, 400, 400, 0, 0, 0,0,0,null);
  13. doc.dispatchEvent(ev);
  14. }
  15. setTimeout(docontextmenu,0);
  16. </script>
  17. </body>
  18. </html>