mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1224596 part 13. Switch gfxUtils to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey
This commit is contained in:
parent
dd86a620e3
commit
9a3137dfcc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user