From f8991743c8a76fde84d53c90ce5ec55e4314b38e Mon Sep 17 00:00:00 2001 From: rpotts Date: Tue, 2 Jun 1998 20:17:17 +0000 Subject: [PATCH] Turned off the load_background flag when loading URLs... This allows netlib to produce more status information which gets pushed out of nsIStreamListener::OnProgress(...) git-svn-id: svn://10.0.0.236/trunk@2941 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetService.cpp | 4 ++-- mozilla/network/module/nsStubContext.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/network/module/nsNetService.cpp b/mozilla/network/module/nsNetService.cpp index 5e8ffec0192..0593e12a03a 100644 --- a/mozilla/network/module/nsNetService.cpp +++ b/mozilla/network/module/nsNetService.cpp @@ -128,7 +128,7 @@ nsresult nsNetlibService::OpenStream(nsIURL *aUrl, * Mark the URL as background loading. This prevents many * client upcall notifications... */ - URL_s->load_background = TRUE; + URL_s->load_background = FALSE; /* * Attach the Data Consumer to the URL_Struct. @@ -211,7 +211,7 @@ nsresult nsNetlibService::OpenBlockingStream(nsIURL *aUrl, * Mark the URL as background loading. This prevents many * client upcall notifications... */ - URL_s->load_background = TRUE; + URL_s->load_background = FALSE; /* * Attach the ConnectionInfo object to the URL_Struct. diff --git a/mozilla/network/module/nsStubContext.cpp b/mozilla/network/module/nsStubContext.cpp index 2c26a00a88f..e6832c8e9c9 100644 --- a/mozilla/network/module/nsStubContext.cpp +++ b/mozilla/network/module/nsStubContext.cpp @@ -90,6 +90,12 @@ PRIVATE void stub_GraphProgressDestroy(MWContext *context, { nsConnectionInfo *pConn; + /* + * XXX: Currently this function never calls OnProgress(...) because + * netlib calls FE_GraphProgressDestroy(...) after closing the + * stream... So, OnStopBinding(...) has already been called and + * the nsConnectionInfo->pConsumer has been released and NULLed... + */ if (NULL != URL_s->fe_data) { /* * Retrieve the nsConnectionInfo object from the fe_data field