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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user