testing/mochitest/redirect.html
author Gregory Szorc <gps@mozilla.com>
Wed, 28 Jan 2015 13:37:00 -0800
branchCAL180_20121114_RELBRANCH
changeset 157161 31ec81b5d7bbeac985e50bc15742c82752457e7b
parent 92434 af214ef4172e4e2572d3c758ea3695d6562ea08c
permissions -rw-r--r--
Close old release branch CAL180_20121114_RELBRANCH

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