зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c637ecd828
Коммит
5353b81526
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче