bug #98469 (r=pavlov, sr=jst). Using the _content window target sometimes fails...

This commit is contained in:
rpotts%netscape.com 2001-09-06 05:31:14 +00:00
Родитель 5d1bc9f720
Коммит 80d4f413a0
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -856,15 +856,19 @@ nsresult nsDocShell::FindTarget(const PRUnichar *aWindowTarget,
}
else if(name.EqualsIgnoreCase("_content"))
{
if (mTreeOwner)
if (mTreeOwner) {
mTreeOwner->FindItemWithName(name.get(), nsnull,
getter_AddRefs(treeItem));
else
{
} else {
NS_ERROR("Someone isn't setting up the tree owner. "
"You might like to try that. "
"Things will.....you know, work.");
}
// _content should always exist. If the nsIDocShellTreeOwner did
// not find one, then create one...
if (!treeItem) {
mustMakeNewWindow = PR_TRUE;
}
}
else
{