Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
A bug of http auth in Firefox 3 -- when access two resources, the http auth pop-up shows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dlee.cn  
View profile  
 More options Oct 27 2008, 1:29 am
Newsgroups: mozilla.dev.ajax
From: "dlee.cn" <dlee...@gmail.com>
Date: Sun, 26 Oct 2008 22:29:10 -0700 (PDT)
Local: Mon, Oct 27 2008 1:29 am
Subject: A bug of http auth in Firefox 3 -- when access two resources, the http auth pop-up shows
I configured two resources in the server side which need basic
authentication. The authentication is very simple: if the password is
'123456', then it's a valid request, otherwise return status 401.

And here is the test code in the client side:

<html>
  <body onload="testXhr();">
    <head>
      <script language="JavaScript">
      var urls = ["/first_resources.json", "/second_resources.json"];
      var count = 0;

      function testXhr() {
        var resource_url = urls[count%2];
        var username = "guest";
        var password = "123456";

        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = xhrCallback;
        xhr.open("GET", resource_url, true, username, password);
        xhr.send(null);
        count++;

        setTimeout(testXhr, 8000);
      }

      function xhrCallback() {
      }
      </script>
    </head>
  </body>
</html>

In the statement "setTimeout", if I use a below value such as 1000,
http auth pop-up shows. I must set it to a very high value to wait the
resend of last request fully completed.
I think this behavior is a bug, I had never seen this behavor in IE.

BTW, If you want to test this behavior in your local host, you must
clean the cached data of Firefox first.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »