mootools/mootools-more — Issue #1096: Two repeated requests in Request.Queue fails to call onComplete [Firefox only]
Author: skuwamoto
Created: 2012-02-02 20:51:23+00:00
State: open

When running the following code, the onComplete doesn't fire for the last invocation of send() when run on Mac Firefox 9.0.1.

In general, it appears that this error occurs any time you make a repeated call to the same request object.

Note that this is not a server-side problem, because r1 and r2 make identical requests.

window.addEvent("domready", function()
{
var q = new Request.Queue();

var r1 = new Request({
url: 'http://whatever',
onComplete: function() { console.log('finished r1'); },
});

var r2 = new Request({
url: 'http://whatever',
onComplete: function() { console.log('finished r2'); },
});

q.addRequest("r1", r1);
q.addRequest("r2", r2);

// All of these succeeed
r1.send();
r2.send();
r1.send();

// But this fails
r1.send();
});