diff --git a/dom/src/geolocation/nsGeolocation.cpp b/dom/src/geolocation/nsGeolocation.cpp index 3071c27d816f..68b45db47b5f 100644 --- a/dom/src/geolocation/nsGeolocation.cpp +++ b/dom/src/geolocation/nsGeolocation.cpp @@ -881,7 +881,7 @@ nsGeolocation::HasActiveCallbacks() if (mWatchingCallbacks[i]->IsActive()) return true; - return false; + return mPendingCallbacks.Length() != 0; } void