Bug 655273 - SHEntries created by history.pushState should have their titles set. r=sicking
This commit is contained in:
@@ -9660,6 +9660,11 @@ nsDocShell::AddState(nsIVariant *aData, const nsAString& aTitle,
|
||||
NS_ENSURE_SUCCESS(newSHEntry->SetDocIdentifier(ourDocIdent),
|
||||
NS_ERROR_FAILURE);
|
||||
|
||||
// Set the new SHEntry's title (bug 655273).
|
||||
nsString title;
|
||||
mOSHE->GetTitle(getter_Copies(title));
|
||||
newSHEntry->SetTitle(title);
|
||||
|
||||
// AddToSessionHistory may not modify mOSHE. In case it doesn't,
|
||||
// we'll just set mOSHE here.
|
||||
mOSHE = newSHEntry;
|
||||
|
||||
Reference in New Issue
Block a user