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

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

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: refactor allowedToLoadFrame conditional Created 3 years, 10 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
« no previous file with comments | « content/test/data/coreferencingframe_2.html ('k') | third_party/WebKit/Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..73f85855cdecd546cb1363ef0463014b8e15d317
--- /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>" +
+ " <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>
« no previous file with comments | « content/test/data/coreferencingframe_2.html ('k') | third_party/WebKit/Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698