Fix for a bug that doesn't seem to be assigned to me any more.

This commit is contained in:
hyatt@netscape.com
1999-07-02 08:05:52 +00:00
parent 7f2653f760
commit 89dd904e89
2 changed files with 6 additions and 10 deletions

View File

@@ -2458,13 +2458,11 @@ nsWebShell::GetTarget(const PRUnichar* aName)
NS_ADDREF(target);
}
else if (name.EqualsIgnoreCase("_parent")) {
if (nsnull == mParent) {
GetParent(target);
if (target == nsnull) {
target = this;
NS_ADDREF(target);
}
else {
target = mParent;
}
NS_ADDREF(target);
}
else if (name.EqualsIgnoreCase("_top")) {
GetRootWebShell(target); // this addrefs, which is OK