Currently we returns 0 instead of 200 for successful non-HTTP responses.
blob data 0 0 Firefox Nightly + bug 702820 patch 0 0 Opera 11.60 200 Exception Chrome 200 Exception IE 10 PP3
(In reply to Masatoshi Kimura [:emk] from comment #1) > 200 Exception Chrome > 200 Exception IE 10 PP3 Cool. There is precedent. Let's do this.
IMO it would be strange to get http codes for non-http XHR, but if IE and webkit does that too, I'm ok with the change.
annevk pointed to http://dev.w3.org/2006/webapi/FileAPI/#processingModel for blob:, so our current blob: behavior is clearly wrong.
I'll take this
Assignee: nobody → jonas
Duplicate of this bug: 1062368
Under http://fetch.spec.whatwg.org/#basic-fetch this is mostly defined. Feedback welcome. And e.g. when not stated otherwise, a response's status is by default 200.
I see. That helps, yes.
Assignee: jonas → bzbarsky
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla35
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Release Note Request (optional, but appreciated) [Why is this notable]: possibly breaking code that assumes false behaviour [Suggested wording]: Non-HTTP(S) XHR now returns correct status code. [Links (documentation, blog post, etc)]:
Duplicate of this bug: 1081668
Release note already updated (by lsblakk, I think) - https://developer.mozilla.org/en-US/Firefox/Releases/35#InterfacesAPIsDOM Removing dev-doc-needed.
You need to log in before you can comment on or make changes to this bug.