From 9453c46ad0327d1271f9d19e9dc34dd982441210 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Wed, 31 Aug 2005 20:06:55 +0000 Subject: [PATCH] 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 --- mozilla/xpinstall/src/CertReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/xpinstall/src/CertReader.cpp b/mozilla/xpinstall/src/CertReader.cpp index 29c30d6e59e..90a3c3ff7b4 100644 --- a/mozilla/xpinstall/src/CertReader.cpp +++ b/mozilla/xpinstall/src/CertReader.cpp @@ -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