tor-browser

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

basic-auth-cache-test.html (806B)


      1 <!doctype html>
      2 <html id="doc" class="reftest-wait">
      3  <meta charset="utf-8">
      4  <link rel="match" href="basic-auth-cache-test-ref.html">
      5 
      6  <img id="auth" onload="loadNoAuth()">
      7  <img id="noauth" onload="removeWait()">
      8 
      9 
     10  <script type="text/javascript">
     11    function loadAuth() {
     12        var authUrl = 'http://testuser:testpass@' + window.location.host + '/fetch/http-cache/resources/securedimage.py';
     13        document.getElementById('auth').src = authUrl;
     14    }
     15 
     16    function loadNoAuth() {
     17        var noAuthUrl = 'http://' + window.location.host + '/fetch/http-cache/resources/securedimage.py';
     18        document.getElementById('noauth').src = noAuthUrl;
     19    }
     20 
     21    function removeWait() {
     22        document.getElementById('doc').className = "";
     23    }
     24 
     25    window.onload = loadAuth;
     26  </script>
     27 </html>