Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: content/test/data/page_with_meta_refresh_frame.html

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: actually fix broken test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698