testing/mochitest/redirect.html
author Cameron McCormack <cam@mcc.id.au>
Thu, 16 Jan 2014 17:51:54 +1100
changeset 163661 89cb8d7a3719f52df7fe3b13cbfcbb7e6fe43955
parent 90743 af214ef4172e4e2572d3c758ea3695d6562ea08c
child 174697 66006ee3eb18d5bc9aa9ea1c951d9b5e47658235
permissions -rw-r--r--
Bug 959923 - Add lldb alias to dump the JS stack. (DONTBUILD) r=ehsan

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

  <script type="text/javascript">
    function redirect(aURL)
    {
      // We create a listener for this event in browser-test.js 
      // which will get picked up when specifying --chrome or --a11y
      var element = document.createEvent("datacontainerevent");
      element.initEvent("contentEvent", true, false);
      element.setData("data", aURL + location.search);
      element.setData("type", "loadURI");
      document.dispatchEvent(element);
    }

    function onLoad() {
      redirect("chrome://mochikit/content/harness.xul");
    }
  </script>
</head>

<body onload="onLoad();">
redirecting...
</body>
</html>