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
This commit is contained in:
vidur%netscape.com
1999-12-15 00:24:02 +00:00
parent 05fbd9adbc
commit d890df84fa

View File

@@ -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 {