Bug 1271493 Dispatch fetch control runnable even in opt builds. r=mccr8

This commit is contained in:
Ben Kelly 2016-05-10 16:43:17 -07:00
Родитель 376575c614
Коммит 4fcf10742d
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -335,7 +335,7 @@ public:
return true;
}
nsresult
NS_IMETHOD
Cancel() override
{
// Execute Run anyway to make sure we cleanup our promise proxy to avoid
@ -403,8 +403,9 @@ WorkerFetchResolver::OnResponseEnd()
// This can fail if the worker thread is canceled or killed causing
// the PromiseWorkerProxy to give up its WorkerFeature immediately,
// allowing the worker thread to become Dead.
NS_WARN_IF_FALSE(cr->Dispatch(),
"Failed to dispatch WorkerFetchResponseEndControlRunnable");
if (!cr->Dispatch()) {
NS_WARNING("Failed to dispatch WorkerFetchResponseEndControlRunnable");
}
}
}