OLD | NEW |
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> |
OLD | NEW |