Ticket #6299 (closed bug: duplicate)
jQuery 1.4.2 breaks AJAX success/failure behaviour
|Reported by:||damian.biollo||Owned by:|
There is a small change to the behaviour of httpSuccess() which breaks the behaviour of AJAX in Firefox.
The breakage is in the scenario when a user clicks a link while an AJAX request is being processed. In Firefox, clicking a link to navigate will immediately cancel all outstanding HTTP requests. (Check Firebug Console to see the behaviour).
In previous versions of jQuery, this would result in a "failure" - the failure ajax handler would be called.
In 1.4.2 this results in the "success" handler being called, which seems quite wrong.
The bug is due to adding a condition of "or xhr.status == 0" to the httpSuccess function.