[OpenLayers-Trac] Re: [OpenLayers] #2911: no reason to expect navigator.userAgent changes

OpenLayers trac-20090302 at openlayers.org
Tue Nov 2 20:07:00 EDT 2010


#2911: no reason to expect navigator.userAgent changes
---------------------+------------------------------------------------------
 Reporter:  tschaub  |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  Util     |     Version:  2.10        
 Keywords:           |       State:  Commit      
---------------------+------------------------------------------------------

Comment(by tschaub):

 As with our other browser name checks, I suspect our Gecko only behavior
 is overly broad (the limitations we work around are typically version and
 or OS dependent).  I know you know this.  I'm only restating it because it
 makes me nauseous to think about trying to undo all this if we ever decide
 that browser support has improved and we want to remove workarounds for
 specific versions.

 I wish I had resisted the simple {{{getBrowserName}}} method more from the
 start.  If we can't do specific feature testing and we are going to resort
 to browser sniffing, we should be very specific working around a
 vendor/version/os combo (and noting as much in the code).

 Anyway, as long as nobody else relies on it and we can get rid of it in
 the future, I'm not against adding IS_GECKO.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2911#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list