Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>test</title> | |
| 5 <script> | |
| 6 window.addEventListener("load", populateIframe); | |
| 7 function populateIframe() { | |
| 8 html = "<!doctype html>" + | |
| 9 "<html>" + | |
| 10 " <head>" + | |
| 11 " <meta http-equiv=\"refresh\" content=\"3\">" + | |
|
alexmos
2017/01/06 02:27:29
Let's use "0" here to not slow down the tests on t
davidsac (gone - try alexmos)
2017/01/19 18:26:24
Done.
| |
| 12 " <title>meta refresh in iframe reloads parent</title>" + | |
| 13 " </head>" + | |
| 14 " <body>" + | |
| 15 " iframe" + | |
| 16 " </body>" + | |
| 17 "</html>"; | |
| 18 doc = document.getElementById("frame").contentDocument; | |
| 19 doc.open(); | |
|
alexmos
2017/01/06 02:27:30
Let's add a comment that this will overwrite the i
davidsac (gone - try alexmos)
2017/01/19 18:26:24
Done.
| |
| 20 doc.write(html); | |
| 21 doc.close(); | |
| 22 } | |
| 23 </script> | |
| 24 </head> | |
| 25 <body> | |
| 26 <div>parent</div> | |
| 27 <iframe id="frame"></iframe> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |