<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Test page that blocks beforeunload. Used in tests for bug 1050638 and bug 305085</title>
  </head>
  <body>
    This page will block beforeunload. It should still be user-closable at all times.
    <script>
      window.onbeforeunload = function() {
        return "stop";
      };
    </script>
  </body>
</html>
