Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Geolocation not working (Firefox, Chromium)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
davydm
n00b
n00b


Joined: 06 Jan 2017
Posts: 27

PostPosted: Mon Jan 14, 2019 1:30 pm    Post subject: Geolocation not working (Firefox, Chromium) Reply with quote

I've noticed that geolocation doesn't work on either Firefox (64.0) (*) or chromium (71.0.3578.80) but does work in google-chrome (71.0.3578.98), which suggests that there's a USE flag that I'm missing for both locally-compiled browsers; however `equery u firefox` and `equery u chromium` don't seem to show any flags specific to geolocation.

What am I missing?

I need geolocation for the work I'm doing and I'd much rather not have google's binaries installed on my machine.

(*) specifically, the error handler for navigator.getCurrentPosition is invoked with the message "Unknown error acquiring position", which doesn't really narrow it down; and yes, I do allow location requests on the pages I'm testing on.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5801

PostPosted: Mon Jan 14, 2019 1:42 pm    Post subject: Reply with quote

My understanding is that the location stuff in browsers works based on your external (if you're behind a router) ip address to find out what isp you're using, then make an educated guess about where you might be. Websites often get it wrong for me, sometimes up to 100km away.

edit: google does some shady stuff on android with gps and wifi access point scanning to map and triangulate a little more accurately, at the cost of privacy. not sure if they do the same thing on pc-based chrome.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
davydm
n00b
n00b


Joined: 06 Jan 2017
Posts: 27

PostPosted: Mon Jan 14, 2019 1:57 pm    Post subject: Reply with quote

I'm quite sure you're right about the "how" of geolocation on desktop browsers.

TBH, for my current needs, I don't need it to be accurate -- I just need any sort of answer, since I'm developing against the user's current location. Google Chrome, for instance, reports me about 10km away from where I really am, but it's better than no answer at all. Although, for my users, I guess they'd like some semblance of accuracy: geolocation is used to determine which restaurants in our catalog are in their area, and hence, which restaurants they can order from. Obviously, with no result, we have no idea what restaurants to recommend to the user, so I get an empty list :/

Whilst I also accept that Google Chrome may just be doing super-dodgy stuff behind my back, if there is something I can do to fix this for other browsers, I'd still be interested (:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum