131 Commits

Author SHA1 Message Date
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
idk%eng.sun.com
a420243c8a fix for 57337 [libjar does not retrieve link information]
r  = dveditz@netscape.com
sr = brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@103378 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 23:33:23 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
brendan%mozilla.org
6abf5e7f73 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.


git-svn-id: svn://10.0.0.236/trunk@101544 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:51:34 +00:00
dbaron%fas.harvard.edu
3485888237 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
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
blizzard%redhat.com
ac9d1a4c2e Back out brendan's checkin to try and get linux starting up again.
git-svn-id: svn://10.0.0.236/trunk@101334 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:45:11 +00:00
brendan%mozilla.org
cad980f881 - 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.


git-svn-id: svn://10.0.0.236/trunk@101289 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:52:55 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
pete%alphanumerica.com
63991fa7da Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst
Renamed all Delete methods to Remove.

--pete


git-svn-id: svn://10.0.0.236/trunk@99803 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 18:38:25 +00:00
dbaron%fas.harvard.edu
edea57a696 Remove nsCStringKey-related bustage fixes from this morning that are no longer needed. r=jaggernaut sr=waterson b=88411
git-svn-id: svn://10.0.0.236/trunk@98326 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 23:16:52 +00:00
scc%mozilla.org
2cf06ce406 fixing Solaris bustage
git-svn-id: svn://10.0.0.236/trunk@98289 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 17:33:28 +00:00
ddrinan%netscape.com
8605f16b91 PCKS7 implementation for signed JS. Bug# 82227 r=mstoltz@netscape.com,sr=blizzard@mozilla.org,a=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@95840 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 23:22:25 +00:00
mstoltz%netscape.com
c37cd5aa27 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


git-svn-id: svn://10.0.0.236/trunk@94963 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 06:43:03 +00:00
shaver%mozilla.org
8a65cf3329 75152: Remove GetVersionNumber stub in favour of upcoming, less-invasive
preloader strategy. r=jag, sr=attinasi.


git-svn-id: svn://10.0.0.236/trunk@91976 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 14:23:13 +00:00
rickg%netscape.com
75bb2ffbb9 preloader update. r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91193 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:58:59 +00:00
dveditz%netscape.com
11ec70ffc6 Bug 47258, better descrimination for unpacking errors. r=sgehani,sr=mscott
git-svn-id: svn://10.0.0.236/trunk@89604 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 05:15:55 +00:00
mstoltz%netscape.com
68e9bdd8c0 bug 63451 - moved signature verification functions from nsIZipReader to nsIJAR. r=sgehani, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@87730 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 00:15:04 +00:00
sgehani%netscape.com
5a95479440 Add ZIP_TestArchive support for CRC32 verification of all or individual items.
b = 61544
 r = dveditz
sr = alecf


git-svn-id: svn://10.0.0.236/trunk@84091 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-27 07:05:55 +00:00
dprice%netscape.com
6d9e63b473 fix for 53312 and 55893 adds a memory flusher and fixes a race condition in
zip cache code.  SR=waterson R=warren,jband


git-svn-id: svn://10.0.0.236/trunk@82110 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 22:44:20 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
dprice%netscape.com
775e4470b6 backing out earlier changes for 53312
git-svn-id: svn://10.0.0.236/trunk@81178 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 01:15:24 +00:00
dprice%netscape.com
d2ec7edcb7 removing debug statement.
git-svn-id: svn://10.0.0.236/trunk@81142 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 21:00:04 +00:00
dprice%netscape.com
92f88bed7e added memory flusher for jar cache 53312
a=warren SR=warren,jband


git-svn-id: svn://10.0.0.236/trunk@81139 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 20:42:46 +00:00
warren%netscape.com
cdc56bbf4c Landing jar packaging from jar_restructuring_branch. r=hyatt,dprice,sfraser,dveditz,vishy,sgehani
git-svn-id: svn://10.0.0.236/trunk@79641 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 19:35:24 +00:00
warren%netscape.com
d2adc229cc Setting release timeout inside lock -- avoiding race condition.
git-svn-id: svn://10.0.0.236/trunk@79417 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 07:08:22 +00:00
sspitzer%netscape.com
8b0f81b576 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


git-svn-id: svn://10.0.0.236/trunk@79367 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 21:56:20 +00:00
rayw%netscape.com
31f9bce979 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


git-svn-id: svn://10.0.0.236/trunk@79224 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:20:49 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
scc%mozilla.org
4b21dc27b1 fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@78065 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 05:54:31 +00:00
warren%netscape.com
c0418b04ba Added zip cache hit rate stats.
git-svn-id: svn://10.0.0.236/trunk@77067 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 07:38:41 +00:00
mkaply%us.ibm.com
0fa2281bcd OS/2 Tinderbox break
PR_CALLBACK


git-svn-id: svn://10.0.0.236/trunk@76973 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 20:39:17 +00:00
dprice%netscape.com
7f2397f6ec fixing the zipcache R=warren
git-svn-id: svn://10.0.0.236/trunk@76938 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 03:18:53 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
mstoltz%netscape.com
9e2ab39e7d Fixing 40159 and 44822, both [nsbeta2+] regressions on signed scripts. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@74078 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:10:33 +00:00
warren%netscape.com
626ae9634a Fixing bugs in nsZipReaderCache. Bug 18433
git-svn-id: svn://10.0.0.236/trunk@71712 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 09:05:22 +00:00
mkaply%us.ibm.com
e276facf1a # 37239
r = mstolz, a = brendan
OS/2 bringup - cast for VisualAge


git-svn-id: svn://10.0.0.236/trunk@71533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 19:16:35 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
mstoltz%netscape.com
e78997b8c0 bug 40215. r=rginda, a=clayton.
git-svn-id: svn://10.0.0.236/trunk@71398 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 22:27:28 +00:00
warren%netscape.com
90db77c3c7 Fixed nsZipReaderCache to get hits. (not used yet)
git-svn-id: svn://10.0.0.236/trunk@70827 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 08:30:29 +00:00
dougt%netscape.com
294ba96376 Using wrong converstion. It should have been 1000, but it I checked in 1 mil!
git-svn-id: svn://10.0.0.236/trunk@70097 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 21:53:34 +00:00
scc%netscape.com
00dcb069d9 bug #38765
git-svn-id: svn://10.0.0.236/trunk@69492 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 00:22:38 +00:00
scc%netscape.com
8d5a50fb63 string backsliding. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@69402 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 07:53:02 +00:00
mstoltz%netscape.com
763db43f91 Removed dependency of libjar on psm-glue, bug 36853. Fixed out parameter type problem in PSMComponent::HashEnd
git-svn-id: svn://10.0.0.236/trunk@68958 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 01:49:33 +00:00
dougt%netscape.com
46df6c9b5b Mac needs special LONG LONG support.
git-svn-id: svn://10.0.0.236/trunk@68871 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 19:59:06 +00:00
dougt%netscape.com
6036715cd7 Fixes bug 38553. Using usecs now. r=sgehani@netscape.com
git-svn-id: svn://10.0.0.236/trunk@68864 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 19:11:14 +00:00
scc%netscape.com
506e781f8f making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67400 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 19:49:53 +00:00
slamm%netscape.com
ef73f85acf Fix declaration order to quiet build warning
git-svn-id: svn://10.0.0.236/trunk@67285 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:27:52 +00:00
mstoltz%netscape.com
1aebd93c62 Fixes for 27010, 32878, and 32948.
git-svn-id: svn://10.0.0.236/trunk@67181 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:50:07 +00:00