Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Make firefox use system-provided location

  • 3 odpowiedzi
  • 1 osoba ma ten problem
  • 3 wyświetlenia
  • Ostatnia odpowiedź od cor-el

more options

Hello, is there a way to make Firefox 77.0.1 use system-provided location on Ubuntu 18.04?

When I use the gnome-maps program, I see a "gps" icon in top-right system status bar.

But when I use maps in Firefox, no system location request appears. Firefox just queries Mozilla Location Service on it's own (after setting geo.provider.network.url to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%, there was Google (which was failing for some reason) originally), seen in browser console.

Hello, is there a way to make Firefox 77.0.1 use system-provided location on Ubuntu 18.04? When I use the gnome-maps program, I see a "gps" icon in top-right system status bar. But when I use maps in Firefox, no system location request appears. Firefox just queries Mozilla Location Service on it's own (after setting geo.provider.network.url to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%, there was Google (which was failing for some reason) originally), seen in browser console.

Wszystkie odpowiedzi (3)

more options

The Firefox version from the Ubuntu repositories doesn't include the Mozilla Location Service Key used for the geolocation service, you can check that on the "Help -> Troubleshooting Information" (about:support) page.
You will have to use Firefox from the Mozilla server.

Zmodyfikowany przez cor-el w dniu

more options

Yeah, I noticed that the key is missing, but that doesn't seem to be a problem - Firefox just sends "no-mozilla-api-key" instead of a key. I don't see any response in browser console (just 200 OK with no data, though content-length header is 77. maybe a bug?), but I'm located correctly. But that's completely unrelated to my question - how to use system location provider?

Zmodyfikowany przez mvolf w dniu

more options

It is possible for a website to do a reverse DNS lookup of your IP to get your location.
This might be less accurate depending on the gateway your ISP uses.
Without this key it won't be possible to use this service (only the official build includes this key), so it is your choice: either keep using Firefox from the repositories without location service or switch to Firefox from the Mozilla server and have access to this service.