зеркало из https://github.com/mozilla/gecko-dev.git
Bug 877390 - Do a blind null check. r=bz
Who knows why this happens, but this appears to be the culprit per crash reports.
This commit is contained in:
Родитель
dca1b89519
Коммит
e126885445
|
@ -7072,8 +7072,9 @@ nsGlobalWindow::FinalClose()
|
|||
// round-trips to the event loop before the call to ReallyCloseWindow. This
|
||||
// allows setTimeout handlers that are set after FinalClose() is called to
|
||||
// run before the window is torn down.
|
||||
bool indirect = nsContentUtils::GetCurrentJSContext() ==
|
||||
GetContextInternal()->GetNativeContext();
|
||||
bool indirect = GetContextInternal() && // Occasionally null. See bug 877390.
|
||||
(nsContentUtils::GetCurrentJSContext() ==
|
||||
GetContextInternal()->GetNativeContext());
|
||||
if ((!indirect && nsContentUtils::IsCallerChrome()) ||
|
||||
NS_FAILED(nsCloseEvent::PostCloseEvent(this, indirect))) {
|
||||
ReallyCloseWindow();
|
||||
|
|
Загрузка…
Ссылка в новой задаче