458135 - geolocation hrows NS_ERROR_NOT_AVAILABLE when no geolocation provider. r/sr=jst, a=beltzner
authorDoug Turner <dougt@meer.net>
Mon, 06 Oct 2008 20:57:44 -0700
changeset 20096 fea5aa8c81afc9b4c65db2e2233fe134c6b79c7c
parent 20095 04218932d5b7812d5f6dcbc7504d9891b0e5a5e1
child 20097 55366228f456c08e486cbbd7d61653dba368eff3
push idunknown
push userunknown
push dateunknown
reviewersbeltzner
bugs458135
milestone1.9.1b1pre
458135 - geolocation hrows NS_ERROR_NOT_AVAILABLE when no geolocation provider. r/sr=jst, a=beltzner
dom/src/geolocation/nsGeolocation.cpp
--- a/dom/src/geolocation/nsGeolocation.cpp
+++ b/dom/src/geolocation/nsGeolocation.cpp
@@ -188,17 +188,17 @@ nsGeolocationRequest::Allow()
       return NS_OK; // silently fail
 
     callbackProxy->HandleEvent(positionError);
 
     // remove the stack
     JSContext* cx;
     stack->Pop(&cx);
 
-    return rv;
+    return NS_OK;  // silently fail
   }
 
   mAllowed = PR_TRUE;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsGeolocationRequest::AllowButFuzz()