testing/mochitest/redirect.html
author Ted Mielczarek <ted@mielczarek.org>
Fri, 15 May 2015 13:48:16 -0400
changeset 201211 b585afd5db9316c897ca3377588f4b8b7a89f7b0
parent 193193 66006ee3eb18d5bc9aa9ea1c951d9b5e47658235
permissions -rw-r--r--
Bug 1165347 - Use retries for symbol uploads. r=gps, a=NPOTB

<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 event = new CustomEvent("contentEvent", {
        bubbles: true,
        detail: {
          "data": aURL + location.search,
          "type": "loadURI"
        }
      });
      document.dispatchEvent(event);
    }

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

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