mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 797515 - Fix race condition in assertion in ContentParent::~ContentParent. r=cjones
This commit is contained in:
parent
a734561c9e
commit
5806b970be
@ -774,8 +774,12 @@ ContentParent::~ContentParent()
|
||||
MOZ_ASSERT(!gNonAppContentParents ||
|
||||
!gNonAppContentParents->Contains(this));
|
||||
} else {
|
||||
// In general, we expect gAppContentParents->Get(mAppManifestURL) to be
|
||||
// NULL. But it could be that we created another ContentParent for this
|
||||
// app after we did this->ActorDestroy(), so the right check is that
|
||||
// gAppContentParent->Get(mAppManifestURL) != this.
|
||||
MOZ_ASSERT(!gAppContentParents ||
|
||||
!gAppContentParents->Get(mAppManifestURL));
|
||||
gAppContentParents->Get(mAppManifestURL) != this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user