mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Bug 1336229 - Don't dispatch canceled IdleRequestExecutors
This commit is contained in:
parent
da2320b2ef
commit
7fd0085393
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue