Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation error: User denied Geolocation on Tesla Chromium based browser #7157

Open
3 tasks done
treestryder opened this issue May 23, 2020 · 5 comments
Open
3 tasks done
Labels
brainmelt compatibility Cross-browser/device/environment compatibility needs investigation

Comments

@treestryder
Copy link

  • 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:

  • step 1
    Open any Leaflet based mapping site.
  • step 2
    Select its "Show My Location" option.

Expected behavior
Sites like Google Maps and Mapillary query for current location permission and work after granting permission.

Current behavior
Immediately, after selecting "Show My Location" the message "Geolocation error: User denied Geolocation" pops up, without actually querying for permissions to the location.

Environment

  • 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
    Tesla/2020.16.2.1-e99c70fff409"
  • OS/Platform (with version): Tesla-fied version of Ubuntu

Additional context
No permission requested at OpenStreetMap.org and Cyclosm.org ...

Geolocation_error_User_Denied_Geolocation_OpenStreetMap
Geolocation_error_User_Denied_Geolocation_Cyclosm

Permission is requested at Mapillary.com ...

Geolocation_error_User_Denied_Geolocation_Mapollary_Works

I found the announcement that "Geolocation API Removed from Unsecured Origins in Chrome 50", however these sites are all using HTTPS.

@IvanSanchez
Copy link
Member

@treestryder Could you please try https://browserleaks.com/geo and see if that works as expected?

@treestryder
Copy link
Author

Well, it asked for my permission...
GeoRequest1

And despite saying "denied", they have my position, as successfully shown on the map, within 0.78 meters...
GeoBrowserLeak

@IvanSanchez IvanSanchez added brainmelt compatibility Cross-browser/device/environment compatibility needs investigation labels May 29, 2020
@IvanSanchez
Copy link
Member

What the heck is going on and how could any maintainer test this without buying a new car? Damn.

@treestryder
Copy link
Author

Every FLOSS maintainer deserves a Tesla.

In the meantime, I will do what I can to help. I have some coding and debugging skills, however I am coming into this afresh (not sure where to start) and have no way to hit F12 on this browser.

@aanndd
Copy link

aanndd commented Jul 10, 2021

Hi!
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brainmelt compatibility Cross-browser/device/environment compatibility needs investigation
Projects
None yet
Development

No branches or pull requests

3 participants