mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Bug 1331564 - XHR SyncTeardownRunnable must run also when the worker is in killing state
This commit is contained in:
parent
56c088c2d4
commit
8800e388b3
1 changed files with 3 additions and 5 deletions
|
|
@ -1633,12 +1633,10 @@ XMLHttpRequestWorker::ReleaseProxy(ReleaseType aType)
|
|||
new SyncTeardownRunnable(mWorkerPrivate, mProxy);
|
||||
mProxy = nullptr;
|
||||
|
||||
ErrorResult forAssertionsOnly;
|
||||
IgnoredErrorResult forAssertionsOnly;
|
||||
// This runnable _must_ be executed.
|
||||
runnable->Dispatch(Killing, forAssertionsOnly);
|
||||
if (forAssertionsOnly.Failed()) {
|
||||
NS_ERROR("Failed to dispatch teardown runnable!");
|
||||
}
|
||||
runnable->Dispatch(Dead, forAssertionsOnly);
|
||||
MOZ_DIAGNOSTIC_ASSERT(!forAssertionsOnly.Failed());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue