Fix for Bug# 7957.

Always set the first "Title".


git-svn-id: svn://10.0.0.236/trunk@37209 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
1999-06-28 19:56:10 +00:00
parent fdfb71c862
commit 295a363c2b
2 changed files with 8 additions and 2 deletions

View File

@@ -1662,7 +1662,10 @@ HTMLContentSink::SetTitle(const nsString& aValue)
mTitle = new nsString(aValue);
}
else {
*mTitle = aValue;
// If the title was already set then don't try to overwrite it
// when a new title is encountered - For backwards compatiblity
//*mTitle = aValue;
return NS_OK;
}
ReduceEntities(*mTitle);
mTitle->CompressWhitespace(PR_TRUE, PR_TRUE);