docshell/base/crashtests/678872-1.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <script>
     6 var f1, f2;
     8 function b1()
     9 {
    10   f1 = document.getElementById("f1");
    11   f2 = document.getElementById("f2");
    12   f1.contentWindow.document.write("11");
    13   f1.contentWindow.history.back();
    14   setTimeout(b2, 0);
    15 }
    17 function b2()
    18 {
    19   f2.contentWindow.history.forward();
    20   f2.contentWindow.location.reload();
    21   f1.parentNode.removeChild(f1);
    22 }
    24 </script>
    27 </script>
    28 </head>
    30 <body onload="setTimeout(b1, 0);">
    32 <iframe id="f1" src="data:text/html,1"></iframe>
    33 <iframe id="f2" src="data:text/html,2"></iframe>
    35 </body>
    36 </html>

mercurial