Bug 782602 - Use NS_FAILED instead of boolean test (parser/html/); r=hsivonen

This commit is contained in:
Aryeh Gregor
2012-08-14 12:10:41 +03:00
parent 5b01f29a20
commit 72c6ba883e
3 changed files with 5 additions and 5 deletions

View File

@@ -1412,7 +1412,7 @@ nsHtml5StreamParser::ContinueAfterScripts(nsHtml5Tokenizer* aTokenizer,
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
NS_ASSERTION(!(mMode == VIEW_SOURCE_HTML || mMode == VIEW_SOURCE_XML),
"ContinueAfterScripts called in view source mode!");
if (mExecutor->IsBroken()) {
if (NS_FAILED(mExecutor->IsBroken())) {
return;
}
#ifdef DEBUG