1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/crashtests/462392.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<html> 1.5 +<head> 1.6 + <title>Crash</title> 1.7 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 1.8 + <meta http-equiv="Content-Style-Type" content="text/css"> 1.9 + <meta http-equiv="Content-Script-Type" content="text/javascript"> 1.10 + <style type="text/css"> 1.11 + 1.12 + </style> 1.13 + <script type="text/javascript"> 1.14 + 1.15 + function run() { 1.16 + var ifr = document.getElementById("if"); 1.17 + var cd = ifr.contentDocument; 1.18 + cd.open(); 1.19 + cd.write("<body onresize='parent.setup(); location.reload()'>"); 1.20 + cd.close(); 1.21 + 1.22 + // resize the child 1.23 + ifr.style.width = "500px"; 1.24 + } 1.25 + 1.26 + function setup() { 1.27 + var ifr = document.getElementById("if"); 1.28 + var cd = ifr.contentDocument; 1.29 + 1.30 + // put a pending repaint on the child 1.31 + cd.body.style.backgroundColor = 'green'; 1.32 + 1.33 + // put a pending reframe that destroys the frame on the parent 1.34 + ifr.style.display = 'none'; 1.35 + 1.36 + // Let the location.reload() call RebuildAllStyleData. 1.37 + } 1.38 + 1.39 + </script> 1.40 +</head> 1.41 +<body onload="run()"> 1.42 + 1.43 +<iframe id="if"></iframe> 1.44 + 1.45 +</body> 1.46 +</html>