Ticket #1645: 1645.patch

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

     
    6464                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed the issue
    6565                        where the fit window command loses the current selection and scroll position in the
    6666                        editing area.</li>
     67                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1645">#1645</a>] Added warning message
     68                        about Firefox 3's strict origin policy.</li>
    6769        </ul>
    6870        <p>
    6971                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/fckeditor.html

     
    3030        <meta http-equiv="Cache-Control" content="public">
    3131        @Packager.RemoveLine -->
    3232        <script type="text/javascript">
     33// #1645: Alert the user if opening FCKeditor in FF3 from local filesystem
     34// without security.fileuri.strict_origin_policy disabled.
     35if ( document.location.protocol == 'file:' )
     36{
     37        try
     38        {
     39                var d = window.parent.document.domain ;
     40        }
     41        catch ( e )
     42        {
     43                window.addEventListener( 'load', function()
     44                                {
     45                                        document.body.innerHTML = '<p style="font-family: arial; font-size: 12px; color: red;"> \
     46                                        Your browser security settings don\'t allow FCKeditor to be opened from \
     47                                        the local filesystem. Please go to about:config and disable the \
     48                                        option &quot;security.fileuri.strict_origin_policy&quot; and load this page again.</p> \
     49                                        <p style="font-family: arial; font-size: 12px; color: red;">For more information \
     50                                        See our FAQ entry <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms"> \
     51                                        Why am I getting &quot;Permission denied&quot; errors when I&#39;m \
     52                                        opening the FCKeditor HTML samples in Firefox 3 from the local filesystem?</a></p>';
     53                                        document.body.style.border = "1px red solid";
     54                                }, false );
     55        }
     56}
    3357
    3458// Save a reference to the default domain.
    3559var FCK_ORIGINAL_DOMAIN ;
     
    192216
    193217        </script>
    194218        <script type="text/javascript">
    195 
    196219// Adobe AIR compatibility file.
    197220if ( FCKBrowserInfo.IsAIR )
    198221        LoadScript( 'js/fckadobeair.js' ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy