Fix hang when style.cssText is set to an unrecognized value. Bug

129927, r=dbaron, sr=jst, a=roc+moz
This commit is contained in:
bzbarsky%mit.edu 2002-03-12 15:28:27 +00:00
Родитель c637ecd828
Коммит 5353b81526
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

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