chromium/chrome/test/data/beforeunload_hang.html

<html>
  <head>
    <title>Loading...</title>
    <script>
      window.onbeforeunload = function(e) { while(true); };
    </script>
  </head>
  <body>
    <p>Navigate to another page to trigger beforeunload handler.</p>
  </body>
</html>