| 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..7684b0a823928ec705155c60df96e524e8705123
|
| --- /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.
|
| +}
|
| +</script>
|
| +
|
| +<body>
|
| + <iframe id="iframe" src="iframe-reparenting-close-window-iframe.html">
|
| + </iframe>
|
| +</body>
|
| +</html>
|
|
|