[OpenLayers-Commits] r10909 - trunk/openlayers/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Nov 23 04:19:25 EST 2010
Author: ahocevar
Date: 2010-11-23 01:19:25 -0800 (Tue, 23 Nov 2010)
New Revision: 10909
Modified:
trunk/openlayers/lib/OpenLayers/Util.js
Log:
set IS_GECKO to true only for real gecko browsers, not for webkit ones. r=bartvde (closes #2942)
Modified: trunk/openlayers/lib/OpenLayers/Util.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Util.js 2010-11-23 09:10:18 UTC (rev 10908)
+++ trunk/openlayers/lib/OpenLayers/Util.js 2010-11-23 09:19:25 UTC (rev 10909)
@@ -1636,7 +1636,8 @@
* {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;
})();
/**
More information about the Commits
mailing list