pjs/testing/mochitest/redirect.html

23 строки
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>