[OpenLayers-Trac] [OpenLayers] #3566: Send locationfailed event when user declined use of Geolocation-API on Firefox and IE

OpenLayers trac-20090302 at openlayers.org
Thu Nov 3 09:08:05 EDT 2011


#3566: Send locationfailed event when user declined use of Geolocation-API on
Firefox and IE
---------------------------------+------------------------------------------
 Reporter:  carstor              |       Owner:  elemoine    
     Type:  bug                  |      Status:  new         
 Priority:  minor                |   Milestone:  2.12 Release
Component:  Control.Geolocation  |     Version:  2.11        
 Keywords:                       |       State:              
---------------------------------+------------------------------------------
 When trying to query the location of the current device via
 OpenLayers.Control.Geolocate, Firefox and IE behave differently than
 Safari and Chrome when the users declines the usage of the location
 information.

 On Safari and Chrome a 'locationfailed' event is fired, while both Firefox
 and IE fail silently. I think the behaviour of Safari and Chrome is the
 desired one. According to
 https://developer.mozilla.org/en/Using_geolocation at least Firefox
 supports PERMISSION_DENIED errors, so OpenLayers should be able to handle
 those situations?

 Tested on Windows 7 with Firefox 7.0.1, IE 9.0.8112.16421, Safari 5.1.1
 and Chrome 15.0.874.106.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3566>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list