зеркало из https://github.com/mozilla/pjs.git
Actually read up to 32KB of a XPI to look for a signature, instead of requiring the whole thing to be in the first chunk of data available. Bug 306354, r+sr=darin.
This commit is contained in:
Родитель
3f8b869780
Коммит
31caedeffd
|
@ -241,10 +241,11 @@ CertReader::OnDataAvailable(nsIRequest *request,
|
|||
if (orgData)
|
||||
free(orgData);
|
||||
|
||||
// Cancel the load now that we've verified the signature
|
||||
return NS_BINDING_ABORTED;
|
||||
}
|
||||
|
||||
return NS_BINDING_ABORTED;
|
||||
return NS_OK; // continue reading
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче