зеркало из https://github.com/mozilla/pjs.git
Fixing bug 198254. Fix crash when closing javascript created window. r+sr=bzbarsky@mit.edu
This commit is contained in:
Родитель
7a4a5a2ab9
Коммит
07abbb884e
|
@ -1928,6 +1928,9 @@ PresShell::Destroy()
|
|||
// pres shell to NULL
|
||||
if (mPresContext) {
|
||||
mPresContext->SetShell(nsnull);
|
||||
|
||||
// Clear the link handler (weak reference) as well
|
||||
mPresContext->SetLinkHandler(nsnull);
|
||||
}
|
||||
|
||||
if (mViewEventListener) {
|
||||
|
|
|
@ -1928,6 +1928,9 @@ PresShell::Destroy()
|
|||
// pres shell to NULL
|
||||
if (mPresContext) {
|
||||
mPresContext->SetShell(nsnull);
|
||||
|
||||
// Clear the link handler (weak reference) as well
|
||||
mPresContext->SetLinkHandler(nsnull);
|
||||
}
|
||||
|
||||
if (mViewEventListener) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче