|
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"> |
|
8 |
|
9 </style> |
|
10 <script type="text/javascript"> |
|
11 |
|
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(); |
|
18 |
|
19 // resize the child |
|
20 ifr.style.width = "500px"; |
|
21 } |
|
22 |
|
23 function setup() { |
|
24 var ifr = document.getElementById("if"); |
|
25 var cd = ifr.contentDocument; |
|
26 |
|
27 // put a pending repaint on the child |
|
28 cd.body.style.backgroundColor = 'green'; |
|
29 |
|
30 // put a pending reframe that destroys the frame on the parent |
|
31 ifr.style.display = 'none'; |
|
32 |
|
33 // Let the location.reload() call RebuildAllStyleData. |
|
34 } |
|
35 |
|
36 </script> |
|
37 </head> |
|
38 <body onload="run()"> |
|
39 |
|
40 <iframe id="if"></iframe> |
|
41 |
|
42 </body> |
|
43 </html> |