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

Side by Side Diff: LayoutTests/fast/events/resources/subframe-stop-load-in-unload-handler-using-document-write.html

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 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
OLDNEW
1 <script> 1 <script>
2 window.location = "pass.html"; 2 // We need to wait until the iframe has finished loading before navigating o r
3 // we risk getting duplicate prints from WebTestProxyBase::DidFinishDocument Load
4 // due to a race between the FrameLoader::startLoad due to setting window.lo cation
5 // and Document::finishedParsing both of which call FrameLoader::finishedPar sing
6 // which in turn calls. WebTestProxyBase::DidFinishDocumentLoad.
7 window.onload = function() {
8 window.location = "pass.html";
9 }
3 10
4 window.onunload = function() 11 window.onunload = function()
5 { 12 {
6 document.write("document.write"); 13 document.write("document.write");
7 setTimeout("parent.log('You wanted to go to: '+ location.href); parent.f ail()", 500); 14 setTimeout("parent.log('You wanted to go to: '+ location.href); parent.f ail()", 500);
8 } 15 }
9 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698