bug #102737 (r=harishd@netscape.com, sr=jst@netscape.com) do not emit <html> ... </html> for empty text/plain documents.

git-svn-id: svn://10.0.0.236/trunk@106857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
2001-10-31 23:15:57 +00:00
parent f5793e8c32
commit 36740b6e82
2 changed files with 6 additions and 2 deletions

View File

@@ -2503,7 +2503,9 @@ nsresult nsParser::OnStopRequest(nsIRequest *request, nsISupports* aContext,
nsresult result=NS_OK;
if(eOnStart==mParserContext->mStreamListenerState) {
if((eOnStart==mParserContext->mStreamListenerState) &&
(!mParserContext->mMimeType.EqualsWithConversion(kPlainTextContentType)))
{
//If you're here, then OnDataAvailable() never got called.
//Prior to necko, we never dealt with this case, but the problem may have existed.