This commit is contained in:
dougt@netscape.com
2000-07-04 21:49:27 +00:00
parent 62b6afe212
commit a1fbe803df

View File

@@ -1660,9 +1660,8 @@ NS_IMETHODIMP nsDocShell::SetTitle(const PRUnichar* aTitle)
if(!parent)
{
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin(do_QueryInterface(mTreeOwner));
NS_ENSURE_TRUE(treeOwnerAsWin, NS_ERROR_FAILURE);
treeOwnerAsWin->SetTitle(aTitle);
if (treeOwnerAsWin)
treeOwnerAsWin->SetTitle(aTitle)
}
if(mGlobalHistory && mCurrentURI)