tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_idn_redirect.html (995B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4  Bug 1142083 - IDN Unicode domain redirect is broken
      5  This test loads redirectme.html which is redirected simple_test.html, on a different IDN domain.
      6  A message is posted to that page, with responds with another.
      7  Upon receiving that message, we consider that the IDN redirect has functioned properly, since the intended page was loaded.
      8 -->
      9 <head>
     10  <title>Test for URI Manipulation</title>
     11  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     12  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     13 </head>
     14 <body>
     15 
     16 <pre id="test">
     17 <script type="text/javascript">
     18 
     19 SimpleTest.waitForExplicitFinish();
     20 
     21 var iframe = document.createElement("iframe");
     22 iframe.src = "about:blank";
     23 iframe.addEventListener("load", finishTest);
     24 document.body.appendChild(iframe);
     25 iframe.src = "http://mochi.test:8888/tests/netwerk/test/mochitests/redirect_idn.html";
     26 
     27 function finishTest() {
     28  ok(true);
     29  SimpleTest.finish();
     30 }
     31 
     32 </script>
     33 
     34 </body>
     35 </html>