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

Side by Side Diff: content/test/data/navigation_controller/inject_subframe_into_blank_iframe.html

Issue 2437173002: Fix going back to a script-injected about:blank frame. (Closed)
Patch Set: Fix nits. Created 4 years, 2 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 <html>
2 <head></head>
3 <body>
4 <p>This page injects an inner frame into an injected blank iframe.
5 <div id="myDiv"></div>
6 <script>
7 var outerIframeHtml = '<iframe src="about:blank" id="outer"><\/iframe>';
8 var innerIframeHtml = '<iframe src="form.html"><\/iframe>';
9
10 // Create an empty about:blank iframe inside the preexisting div.
11 document.getElementById('myDiv').innerHTML = outerIframeHtml;
12
13 // Populate that empty iframe via doc.write, in a way that causes a request.
14 var iDoc = document.getElementById('outer').contentWindow.document;
15 iDoc.open();
16 iDoc.write(innerIframeHtml);
17 iDoc.close();
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698