Chromium Code Reviews| Index: content/test/data/page_with_meta_refresh_frame.html |
| diff --git a/content/test/data/page_with_meta_refresh_frame.html b/content/test/data/page_with_meta_refresh_frame.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..83eeeda8f6d05c9b9fcc36a089b47cacd4e5f8ae |
| --- /dev/null |
| +++ b/content/test/data/page_with_meta_refresh_frame.html |
| @@ -0,0 +1,31 @@ |
| +<!doctype html> |
| +<html> |
| + <head> |
| + <title>test</title> |
| + <script> |
| +window.addEventListener("load", populateIframe); |
| +function populateIframe() { |
| + html = "<!doctype html>" + |
| +"<html>" + |
|
alexmos
2017/01/19 23:45:54
nit: indent the string lines
davidsac (gone - try alexmos)
2017/01/24 01:16:39
Done.
|
| +" <head>" + |
| +" <meta http-equiv=\"refresh\" content=\"0\">" + |
| +" <title>meta refresh in iframe reloads parent</title>" + |
| +" </head>" + |
| +" <body>" + |
| +" iframe" + |
| +" </body>" + |
| +"</html>"; |
| + doc = document.getElementById("frame").contentDocument; |
| + // opening the IFrame's document to write to it will cause the IFrame's |
| + // document's URL to be set to the URL of the parent document |
| + doc.open(); |
| + doc.write(html); |
| + doc.close(); |
| +} |
| + </script> |
| + </head> |
| + <body> |
| + <div>parent</div> |
| + <iframe id="frame"></iframe> |
| + </body> |
| +</html> |