Граф коммитов

128 Коммитов

Автор SHA1 Сообщение Дата
scc%mozilla.org 63e86dc84f bug #98089: ripped new license 2001-09-19 20:09:47 +00:00
brendan%mozilla.org b365808864 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-21 20:51:34 +00:00
dbaron%fas.harvard.edu 716f9f4695 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797 2001-08-21 01:48:11 +00:00
blizzard%redhat.com 8449d6469f Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
brendan%mozilla.org 525a387cf2 - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-17 09:52:55 +00:00
jaggernaut%netscape.com c14d9c09a1 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
pete%alphanumerica.com f65c767018 Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst
Renamed all Delete methods to Remove.

--pete
2001-07-24 18:38:25 +00:00
dbaron%fas.harvard.edu aceadd91ec Remove nsCStringKey-related bustage fixes from this morning that are no longer needed. r=jaggernaut sr=waterson b=88411 2001-06-29 23:16:52 +00:00
scc%mozilla.org 60981f6d92 fixing Solaris bustage 2001-06-29 17:33:28 +00:00
ddrinan%netscape.com 8d2993be94 PCKS7 implementation for signed JS. Bug# 82227 r=mstoltz@netscape.com,sr=blizzard@mozilla.org,a=blizzard@mozilla.org 2001-05-23 23:22:25 +00:00
mstoltz%netscape.com b267f02345 bug 78650, moved some #ifdefs so that printfs never happen in optimized builds.
patch by cls@seawood.org, r=mstoltz@netscape.com, dveditz@netscape.com
2001-05-15 06:43:03 +00:00
shaver%mozilla.org e2dc3d6d88 75152: Remove GetVersionNumber stub in favour of upcoming, less-invasive
preloader strategy. r=jag, sr=attinasi.
2001-04-11 14:23:13 +00:00
rickg%netscape.com c1ce80ae83 preloader update. r=peterl, sr=attinasi 2001-04-03 22:58:59 +00:00
dveditz%netscape.com 300a646477 Bug 47258, better descrimination for unpacking errors. r=sgehani,sr=mscott 2001-03-14 05:15:55 +00:00
mstoltz%netscape.com 407dac60d8 bug 63451 - moved signature verification functions from nsIZipReader to nsIJAR. r=sgehani, sr=shaver 2001-02-23 00:15:04 +00:00
sgehani%netscape.com 7809953dde Add ZIP_TestArchive support for CRC32 verification of all or individual items.
b = 61544
 r = dveditz
sr = alecf
2000-12-27 07:05:55 +00:00
dprice%netscape.com 7790f15612 fix for 53312 and 55893 adds a memory flusher and fixes a race condition in
zip cache code.  SR=waterson R=warren,jband
2000-10-31 22:44:20 +00:00
warren%netscape.com 4189314fdb Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 6e35f97e31 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
dprice%netscape.com 52c7d6a5d7 backing out earlier changes for 53312 2000-10-14 01:15:24 +00:00
dprice%netscape.com 545c85baf0 removing debug statement. 2000-10-13 21:00:04 +00:00
dprice%netscape.com 2a10bf939f added memory flusher for jar cache 53312
a=warren SR=warren,jband
2000-10-13 20:42:46 +00:00
warren%netscape.com 075350b1c8 Landing jar packaging from jar_restructuring_branch. r=hyatt,dprice,sfraser,dveditz,vishy,sgehani 2000-09-20 19:35:24 +00:00
warren%netscape.com a867fdff6f Setting release timeout inside lock -- avoiding race condition. 2000-09-18 07:08:22 +00:00
sspitzer%netscape.com ac6409f8a2 fix for bug #51267. intermittent failure when loading files from jars.
the problem is that nsZipArchive and zlib are not thread safe.
for now, add a lock to prevent multiple threads from getting into that code
r=warren,dveditz
super-end-of-game-review=mscott
2000-09-15 21:56:20 +00:00
rayw%netscape.com d39d9e6d59 Bug fix for 52648 -- remaining stash of progids which I missed on
the mega-change yesterday.  This will fix a few more issues.

r=warren
2000-09-14 23:20:49 +00:00
rayw%netscape.com 6cc70ebd6c Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
scc%mozilla.org 14f013552f fix speedracer bustage 2000-09-03 05:54:31 +00:00
warren%netscape.com dd2e533ab7 Added zip cache hit rate stats. 2000-08-24 07:38:41 +00:00
mkaply%us.ibm.com a91099a730 OS/2 Tinderbox break
PR_CALLBACK
2000-08-23 20:39:17 +00:00
dprice%netscape.com 6ad5e8ece3 fixing the zipcache R=warren 2000-08-23 03:18:53 +00:00
warren%netscape.com 4af572e4c1 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson 2000-08-10 06:19:37 +00:00
mstoltz%netscape.com 4d0c283076 Fixing 40159 and 44822, both [nsbeta2+] regressions on signed scripts. r=sgehani 2000-07-12 03:10:33 +00:00
warren%netscape.com 149637ee28 Fixing bugs in nsZipReaderCache. Bug 18433 2000-06-07 09:05:22 +00:00
mkaply%us.ibm.com 34bf24dc6d # 37239
r = mstolz, a = brendan
OS/2 bringup - cast for VisualAge
2000-06-05 19:16:35 +00:00
warren%netscape.com 958ed96edd Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
mstoltz%netscape.com 007ff2c26c bug 40215. r=rginda, a=clayton. 2000-06-02 22:27:28 +00:00
warren%netscape.com 05dc82db59 Fixed nsZipReaderCache to get hits. (not used yet) 2000-05-25 08:30:29 +00:00
dougt%netscape.com 0447ee35ed Using wrong converstion. It should have been 1000, but it I checked in 1 mil! 2000-05-16 21:53:34 +00:00
scc%netscape.com 598dbefe70 bug #38765 2000-05-13 00:22:38 +00:00
scc%netscape.com d11c66a210 string backsliding. r=mjudge 2000-05-12 07:53:02 +00:00
mstoltz%netscape.com 0f88b44d07 Removed dependency of libjar on psm-glue, bug 36853. Fixed out parameter type problem in PSMComponent::HashEnd 2000-05-10 01:49:33 +00:00
dougt%netscape.com d9479486a3 Mac needs special LONG LONG support. 2000-05-09 19:59:06 +00:00
dougt%netscape.com e15f900e51 Fixes bug 38553. Using usecs now. r=sgehani@netscape.com 2000-05-09 19:11:14 +00:00
scc%netscape.com fc84b78a4e making string conversions explicit 2000-04-27 19:49:53 +00:00
slamm%netscape.com 8cf8bd77d6 Fix declaration order to quiet build warning 2000-04-26 21:27:52 +00:00
mstoltz%netscape.com 4794c651b5 Fixes for 27010, 32878, and 32948. 2000-04-26 03:50:07 +00:00
mjudge%netscape.com 6622635cab making string conversions explicit. scc 2000-04-26 01:13:55 +00:00
mstoltz%netscape.com 200b920525 Backing out changes until I can figure out why it's crashing on startup. 2000-04-23 21:25:39 +00:00
mstoltz%netscape.com 9ac7780368 Fixes for bugs 27010, 32878, 32948. 2000-04-23 20:30:29 +00:00
warren%netscape.com 2eb25c920f Adding code to remove entries from free list when recycled. 2000-04-12 09:48:30 +00:00
warren%netscape.com 942ccefd74 Added nsIZipReaderCache. Removed nsIZipReader::ParseManifest. Got jar: protocol going for downloaded jars and input streams. Added assertions that Cancel is called with a failure code. 2000-04-12 07:58:24 +00:00
mstoltz%netscape.com 5e93281c28 Fixed crash when calling nsJARInputStream from nsJARChannel. 2000-04-05 00:12:20 +00:00
warren%netscape.com c512de79df Fixed sig of LoadEntry 2000-03-30 08:09:45 +00:00
warren%netscape.com 4d8e8074ad Fixing bugs in jar input streams for jar: protocol. 2000-03-30 07:41:37 +00:00
sgehani%netscape.com 15346ad031 Restoring file dates at install time.
b = 5107
r = dbragg
2000-03-28 03:38:06 +00:00
norris%netscape.com 537881b1fb Added signed script support in Mozilla. bug=7270 r=norris (this is mstoltz's checkin) 2000-03-21 04:21:28 +00:00
dveditz%netscape.com 50ee7a6305 fixes bug 29414, all files installed read-only on Win32, r=sgehani 2000-02-28 07:22:23 +00:00
sgehani%netscape.com 55e0b512a0 Restore file mode for Win32/Unix when installing.
b = 9148
r = dveditz
a = jar
2000-02-21 20:19:16 +00:00
buster%netscape.com 312923c091 fixing build bustage 2000-02-14 03:41:45 +00:00
mstoltz%netscape.com 2b172ce6f4 Crasher fixes and optimizations to jar signature verification. bug=7270 r=norris 2000-02-14 01:57:01 +00:00
mstoltz%netscape.com f1a821abf0 Fixed crashing bug in nsJAR.cpp - was dereferencing unallocated pointer. r=norris 2000-02-02 01:58:37 +00:00
mstoltz%netscape.com aebb7ff4e4 Implementation of JAR manifest parser, part of signature verification for signed scripts. bug=7270 r=norris 2000-01-29 00:03:57 +00:00
warren%netscape.com 43760e7f03 Fixed error case to return error. 2000-01-27 09:21:00 +00:00
ssu%netscape.com ecfbbf92bd A few problems with nsJar:
1.  When opening a file via the OpenArchiveWithFileDesc() you can not
    delete the file descriptor.
2.  Mode was wrong for the extract routine.
2000-01-25 20:41:47 +00:00
dougt%netscape.com fd69a2f423 Landing nsIFile. 2000-01-24 21:28:28 +00:00
pp%ludusdesign.com 13efd9e8c6 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
sspitzer%netscape.com 42e7039924 fix warnings 1999-12-28 19:41:57 +00:00
sgehani%netscape.com 870d3fd80f Fixes for bug 18683. Libjar interfaces changed but the implementation didn't so XPInstall was horked. This fixes the runtime XP horkage. [r=dveditz]
Also, added deletion of extracted files if the CRC-32 doesn't match. Mapped 'PR_Delete' to 'remove' for STANDALONE. [r=mstoltz]
1999-11-13 00:44:56 +00:00
warren%netscape.com 01a5c1fa80 Libjar cleanup. Added Close method. Bug#18273. r=mstoltz,gayatrib,dveditz 1999-11-12 06:13:13 +00:00
dmose%mozilla.org 8535dda53e updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
mstoltz%netscape.com 6bf8a92a61 Created helper class nsZipRead to hold read state information. That way
one nsJAR can support multiple input streams. r=norris
1999-11-02 23:46:09 +00:00
warren%netscape.com a530adf79c Minor cleanup 1999-11-01 20:50:04 +00:00
mstoltz%netscape.com 5e7662a4fe Added GetInputStream function to nsJAR in order to extract files into memory rather than to disk. Created nsJARInputStream to carry this data. Most of the code for this change went into nsZipArchive, which now handles either file output or output to memory. bug=16077 r=dveditz 1999-10-26 19:43:26 +00:00
dbragg%netscape.com 47844df597 Checked for null in memory allocation per bug #9852 1999-07-15 23:06:52 +00:00
ssu%netscape.com 21f778f807 fixing bug #8454 and AddDirectory() function 1999-06-29 23:23:23 +00:00
sgehani%netscape.com 2037a61300 Modification to the libjar XPCOM interface in order to use it with XPInstall; facilitating ressurection of XPInstall on Unix. 1999-06-23 06:16:28 +00:00
dbragg%netscape.com a850f4e6b7 XPCOM interface files for libjar 1999-06-01 21:08:32 +00:00