Bug 105319, reset title when going to XML page without XHTML title element. r=harishd, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@111512 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com 2002-01-07 23:51:36 +00:00
parent b7194a0ea8
commit e62ed2cbd9

View File

@ -340,6 +340,13 @@ nsXMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
}
}
if (mTitleText.IsEmpty()) {
nsCOMPtr<nsIDOMNSDocument> dom_doc(do_QueryInterface(mDocument));
if (dom_doc) {
dom_doc->SetTitle(NS_LITERAL_STRING(""));
}
}
mDocument->SetRootContent(mDocElement);
nsresult rv = NS_OK;