Bug 1744043: Clean up nsJAR r=nika,valentin,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D132794
This commit is contained in:
@@ -3962,10 +3962,9 @@ nsresult ArrayBufferBuilder::MapToFileInPackage(const nsCString& aFile,
|
||||
nsresult rv;
|
||||
|
||||
// Open Jar file to get related attributes of target file.
|
||||
RefPtr<nsZipArchive> zip = new nsZipArchive();
|
||||
rv = zip->OpenArchive(aJarFile);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
RefPtr<nsZipArchive> zip = nsZipArchive::OpenArchive(aJarFile);
|
||||
if (!zip) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
nsZipItem* zipItem = zip->GetItem(aFile.get());
|
||||
if (!zipItem) {
|
||||
|
||||
Reference in New Issue
Block a user