diff --git a/dom/src/geolocation/nsGeolocation.cpp b/dom/src/geolocation/nsGeolocation.cpp index 3071c27d816..68b45db47b5 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