X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fenv.js;h=5b39c53b7b7299370e80927a80d9931f463f6c67;hb=refs%2Ftags%2Fv3.3;hp=ec4dc7bf338282bf7f52a13050a4b7013e96969a;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/env.js b/_source/core/env.js index ec4dc7b..5b39c53 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -71,9 +71,16 @@ if ( !CKEDITOR.env ) quirks : ( document.compatMode == 'BackCompat' ), + mobile : ( agent.indexOf( 'mobile' ) > -1 ), + isCustomDomain : function() { - return this.ie && document.domain != window.location.hostname; + var domain = document.domain, + hostname = window.location.hostname; + + return this.ie && + domain != hostname && + domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434) } }; @@ -176,12 +183,13 @@ if ( !CKEDITOR.env ) * alert( "Your browser is pretty cool!" ); */ env.isCompatible = + !env.mobile && ( ( env.ie && version >= 6 ) || ( env.gecko && version >= 10801 ) || ( env.opera && version >= 9.5 ) || ( env.air && version >= 1 ) || ( env.webkit && version >= 522 ) || - false; + false ); // The CSS class to be appended on the main UI containers, making it // easy to apply browser specific styles to it.