Fix for 64270 - crash on window.close when another window is referenced
r=jst,rpotts, sr=rpotts
This commit is contained in:
Родитель
f6cc8a5a36
Коммит
d7144f007d
|
@ -232,8 +232,10 @@ nsWebShell::FireUnloadForChildren()
|
|||
PRInt32 i, n = mChildren.Count();
|
||||
for (i = 0; i < n; i++) {
|
||||
nsIDocShell* shell = (nsIDocShell*) mChildren.ElementAt(i);
|
||||
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(shell));
|
||||
rv = webShell->FireUnloadEvent();
|
||||
if(shell) {
|
||||
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(shell));
|
||||
rv = webShell->FireUnloadEvent();
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче