Ticket #2117: 2117.patch

File 2117.patch, 2.2 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    122122                        Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.</li>
    123123                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2218">#2218</a>] Improved Gecko based browser
    124124                        detection to accept Epiphany/Gecko as well.</li>
     125                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2117">#2117</a>] Fixed the issue where the file
     126                        browser does not work under domain relaxation mode under Firefox 2.x or lower.</li>
    125127        </ul>
    126128        <h3>
    127129                Version 2.6</h3>
  • editor/filemanager/browser/default/js/fckxml.js

     
    6161                {
    6262                        if ( oXmlHttp.readyState == 4 )
    6363                        {
    64                                 if ( ( oXmlHttp.status != 200 && oXmlHttp.status != 304 ) || oXmlHttp.responseXML == null || oXmlHttp.responseXML.firstChild == null )
     64                                var oXml ;
     65                                try
    6566                                {
     67                                        // this is the same test for an FF2 bug as in fckxml_gecko.js
     68                                        // but we've moved the responseXML assignment into the try{}
     69                                        // so we don't even have to check the return status codes.
     70                                        var test = oXmlHttp.responseXML.firstChild ;
     71                                        oXml = oXmlHttp.responseXML ;
     72                                }
     73                                catch ( e )
     74                                {
     75                                        try
     76                                        {
     77                                                oXml = (new DOMParser()).parseFromString( oXmlHttp.responseText, 'text/xml' ) ;
     78                                        }
     79                                        catch ( e ) {}
     80                                }
     81
     82                                if ( !oXml || !oXml.firstChild || oXml.firstChild.nodeName == 'parsererror' )
     83                                {
    6684                                        alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' +
    6785                                                        'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')\n\n' +
    6886                                                        'Requested URL:\n' + urlToCall + '\n\n' +
     
    7088                                        return ;
    7189                                }
    7290
    73                                 oFCKXml.DOMDocument = oXmlHttp.responseXML ;
     91                                oFCKXml.DOMDocument = oXml ;
    7492                                asyncFunctionPointer( oFCKXml ) ;
    7593                        }
    7694                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy