testing/mochitest/redirect.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html>
     2 <head>
     3   <title>redirecting...</title>
     5   <script type="text/javascript">
     6     function redirect(aURL)
     7     {
     8       // We create a listener for this event in browser-test.js 
     9       // which will get picked up when specifying --chrome or --a11y
    10       var event = new CustomEvent("contentEvent", {
    11         bubbles: true,
    12         detail: {
    13           "data": aURL + location.search,
    14           "type": "loadURI"
    15         }
    16       });
    17       document.dispatchEvent(event);
    18     }
    20     function onLoad() {
    21       redirect("chrome://mochikit/content/harness.xul");
    22     }
    23   </script>
    24 </head>
    26 <body onload="onLoad();">
    27 redirecting...
    28 </body>
    29 </html>

mercurial