зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 97958 "[CRASH] on :jar protocol" r=dbaron, sr=dougt
This commit is contained in:
Родитель
39f028fd29
Коммит
f2be5d0782
|
@ -139,7 +139,7 @@ nsDownloader::OnStopRequest(nsIRequest *request, nsISupports *ctxt,
|
|||
return mObserver->OnDownloadComplete(this, mContext, aStatus, file);
|
||||
}
|
||||
|
||||
nsresult
|
||||
NS_METHOD
|
||||
nsDownloader::ConsumeData(nsIInputStream* in,
|
||||
void* closure,
|
||||
const char* fromRawSegment,
|
||||
|
@ -159,5 +159,5 @@ nsDownloader::OnDataAvailable(nsIRequest *request, nsISupports *ctxt,
|
|||
// This function simply disposes of the data as it's read in.
|
||||
// We assume it's already been cached and that's what we're interested in.
|
||||
PRUint32 lenRead;
|
||||
return inStr->ReadSegments((nsWriteSegmentFun)nsDownloader::ConsumeData, nsnull, count, &lenRead);
|
||||
return inStr->ReadSegments(nsDownloader::ConsumeData, nsnull, count, &lenRead);
|
||||
}
|
||||
|
|
|
@ -60,12 +60,12 @@ public:
|
|||
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
|
||||
|
||||
protected:
|
||||
static nsresult ConsumeData(nsIInputStream* in,
|
||||
void* closure,
|
||||
const char* fromRawSegment,
|
||||
PRUint32 toOffset,
|
||||
PRUint32 count,
|
||||
PRUint32 *writeCount);
|
||||
static NS_METHOD ConsumeData(nsIInputStream* in,
|
||||
void* closure,
|
||||
const char* fromRawSegment,
|
||||
PRUint32 toOffset,
|
||||
PRUint32 count,
|
||||
PRUint32 *writeCount);
|
||||
|
||||
nsCOMPtr<nsIDownloadObserver> mObserver;
|
||||
nsCOMPtr<nsISupports> mContext; // the observer's context
|
||||
|
|
Загрузка…
Ссылка в новой задаче