Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6389 closed Bug (invalid)

Crash if destroyed too soon after creation

Reported by: Dinu Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.1
Keywords: Cc:

Description

Only tested using jQuery connector: If destroy() is called before all initialisation has finished, the editor crashes.

Change History (3)

comment:1 Changed 7 years ago by Garry Yao

Resolution: invalid
Status: newclosed

We're not indented to be bullet proof in this sense, developers should have valid control over it.

comment:2 Changed 7 years ago by Dinu

What I have now is on instanceReady disable the editor close for 5 seconds. Is there any better way to do this than consider anything between 5 seconds and 30 minutes as a good destroy timeout?

comment:3 Changed 7 years ago by Dinu

Ok, I tracked it down... it's actually due to #6387; with that fixed (or autoGrow disabled) the editor can be destroyed with setTimeout(editor.destroy,0) on instanceReady.

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