JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / core / env.js
index 2e6a0ff..5b39c53 100644 (file)
@@ -71,9 +71,16 @@ if ( !CKEDITOR.env )
 \r
                        quirks : ( document.compatMode == 'BackCompat' ),\r
 \r
+                       mobile : ( agent.indexOf( 'mobile' ) > -1 ),\r
+\r
                        isCustomDomain : function()\r
                        {\r
-                               return this.ie && document.domain != window.location.hostname;\r
+                               var domain = document.domain,\r
+                                       hostname = window.location.hostname;\r
+\r
+                               return this.ie &&\r
+                                       domain != hostname &&\r
+                                       domain != ( '[' + hostname + ']' );     // IPv6 IP support (#5434)\r
                        }\r
                };\r
 \r
@@ -176,12 +183,13 @@ if ( !CKEDITOR.env )
                 *     alert( "Your browser is pretty cool!" );\r
                 */\r
                env.isCompatible =\r
+                       !env.mobile && (\r
                        ( env.ie && version >= 6 ) ||\r
                        ( env.gecko && version >= 10801 ) ||\r
                        ( env.opera && version >= 9.5 ) ||\r
                        ( env.air && version >= 1 ) ||\r
                        ( env.webkit && version >= 522 ) ||\r
-                       false;\r
+                       false );\r
 \r
                // The CSS class to be appended on the main UI containers, making it\r
                // easy to apply browser specific styles to it.\r