Ticket #3814 (new defect)
Errors in sync xhr are squelched
| Reported by: | guest | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | IO | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: | sjmiles |
Description
If the xhrPost test in dojo ests\_basexhr.html is modified to a sync and an error happens while handling the request, the error should not be squelched. I should be able to catch the error in my code and progress accordingly.
function xhrPost(t){
var d = new doh.Deferred();
var td = dojo.xhrPost({
sync: true,
url: "xhr.html?foo=bar", // self
content: { color: "blue"},
handle: function(res, ioArgs){
throw "test";
if((dojo._isDocumentOk(ioArgs.xhr))||
(ioArgs.xhr.status == 405)
){
d.callback(true);
}else{
d.errback(false);
}
}
});
alert("should not see this!");
// t.t(td instanceof dojo.Deferred);
return d;
},
Change History
Note: See
TracTickets for help on using
tickets.