gecko-dev/testing/mochitest/redirect.html

27 lines
675 B
HTML

<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 --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);
}
function onLoad() {
redirect("chrome://mochikit/content/harness.xul");
}
</script>
</head>
<body onload="onLoad();">
redirecting...
</body>
</html>