A bug in FF3's sync XHRs ?

J

Jorge

Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?
 
G

GArlington

Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?

Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Somebody mentioned a bug in FF (3?) with sync mode AJAX requests in
your previous thread... Maybe this is it...
 
J

Jorge

Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...

Yes, that's what is happening.

Here's the code of the SYNC button :

sync.onclick= function () {
var a, xhr= new XMLHttpRequest();
xhr.open("GET", "xhrData.txt?"+Math.random(), ** false ** );
xhr.send(null);
//dummy do-something-else-just-in-case before returning
//See cljs thread 2
a= 1;
};

If you can monitor the network traffic you'll see that pressing it
once produces a traffic of x (KB/s), pressing it twice yields 2x, etc.
IOW: the synchronous XHRs are being posted asynchronous and
concurrently.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top