74 Commits

Author SHA1 Message Date
cbiesinger%web.de
880175df8c bug 327065 misc necko cleanup, see bug for details
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@189957 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 15:37:10 +00:00
darin%meer.net
c0e834f3c6 fixes bug 318193 "Input streams are not implemented consistently" r=biesi sr=bz
git-svn-id: svn://10.0.0.236/trunk@186805 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-02 02:30:32 +00:00
cbiesinger%web.de
992b2af388 Bug 282275 remove NS_NOTREACHED in ReadSegments implementations
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@169407 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 18:39:53 +00:00
dwitte%stanford.edu
7b5fcb3785 make nsSafeFileOutputStream follow target symlinks.
b=252050, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@160112 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-30 05:00:32 +00:00
dwitte%stanford.edu
697a2a863c ... and back out the non-debug-only part. ;)
git-svn-id: svn://10.0.0.236/trunk@159720 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-23 07:50:57 +00:00
dwitte%stanford.edu
446b9729f5 bug 252717: assert only when count > 0. debug only.
git-svn-id: svn://10.0.0.236/trunk@159718 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-23 07:47:10 +00:00
dwitte%stanford.edu
7307ec2dbb fix topcrasher bug 252289, r=mvl sr=darin
git-svn-id: svn://10.0.0.236/trunk@159618 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 22:03:21 +00:00
dwitte%stanford.edu
5d88d5abb2 simplifying codepath to see if it fixes orange. we need to null out mTempFile in the non-existent target case too.
git-svn-id: svn://10.0.0.236/trunk@159526 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-20 01:35:13 +00:00
dwitte%stanford.edu
3203562ebb rename nsISafeFileOutputStream to nsISafeOutputStream, and make nsBufferedOutputStream aware of it, to make life easier on consumers.
b=251648, r=biesi, sr=darin, with thanks to darin and bz for suggestions.


git-svn-id: svn://10.0.0.236/trunk@159501 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-19 22:00:03 +00:00
dwitte%stanford.edu
8fd0f2724e add Finish() method to nsISafeFileOutputStream, and tweak things slightly.
b=251091, r=mvl, sr=darin


git-svn-id: svn://10.0.0.236/trunk@159236 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 05:52:37 +00:00
dwitte%stanford.edu
fcb6956839 fix nsFileStream::Close() to propagate failure conditions to the caller.
b=251117, r+sr=darin, a=shaver


git-svn-id: svn://10.0.0.236/trunk@159170 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 05:08:49 +00:00
dwitte%stanford.edu
174ddbad25 comment typo fix.
git-svn-id: svn://10.0.0.236/trunk@159017 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-11 00:48:43 +00:00
mvl%exedo.nl
d59822d1bc create a non-overwriting file output stream
bug 246675, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@158804 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-06 20:35:40 +00:00
bienvenu%nventure.com
c12e53e60e make nsILineInputStream take an nsACString ref, 197166, r=darin, sr=mscott, make local msg body search cache open file stream, use nsIFile instead of nsFileSpec to cut down on seeks, improve performance, sr=mscott 240538
git-svn-id: svn://10.0.0.236/trunk@155334 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-22 15:32:54 +00:00
gerv%gerv.net
586f796c2a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
bienvenu%nventure.com
5c44ea437f fix one more unix build bustage
git-svn-id: svn://10.0.0.236/trunk@154798 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 15:33:31 +00:00
bienvenu%nventure.com
16a3f36135 fix build bustage with 64 bit seekable streams
git-svn-id: svn://10.0.0.236/trunk@154797 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 15:21:09 +00:00
bienvenu%nventure.com
8492af92f2 make nsISeekableStream interface support 64 bit streams, part of 180154 also fix 207400 allow mail folders > 2GB r=darin, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@154796 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 14:37:53 +00:00
darin%meer.net
35b18657e8 fixes bug 216854 "necko should not have a compile-time dependency on exthandler" r=dougt sr=bryner
git-svn-id: svn://10.0.0.236/trunk@146957 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-16 16:12:59 +00:00
cbiesinger%web.de
318bee9731 (netwerk part of Bug 124029)
Implement nsBufferedOutputStream::WriteSegments and WriteFrom, and improve comments in other parts of necko
r=darin sr=bz
CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: 	base/public/nsISocketTransport.idl
CVS: 	base/public/nsITransport.idl base/src/nsBufferedStreams.cpp
CVS: 	base/src/nsFileStreams.cpp protocol/http/src/nsHttpChannel.cpp
CVS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@146862 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 11:55:05 +00:00
seawood%netscape.com
2cd58ae582 Removing unneeded _BSD_SOURCE
Bug #202510


git-svn-id: svn://10.0.0.236/trunk@141434 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 02:12:08 +00:00
darin%netscape.com
2b1d90b6ed modifications for bug 176919 "async streams" r=dougt,gordon sr=sspitzer a=valeski,asa
git-svn-id: svn://10.0.0.236/trunk@136572 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 02:15:14 +00:00
dbaron%dbaron.org
855a1b80fa Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136019 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 22:35:09 +00:00
seawood%netscape.com
ff9eaeb578 Enable truncation of cache files for BeOS.
Bug #162588 r=gordon sr=darin


git-svn-id: svn://10.0.0.236/trunk@135487 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-19 06:27:57 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
darin%netscape.com
24feadaaed fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@121010 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:07:19 +00:00
darin%netscape.com
824def02af fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@120092 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-27 05:33:09 +00:00
jkeiser%netscape.com
a0a822ebdc Close submitted files (input type=file) when done with them. (bug 126829) r=dougt@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@119316 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 22:02:09 +00:00
darin%netscape.com
ac7b15ca02 fixes bug 116365 (second attempt) "[RFE] Cache partial documents; automatically
issue byte range requests" r=gagan sr=mscott,rpotts,brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@117526 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 23:33:19 +00:00
darin%netscape.com
67cf8f6205 backing out changes (for bug 116365) to fix btek page-loader crash.
git-svn-id: svn://10.0.0.236/trunk@117473 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 08:47:10 +00:00
darin%netscape.com
9df715a8b7 fixes bug 116365 "[RFE] Cache partial documents; automatically issue byte
range requests" r=gagan sr=mscott,rpotts,brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@117469 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 06:54:07 +00:00
dbaron%fas.harvard.edu
58badaae12 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117340 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 21:35:01 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
dougt%netscape.com
5aa996cd82 Fixes 127918. Mime Service was being accessed from a non-ui thread. This causes all kinds of problems. Found that content type is not needed while opening most stream io's. Removes content type result from nsIStreamIO::Open(). Added atrribute content type nsIStreamIO. Fixes callers. r=gordon@netscape.com, sr=darin@netscape.com, a=asa@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@116447 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 00:34:54 +00:00
darin%netscape.com
3872488d18 b=99165 Freeze nsIInputStream nsIOutputStream (not yet frozen... but close)
r=dougt sr=shaver a=asa


git-svn-id: svn://10.0.0.236/trunk@116359 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 00:59:06 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
dougt%netscape.com
b6a548fad4 Fixing bustage. Don't listen to strdup folks. There should be fear of invoking the wrath of the Mac!
git-svn-id: svn://10.0.0.236/trunk@115139 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 03:29:59 +00:00
dougt%netscape.com
cd81e6219e Fixes 122523. Avoid stat call when opening file. This should be a minor performance win on windows. r=dp, sr=dveditz, sr=darin, a=roc+moz for 0.9.9
git-svn-id: svn://10.0.0.236/trunk@115135 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 02:18:33 +00:00
dougt%netscape.com
8d45b9ba58 I give up. Backing out these changes
git-svn-id: svn://10.0.0.236/trunk@114521 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 22:07:15 +00:00
dougt%netscape.com
e80bbe75f5 Fixes bug 122523. Avoid stat call when opening file. r=dp@netscape.com, sr=dveditz@netscape.com. This is the second attempt to land this patch. On two of the linux clobber builds, we would crash at startup. I think i fixed this by protecting against a bad mLineBuffer ptr.
git-svn-id: svn://10.0.0.236/trunk@114520 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 20:46:10 +00:00
dougt%netscape.com
8872942681 Backing out my file io changes to see if that fixes some of the unix orangeness.
git-svn-id: svn://10.0.0.236/trunk@113872 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 03:51:34 +00:00
dougt%netscape.com
e6b62201c9 fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@113836 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 22:49:00 +00:00
dougt%netscape.com
1b9ba42e78 Optimization which does not stat() the file prior to opening it. bug 122523, r=dp@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113816 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:39:56 +00:00
darin%netscape.com
5bbfab0a5b fixes bug 114778 "formpost temp files not cleaned up when browser exits"
r=gordon,dougt sr=mscott


git-svn-id: svn://10.0.0.236/trunk@110853 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 03:49:07 +00:00
neeti%netscape.com
581444e41a fix for bug 114439 - nsFileTransportService should cache the mime service. r=dp, sr=darin
git-svn-id: svn://10.0.0.236/trunk@110328 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 01:20:38 +00:00
sfraser%netscape.com
95895c44dd Fix for bug 113942 -- bail early in nsFileIO::GetInputStream() if IsDirectory() returns an error. r=dougt, sr=darin
git-svn-id: svn://10.0.0.236/trunk@110043 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 23:49:11 +00:00
darin%netscape.com
a1e097d98f fixes bug 15320 "Forms/Necko: Temp file (formpost) left after file upload"
r=dougt, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109918 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:40:55 +00:00
gordon%netscape.com
c79f4e05cd Fix bug 86474 "nsFileTransports won't truncate files", extends fix to other unix platforms besides linux. Checking in for lidl@pix.net, r=gordon, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@107149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:39:14 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +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