Turned off the load_background flag when loading URLs... This allows netlib to produce more status information which gets pushed out of nsIStreamListener::OnProgress(...)

This commit is contained in:
rpotts 1998-06-02 20:17:17 +00:00
Родитель 7689eb59b2
Коммит 8a7df79468
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -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.

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

@ -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