diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp index bfcdf374564d..21ddd7266c07 100644 --- a/content/html/document/src/nsHTMLContentSink.cpp +++ b/content/html/document/src/nsHTMLContentSink.cpp @@ -2960,11 +2960,12 @@ IsJavaScriptLanguage(const nsString& aName) nsresult HTMLContentSink::ResumeParsing() { + nsresult result=NS_OK; if (nsnull != mParser) { - mParser->EnableParser(PR_TRUE); + result=mParser->EnableParser(PR_TRUE); } - return NS_OK; + return result; } PRBool diff --git a/layout/html/document/src/nsHTMLContentSink.cpp b/layout/html/document/src/nsHTMLContentSink.cpp index bfcdf374564d..21ddd7266c07 100644 --- a/layout/html/document/src/nsHTMLContentSink.cpp +++ b/layout/html/document/src/nsHTMLContentSink.cpp @@ -2960,11 +2960,12 @@ IsJavaScriptLanguage(const nsString& aName) nsresult HTMLContentSink::ResumeParsing() { + nsresult result=NS_OK; if (nsnull != mParser) { - mParser->EnableParser(PR_TRUE); + result=mParser->EnableParser(PR_TRUE); } - return NS_OK; + return result; } PRBool diff --git a/rdf/datasource/src/nsXULContentSink.cpp b/rdf/datasource/src/nsXULContentSink.cpp index 54be467ba1f3..6688b7f9761f 100644 --- a/rdf/datasource/src/nsXULContentSink.cpp +++ b/rdf/datasource/src/nsXULContentSink.cpp @@ -1916,16 +1916,17 @@ XULContentSinkImpl::UnblockNextOverlay() { PRInt32 count = mOverlayArray->Count(); mCurrentOverlay++; + nsresult result=NS_OK; if (mCurrentOverlay == count) { // Unblock ourselves - mParser->EnableParser(PR_TRUE); + result=mParser->EnableParser(PR_TRUE); } else { // Process the next overlay. nsString* href = (nsString*)mOverlayArray->ElementAt(mCurrentOverlay); ProcessOverlay(*href); } - return NS_OK; + return result; } ////////////////////////////////////////////////////////////////////////