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

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

Issue 2438743005: Fix history nav 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 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..00ab4d55b573a9e2eea070888eba49124c21a4ec
--- /dev/null
+++ b/content/test/data/navigation_controller/inject_iframe_srcdoc_with_nested_frame.html
@@ -0,0 +1,14 @@
+<html>
+<head></head>
+<body>
+ <p>This page injects a srcdoc frame with a nested form iframe.
+ <div id="myDiv"></div>
+ <script>
+ var iframeHtml =
+ '<iframe srcdoc="<iframe src=\'form.html\'><\/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