Bug 1784336 [Linux] Don't resume compositor if mCompositorWidgetDelegate is missing r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D154785
This commit is contained in:
stransky 2022-08-16 11:30:13 +00:00
Родитель dd80638572
Коммит ed73cbe3bf
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -5463,9 +5463,14 @@ void nsWindow::ConfigureCompositor() {
LOG(" quit, mIsDestroyed = %d mIsMapped = %d", mIsDestroyed, mIsMapped);
return;
}
// Compositor will be resumed later by ResumeCompositorFlickering().
if (mCompositorState == COMPOSITOR_PAUSED_FLICKERING) {
LOG(" quit, will be resumed by ResumeCompositorFlickering.");
return;
}
// Compositor will be resumed at nsWindow::SetCompositorWidgetDelegate().
if (!mCompositorWidgetDelegate) {
LOG(" quit, missing mCompositorWidgetDelegate");
return;
}