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