#2519: Firefox 3 form submit via javascript with multiple editor instances
----------------------+-----------------------------------------------------
  Reporter:  ccarey   |       Owner:  martinkou        
      Type:  Bug      |      Status:  assigned         
  Priority:  High     |   Milestone:  FCKeditor 2.6.4  
 Component:  General  |     Version:  FCKeditor 2.6.3  
Resolution:           |    Keywords:  Confirmed Firefox
----------------------+-----------------------------------------------------
Changes (by martinkou):

  * priority:  Normal => High


Comment:

 I've found another approach to fix the bug that would need reverting
 [2188] (which makes #1907 reappear).

 What really caused the problem was that the previous code expected a
 certain sequence of execution:
  1. Instance 1 defines FCKeditorAPI, and thus FCKeditorAPI.Instances.
  2. Instance 2 redefines FCKeditorAPI, and overwrites
 FCKeditorAPI.Instances.
  3. Instance 1 and 2 add themselves to FCKeditorAPI.Instances.

 Because Instance 1 and Instance 2 are executed in different windows,
 there's really no guarantee that step 3 will always happen after step 1
 and 2 - race condition. This is what happened in this ticket - Instance 1
 added itself to FCKeditorAPI.Instances before Instance 2 overwrote it and
 cleared it. Thus, after [2188] in sample09.html, either
 FCKeditorAPI.GetInstance('FCKeditor_Default') or
 FCKeditorAPI.GetInstance('FCKeditor_Basic') would give you undefined.

 The real fix to this is to change FCKeditorAPI's code to handle the race
 condition, instead of restoring the hack to make the race condition less
 likely to happen.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2519#comment:12>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to