Backed out changeset 3a6678776d36 (bug 1849265) for causing asan failures on browser_localStorage_snapshotting.js. CLOSED TREE

This commit is contained in:
Cosmin Sabou 2023-11-07 22:30:00 +02:00
parent a8eb21c695
commit b79adce429

View File

@ -4863,8 +4863,7 @@ bool WorkerPrivate::NotifyInternal(WorkerStatus aStatus) {
return true;
}
MOZ_ASSERT_IF(aStatus == Killing,
mStatus == Canceling && mParentStatus == Canceling);
MOZ_ASSERT_IF(aStatus == Killing, mStatus == Canceling);
if (aStatus >= Canceling) {
MutexAutoUnlock unlock(mMutex);
@ -4884,12 +4883,6 @@ bool WorkerPrivate::NotifyInternal(WorkerStatus aStatus) {
if (aStatus == Closing) {
Close();
}
// Synchronize the mParentStatus with mStatus, such that event dispatching
// will fail in proper after WorkerPrivate gets into Killing status.
if (aStatus == Killing) {
mParentStatus = Killing;
}
}
if (aStatus >= Closing) {