testing/mochitest/redirect.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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