layout/base/crashtests/462392.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 <html>
     2 <head>
     3 	<title>Crash</title>
     4 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     5 	<meta http-equiv="Content-Style-Type" content="text/css">
     6 	<meta http-equiv="Content-Script-Type" content="text/javascript">
     7 	<style type="text/css">
     9 	</style>
    10 	<script type="text/javascript">
    12 	function run() {
    13 	    var ifr = document.getElementById("if");
    14 	    var cd = ifr.contentDocument;
    15 	    cd.open();
    16 	    cd.write("<body onresize='parent.setup(); location.reload()'>");
    17 	    cd.close();
    19 	    // resize the child
    20 	    ifr.style.width = "500px";
    21 	}
    23 	function setup() {
    24 	    var ifr = document.getElementById("if");
    25 	    var cd = ifr.contentDocument;
    27 	    // put a pending repaint on the child
    28 	    cd.body.style.backgroundColor = 'green';
    30 	    // put a pending reframe that destroys the frame on the parent
    31 	    ifr.style.display = 'none';
    33 	    // Let the location.reload() call RebuildAllStyleData.
    34 	}
    36 	</script>
    37 </head>
    38 <body onload="run()">
    40 <iframe id="if"></iframe>
    42 </body>
    43 </html>

mercurial