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

git-svn-id: svn://10.0.0.236/trunk@38023 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com 1999-07-02 08:05:52 +00:00
parent ab114004a8
commit e14b01c876
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

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