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 90622 af214ef4172e4e2572d3c758ea3695d6562ea08c
parent 90621 0d696f3bb8872799522444a558883e094faf8675
child 90684 0cfa44a13b2513ad09075ef9da2a062ce40c9576
push id22369
push usersgautherie.bz@free.fr
push dateFri, 30 Mar 2012 10:28:39 +0000
treeherdermozilla-central@af214ef4172e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs733269
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>