user-agent-desktop
user-agent-desktop copied to clipboard
Customize Geolocation
modules/libpref/init/all.js (prefs starting with geo.)
https://github.com/ghostery/user-agent-desktop/blob/8f59bd745702f7c76f97bc3d67472577824ac644/modules/libpref/init/all.js#L4040
https://github.com/ghostery/user-agent-desktop/blob/8f59bd745702f7c76f97bc3d67472577824ac644/modules/libpref/init/all.js#L4058
https://github.com/ghostery/user-agent-desktop/blob/8f59bd745702f7c76f97bc3d67472577824ac644/modules/libpref/init/all.js#L4067
Geolocation may be a tricky thing. I remember Cliqz had some issues with loosing access to Mozilla Locaiton Services. We have to check if it is fine to used the same keys or we should maybe get new ones.
As observed on MacOS and Windows, it is operating system that provided geolocation data. As we are pending for response from MLS lets push this issue for next milestone.
Location services currently hit location.services.mozilla.com/v1/country?key=no-mozilla-api-key on browser startup. The location service url can be changes via the browser.region.network.url pref. (cc #198)