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)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Tue, 8 Aug 2023 09:37:53 +0000 (10:37 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Use-the-Mozilla-Location-Service-key-when-the-Google.patch

modules/libpref/init/all.js

index 6e0effe78babbd1aaa832cd9f51311bee3b64b7e..5aa5b20815221993109b94881f29c08037b709c0 100644 (file)
@@ -3557,7 +3557,7 @@ pref("network.psl.onUpdate_notify", 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.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%");
 #else
   // Use MLS on Nightly and early Beta.