gecko-dev/testing/mochitest/redirect.html

30 строки
641 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 event = new CustomEvent("contentEvent", {
bubbles: true,
detail: {
"data": aURL + location.search,
"type": "loadURI"
}
});
document.dispatchEvent(event);
}
function onLoad() {
redirect("chrome://mochikit/content/harness.xul");
}
</script>
</head>
<body onload="onLoad();">
redirecting...
</body>
</html>