mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1224596 part 16. Switch Fetch to using the new WorkerMainThreadRunnable::Dispatch signature. r=bkelly
This commit is contained in:
parent
e082980731
commit
e53cff8aa2
@ -976,8 +976,14 @@ FetchBody<Derived>::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength
|
||||
// FetchBody on the main thread.
|
||||
RefPtr<CancelPumpRunnable<Derived>> r =
|
||||
new CancelPumpRunnable<Derived>(this);
|
||||
if (!r->Dispatch(mWorkerPrivate->GetJSContext())) {
|
||||
ErrorResult rv;
|
||||
r->Dispatch(rv);
|
||||
if (rv.Failed()) {
|
||||
NS_WARNING("Could not dispatch CancelPumpRunnable. Nothing we can do here");
|
||||
// None of our callers are callled directly from JS, so there is no
|
||||
// point in trying to propagate this failure out of here. And
|
||||
// localPromise is already rejected. Just suppress the failure.
|
||||
rv.SuppressException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user