From ffd18ba6eba80d6341a2d4d8281ca36d76aaa682 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Wed, 28 Nov 2018 17:23:35 +0000 Subject: [PATCH] Bug 1476514 dispatch ConsoleProfileWorkletRunnables to main thread rather than worklet thread r=baku This is consistent with ConsoleCallDataWorkletRunnable queuing and enables ConsoleProfileWorkletRunnable::RunOnMainThread() to run. Depends on D13210 Differential Revision: https://phabricator.services.mozilla.com/D13211 --HG-- extra : moz-landing-system : lando --- dom/console/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp index a18fea55257e..68428d262d56 100644 --- a/dom/console/Console.cpp +++ b/dom/console/Console.cpp @@ -1385,7 +1385,7 @@ Console::ProfileMethodInternal(JSContext* aCx, MethodName aMethodName, return; } - WorkletThread::Get()->DispatchRunnable(runnable.forget()); + NS_DispatchToMainThread(runnable.forget()); return; }