mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fix for Bug# 7957.
Always set the first "Title".
This commit is contained in:
parent
f29a859702
commit
04bc04532e
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user