| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta http-equiv="refresh" content="0; url=http://A=a&B=b"> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.setCustomPolicyDelegate(true, false); |
| testRunner.waitUntilDone(); |
| } |
| </script> |
| </head> |
| <body> |
| <p>Tests that we do not redirect to an invalid URL initiated by <meta http-equiv="refresh">. This test PASSED if you see an entry in the dumped frame load callbacks of the form: "willPerformClientRedirectToURL: http://A=a&B=b" followed by "didCancelClientRedirectForFrame".</p> |
| <p>Note, this test must be run in DumpRenderTree.</p> |
| <script> |
| // This ugly double-timeout ensures that the scheduled meta-refresh, whose timer isn't even started until the frame finishes loading, |
| // fires before notifyDone() is called, ensuring that didCancelClientRedirectForFrame is logged by DumpRenderTree. |
| window.setTimeout(function() { |
| window.setTimeout(function() { |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| }, 0); |
| }, 0); |
| </script> |
| </body> |
| </html> |