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
This commit is contained in:
Karl Tomlinson 2018-11-28 17:23:35 +00:00
Родитель 9db064fcec
Коммит ffd18ba6eb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1385,7 +1385,7 @@ Console::ProfileMethodInternal(JSContext* aCx, MethodName aMethodName,
return;
}
WorkletThread::Get()->DispatchRunnable(runnable.forget());
NS_DispatchToMainThread(runnable.forget());
return;
}