summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-22 21:17:30 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:50 -0500
commit0405d843be4889da2a489eb2d573855589ab874e (patch)
tree25425320985b4e10e20ced1b57a64ad66b64ad29 /dom/base/CustomElementRegistry.cpp
parent2077cdb41e3ef814cbbef482774d8bbec464fb1c (diff)
downloadUXP-0405d843be4889da2a489eb2d573855589ab874e.tar
UXP-0405d843be4889da2a489eb2d573855589ab874e.tar.gz
UXP-0405d843be4889da2a489eb2d573855589ab874e.tar.lz
UXP-0405d843be4889da2a489eb2d573855589ab874e.tar.xz
UXP-0405d843be4889da2a489eb2d573855589ab874e.zip
Bug 1419305 - Part 1: Use MicroTask on CustomElements correctly
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/CustomElementRegistry.cpp')
-rw-r--r--dom/base/CustomElementRegistry.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index ab1e60366..55e2d3b30 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -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