Opened 13 years ago

Closed 12 years ago

#1858 closed defect (fixed)

PopupContainer widget causes exception onUnload

Reported by: ornus Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4
Keywords: popupcontainer Cc: sol@…
Blocked By: Blocking:

Description

PopupContainer? widget is unregistering all windows on unload. if some window is showing content from different domain it's not accessible and a security exception is thrown in the middle of the process.

Attachments (1)

popupContainer_1.patch (529 bytes) - added by ornus 13 years ago.
patch to fix the problem. I failed to create consistent test case, but with this patch occasional problems I had dissapeared

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by bill

Milestone: 0.4.10.5
Owner: changed from bill to liucougar
Version: 0.50.4

I don't understand. How can you show content from a different domain? Are you using an iframe? In any case, please attach a testcase to the bug.

comment:2 Changed 13 years ago by ornus

I encountered the problem when I have a text editor (FCKEditor in this case) on the page which uses iframes. I'll try to reproduce the problem, but it wasn't consistent. I fixed it by simply putting call to unregister window method in a try/catch scope and ignoring exceptions.

Changed 13 years ago by ornus

Attachment: popupContainer_1.patch added

patch to fix the problem. I failed to create consistent test case, but with this patch occasional problems I had dissapeared

comment:3 Changed 12 years ago by bill

Component: WidgetsDijit
Milestone: 0.91.0
Owner: changed from liucougar to bill

comment:4 Changed 12 years ago by tk

Summary: PopupContainer widget causes exception on unleadPopupContainer widget causes exception onUnload

comment:5 Changed 12 years ago by bill

Milestone: 1.00.9
Resolution: fixed
Status: newclosed

We don't do this anymore in 0.9, so no longer a problem (we only listen to events in the current window)

Note: See TracTickets for help on using tickets.