Fix hang when style.cssText is set to an unrecognized value. Bug
129927, r=dbaron, sr=jst, a=roc+moz git-svn-id: svn://10.0.0.236/trunk@116404 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -730,6 +730,13 @@ CSSParserImpl::ParseAndAppendDeclaration(const nsAReadableString& aBuffer,
|
||||
|
||||
if (NS_FAILED(errorCode))
|
||||
break;
|
||||
|
||||
if (!SkipDeclaration(errorCode, PR_FALSE)) {
|
||||
if (errorCode != -1) {
|
||||
rv = errorCode;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (!aParseOnlyOneDecl);
|
||||
|
||||
|
||||
@@ -730,6 +730,13 @@ CSSParserImpl::ParseAndAppendDeclaration(const nsAReadableString& aBuffer,
|
||||
|
||||
if (NS_FAILED(errorCode))
|
||||
break;
|
||||
|
||||
if (!SkipDeclaration(errorCode, PR_FALSE)) {
|
||||
if (errorCode != -1) {
|
||||
rv = errorCode;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (!aParseOnlyOneDecl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user