content/base/crashtests/610571-1.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <script>
     6 function boom()
     7 {
     8   var frame1 = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); frame1.src = "data:text/html,1"; document.body.appendChild(frame1);
     9   var frame2 = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); frame2.src = "data:text/html,2"; document.body.appendChild(frame2);
    10   var frame1doc = frame1.contentDocument;
    11   var frame1root = frame1doc.documentElement;
    12   frame1root.appendChild(frame2);
    13   setTimeout(function() { 
    14     try {
    15       frame2.contentDocument.q = frame1root.__lookupGetter__("nextSibling");
    16     } catch(ex) {}
    17     document.documentElement.removeAttribute("class");
    18   }, 200);
    19 }
    21 </script>
    22 </head>
    24 <body onload="boom();"></body>
    25 </html>

mercurial