mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
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:
parent
afda88c22c
commit
6524ddcb09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user