Backed out changeset db52cf052477 (bug 1660342) for causing Bug 1661364 a=backout

This commit is contained in:
Noemi Erli 2020-08-31 12:15:29 +03:00
Родитель d97a94eb95
Коммит 0c682c4f01
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -94,7 +94,6 @@ void BrowsingContextGroup::EnsureHostProcess(ContentParent* aProcess) {
void BrowsingContextGroup::RemoveHostProcess(ContentParent* aProcess) {
MOZ_DIAGNOSTIC_ASSERT(aProcess);
MOZ_DIAGNOSTIC_ASSERT(aProcess->GetRemoteType() != PREALLOC_REMOTE_TYPE);
auto entry = mHosts.Lookup(aProcess->GetRemoteType());
if (entry && entry.Data() == aProcess) {
entry.Remove();
@ -119,7 +118,6 @@ static void CollectContextInitializers(
void BrowsingContextGroup::Subscribe(ContentParent* aProcess) {
MOZ_ASSERT(!mDestroyed);
MOZ_DIAGNOSTIC_ASSERT(aProcess && !aProcess->IsLaunching());
MOZ_DIAGNOSTIC_ASSERT(aProcess->GetRemoteType() != PREALLOC_REMOTE_TYPE);
// Check if we're already subscribed to this process.
if (!mSubscribers.EnsureInserted(aProcess)) {
@ -166,7 +164,6 @@ void BrowsingContextGroup::Subscribe(ContentParent* aProcess) {
void BrowsingContextGroup::Unsubscribe(ContentParent* aProcess) {
MOZ_DIAGNOSTIC_ASSERT(aProcess);
MOZ_DIAGNOSTIC_ASSERT(aProcess->GetRemoteType() != PREALLOC_REMOTE_TYPE);
mSubscribers.RemoveEntry(aProcess);
aProcess->RemoveBrowsingContextGroup(this);

Просмотреть файл

@ -1671,11 +1671,6 @@ void ContentParent::AssertNotInPool() {
!sBrowserContentParents->Contains(mRemoteType) ||
!sBrowserContentParents->Get(mRemoteType)->Contains(this) ||
!sCanLaunchSubprocesses); // aka in shutdown - avoid timing issues
for (auto& group : mGroups) {
MOZ_RELEASE_ASSERT(group.GetKey()->GetHostProcess(mRemoteType) != this,
"still a host process for one of our groups?");
}
}
}
@ -1937,10 +1932,6 @@ void ContentParent::ActorDestroy(ActorDestroyReason why) {
a11y::AccessibleWrap::ReleaseContentProcessIdFor(ChildID());
#endif
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
AssertNotInPool();
#endif
// As this process is going away, ensure that every BrowsingContextGroup has
// been fully unsubscribed.
nsTHashtable<nsRefPtrHashKey<BrowsingContextGroup>> groups;
@ -2502,9 +2493,6 @@ ContentParent::ContentParent(const nsACString& aRemoteType, int32_t aJSPluginID)
mIsInputPriorityEventEnabled(false),
mIsInPool(false),
mHangMonitorActor(nullptr) {
MOZ_DIAGNOSTIC_ASSERT(!IsForJSPlugin(),
"XXX(nika): How are we creating a JSPlugin?");
// Insert ourselves into the global linked list of ContentParent objects.
if (!sContentParents) {
sContentParents = MakeUnique<LinkedList<ContentParent>>();