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:
bzbarsky%mit.edu
2002-03-12 15:28:27 +00:00
parent ccecb1772c
commit ea8a36ff35
2 changed files with 14 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);