Opened 13 years ago

Closed 12 years ago

#3177 closed defect (fixed)

xdomain loading: possible error if local module does dojo.requireLocalization on an xd i18n bundle.

Reported by: James Burke Owned by: James Burke
Priority: high Milestone: 0.9
Component: Loader Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

A local module loaded via XHR might try to do a dojo.requireLocalization() on an xd i18n bundle (maybe to reuse some date, numbering stuff?), and that case will probably fail.

This happens because loader_xd.js assumes that dojo.requireLocalization calls inside a local module are for local resources, and will be loaded via a synchronous XHR, so it does not try to track them.

loader_xd.js::dojo._xdCreateResource should pull out requireLocalization calls for remote resources and make sure they are loaded up front before the module is evaluated.

Marking as 0.9beta, but this could be considered an edge case, something to pick up for 0.9 final.

Change History (2)

comment:1 Changed 13 years ago by James Burke

Milestone: 0.9beta0.9
Status: newassigned

Moving to 0.9 final. This is a a pretty extreme edge case.

comment:2 Changed 12 years ago by James Burke

Resolution: fixed
Status: assignedclosed

This was addressed in a recent bug fix by rcoup. I can't find it now, but I think that is as good as it will get for this issue. Closing.

Note: See TracTickets for help on using tickets.