tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

378369.html (554B)


      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 
      9 <script>
     10 function docontextmenu(i){
     11 var doc = window.frames[0].document;
     12  var ev = doc.createEvent ('MouseEvents'); 
     13  ev.initMouseEvent('contextmenu', true,true, window, 3,5, 5, 400, 400, 0, 0, 0,0,0,null);
     14  doc.dispatchEvent(ev);
     15 }
     16 setTimeout(docontextmenu,0);
     17 </script>
     18 </body>
     19 </html>