Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Make firefox use system-provided location

  • 3 отговора
  • 1 има този проблем
  • 3 изгледи
  • Последен отговор от 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.

Всички отговори (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.

Променено на от cor-el

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?

Променено на от mvolf

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.