Changeset 2247

Show
Ignore:
Timestamp:
2008-07-21 14:28:17 (5 months ago)
Author:
fredck
Message:

Fixed #2363 : There were some sporadic "Permission Denied" errors with IE on some situations.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdocumentprocessor.js

    r2073 r2247  
    143143        } 
    144144 
     145        var processElementsByName = function( elementName, doc ) 
     146        { 
     147                var aObjects = doc.getElementsByTagName( elementName ); 
     148                for ( var i = aObjects.length - 1 ; i >= 0 ; i-- ) 
     149                        processElement( aObjects[i] ) ; 
     150        } 
     151 
     152        var processObjectAndEmbed = function( doc ) 
     153        { 
     154                processElementsByName( 'object', doc ); 
     155                processElementsByName( 'embed', doc ); 
     156        } 
     157 
    145158        return FCKTools.Merge( FCKDocumentProcessor.AppendNew(), 
    146159                       { 
     
    149162                                        // Firefox 3 would sometimes throw an unknown exception while accessing EMBEDs and OBJECTs 
    150163                                        // without the setTimeout(). 
    151                                         FCKTools.RunFunction( function() 
    152                                                 { 
    153                                                         // Process OBJECTs first, since EMBEDs can sometimes go inside OBJECTS (e.g. Flash). 
    154                                                         var aObjects = doc.getElementsByTagName( 'object' ); 
    155                                                         for ( var i = aObjects.length - 1 ; i >= 0 ; i-- ) 
    156                                                                 processElement( aObjects[i] ) ; 
    157  
    158                                                         // Now process any EMBEDs left. 
    159                                                         var aEmbeds = doc.getElementsByTagName( 'embed' ) ; 
    160                                                         for ( var i = aEmbeds.length - 1 ; i >= 0 ; i-- ) 
    161                                                                 processElement( aEmbeds[i] ) ; 
    162                                                 } ) ; 
     164                                        if ( FCKBrowserInfo.IsGecko ) 
     165                                                FCKTools.RunFunction( processObjectAndEmbed, this, [ doc ] ) ; 
     166                                        else 
     167                                                processObjectAndEmbed( doc ) ; 
    163168                                }, 
    164169 
  • FCKeditor/trunk/_whatsnew.html

    r2236 r2247  
    9494                        multiple contiguous paragraphs to Formatted will now be merged into a single  
    9595                        &lt;PRE&gt; block.</li> 
     96                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2363">#2363</a>] There 
     97                        were some sporadic "Permission Denied" errors with IE on some situations.</li> 
    9698        </ul> 
    9799        <p>