layout/forms/crashtests/378369.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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>
     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>

mercurial