Bug 1224596 part 13. Switch gfxUtils to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey

This commit is contained in:
Boris Zbarsky 2015-11-24 00:04:21 -05:00
parent dd86a620e3
commit 9a3137dfcc

View File

@ -1655,7 +1655,14 @@ gfxUtils::ThreadSafeGetFeatureStatus(const nsCOMPtr<nsIGfxInfo>& gfxInfo,
RefPtr<GetFeatureStatusRunnable> runnable =
new GetFeatureStatusRunnable(workerPrivate, gfxInfo, feature, status);
runnable->Dispatch(workerPrivate->GetJSContext());
ErrorResult rv;
runnable->Dispatch(rv);
if (rv.Failed()) {
// XXXbz This is totally broken, since we're supposed to just abort
// everything up the callstack but the callers basically eat the
// exception. Ah, well.
return rv.StealNSResult();
}
return runnable->GetNSResult();
}