зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1421009
- Don't schedule idle callback if window is shutting down. r=bkelly
This commit is contained in:
Родитель
a842528bfd
Коммит
295bd4906a
|
@ -794,6 +794,10 @@ nsGlobalWindowInner::RequestIdleCallback(JSContext* aCx,
|
|||
{
|
||||
AssertIsOnMainThread();
|
||||
|
||||
if (mInnerObjectsFreed) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t handle = mIdleRequestCallbackCounter++;
|
||||
|
||||
RefPtr<IdleRequest> request =
|
||||
|
|
Загрузка…
Ссылка в новой задаче