mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 05:17:31 +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
|
void
|
||||||
IdleRequestExecutor::MaybeDispatch()
|
IdleRequestExecutor::MaybeDispatch()
|
||||||
{
|
{
|
||||||
MOZ_DIAGNOSTIC_ASSERT(mWindow);
|
// If we've already dispatched the executor we don't want to do it
|
||||||
|
// again. Also, if we've called IdleRequestExecutor::Cancel mWindow
|
||||||
if (mDispatched) {
|
// will be null, which indicates that we shouldn't dispatch this
|
||||||
|
// executor either.
|
||||||
|
if (mDispatched || !mWindow) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue