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, 11 Jun 2024 20:41:00 +0000 (05:41 +0900)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Use-the-Mozilla-Location-Service-key-when-the-Google.patch

modules/libpref/init/all.js

index 3f860aa32061e37b790785b4c9e7c041e588195b..e461e560cf8b564d8e7638226152445ea11aaebd 100644 (file)
@@ -3247,7 +3247,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.