Opened 11 years ago

Closed 10 years ago

#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 (4)

comment:1 Changed 11 years ago by Frederico Caldeira Knabben

Reporter: changed from Frederico Caldeira Knabben to ornus@…

comment:2 Changed 11 years ago by Frederico Caldeira Knabben

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:3 Changed 11 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.5

comment:4 Changed 10 years ago by Martin Kou

Resolution: fixed
Status: newclosed

Fixed with [546].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy