Bug 1861609: Allow Mac to use our geolocation fallback when system geolocation is disabled r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D196371
This commit is contained in:
David Parks 2023-12-18 19:26:42 +00:00
parent f3819a9d6c
commit 52917acfbb

View File

@ -65,12 +65,6 @@ static const CLLocationAccuracy kDEFAULT_ACCURACY =
console->LogStringMessage(NS_ConvertUTF8toUTF16([message UTF8String]).get());
if ([aError code] == kCLErrorDenied) {
mProvider->NotifyError(
dom::GeolocationPositionError_Binding::PERMISSION_DENIED);
return;
}
// The CL provider does not fallback to GeoIP, so use
// NetworkGeolocationProvider for this. The concept here is: on error, hand
// off geolocation to MLS, which will then report back a location or error.