Bug 1421009 - Don't schedule idle callback if window is shutting down. r=bkelly

This commit is contained in:
Andreas Farre 2017-11-30 05:14:00 -05:00
Родитель a842528bfd
Коммит 295bd4906a
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -794,6 +794,10 @@ nsGlobalWindowInner::RequestIdleCallback(JSContext* aCx,
{
AssertIsOnMainThread();
if (mInnerObjectsFreed) {
return 0;
}
uint32_t handle = mIdleRequestCallbackCounter++;
RefPtr<IdleRequest> request =