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:
parent
b7194a0ea8
commit
e62ed2cbd9
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user