Bug 661305 - Check crc32 on omnijar startupcache entries, r=taras
authorMichael Wu <mwu@mozilla.com>
Thu, 02 Jun 2011 13:58:37 -0700
changeset 70471 a5a1a64c111215633a289dafd78e055beaccfce7
parent 70470 998d4edbf4b323e1766a292ec29ff4cf78b9fe52
child 70472 e5d057de9c9f51d718d5bdc79657b29944469f41
push id20333
push usermwu@mozilla.com
push dateThu, 02 Jun 2011 21:18:16 +0000
treeherdermozilla-central@e5d057de9c9f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstaras
bugs661305
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 661305 - Check crc32 on omnijar startupcache entries, r=taras
startupcache/StartupCache.cpp
--- a/startupcache/StartupCache.cpp
+++ b/startupcache/StartupCache.cpp
@@ -247,27 +247,27 @@ StartupCache::GetBuffer(const char* id, 
       *outbuf = zipItem.Forget();
       *length = zipItem.Length();
       return NS_OK;
     } 
   }
 
   if (mozilla::Omnijar::GetReader(mozilla::Omnijar::APP)) {
     // no need to checksum omnijarred entries
-    nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::APP), id);
+    nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::APP), id, true);
     if (zipItem) {
       *outbuf = zipItem.Forget();
       *length = zipItem.Length();
       return NS_OK;
     } 
   }
 
   if (mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE)) {
     // no need to checksum omnijarred entries
-    nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE), id);
+    nsZipItemPtr<char> zipItem(mozilla::Omnijar::GetReader(mozilla::Omnijar::GRE), id, true);
     if (zipItem) {
       *outbuf = zipItem.Forget();
       *length = zipItem.Length();
       return NS_OK;
     } 
   }
 
   return NS_ERROR_NOT_AVAILABLE;