Be careful about when in the request cycle we set XHR.responseType, so as not to upset Firefox.