I've looked at the documentation to make sure the behavior is documented and expected
I'm kinda sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)
I've searched through the issues to make sure it's not yet reported
Steps to reproduce
Steps to reproduce the behavior:
Open any Leaflet based mapping site.
Select its "Show My Location" option.
Sites like Google Maps and Mapillary query for current location permission and work after granting permission.
Immediately, after selecting "Show My Location" the message "Geolocation error: User denied Geolocation" pops up, without actually querying for permissions to the location.
Leaflet version: Version found as of 5/23/2020 on Cyclosm.org and OpenStreetMap.org. (found VERSION:"1.0.3" in the minified code, but not sure it is related).
Browser (with version): Tesla Car Browser 79, found in a Tesla Model 3 at version 2020.16.2.1. Full user agent string is "Mozilla/5.0 (X11; GNU/Linux) AppleWebKit/537.36 (KHTML, like Gecko)
Chromium/79.0.3945.130 Chrome/79.0.3945.130 Safari/537.36
OS/Platform (with version): Tesla-fied version of Ubuntu
No permission requested at OpenStreetMap.org and Cyclosm.org ...
If the code ask to 'watch' positions then the user isn't asked for permission and you get an error on tesla,
but if the code only ask for one position then the user is asked for permission and it works.