diff --git a/dom/src/geolocation/nsGeolocation.cpp b/dom/src/geolocation/nsGeolocation.cpp index b70d109ed1e1..a1ddb04f411f 100644 --- a/dom/src/geolocation/nsGeolocation.cpp +++ b/dom/src/geolocation/nsGeolocation.cpp @@ -574,6 +574,11 @@ nsresult nsGeolocationService::Init() return NS_ERROR_FAILURE; } + if (XRE_GetProcessType() == GeckoProcessType_Content) { + sGeoInitPending = false; + return NS_OK; + } + nsCOMPtr provider = do_GetService(NS_GEOLOCATION_PROVIDER_CONTRACTID); if (provider) { mProviders.AppendObject(provider);