зеркало из https://github.com/mozilla/pjs.git
blah blah blah
This commit is contained in:
Родитель
5e863bf55d
Коммит
606dc988b1
|
@ -26,6 +26,7 @@
|
|||
#include "nsXPIDLString.h"
|
||||
|
||||
#include "nsIChannel.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIHTTPChannel.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "imgILoader.h"
|
||||
|
@ -177,8 +178,13 @@ NS_IMETHODIMP imgRequest::Cancel(nsresult status)
|
|||
}
|
||||
|
||||
|
||||
if (mChannel && mProcessing)
|
||||
if (mChannel && mProcessing) {
|
||||
nsCOMPtr<nsILoadGroup> lg;
|
||||
mChannel->GetLoadGroup(getter_AddRefs(lg));
|
||||
if (lg)
|
||||
lg->RemoveRequest(mChannel, nsnull, NS_BINDING_SUCCEEDED, nsnull);
|
||||
mChannel->Cancel(NS_BINDING_ABORTED); // should prolly use status here
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче