Bug 1419305 - Part 1: Use MicroTask on CustomElements correctly

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-22 21:17:30 -05:00 committed by Roy Tam
commit 8a0e7286e0
2 changed files with 7 additions and 8 deletions

View file

@ -1019,9 +1019,8 @@ CustomElementReactionsStack::Enqueue(Element* aElement,
}
CycleCollectedJSContext* context = CycleCollectedJSContext::Get();
RefPtr<ProcessBackupQueueRunnable> processBackupQueueRunnable =
new ProcessBackupQueueRunnable(this);
context->DispatchToMicroTask(processBackupQueueRunnable.forget());
RefPtr<BackupQueueMicroTask> bqmt = new BackupQueueMicroTask(this);
context->DispatchMicroTaskRunnable(bqmt.forget());
}
void