XHR should pass errors to dfd.errBack and not let them bubble up
In IE (8) if you pass an invalid domain (e.g. http://dklfj.sds) as the url to an xhr call (e.g. dojo.xhrPost) IE will throw an exception during the xhr.open() call of dojo.xhr(). This exception will end up bubbling up to the calling code. In other error cases (e.g. when you get a 404 or invalid JSON data) the exception will be properly caught and passed to the deferred's errback. I think this should occur in this case as well.
Change History (5)
Component: |
General →
Core
|
Owner: |
changed from anonymous to James Burke
|
Milestone: |
future →
1.8
|
Owner: |
changed from James Burke to Bryan Forbes
|
Status: |
new →
assigned
|
Type: |
defect →
enhancement
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Reassigning to Bryan since he's implementing dojo/request. For you to either fix or mark as "wontfix". I would mark as wontfix because ISTM like a corner case that we shouldn't bother adding any code for.