From d890df84fa580a67e604cc60d121313ffad5027f Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Wed, 15 Dec 1999 00:24:02 +0000 Subject: [PATCH] Fix for bug 10644. In cases where we expect boolean attributes, accept anything that can be converted to a boolean. a=jar r=pollmann. git-svn-id: svn://10.0.0.236/trunk@56004 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsJSUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/dom/src/base/nsJSUtils.cpp b/mozilla/dom/src/base/nsJSUtils.cpp index d3d6d794bee..5f8f31ebce1 100644 --- a/mozilla/dom/src/base/nsJSUtils.cpp +++ b/mozilla/dom/src/base/nsJSUtils.cpp @@ -420,7 +420,7 @@ nsJSUtils::nsConvertJSValToBool(PRBool* aProp, jsval aValue) { JSBool temp; - if (JSVAL_IS_BOOLEAN(aValue) && JS_ValueToBoolean(aContext, aValue, &temp)) { + if (JS_ValueToBoolean(aContext, aValue, &temp)) { *aProp = (PRBool)temp; } else {