Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <title>Crash</title> |
michael@0 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
michael@0 | 5 | <meta http-equiv="Content-Style-Type" content="text/css"> |
michael@0 | 6 | <meta http-equiv="Content-Script-Type" content="text/javascript"> |
michael@0 | 7 | <style type="text/css"> |
michael@0 | 8 | |
michael@0 | 9 | </style> |
michael@0 | 10 | <script type="text/javascript"> |
michael@0 | 11 | |
michael@0 | 12 | function run() { |
michael@0 | 13 | var ifr = document.getElementById("if"); |
michael@0 | 14 | var cd = ifr.contentDocument; |
michael@0 | 15 | cd.open(); |
michael@0 | 16 | cd.write("<body onresize='parent.setup(); location.reload()'>"); |
michael@0 | 17 | cd.close(); |
michael@0 | 18 | |
michael@0 | 19 | // resize the child |
michael@0 | 20 | ifr.style.width = "500px"; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | function setup() { |
michael@0 | 24 | var ifr = document.getElementById("if"); |
michael@0 | 25 | var cd = ifr.contentDocument; |
michael@0 | 26 | |
michael@0 | 27 | // put a pending repaint on the child |
michael@0 | 28 | cd.body.style.backgroundColor = 'green'; |
michael@0 | 29 | |
michael@0 | 30 | // put a pending reframe that destroys the frame on the parent |
michael@0 | 31 | ifr.style.display = 'none'; |
michael@0 | 32 | |
michael@0 | 33 | // Let the location.reload() call RebuildAllStyleData. |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | </script> |
michael@0 | 37 | </head> |
michael@0 | 38 | <body onload="run()"> |
michael@0 | 39 | |
michael@0 | 40 | <iframe id="if"></iframe> |
michael@0 | 41 | |
michael@0 | 42 | </body> |
michael@0 | 43 | </html> |