зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1512161
- Use Windows & Mac system API for geolocation r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D13802 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a3f78d31a5
Коммит
655b56fb73
|
@ -1354,37 +1354,16 @@ pref("dom.debug.propagate_gesture_events_through_content", false);
|
|||
|
||||
// All the Geolocation preferences are here.
|
||||
//
|
||||
|
||||
// Geolocation preferences for the RELEASE and "later" Beta channels.
|
||||
// Some of these prefs are specified even though they are redundant; they are
|
||||
// here for clarity and end-user experiments.
|
||||
#ifndef EARLY_BETA_OR_EARLIER
|
||||
pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%");
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
pref("geo.provider.use_corelocation", false);
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
pref("geo.provider.ms-windows-location", false);
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
pref("geo.provider.use_gpsd", false);
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
// Geolocation preferences for Nightly/Aurora/Beta.
|
||||
pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
||||
// MLS URL:
|
||||
// pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
pref("geo.provider.use_corelocation", true);
|
||||
#endif
|
||||
|
||||
// The native Windows location provider is only enabled in Nightly and likely to
|
||||
// be unstable. Set to false if things are really broken.
|
||||
#if defined(XP_WIN) && defined(NIGHTLY_BUILD)
|
||||
// Set to false if things are really broken.
|
||||
#ifdef XP_WIN
|
||||
pref("geo.provider.ms-windows-location", true);
|
||||
#endif
|
||||
|
||||
|
@ -1392,8 +1371,6 @@ pref("geo.provider.ms-windows-location", true);
|
|||
pref("geo.provider.use_gpsd", true);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// CustomizableUI debug logging.
|
||||
pref("browser.uiCustomization.debug", false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче