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

Side by Side Diff: LayoutTests/http/tests/misc/resources/detached-frame.html

Issue 317513002: Add a RefPtr<Frame> for child in FrameLoader::checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: +test Created 6 years, 6 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
1 <head>
2 <script> 1 <script>
3 function test() { 2 function test() {
4 var xhr = new XMLHttpRequest; 3 var xhr = new XMLHttpRequest;
5 xhr.open("GET", "detached-frame.html"); 4 xhr.open("GET", "detached-frame.html");
6 xhr.send(); 5 xhr.send();
7 window.parent.childDocument = document; // GC protect
8 xhr.onreadystatechange = function() { 6 xhr.onreadystatechange = function() {
9 if (xhr.readyState == xhr.DONE) { 7 if (xhr.readyState == xhr.DONE) {
10 var parentWindow = window.parent; 8 var parentWindow = window.parent;
11 parentWindow.document.body.removeChild(parentWindow.document.getElem entsByTagName("iframe")[0]); 9 parentWindow.document.body.innerHTML += "";
12 parentWindow.document.body.innerHTML += "<p>PASS: No crash.</p>";
13 if (parentWindow.testRunner)
14 parentWindow.testRunner.notifyDone(); 10 parentWindow.testRunner.notifyDone();
15 } 11 }
16 } 12 }
17 } 13 }
18 </script> 14 </script>
19 </head> 15 <body onload="test()">
20 <body onload="test()">
21 </body>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/misc/detach-during-notifyDone-expected.txt ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698