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 spoofing working inconsistently in several online mapping services #169

Open
whatbh opened this issue Feb 8, 2022 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@whatbh
Copy link

whatbh commented Feb 8, 2022

"Find my location" feature on a few sites (OpenStreetMap, Google Maps, browserleaks.com/geo) does not work at all when Geolocation API is enabled in JS Restrictor.
Quick check in web console shows this error upon requesting location (Figure 1)

Uncaught TypeError: 'getCurrentPosition' called on an object that does not implement interface Geolocation.

Figure 1: Error in web console upon location request.
Screen Shot 2022-02-08 at 7 46 48 AM

Specifications: Firefox 98 on MacOS. Tested another alternative addon "Location Guard" and it worked fine.

@polcak polcak added bug Something isn't working question Further information is requested labels Feb 25, 2022
@polcak
Copy link
Owner

polcak commented Feb 25, 2022

Can you tell me your browser and JSR/JShelter version you use?

@whatbh
Copy link
Author

whatbh commented Feb 25, 2022

Several updates have been released from last time. I tried again with Firefox 99 Nightly and JSR 0.7. Here's the more detailed report.

Tried with fresh Firefox profiles, no extension except JSR, one profile with resistFingerprinting enabled, the other with RFP disabled, both reproduce the same result.

Levels/Services Google Maps Bing Maps HERE Map OpenStreetMap https://browserleaks.com/geo
Turn off (Negative control) Can locate normally Can locate normally Can locate normally Can locate normally Can locate normally
Village Can locate normally Can locate normally Can locate normally 🚫 Error 🚫 Error
Recommended (Town) Can locate normally Can locate normally Can locate normally 🚫 Error (Do not show popup request location, show error in console) 🚫 Error (Do not show popup request location, show error in console)
Region Can locate normally ⚠️ Work sometimes 🚫 Error 🚫 Error 🚫 Error
Long distance Can locate normally ⚠️ Work sometimes 🚫 Error 🚫 Error 🚫 Error
Strict (Positive control) 🚫 Error 🚫 Error 🚫 Error 🚫 Error 🚫 Error

Conclusion: Some how it does not work with OpenStreetMap and "https://browserleaks.com/geo". Maybe I should update the title.
Update: At "Region" and "Long distance" levels, it's sluggish with Bing Maps, works intermittently, and with HERE Maps it doesn't work at all.

@whatbh whatbh changed the title Geolocation spoofing not working Geolocation spoofing not working (update: for OpenStreetMap and "https://browserleaks.com/geo") Feb 25, 2022
@whatbh whatbh changed the title Geolocation spoofing not working (update: for OpenStreetMap and "https://browserleaks.com/geo") Geolocation spoofing not working for OpenStreetMap and "https://browserleaks.com/geo" Feb 25, 2022
@whatbh whatbh changed the title Geolocation spoofing not working for OpenStreetMap and "https://browserleaks.com/geo" Geolocation spoofing working inconsistently in several online mapping services inconsistent Mar 7, 2022
@whatbh whatbh changed the title Geolocation spoofing working inconsistently in several online mapping services inconsistent Geolocation spoofing working inconsistently in several online mapping services Mar 7, 2022
@polcak
Copy link
Owner

polcak commented Sep 22, 2023

I see I did not propagated the pagure issue here https://pagure.io/JShelter/webextension/issue/22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants