Bug 733269. (Av1) redirect.html: Let its load complete before redirecting. rs=jwalden.
authorSerge Gautherie <sgautherie.bz@free.fr>
Fri, 30 Mar 2012 12:27:50 +0200
changeset 93935 af214ef4172e4e2572d3c758ea3695d6562ea08c
parent 93934 0d696f3bb8872799522444a558883e094faf8675
child 93997 0cfa44a13b2513ad09075ef9da2a062ce40c9576
push idunknown
push userunknown
push dateunknown
reviewersjwalden
bugs733269
milestone14.0a1
Bug 733269. (Av1) redirect.html: Let its load complete before redirecting. rs=jwalden.
testing/mochitest/redirect.html
--- a/testing/mochitest/redirect.html
+++ b/testing/mochitest/redirect.html
@@ -9,15 +9,18 @@
       // which will get picked up when specifying --chrome or --a11y
       var element = document.createEvent("datacontainerevent");
       element.initEvent("contentEvent", true, false);
       element.setData("data", aURL + location.search);
       element.setData("type", "loadURI");
       document.dispatchEvent(element);
     }
 
-    redirect("chrome://mochikit/content/harness.xul");
+    function onLoad() {
+      redirect("chrome://mochikit/content/harness.xul");
+    }
   </script>
 </head>
-<body>
+
+<body onload="onLoad();">
 redirecting...
 </body>
 </html>