Ticket #3566 (new bug)

Opened 20 months ago

Send locationfailed event when user declined use of Geolocation-API on Firefox and IE

Reported by: carstor Owned by: elemoine
Priority: minor Milestone: 2.13 Release
Component: Control.Geolocation Version: 2.11
Keywords: Cc:
State:

Description

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.

Note: See TracTickets for help on using tickets.