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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user