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:
parent
ab114004a8
commit
e14b01c876
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user