зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1300655 - WorkerProxyToMainThreadRunnable::PostDispatchOnMainThread::ReleaseRunnable should implement Cancel() correctly, r=bkelly
This commit is contained in:
Родитель
e9afc42d17
Коммит
f4227c1a5c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче