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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user