Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505570 - www-client/firefox - needs a GoogleMaps API-Key for geolocation feature to work
Summary: www-client/firefox - needs a GoogleMaps API-Key for geolocation feature to work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2014-03-24 20:17 UTC by Elias Probst
Modified: 2014-10-27 00:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2014-03-24 20:17:17 UTC
Without supplying a Gentoo-specific GoogleMaps API-Key during buildtime (--with-google-api-keyfile=file), the geolocation feature of Firefox won't work.

How to reproduce:
1. Use www-client/firefox (not -bin which uses a builtin key provided by Mozilla)
2. Go to https://developers.google.com/maps/documentation/javascript/examples/map-geolocation
3. Click on "Share Location" in the appearing popup
4. See the message "Error: The Geolocation service failed."

I'm not sure, since which version this applies. Running 28.0 here and I believe this stopped working since 25.0.


Alternatively, the new (but still experimental) Mozilla Location Service could be used instead. The coverage isn't perfect yet, but still way better than nothing.

Current coverage: https://location.services.mozilla.com/map
API: https://mozilla-ichnaea.readthedocs.org/en/latest/api/geolocate.html

This would be very easy to integrate and wouldn't require a registration (yet) for an API-Key as a randomly generated UUID would be enough for now to be used in:

geo.wifi.uri;https://location.services.mozilla.com/v1/geolocate?key=<UUID>
Comment 1 Jory A. Pratt gentoo-dev 2014-05-11 01:21:33 UTC
Thanks for reporting, i have committed 29.0.1-r1 to the mozilla overlay which now uses the gentoo google api key.
Comment 2 Jory A. Pratt gentoo-dev 2014-10-27 00:19:34 UTC
Has landed in tree with new esr and testing branch thanks for reporting.