From 804860891e76dee7e3f0f63f8615beb5098459cb Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Fri, 18 Nov 2011 10:54:58 -0800 Subject: [PATCH] Bug 700195 - Propagate error in netscape_security_isPrivilegeEnabled. r=bholley --HG-- extra : rebase_source : bcf741d0e8aa5838719610d5ae966915c926e489 --- caps/src/nsSecurityManagerFactory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caps/src/nsSecurityManagerFactory.cpp b/caps/src/nsSecurityManagerFactory.cpp index ae8558ef4bba..961d478e0281 100644 --- a/caps/src/nsSecurityManagerFactory.cpp +++ b/caps/src/nsSecurityManagerFactory.cpp @@ -144,6 +144,8 @@ netscape_security_isPrivilegeEnabled(JSContext *cx, uintN argc, jsval *vp) if (NS_FAILED(rv)) result = JS_FALSE; } + } else { + return JS_FALSE; } JS_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(result)); return JS_TRUE;