Commit Graph

175 Commits

Author SHA1 Message Date
blizzard@redhat.com
a0b45dd7b6 Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
brendan@mozilla.org
de5f506a8c - 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
c2bcad0b73 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
pete@alphanumerica.com
67b5dca391 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
b87a2b03c4 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
c4eec67502 fixing Solaris bustage 2001-06-29 17:33:28 +00:00
ddrinan@netscape.com
d79c45d649 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
824386d65a 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
82c64083ca 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
d2cf6a715e preloader update. r=peterl, sr=attinasi 2001-04-03 22:58:59 +00:00
dveditz@netscape.com
06285f0aa5 Bug 47258, better descrimination for unpacking errors. r=sgehani,sr=mscott 2001-03-14 05:15:55 +00:00
mstoltz@netscape.com
ecf26faa40 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
d3928ad37c 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
a953e15bad 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
0462ea4ce8 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
7730ce0cd3 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
42bf7f1231 backing out earlier changes for 53312 2000-10-14 01:15:24 +00:00
dprice@netscape.com
a05b08e3e1 removing debug statement. 2000-10-13 21:00:04 +00:00
dprice@netscape.com
0d8d18befb added memory flusher for jar cache 53312
a=warren SR=warren,jband
2000-10-13 20:42:46 +00:00
warren@netscape.com
8435dfd5ab 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
aaa1a00906 Setting release timeout inside lock -- avoiding race condition. 2000-09-18 07:08:22 +00:00
sspitzer@netscape.com
b9aeb3d8ee 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
42b3985a8e 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
c6334366cb 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
f2239a4174 fix speedracer bustage 2000-09-03 05:54:31 +00:00
warren@netscape.com
e59df5d57b Added zip cache hit rate stats. 2000-08-24 07:38:41 +00:00
mkaply@us.ibm.com
47e78dac32 OS/2 Tinderbox break
PR_CALLBACK
2000-08-23 20:39:17 +00:00
dprice@netscape.com
4f5c6baa62 fixing the zipcache R=warren 2000-08-23 03:18:53 +00:00
warren@netscape.com
8df9a9bce0 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
2e7105225d Fixing 40159 and 44822, both [nsbeta2+] regressions on signed scripts. r=sgehani 2000-07-12 03:10:33 +00:00
warren@netscape.com
84d748485f Fixing bugs in nsZipReaderCache. Bug 18433 2000-06-07 09:05:22 +00:00
mkaply@us.ibm.com
035efd9190 # 37239
r = mstolz, a = brendan
OS/2 bringup - cast for VisualAge
2000-06-05 19:16:35 +00:00
warren@netscape.com
6a06dfc026 Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
mstoltz@netscape.com
fb52b48da2 bug 40215. r=rginda, a=clayton. 2000-06-02 22:27:28 +00:00
warren@netscape.com
2abfee66f1 Fixed nsZipReaderCache to get hits. (not used yet) 2000-05-25 08:30:29 +00:00
dougt@netscape.com
a3e97c15a5 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
7b0c2d2668 bug #38765 2000-05-13 00:22:38 +00:00
scc@netscape.com
4954e31780 string backsliding. r=mjudge 2000-05-12 07:53:02 +00:00
mstoltz@netscape.com
221966a0ed 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
f23bf867d6 Mac needs special LONG LONG support. 2000-05-09 19:59:06 +00:00
dougt@netscape.com
7c8e6dc7c5 Fixes bug 38553. Using usecs now. r=sgehani@netscape.com 2000-05-09 19:11:14 +00:00
scc@netscape.com
a288df7368 making string conversions explicit 2000-04-27 19:49:53 +00:00
slamm@netscape.com
a4a97d153c Fix declaration order to quiet build warning 2000-04-26 21:27:52 +00:00
mstoltz@netscape.com
b8880152c0 Fixes for 27010, 32878, and 32948. 2000-04-26 03:50:07 +00:00
mjudge@netscape.com
13abfd0646 making string conversions explicit. scc 2000-04-26 01:13:55 +00:00
mstoltz@netscape.com
3173f9136a 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
9be16f1596 Fixes for bugs 27010, 32878, 32948. 2000-04-23 20:30:29 +00:00
warren@netscape.com
58d0075563 Adding code to remove entries from free list when recycled. 2000-04-12 09:48:30 +00:00
warren@netscape.com
1aa1ebcd48 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
d1b2e2d50b Fixed crash when calling nsJARInputStream from nsJARChannel. 2000-04-05 00:12:20 +00:00