Chromium Code Reviews| Index: chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html |
| diff --git a/chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html b/chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..01bb23bb25ffafde035cd9825f3e287bb1870812 |
| --- /dev/null |
| +++ b/chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html |
| @@ -0,0 +1,20 @@ |
| +<html> |
| +<script> |
| +// Called from Iframe when it is loaded and initialized. |
| +window.transferIframeAndCloseWindow = function() { |
| + var backgroundWin = window.opener; |
| + backgroundWin.log("Transferring Iframe now."); |
| + |
| + var xhrFrame = document.getElementById("iframe"); |
| + |
| + backgroundWin.document.adoptNode(xhrFrame); |
| + backgroundWin.document.body.appendChild(xhrFrame); |
| +// window.close(); // This is what caused the XHR load to silently abort. |
|
Paweł Hajdan Jr.
2011/08/03 16:27:27
Please remove any commented-out code before commit
|
| +} |
| +</script> |
| + |
| +<body> |
| + child |
| + <iframe id="iframe" src="iframe-reparenting-close-window-iframe.html"></iframe> |
| +</body> |
| +</html> |