Ticket #183 (closed Bug: fixed)
Unloads too early from hosted IE control
| Reported by: | ornus@… | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
| Component: | General | Version: | FCKeditor 2.3.2 |
| Keywords: | SF Confirmed | Cc: |
Description
When IE is hosted inside another application it fires unload events when control hides. FCKeditor unloads and when control is visible again editor's unusable. The following page describes the problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;199155
The best way to fix this is to handle onbeforeunload event to verify that page is unloading and unload only then. this should be quite easy to fix.
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1597845&group_id=75348&atid=543653
Change History
comment:2 Changed 5 years ago by fredck
- Keywords Confirmed added
From the above URL:
"Before a Web page unloads, an onbeforeunload event is fired. If the visible property has changed, the event fires but the page still loads, so you can set a flag in that event handler to determine when the final onunload event actually fires (indicating that the page is going away, not just that the visible property has changed)."
Note that we should not simply replace onunload with onbeforeunload. I remember of issues on using onbeforeunload to make the mem leak cleanup. We should still make the cleanup at onunload, but use onbeforeunload to flag it, as described above.
comment:4 Changed 5 years ago by martinkou
- Status changed from new to closed
- Resolution set to fixed
Fixed with [546].
Click here for more info about our SVN system.
