bug #171053 (r=jst, sr=darin) load network image requests LOAD_BACKGROUND to avoid generating unnecessary notifications...

This commit is contained in:
rpotts%netscape.com 2002-09-26 23:37:47 +00:00
Родитель 6ac8f33874
Коммит 8ac0e7a3bd
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -174,12 +174,16 @@ static nsresult NewImageChannel(nsIChannel **aResult,
// If all of the proxy requests are canceled then this request should be // If all of the proxy requests are canceled then this request should be
// canceled too. // canceled too.
// //
// Always pass in LOAD_BACKGROUND to avoid sending progress/status
// notifications. Since this request is not part of a loadgroup its
// progress info would be ignored (anyways)...
//
rv = NS_NewChannel(aResult, rv = NS_NewChannel(aResult,
aURI, // URI aURI, // URI
nsnull, // Cached IOService nsnull, // Cached IOService
nsnull, // LoadGroup nsnull, // LoadGroup
callbacks, // Notification Callbacks callbacks, // Notification Callbacks
aLoadFlags); aLoadFlags | nsIRequest::LOAD_BACKGROUND);
if (NS_FAILED(rv)) if (NS_FAILED(rv))
return rv; return rv;