Ticket #7847: 7847.patch

File 7847.patch, 1.3 KB (added by Garry Yao, 13 years ago)
  • _source/core/env.js

     
    103103
    104104                                return domain != hostname &&
    105105                                        domain != ( '[' + hostname + ']' );     // IPv6 IP support (#5434)
    106                         }
     106                        },
     107
     108                        /**
     109                         * Indicates that page is running under an encrypted connection.
     110                         * @returns {Boolean} "true" if the page has an encrypted connection.
     111                         * @example
     112                         * if ( CKEDITOR.env.secure )
     113                         *     alert( "I'm in SSL!" );
     114                         */
     115                        secure : location.protocol == 'https:'
    107116                };
    108117
    109118                /**
  • _source/core/dom/element.js

     
    10621062                                        return this;
    10631063                                };
    10641064                        }
    1065                         else
     1065                        else if ( CKEDITOR.env.ie8Compat && CKEDITOR.env.secure )
     1066                        {
     1067                                return function( name, value )
     1068                                {
     1069                                        // IE8 throws error when setting src attribute to non-ssl value. (#7847)
     1070                                        if ( name == 'src' && value.match( /^http:\/\// ) )
     1071                                                try { standard.apply( this, arguments ); } catch( e ){}
     1072                                        else
     1073                                                standard.apply( this, arguments );
     1074                                        return this;
     1075                                };
     1076                        }
     1077                        else
    10661078                                return standard;
    10671079                })(),
    10681080
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy