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, a=cbeard.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179417 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user