diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index f0e6725d45..348a497947 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -1636,7 +1636,8 @@ OpenLayers.Util.removeTail = function(url) { * {Boolean} True if the userAgent reports the browser to use the Gecko engine */ OpenLayers.IS_GECKO = (function() { - return navigator.userAgent.toLowerCase().indexOf("gecko") != -1; + var ua = navigator.userAgent.toLowerCase(); + return ua.indexOf("webkit") == -1 && ua.indexOf("gecko") != -1; })(); /**