https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 940c743ef143aa60d71f4c3236c24572d53ecc5d authored by Eric Willigers on 12 April 2018, 14:56:39 UTC
Update by testing Firefox nightly 61.01a
Tip revision: 940c743
basic-auth-cache-test.html
<!doctype html>
<html id="doc" class="reftest-wait">
  <meta charset="utf-8">
  <link rel="match" href="basic-auth-cache-test-ref.html">

  <img id="auth" onload="loadNoAuth()">
  <img id="noauth" onload="removeWait()">


  <script type="text/javascript">
    function loadAuth() {
        var authUrl = 'http://testuser:testpass@' + window.location.host + '/http/resources/securedimage.py';
        document.getElementById('auth').src = authUrl;
    }

    function loadNoAuth() {
        var noAuthUrl = 'http://' + window.location.host + '/http/resources/securedimage.py';
        document.getElementById('noauth').src = noAuthUrl;
    }

    function removeWait() {
        document.getElementById('doc').className = "";
    }

    window.onload = loadAuth;
  </script>
</html>
back to top