Chromium Code Reviews| 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> |