mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Stop using the worker MainThreadTaskQueue from dom/fetch.
This commit is contained in:
parent
3b98b8ca9a
commit
73b9f505a1
2 changed files with 3 additions and 9 deletions
|
|
@ -339,11 +339,7 @@ FetchBodyConsumer<Derived>::Create(nsIGlobalObject* aGlobal,
|
|||
|
||||
nsCOMPtr<nsIRunnable> r = new BeginConsumeBodyRunnable<Derived>(consumer);
|
||||
|
||||
if (workerPrivate) {
|
||||
aRv = workerPrivate->DispatchToMainThread(r.forget());
|
||||
} else {
|
||||
aRv = NS_DispatchToMainThread(r.forget());
|
||||
}
|
||||
aRv = NS_DispatchToMainThread(r.forget());
|
||||
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
return nullptr;
|
||||
|
|
@ -655,9 +651,7 @@ FetchBodyConsumer<Derived>::ShutDownMainThreadConsuming()
|
|||
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction(
|
||||
[self] () { self->ShutDownMainThreadConsuming(); });
|
||||
|
||||
WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate();
|
||||
MOZ_ASSERT(workerPrivate);
|
||||
workerPrivate->DispatchToMainThread(r.forget());
|
||||
MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r.forget()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue