Bug 1282671 - Loose the assertion checking win->IsDying(). r=bholly

This commit is contained in:
Ho-Pang Hsu 2016-10-12 19:49:00 +02:00
Родитель ae19c1c88a
Коммит ea1ffcd54c
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -1318,7 +1318,13 @@ XPCJSContext::InterruptCallback(JSContext* cx)
return true;
}
MOZ_ASSERT(!win->IsDying());
if (win->IsDying()) {
// The window is being torn down. When that happens we try to prevent
// the dispatch of new runnables, so it also makes sense to kill any
// long-running script. The user is primarily interested in this page
// going away.
return false;
}
if (win->GetIsPrerendered()) {
// We cannot display a dialog if the page is being prerendered, so