2007-07-12 Mitz Pettel <mitz@webkit.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2007 16:24:48 +0000 (16:24 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2007 16:24:48 +0000 (16:24 +0000)
        Reviewed by Mark Rowe.

        - try to fix hang seen on buildbot after the last fix

        * fast/history/resources/history_reload_window.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24240 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/history/resources/history_reload_window.html

index 8e36f70..2dfca7d 100644 (file)
@@ -2,6 +2,14 @@
 
         Reviewed by Mark Rowe.
 
+        - try to fix hang seen on buildbot after the last fix
+
+        * fast/history/resources/history_reload_window.html:
+
+2007-07-12  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Mark Rowe.
+
         - fix an assertion failure in DumpRenderTree when running fast/history/resources/history_reload_window.html
 
         * fast/history/resources/history_reload_window.html: Delay notifyDone() until
index b102e31..46a1e34 100644 (file)
             } else {
                 console.innerHTML = tempConsole.innerHTML;
                 window.close();
-                if (window.layoutTestController)
-                    setTimeout("layoutTestController.notifyDone()", 0);
             }
         }
+
+        function closed()
+        {
+            if (window.layoutTestController)
+                opener.setTimeout("layoutTestController.notifyDone()", 0);
+        }
         </script>
     </head>
-    <body onload="test()">
+    <body onload="test()" onunload="closed()">
         <div id="console">Test Passed</div>
     </body>
 </html>