Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#4049 closed defect (fixed)

registerWin in focus.js when called from child iframe

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


When loading dojo/dijit loaded into an iframe, a mousedown event is attached to the top window from the child window. If that iframe is then removed, a "freed script" error results on mousedown of the top window.

Change focus to add mousedown to current window and children instead of top window and children.

Patch included.

Attachments (1)

focus.patch (434 bytes) - added by guest 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by guest

Attachment: focus.patch added

comment:1 Changed 15 years ago by bill

Resolution: fixed
Status: newclosed

(In [10014]) Remove seemingly unnecessary recursion to nested frame and indirection from window-->document-->back to window again, in focus.js listener registration. Also, for dojo in an iframe, don't try to register listeners on the parent window, because it might be in a separate domain. Fixes #4049.

Note: See TracTickets for help on using tickets.