Bug 1125411 - OSX: turn CoreLocation provider on, r=cpeterson

Also, expose this setting in about:config
This commit is contained in:
Garvan Keeley 2015-01-26 12:25:00 +01:00
parent f731776422
commit e7db1cc8a3
2 changed files with 6 additions and 1 deletions

View File

@ -1711,6 +1711,11 @@ pref("dom.debug.propagate_gesture_events_through_content", false);
// The request URL of the GeoLocation backend.
pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
// On Mac, the default geo provider is corelocation.
#ifdef XP_MACOSX
pref("geo.provider.use_corelocation", true);
#endif
// Necko IPC security checks only needed for app isolation for cookies/cache/etc:
// currently irrelevant for desktop e10s
pref("network.disable.ipc.security", true);

View File

@ -809,7 +809,7 @@ nsresult nsGeolocationService::Init()
#endif
#ifdef MOZ_WIDGET_COCOA
if (Preferences::GetBool("geo.provider.use_corelocation", false)) {
if (Preferences::GetBool("geo.provider.use_corelocation", true)) {
mProvider = new CoreLocationLocationProvider();
}
#endif