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

594 Коммитов

Автор SHA1 Сообщение Дата
mkaply%us.ibm.com 5be272bc33 # 37239
r= dougt@netscape.com
OS/2 bring up continues - xpcom changes - #ifdefs for OS/2
2000-05-01 22:25:44 +00:00
mkaply%us.ibm.com d41c17e2f8 # 37239
r= mkaply@us.ibm.com
OS/2 bring up continues - checking in files for the OS/2 team
2000-05-01 22:21:43 +00:00
waterson%netscape.com 00eb3e5b8c Get rid of operator==(nsCOMPtr, int) usage because it fries gcc-2.7.2.3's mind with new string stuff. r=scc 2000-04-27 04:44:56 +00:00
dougt%netscape.com 6b120ecb69 Patch from Tim Rowley <tor@cs.brown.edu>.
From his email:

Your checkin v1.9 to nsDirectoryService.cpp broke a SUNWspro4.2
debug build of mozilla, causing xpcom to fail initializing.  The
root problem was that nsDirectoryService::Create() was failing.
This appears to a mistake caused by a shadowed copy of the "rv"
variable in that method.  The fix below causes the SUNWspro build
to start up normally.

Not sure why this didn't break other platforms.
2000-04-26 21:37:45 +00:00
ftang%netscape.com 38d547d5df check in fix for 37106. r=ftang. patched proposed by m_kato@ga2.so-net.ne.jp
handle 0x5C properly by calling DBCSIsLeadByte function
2000-04-26 03:57:34 +00:00
dougt%netscape.com 19c93e8881 Fixes problems in local file where getting a parent of a non-existant file did not work. Fixes a problem if you tried to create a folder and it parents did not exist. Fixes a problem if you had a initialized with a FSSpec which was not resolved complete and you tried to add a relative path. Fixing nsInstallFile to use nsIFile:: enums insteads of numbers. r=sgehani, a=leaf 2000-04-26 01:50:24 +00:00
dougt%netscape.com 51df3bc206 missed commenting out two assertions which will cause mac and OS2 users
lots of pain.  r=brade, a=leaf.
2000-04-25 18:16:16 +00:00
sspitzer%netscape.com 8b419ec4eb fix the threadsafe assertion. 2000-04-25 14:56:59 +00:00
pinkerton%netscape.com 540fcd1ba1 adding a helper to create/init from an FSSpec. 2000-04-25 04:09:18 +00:00
ssu%netscape.com 987d8aad7a fixing bug #36958. No longer makes the installer require a reboot at the end if replacing file that are *not* in use. 2000-04-25 02:39:42 +00:00
dougt%netscape.com 4ebce97a3b checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.
2000-04-25 01:48:02 +00:00
dougt%netscape.com fc2a69ba00 Adding xpcom.currentProcess 2000-04-24 22:54:04 +00:00
dougt%netscape.com c0b55af16c Fix for bug 35751. Caching type and creator information for nsLocalFileMac. This is so that files can be created with a given type/creator tag after the initialization of the ifile.. r=warren and sfraser. 2000-04-24 03:24:49 +00:00
scc%netscape.com 391f0960dd making string conversions explicit 2000-04-22 08:43:34 +00:00
ftang%netscape.com 238c2b8d57 fix nsFileSpec unicode interface . 2000-04-21 21:44:23 +00:00
cls%seawood.org 53bfb0c4a5 BeOS uses the Unix local file implementation. 2000-04-21 21:04:35 +00:00
cls%seawood.org 8921a25a1b Removed extra & as suggested by Matthew Z. on m.beos. 2000-04-21 21:03:56 +00:00
scc%netscape.com a10aa8dde5 making string conversions explicit 2000-04-21 07:09:51 +00:00
dbragg%netscape.com 365e935ebf typo in Manifest file 2000-04-20 23:06:00 +00:00
dbragg%netscape.com 19a96b0ebe Oops, forgot nsFileSpec.h 2000-04-20 22:59:30 +00:00
ftang%netscape.com c1c131590f 1. small fix on nsLocalFileCommon.cpp to fix unix warrning
2. add unicode methods to nsIFile/nsILocalFile idl
3. add nsLocalFileCommon.cpp to the unix and window makefile
2000-04-20 22:53:29 +00:00
dbragg%netscape.com 28c8f393d4 Fully implemented the DirectoryService and fixed the Mac nsFileSpecToIFile 2000-04-20 22:49:18 +00:00
ftang%netscape.com bcc3796e45 first add for nsILocalFile unicode interface wrapper code
not part of the build system yet.
2000-04-20 05:44:03 +00:00
ftang%netscape.com aacdd70d44 fix 22116. Check in patch from m_kato@ga2.so-net.ne.jp
Perform IsDBCSLeadByte before 0x5c escaping
2000-04-20 05:08:02 +00:00
dougt%netscape.com 93b356c61b fix for 36266. submitting by koehler@mythrium.com. 2000-04-20 01:08:53 +00:00
beard%netscape.com 3f1ed5ff9c Compatibility with Universal Headers 3.3 or later. a=leaf 2000-04-19 22:13:51 +00:00
jdunn%netscape.com ad2f705153 adding newline - hp bustage 2000-04-19 14:57:43 +00:00
davidm%netscape.com f11037bc6d 28412 metaDataLength is wrong in nsCachedNetData::Deserialize. Add routines to build stream from char* and length 2000-04-19 04:54:53 +00:00
andreas.otte%primus-online.de 8dd89cbb2d fix bug 20891 [Assertion when displaying message], don't try to find a drive in an empty path, r=putterman@netscape.com 2000-04-16 07:33:25 +00:00
scc%netscape.com 8a57729d06 making string conversions explicit 2000-04-15 05:23:09 +00:00
warren%netscape.com ea1163636a Fixed AddRef/Release to use NS_ADDREF/NS_RELEASE. 2000-04-13 09:20:58 +00:00
waqar%netscape.com d2db4ac8e0 nsIByteArrayInputStream.h files does not exist any more. r=pollmann,a=leaf 2000-04-10 22:48:27 +00:00
ruslan%netscape.com 903e0777dd Fix nsBinaryStream::ReadStringZ which used to add extra '\0' thus causing
tje string lenth to be off by 1 and all these nasty nsString warnings;
a=leaf,r=smfr
2000-04-06 21:28:09 +00:00
jim_nance%yahoo.com 5c44f0195a Fix for bug 34543. Compile problem under Tru64 Unix.
a=leaf.  This is #ifdefed for Tru64 Unix, but if it causes
bustage and I am not on IRC, you can get me at 919.859.3885
2000-04-05 22:37:01 +00:00
cls%seawood.org 4a53bf302d Changes to get the BeOS build running. Patch provided by Yannick Koehler <koehler@mythrium.com> . 2000-04-05 02:12:26 +00:00
waterson%netscape.com 10cdd2de87 Making string conversions explicit. 2000-04-04 09:35:51 +00:00
bruce%cybersight.com 1d051086ef Fixing nsByteArrayInputStream's QueryInterface() to be correct. Need this for a leak fix coming up shortly. r=scc 2000-04-04 04:16:07 +00:00
mkaply%us.ibm.com 7e138ea359 # 33860
r= mkaply@us.ibm.com
OS/2 bringup
2000-04-04 00:07:04 +00:00
davidm%netscape.com c465e3b30e 27857 nsIFile - MAC not completely implemented 2000-04-03 01:54:22 +00:00
davidm%netscape.com d248b3c4a8 First Checked In. 2000-04-03 01:50:18 +00:00
scc%netscape.com f5dbd84938 not sure if this is the _best_ way to solve the problem, but I added a c-string version of |NS_NewStringInputStream|, which can't use overloading since it's |extern "C"|, so I named it |NS_NewCStringInputStream|. 2000-04-01 22:27:03 +00:00
blizzard%redhat.com 71f21f226a checkin patches to implement nsILocalFile::GetDiskSpaceAvailable from Jason Eager and nsIFile::GetParent from pavlov. r=pavlov,blizzard,dougt. a=dougt 2000-04-01 20:07:14 +00:00
scc%netscape.com c05019b2a8 making string conversions explicit 2000-04-01 00:39:02 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
jband%netscape.com 0d24a185b9 if people are going to insert four space tabs then let's set the Mode line's tab-width correctly 2000-03-28 05:01:05 +00:00
sgehani%netscape.com 68e885af71 Fixing nsIFile::SetLastModificationDate on Win32.
b = 12368
r = dbragg
2000-03-28 03:39:02 +00:00
sgehani%netscape.com e1cf8e1d13 Implemented nsIFile::SetLastModificationDate on the Mac. b = 12368 r = dbragg 2000-03-27 22:05:54 +00:00
sgehani%netscape.com c9399c7cc7 Fixing nsIFile::SetLastModificationDate for Unix.
b = 12368
r = ssu
2000-03-27 22:04:46 +00:00
dougt%netscape.com ae30ecbdf8 Fix for 33098. MoveTo and CopyTo do not rename if the |in| parent is null.
I renamed the in parameter, and created a new stack var which I assign the
in parameter.  If the var is null, I initial it with the |this| parent. I
also made sure that if null was passed, we would tree the action as a move.
2000-03-24 05:47:39 +00:00
sfraser%netscape.com 618cdfb0d8 Fixing nsLocalFileMac so that Contains() works with file aliases, and is much faster. Also fix an issue with cacheing data, so that cacheing actually works. r=pinkerton. 2000-03-23 23:33:23 +00:00
ruslan%netscape.com a9f53247b0 Fix MAC build bustage - forgot to remove nsIByteArrayInputStream.h from the
MANIFEST as well
2000-03-22 04:14:26 +00:00
ruslan%netscape.com 85f1f3bf70 Fix Unix build bustage - makefiles on unix and windows seems to actually
behave differently in this case
2000-03-22 03:02:34 +00:00
ruslan%netscape.com 6ebbc29aa6 Enabling ByteArrayInputStream. Needed to fix 32600, r=warren 2000-03-22 02:50:56 +00:00
dougt%netscape.com bd7b539d07 Fixing SetModificationTime based on MS documentation. It is still failing, but
this is documented to work:

http://support.microsoft.com/support/kb/articles/Q167/2/96.ASP
2000-03-22 01:37:52 +00:00
ruslan%netscape.com fd43b9b63d Add ByteArrayInoutStream. Not part of the build yet 2000-03-22 00:48:48 +00:00
sspitzer%netscape.com 2f566d968a fix for #32245. r=bienvenu. 2000-03-17 21:53:49 +00:00
sspitzer%netscape.com f9c35a1ee1 add Delete() to the nsIFileSpec interface. 2000-03-15 07:07:56 +00:00
blizzard%redhat.com 804ec67bf8 fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson 2000-03-15 03:08:28 +00:00
nhotta%netscape.com 4c9cfca6b5 Changed to use do_GetService instead of CreateInstance, bug 30205, r=cata. 2000-03-15 01:33:43 +00:00
jefft%netscape.com 9cdfa6fef7 fix bug 30784 - save messages / attachment with bogus path name failed sliently; this is bad if user think save was successful then followed by a delete and compact; we will have a data loss here 2000-03-14 13:54:42 +00:00
dougt%netscape.com b107082d5a fix for 28942 nsILocalFile::Exists() returns a FILE_NOT_FOUND error.
r=pete@alphanumerica.com
2000-03-14 05:11:02 +00:00
rickg%netscape.com ffe78e83e5 removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
pavlov%netscape.com ce094b4cfc changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
sfraser%netscape.com 41c5ae6811 Fix for 29572 (launching PSM on Mac). Implement GetParent() for an nsILocalFileMac that was initialized with an FSSpec. r=davidm, a=jar 2000-03-09 00:35:11 +00:00
waterson%netscape.com 27394cb877 Bug 29250. PR_GetFileInfo64() expects a 'root' path on Win32 to have a trailing slash; e.g., it will accept 'c:\\', but not 'c:'. Ensure that, if we ever see a naked drive letter, we'll append a trailing backslash to make something that NSPR understands. r=dveditz, a=jevering 2000-03-08 02:53:04 +00:00
warren%netscape.com c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
sfraser%netscape.com 19fa57d1f9 Followon from a checkin I did yesterday to fix bugs 29521 and 29827 (a=jar); this part fixes an assertion that happened with empty form fields. r=kin 2000-03-02 19:36:15 +00:00
mkaply%us.ibm.com 299c268c24 # 25555
r= dougt@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-02-29 21:27:02 +00:00
davidm%netscape.com 9819271015 22244 Can not load local file on the mac r warren/sfraser a - jar 2000-02-27 16:19:59 +00:00
rjc%netscape.com 14065c7824 Fix PDT+ bug # 6770: be able to get filenames from the file system in the platform native charset. Patch from m_kato@ga2.so-net.ne.jp Review: ftang, dougt, and myself. Approval: jar 2000-02-26 02:19:34 +00:00
cls%seawood.org 59b9bb0e4a Explicitly cast mPath to const char* as some compilers can't automatically cast from nxXPIDLCString to char * . 2000-02-26 00:13:30 +00:00
cls%seawood.org 341d658c62 Implement the equivalent of Unix's realpath() for BeOS. Build blocker. a=leaf 2000-02-24 00:48:30 +00:00
sfraser%netscape.com 83963a825c Fixes for bug 28271 -- add methods to nsILocalFileMac to launch applications and document. Also fix bogus include in nsNativeComponentLoader. r=davidm,dougt. a=jar 2000-02-23 23:09:02 +00:00
dougt%netscape.com 2851ebfb56 Caused a regression in the nsLocalFile. If ResolveAndStat fails, we want
to return the NS_ERROR_FILE_NOT_FOUND value, not the NS_ERROR_FAILURE value.
a=jar.
2000-02-22 06:16:08 +00:00
dougt%netscape.com 6e4324a177 Added a .get() to a comptr to make it compile on linux. 2000-02-21 22:09:24 +00:00
dougt%netscape.com 8c83662e4d Fixes for 28257, 21628, 27076, 18186, 25584
1) Implement nsDirectoryService.  This makes the service extensible so that
components can do delayed registration.

2) Fixes windows Append meathod which did not work with . prepended files.

3) Fixes memory leaks in nsDirectoryService

4) Fixes SetPermissions() on Win32.  This was in my tree for a while.  It basically
calls through to chmod just like on unix.

5) Fixes GetModificationDate. Win32 now return PRTime for dates.

r = scc, valeski, warren, wtc (suggestions)
a = jevering
2000-02-21 21:51:47 +00:00
cls%seawood.org 5975077af0 More tweaks needed to get BeOS to compile for M14. For now, we use the Unix local file implementation. a,r=leaf 2000-02-17 20:24:24 +00:00
blizzard%redhat.com 893726aa30 fix windows build bustage 2000-02-17 16:08:53 +00:00
blizzard%redhat.com 33ad4046c8 change nsIFile::Spawn to take an array of arguments instead of just a single flat string. bug #27843. r=dougt, a=chofmann. also, implement nsIFile::Normalize for unix. bug #17948. r=shaver, a=chofmann 2000-02-17 15:35:54 +00:00
dougt%netscape.com d8011b81b2 Optimization for shortcut resolution. r=dveditz. 2000-02-15 21:28:13 +00:00
mkaply%us.ibm.com bf5f8196bc # 25555
r= jdunn@netscape.com
OS/2 changes for Mozilla
2000-02-15 15:32:46 +00:00
dougt%netscape.com be8b07f605 checking in makefile to build the interface nsIDirectoryService 2000-02-11 05:12:20 +00:00
dougt%netscape.com ec95c74bd3 removing unneed file. r=smfr. 2000-02-11 05:09:18 +00:00
dougt%netscape.com c971d059e6 first checking 2000-02-11 05:04:53 +00:00
dougt%netscape.com 786d739d67 Fix from warren to check for the return val of Clone.
Also adding extra ('s around a arguably confusing if statement
r=warren
2000-02-11 04:50:23 +00:00
rhp%netscape.com 58322257df Fix to escape quotes along with the other special characters - Bug #: 27039 - r: bienvenu 2000-02-11 01:32:20 +00:00
nhotta%netscape.com ff36f4f489 Added a function to return path name in unicode, contributed by m_kato@ga2.so-net.ne.jp, edited by nhotta, bug 22863, r=ftang. 2000-02-11 01:08:56 +00:00
colin%theblakes.com b7dc0ab46a Only a read of 0 means EOF. r=dougt 2000-02-11 00:50:58 +00:00
colin%theblakes.com 990f93bd5d Make filespec comparisons case-blind for OpenVMS. Fix build problem for OpenVMS. r=dougt 2000-02-10 10:54:55 +00:00
dp%netscape.com 11c836772b Fixing build bustage. 2000-02-09 08:47:51 +00:00
dougt%netscape.com 344d3e79cc Making unix act like the rest of the platforms. It now return zero for the
size if the nsIFile is really a directory.
2000-02-09 08:09:35 +00:00
dougt%netscape.com aa9a6b79c3 Fix for bug 26816. submitted by bns_robson@hotmail.com. windows only.
memory leak fix.
2000-02-08 04:25:00 +00:00
dveditz%netscape.com 2f965c4c8d added quoting so we can execute windows files with spaces in their names -- such as anything in a subdir of 'Program Files' 2000-02-06 10:09:16 +00:00
sdagley%netscape.com 8bb810068e Added comment warning that the file size attribute only deals with the data fork on the Mac and point to Mac specific interface for dealing with the size of the combined forks. r=none as this is just cleanup. 2000-02-04 23:06:56 +00:00
dougt%netscape.com b6f0b9e262 Empowering the world. Bug. 25374, basically we create a directory without
the correct permission.
r=racham&&mozbot.
2000-02-04 22:57:37 +00:00
mscott%netscape.com 83547ed348 Back out the changes to the pipe code to fix regression bugs: 26533 and one i forgot the number of. =)
r=warren
a=leaf
2000-02-04 21:45:46 +00:00
warren%netscape.com cd6e6d6513 Fix for bug 24996 - moving file creation from nsStreamXferOp into nsFileTransport where it belongs. r=mscott 2000-02-04 08:33:17 +00:00
sdagley%netscape.com 8e7fc7d323 nsLocalFileMac work. Added GetFileSizeWithResFork() method for callers that need to account for the total size of a Mac file (GetFileSize() only returns the size of the data fork). r=pinkerton 2000-02-04 07:17:36 +00:00
sdagley%netscape.com 9419bc40eb For now nsLocalFileMac::GetFileSize should only return the size of the file's data fork to be compatible with other places in the code that make that assumption. r=saari 2000-02-04 05:26:00 +00:00
sgehani%netscape.com bdb0774998 Fix for XPInstall horkage on the Mac. b = 26327 r = dougt a = leaf 2000-02-03 21:06:35 +00:00