Stop using the MainThreadTaskQueue from service workers.

This commit is contained in:
wolfbeast 2018-09-16 10:22:11 +02:00 committed by Roy Tam
commit 3b98b8ca9a
7 changed files with 23 additions and 36 deletions

View file

@ -224,7 +224,7 @@ ServiceWorkerClient::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage,
return;
}
aRv = workerPrivate->DispatchToMainThread(runnable.forget());
aRv = NS_DispatchToMainThread(runnable);
if (NS_WARN_IF(aRv.Failed())) {
return;
}