зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1311425, review comment fix to ensure low priority timers aren't taken into account when calling NS_GetTimerDeadlineHintOnCurrentThread, r=smaug
This commit is contained in:
Родитель
d9d7f6e11e
Коммит
2c06db876d
|
@ -608,15 +608,15 @@ TimerThread::FindNextFireTimeForCurrentThread(TimeStamp aDefault, uint32_t aSear
|
|||
break;
|
||||
}
|
||||
|
||||
// Track the currently highest timeout so that we can bail when we
|
||||
// reach the bound or when we find a timer for the current thread.
|
||||
timeStamp = timer->mTimeout;
|
||||
|
||||
// Don't yield to timers created with the *_LOW_PRIORITY type.
|
||||
if (timer->IsLowPriority()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Track the currently highest timeout so that we can bail when we
|
||||
// reach the bound or when we find a timer for the current thread.
|
||||
timeStamp = timer->mTimeout;
|
||||
|
||||
bool isOnCurrentThread = false;
|
||||
nsresult rv = timer->mEventTarget->IsOnCurrentThread(&isOnCurrentThread);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче