Use the Mozilla Location Service key when the Google Key is not there
authorMike Hommey <mh@glandium.org>
Sat, 1 Apr 2017 21:33:19 +0000 (06:33 +0900)
committerMike Hommey <glandium@debian.org>
Tue, 28 Jul 2020 22:23:16 +0000 (23:23 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Use-the-Mozilla-Location-Service-key-when-the-Google.patch

browser/app/profile/firefox.js

index d7359299091012f7d0a949d7d5033e4ed713dd8a..778d29763f6ad581c9c3a607523ceb1e3ca62701 100644 (file)
@@ -1394,7 +1394,7 @@ pref("dom.debug.propagate_gesture_events_through_content", false);
 
 // All the Geolocation preferences are here.
 //
-#ifndef EARLY_BETA_OR_EARLIER
+#if !defined(EARLY_BETA_OR_EARLIER) && defined(GOOGLE_LOCATION_SERVICE_API_KEY)
 pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
 #else
 // Use MLS on Nightly and early Beta.