зеркало из https://github.com/mozilla/gecko-dev.git
null-check mDocument in case firing onload causes it to go away (bug 298022). r=darin, a=asa.
This commit is contained in:
Родитель
98a9a84fcb
Коммит
d0503004d6
|
@ -1029,8 +1029,10 @@ DocumentViewerImpl::LoadComplete(nsresult aStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify the document that it has been shown (regardless of whether
|
// Notify the document that it has been shown (regardless of whether
|
||||||
// it was just loaded).
|
// it was just loaded). Note: mDocument may be null now if the above
|
||||||
mDocument->OnPageShow(restoring);
|
// firing of onload caused the document to unload.
|
||||||
|
if (mDocument)
|
||||||
|
mDocument->OnPageShow(restoring);
|
||||||
|
|
||||||
// Now that the document has loaded, we can tell the presshell
|
// Now that the document has loaded, we can tell the presshell
|
||||||
// to unsuppress painting.
|
// to unsuppress painting.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче