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

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

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: Add |state_| change in |WillStartRequest| and |WillRedirectRequest| 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..6bec02e63efc87aafa47e0807bf124e06aa74c95
--- /dev/null
+++ b/content/test/data/page_with_meta_refresh_frame.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+ <head>
+ <title>test</title>
+ <script>
+window.addEventListener("load", populateIframe);
+function populateIframe() {
+ html = "<!doctype html>" +
+"<html>" +
+" <head>" +
+" <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.
+" <title>meta refresh in iframe reloads parent</title>" +
+" </head>" +
+" <body>" +
+" iframe" +
+" </body>" +
+"</html>";
+ doc = document.getElementById("frame").contentDocument;
+ 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.
+ 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