Ticket #5859 (closed bug: fixed)
Firefox window.JSON throws uncaught exception when an HTTP Status Code is issued
|Reported by:||coolaj86||Owned by:|
Firefox has a bug in which it turns the content of non-200 status code XHR responses into an empty string.
In 1.3.2 this was not an issue other than that it returned an empty string for data, but what can you do? There's no workaround I know of for this.
However, in 1.4 jQuery attempts to pass this empty string to window.JSON, which throws an uncaught parseerror and halts js execution.
Perhaps jQuery should first check to see if the string returned is empty (indicating a non-200 response)