зеркало из https://github.com/mozilla/gecko-dev.git
bug #171053 (r=jst, sr=darin) load network image requests LOAD_BACKGROUND to avoid generating unnecessary notifications...
This commit is contained in:
Родитель
6ac8f33874
Коммит
8ac0e7a3bd
|
@ -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;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче