bug #17500 (r=warren). Added code to fire an OnStopNotification to the parent load group if an active group is canceled.

git-svn-id: svn://10.0.0.236/trunk@52861 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1999-11-05 20:51:11 +00:00
parent a4236232dc
commit fba1c662d5

View File

@@ -343,6 +343,9 @@ nsLoadGroup::Cancel()
rv = mObserver->OnStopRequest(mDefaultLoadChannel, nsnull,
NS_BINDING_ABORTED, nsnull);
}
if (mParent) {
mParent->SubGroupIsEmpty(NS_BINDING_ABORTED);
}
}
return rv;
}
@@ -585,8 +588,6 @@ nsLoadGroup::RemoveChannel(nsIChannel *channel, nsISupports* ctxt,
this, channel, uriStr, status));
nsCRT::free(uriStr);
#endif
mIsActive = PR_FALSE;
if (mObserver) {
PR_LOG(gLoadGroupLog, PR_LOG_DEBUG,
("LOADGROUP: %x Firing OnStopRequest(...).\n",
@@ -596,6 +597,8 @@ nsLoadGroup::RemoveChannel(nsIChannel *channel, nsISupports* ctxt,
}
// return with rv, below
}
mIsActive = PR_FALSE;
if (mParent) {
mParent->SubGroupIsEmpty(status);
}