blob: 1536ed4e385867e334ddb2fa59b2f9782d4ac8dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<html>
<head>
<title>redirecting...</title>
<script type="text/javascript">
function redirect(aURL) {
// We create a listener for this event in browser-test.js which will
// get picked up when specifying --flavor=chrome or --flavor=a11y
var event = new CustomEvent("contentEvent", {
bubbles: true,
detail: {
"data": aURL + location.search,
"type": "loadURI",
},
});
document.dispatchEvent(event);
}
function redirectToHarness() {
redirect("chrome://mochikit/content/harness.xhtml");
}
function onLoad() {
setTimeout(redirectToHarness, 0);
// In case the listener is not ready, re-try periodically
setInterval(redirectToHarness, 5000);
}
</script>
</head>
<body onload="onLoad();">
redirecting...
</body>
</html>
|