testing/mochitest/redirect.html
author Joel Maher <jmaher@mozilla.com>
Fri, 26 Aug 2011 15:47:18 -0400
changeset 77270 97d43d93ab55b2b00db0ca9ed3217764f758a739
parent 11713 d1d0847a66a5890a8225aa961b6ac1244afd6301
child 77280 4dc1e45afdd7282835ea2081ce334176ee30d51a
permissions -rw-r--r--
Bug 676274 - refactor specialpowers so we can use the api in mochitest-chrome without specialpowers. r=ted, a=test-only.

<html>
<head>
  <title>redirecting...</title>

  <script type="text/javascript">
    function redirect(aURL)
    {
      var element = document.createEvent("datacontainerevent");
      element.initEvent("contentEvent", true, false);
      element.setData("data", aURL + location.search);
      element.setData("type", "loadURI");
      document.dispatchEvent(element);
    }

    redirect("chrome://mochikit/content/harness.xul");
  </script>
</head>
<body>
redirecting...
</body>
</html>