tor-browser

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

open-user-password-non-same-origin.htm (963B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>XMLHttpRequest: open() - user/pass argument and non same-origin URL doesn't throw</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol/li[9]/ol/li[1] following::ol/li[9]/ol/li[2] following::ol/li[15]/ol/li[1]" />
      8  </head>
      9  <body>
     10    <div id="log"></div>
     11    <script>
     12      var m = "GET",
     13          u = "http://test2.w3.org/",
     14          a = false
     15        test(function() {
     16          var client = new XMLHttpRequest()
     17          client.open(m, u, a, "x")
     18          assert_equals(client.readyState, 1, "open() was successful - 1")
     19          var client2 = new XMLHttpRequest()
     20          client2.open(m, u, a, "x", "x")
     21          assert_equals(client2.readyState, 1, "open() was successful - 2")
     22        })
     23    </script>
     24  </body>
     25 </html>