gecko-dev/testing/mochitest/redirect.html
2007-02-20 01:56:30 +00:00

23 lines
671 B
HTML

<html>
<head>
<title>redirecting...</title>
<script type="text/javascript">
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
const Cc = Components.classes;
const Ci = Components.interfaces;
var windowMediator = Cc['@mozilla.org/appshell/window-mediator;1'].
getService(Ci.nsIWindowMediator);
var win = windowMediator.getMostRecentWindow("navigator:browser");
win.getWebNavigation().loadURI("chrome://mochikit/content/harness.xul" +
location.search,
null, null, null, null);
</script>
</head>
<body>
redirecting...
</body>
</html>