Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
[gecko.git] / testing / mochitest / redirect.html
blob1536ed4e385867e334ddb2fa59b2f9782d4ac8dc
1 <html>
2 <head>
3 <title>redirecting...</title>
5 <script type="text/javascript">
6 function redirect(aURL) {
7 // We create a listener for this event in browser-test.js which will
8 // get picked up when specifying --flavor=chrome or --flavor=a11y
9 var event = new CustomEvent("contentEvent", {
10 bubbles: true,
11 detail: {
12 "data": aURL + location.search,
13 "type": "loadURI",
15 });
16 document.dispatchEvent(event);
19 function redirectToHarness() {
20 redirect("chrome://mochikit/content/harness.xhtml");
23 function onLoad() {
24 setTimeout(redirectToHarness, 0);
25 // In case the listener is not ready, re-try periodically
26 setInterval(redirectToHarness, 5000);
28 </script>
29 </head>
31 <body onload="onLoad();">
32 redirecting...
33 </body>
34 </html>