зеркало из https://github.com/mozilla/pjs.git
Fix crash when frameset is wiped out before onload events on all subframes have
fired. Bug 212563, r+sr=jst
This commit is contained in:
Родитель
f0ab5a779e
Коммит
96055357ca
|
@ -357,6 +357,13 @@ nsFrameLoader::Destroy()
|
|||
mOwnerContent = nsnull;
|
||||
}
|
||||
|
||||
// Let our window know that we are gone
|
||||
nsCOMPtr<nsIDOMWindow> win(do_GetInterface(mDocShell));
|
||||
nsCOMPtr<nsPIDOMWindow> win_private(do_QueryInterface(win));
|
||||
if (win_private) {
|
||||
win_private->SetFrameElementInternal(nsnull);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIBaseWindow> base_win(do_QueryInterface(mDocShell));
|
||||
|
||||
if (base_win) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче