testing/mochitest/redirect.html
author hg@mozilla.com
Thu, 22 Mar 2007 10:30:00 -0700
changeset 1 9b2a99adc05e53cd4010de512f50118594756650
child 11702 95c177b55957c0c9fddcc1a6318c20ac68ffe8fc
permissions -rw-r--r--
Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT,

<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>