Ticket #6748 (closed bug: duplicate)
xhr.status === 0 should be treated as 304 (Not Modified) only in Opera
|Reported by:||benjamn||Owned by:|
Consider the boolean expression returned by httpSuccess():
return !xhr.status && location.protocol === "file:" || // Opera returns 0 when status is 304 ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 304 || xhr.status === 1223 || xhr.status === 0;
Opera may indeed return 0 when the status should be 304, but other browsers (notably, Chrome Mac) return 0 as a result of certain errors (e.g., same-origin restrictions).
Treating xhr.status === 0 as success is a special case that should apply only in Opera. This subtle difference in behavior could be keeping folks from upgrading from 1.3.x, so it should be fixed if possible.
Changed 3 years ago by benjamn
- attachment 0001-Treat-an-xhr.status-of-0-as-successful-only-in-Opera.patch added
- Priority set to undecided
- Status changed from new to closed
- Resolution set to duplicate