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

Unified Diff: content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html

Issue 2437173002: Fix going back to a script-injected about:blank frame. (Closed)
Patch Set: Disable srcdoc test in PlzNavigate 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html
diff --git a/content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html b/content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..024e424a5774d76f742f2be4919a4028cdc15514
--- /dev/null
+++ b/content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html
@@ -0,0 +1,15 @@
+<html>
+<head></head>
+<body>
+ <p>This page injects an inner frame into an injected blank iframe.
alexmos 2016/10/21 06:34:16 nit: s/blank/srcdoc/? Also, the page really injec
Charlie Reis 2016/10/21 07:34:30 Done.
+ <div id="myDiv"></div>
+ <script>
+ var iframeHtml =
+ '<iframe srcdoc="<iframe src=\'form.html\' id=\'outer\'>' +
alexmos 2016/10/21 06:34:16 nit: remove "outer", as it's unused here? Or rena
Charlie Reis 2016/10/21 07:34:30 Done.
+ '<\/iframe>"><\/iframe>';
+
+ // Create an iframe srcdoc with nested frame inside the preexisting div.
+ document.getElementById('myDiv').innerHTML = iframeHtml;
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698