blob: 8331a2281b1df2df68d2c5f6ccb9bac8686e311a [file] [log] [blame]
<html>
<head>
<title>Loading...</title>
<script>
window.onbeforeunload = function(e) {
// Delay must be slightly bigger than
// RenderViewHostImpl::kUnloadTimeoutMS to trigger
// "renderer unresponsive".
var delay = 1500;
var finishTime = new Date().getTime() + delay;
while (new Date() < finishTime) {}
return null;
};
</script>
</head>
<body>
<p>Navigate to another page to trigger beforeunload handler.</p>
</body>
</html>