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