needed for foreign-cookie pref, bug 13655, coded by rpotts, r=morse, a=chofmann

This commit is contained in:
morse%netscape.com 1999-12-18 05:16:18 +00:00
Родитель cb6dfe1ad8
Коммит 68baca2b6f
2 изменённых файлов: 20 добавлений и 4 удалений

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

@ -878,8 +878,7 @@ nsDocLoaderImpl::OnStartRequest(nsIChannel *aChannel, nsISupports *aCtxt)
// This channel is associated with the entire document...
mDocumentChannel = aChannel;
// omit next line until we can figure out why it causes a leak
// mLoadGroup->SetDefaultLoadChannel(mDocumentChannel);
mLoadGroup->SetDefaultLoadChannel(mDocumentChannel);
FireOnStartDocumentLoad(this, uri);
}
else {
@ -959,6 +958,15 @@ nsDocLoaderImpl::CreateLoadGroupListener(nsIStreamListener *aListener,
void nsDocLoaderImpl::DocLoaderIsEmpty(nsresult aStatus)
{
if (mParent) {
mParent->DocLoaderIsEmpty(aStatus);
//
// New code to break the circular reference between
// the load group and the docloader...
//
mLoadGroup->SetDefaultLoadChannel(nsnull);
}
if (mIsLoadingDocument) {
PRBool busy = PR_FALSE;
/* In the unimagineably rude circumstance that onload event handlers

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

@ -878,8 +878,7 @@ nsDocLoaderImpl::OnStartRequest(nsIChannel *aChannel, nsISupports *aCtxt)
// This channel is associated with the entire document...
mDocumentChannel = aChannel;
// omit next line until we can figure out why it causes a leak
// mLoadGroup->SetDefaultLoadChannel(mDocumentChannel);
mLoadGroup->SetDefaultLoadChannel(mDocumentChannel);
FireOnStartDocumentLoad(this, uri);
}
else {
@ -959,6 +958,15 @@ nsDocLoaderImpl::CreateLoadGroupListener(nsIStreamListener *aListener,
void nsDocLoaderImpl::DocLoaderIsEmpty(nsresult aStatus)
{
if (mParent) {
mParent->DocLoaderIsEmpty(aStatus);
//
// New code to break the circular reference between
// the load group and the docloader...
//
mLoadGroup->SetDefaultLoadChannel(nsnull);
}
if (mIsLoadingDocument) {
PRBool busy = PR_FALSE;
/* In the unimagineably rude circumstance that onload event handlers