<html> | |
<!-- | |
This test navigates to prerender_page.html via location.replace. | |
--> | |
<head> | |
<title>Prerender location.replace after load</title> | |
<script> | |
window.onload = function() { | |
setTimeout(function() { | |
// Wait until after load so webkitprerenderload counts aren't flaky. | |
var url = "prerender_page.html"; | |
if (location.search) | |
url = decodeURIComponent(location.search.substring(1)); | |
location.replace(url); | |
}); | |
}; | |
</script> | |
</head> | |
<body></body> | |
</html> |