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

Side by Side Diff: chrome/test/data/magic_iframe/iframe-reparenting-close-window-child.html

Issue 7550021: Add a browsertest for magic iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to current tree state Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 // Called from Iframe when it is loaded and initialized.
4 window.transferIframeAndCloseWindow = function() {
5 var backgroundWin = window.opener;
6 backgroundWin.log("Transferring Iframe now.");
7
8 var xhrFrame = document.getElementById("iframe");
9
10 backgroundWin.document.adoptNode(xhrFrame);
11 backgroundWin.document.body.appendChild(xhrFrame);
12 window.close(); // This is what caused the XHR load to silently abort.
13 }
14 </script>
15
16 <body>
17 child
18 <iframe id="iframe" src="iframe-reparenting-close-window-iframe.html"></iframe >
levin 2011/08/04 22:27:36 80 col.
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698