Fix for bug # 94926. assert in nsDocShell::SetTitle() r=adamlock sr=rpotts a=asa
This commit is contained in:
Родитель
c77209137f
Коммит
d0dcfb41fe
|
@ -3100,10 +3100,11 @@ nsDocShell::SetTitle(const PRUnichar * aTitle)
|
|||
nsCOMPtr<nsIHistoryEntry> hEntry;
|
||||
mSessionHistory->GetEntryAtIndex(index, PR_FALSE,
|
||||
getter_AddRefs(hEntry));
|
||||
NS_ENSURE_TRUE(hEntry, NS_ERROR_FAILURE);
|
||||
nsCOMPtr<nsISHEntry> shEntry(do_QueryInterface(hEntry));
|
||||
if (shEntry)
|
||||
if (hEntry) {
|
||||
nsCOMPtr<nsISHEntry> shEntry(do_QueryInterface(hEntry));
|
||||
if (shEntry)
|
||||
shEntry->SetTitle(mTitle.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче