Bug 1345027 - Label runnables in dom/media/VideoUtils.cpp. r=cpearce

MozReview-Commit-ID: LHC69iLqN3f

--HG--
extra : rebase_source : 79c2f04c00e50316b653cb94aebcf452b7428d86
extra : source : 294788e2c9000ae3a3e2c5c2d6363e8192959434
This commit is contained in:
JW Wang 2017-03-07 14:53:52 +08:00
parent be4bd90f39
commit cfa1d7f8bc

View File

@ -397,7 +397,7 @@ LogToBrowserConsole(const nsAString& aMsg)
nsString msg(aMsg);
nsCOMPtr<nsIRunnable> task =
NS_NewRunnableFunction([msg]() { LogToBrowserConsole(msg); });
NS_DispatchToMainThread(task.forget(), NS_DISPATCH_NORMAL);
SystemGroup::Dispatch("LogToBrowserConsole", TaskCategory::Other, task.forget());
return;
}
nsCOMPtr<nsIConsoleService> console(