mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-15 21:55:59 -05:00
Bug 1336229 - Don't dispatch canceled IdleRequestExecutors
This commit is contained in:
1 parent
dd7eebbf87
commit
449757cd2c
1 file changed
+5
-3
@@ -640,9 +640,11 @@ IdleRequestExecutor::SetDeadline(TimeStamp aDeadline)
|
||||
void
|
||||
IdleRequestExecutor::MaybeDispatch()
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(mWindow);
|
||||
|
||||
if (mDispatched) {
|
||||
// If we've already dispatched the executor we don't want to do it
|
||||
// again. Also, if we've called IdleRequestExecutor::Cancel mWindow
|
||||
// will be null, which indicates that we shouldn't dispatch this
|
||||
// executor either.
|
||||
if (mDispatched || !mWindow) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user