Ticket #495 (closed defect: fixed)
JavaScript error, when closing dialogs in Explorer
| Reported by: | anonymous | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When a Xinha dialog window is closed using the Windows close button (the little x in the right upper corner) I get an JavaScript? error.
This error seems to occures only, if you use the Explorer (not Internet Explorer) to view the page. You have to open a normal Explorer window (for example for C:) and then enter the URL in the address bar. (I assume, this is somehow related to the fact, that the opened dialog is in a different process than the main page. The main window has a little folder symbol in the taskbar, the dialog an Internet Explorer symbol...)
When I added this line:
window.onunload = __dlg_onclose;
behind window.moveTo(x, y) in the second else clause in __dlg_init in popup.js it seemed to solve the problem. Without this line opener.Dialog._return is not called when the window is closed and so it never gets released.
