Bug 1522150: Add a DeferredTimers queue ahead of the normal Idle EventQueue r=froyd

* * *
Bug 1522150: Rename NS_IdleDispatch* functions since they take queue identifiers r=froyd
This commit is contained in:
Randell Jesup
2019-01-26 12:18:05 -05:00
parent 97291212a0
commit 682721b83e
34 changed files with 218 additions and 132 deletions

View File

@@ -2755,7 +2755,8 @@ void ScriptLoader::MaybeTriggerBytecodeEncoding() {
// give-up on encoding the bytecode.
nsCOMPtr<nsIRunnable> encoder = NewRunnableMethod(
"ScriptLoader::EncodeBytecode", this, &ScriptLoader::EncodeBytecode);
if (NS_FAILED(NS_IdleDispatchToCurrentThread(encoder.forget()))) {
if (NS_FAILED(NS_DispatchToCurrentThreadQueue(encoder.forget(),
EventQueuePriority::Idle))) {
GiveUpBytecodeEncoding();
return;
}