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

Side by Side 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 unified diff | Download patch
OLDNEW
(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=\"0\">" +
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 // Opening the IFrame's document to write to it will cause the IFrame's
20 // document's URL to be set to the URL of the parent document
21 doc.open();
22 doc.write(html);
23 doc.close();
24 }
25 </script>
26 </head>
27 <body>
28 <div>parent</div>
29 <iframe id="frame"></iframe>
30 </body>
31 </html>
OLDNEW
« 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