Ticket #1858 (closed defect: fixed)

Opened 3 years ago

Last modified 23 months ago

PopupContainer widget causes exception onUnload

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

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

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

Change History

Changed 3 years ago by bill

  • owner changed from bill to liucougar
  • version changed from 0.5 to 0.4
  • milestone changed from 0.4.1 to 0.5

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.

Changed 3 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 3 years ago by ornus

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

Changed 2 years ago by bill

  • owner changed from liucougar to bill
  • component changed from Widgets to Dijit
  • milestone changed from 0.9 to 1.0

Changed 2 years ago by tk

  • summary changed from PopupContainer widget causes exception on unlead to PopupContainer widget causes exception onUnload

Changed 23 months ago by bill

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 1.0 to 0.9

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.