Opened 13 years ago

Closed 13 years ago

#8252 closed defect (fixed)

ContentPane: calls onLoadError upon cancel

Reported by: bill Owned by: bill
Priority: high Milestone: 1.3
Component: Dijit Version: 1.2.1
Keywords: Cc:
Blocked By: Blocking:


When an in-flight href is cancelled, either explicitly by calling cancel() or indirectly by:

  • calling attr('href', ...) with a new href
  • destroying the contentpane
  • etc.

... then it calls _onError() which prints the "error" message in the console, among possibly other bad things.

This seems wrong, as there really is no error, just a cancellation.

Bug can be seen in the test case for #8241 and probably other places too. I think I remember seeing a bunch of these console error messages in the unit tests.

Change History (2)

comment:1 Changed 13 years ago by bill

Owner: set to bill
Status: newassigned

The main cause of this problem is just a typo (i.e., spelling disagreement) in ContentPane?.js, which I'll fix.

There is something that goes to console from dojo.xhr though, that's beyond my control:

var _deferError = function(/*Error*/error, /*Deferred*/dfd){
    //summary: errHandler function for dojo._ioSetArgs call.
return error;

comment:2 Changed 13 years ago by bill

Resolution: fixed
Status: assignedclosed

Fixed by [16045] (trac should have closed this automatically).

Note: See TracTickets for help on using tickets.