зеркало из https://github.com/mozilla/pjs.git
Prevents a stack overflow. was checking for null. I guess we need to check
for null as well as (child == child's parent)...
This commit is contained in:
Родитель
9cedb52ca7
Коммит
51644b9823
|
@ -229,7 +229,7 @@ static nsresult IsChildOfDomWindow(nsIDOMWindow *parent, nsIDOMWindow *child, PR
|
|||
nsCOMPtr<nsIDOMWindow> childsParent;
|
||||
child->GetParent(getter_AddRefs(childsParent));
|
||||
|
||||
if (parent)
|
||||
if (childsParent && childsParent.get() != child)
|
||||
IsChildOfDomWindow(parent, childsParent, value);
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче