Bug 836994: Check the right array when using using WatchPosition. r=jdm

This commit is contained in:
Glenna Buford 2013-02-03 13:39:00 +00:00
parent 3c1bba8bca
commit 476b88a145

View File

@ -1337,7 +1337,7 @@ nsGeolocation::WatchPosition(nsIDOMGeoPositionCallback *callback,
{
NS_ENSURE_ARG_POINTER(callback);
if (mPendingCallbacks.Length() > MAX_GEO_REQUESTS_PER_WINDOW) {
if (mWatchingCallbacks.Length() > MAX_GEO_REQUESTS_PER_WINDOW) {
return NS_ERROR_NOT_AVAILABLE;
}