Opened 14 years ago
Closed 13 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: | [email protected]… |
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)
Change History (6)
comment:1 Changed 14 years ago by
Milestone: | 0.4.1 → 0.5 |
---|---|
Owner: | changed from bill to liucougar |
Version: | 0.5 → 0.4 |
comment:2 Changed 14 years ago by
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 14 years ago by
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 14 years ago by
Component: | Widgets → Dijit |
---|---|
Milestone: | 0.9 → 1.0 |
Owner: | changed from liucougar to bill |
comment:4 Changed 13 years ago by
Summary: | PopupContainer widget causes exception on unlead → PopupContainer widget causes exception onUnload |
---|
comment:5 Changed 13 years ago by
Milestone: | 1.0 → 0.9 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
We don't do this anymore in 0.9, so no longer a problem (we only listen to events in the current window)
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.