Bug 1300655 - WorkerProxyToMainThreadRunnable::PostDispatchOnMainThread::ReleaseRunnable should implement Cancel() correctly, r=bkelly

This commit is contained in:
Andrea Marchesini 2016-09-06 04:35:49 +02:00
Родитель e9afc42d17
Коммит f4227c1a5c
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -716,12 +716,12 @@ WorkerProxyToMainThreadRunnable::PostDispatchOnMainThread()
MOZ_ASSERT(aRunnable);
}
// We must call RunBackOnWorkerThread() also if the runnable is cancelled.
// We must call RunBackOnWorkerThread() also if the runnable is canceled.
nsresult
Cancel() override
{
WorkerRun(nullptr, mWorkerPrivate);
return NS_OK;
return MainThreadWorkerControlRunnable::Cancel();
}
virtual bool