testing/mochitest/redirect.html
author gijskruitbosch@gmail.com
Tue, 28 Aug 2007 05:27:34 -0700
changeset 5376 3e479faf29a8fbfc63a2152d586ba3241aecba38
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 11702 95c177b55957c0c9fddcc1a6318c20ac68ffe8fc
permissions -rw-r--r--
Bug 380595 - Need unittest for nsIIdleService r=roc@ocallahan.org (Robert O'Callahan) sr=neil@parkwaycc.co.uk (Neil Rashbrook) Tests Only.

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