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

554 Коммитов

Автор SHA1 Сообщение Дата
scc%netscape.com d5acc2d706 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 ca872d8778 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 080a801eb7 making string conversions explicit 2000-04-01 00:39:02 +00:00
warren%netscape.com d60b12b153 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 2e62a370df 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 7f72344dbd Fixing nsIFile::SetLastModificationDate on Win32.
b = 12368
r = dbragg
2000-03-28 03:39:02 +00:00
sgehani%netscape.com f18bd82eb6 Implemented nsIFile::SetLastModificationDate on the Mac. b = 12368 r = dbragg 2000-03-27 22:05:54 +00:00
sgehani%netscape.com 670a530d19 Fixing nsIFile::SetLastModificationDate for Unix.
b = 12368
r = ssu
2000-03-27 22:04:46 +00:00
dougt%netscape.com a1307c0064 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 70f4a2bdfe 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 53a9b4ab75 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 3a22f6a8a0 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 589bd1cf93 Enabling ByteArrayInputStream. Needed to fix 32600, r=warren 2000-03-22 02:50:56 +00:00
dougt%netscape.com 6a0d50a6eb 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 1a40c13f15 Add ByteArrayInoutStream. Not part of the build yet 2000-03-22 00:48:48 +00:00
sspitzer%netscape.com 07122ecd90 fix for #32245. r=bienvenu. 2000-03-17 21:53:49 +00:00
sspitzer%netscape.com 9084c85e5c add Delete() to the nsIFileSpec interface. 2000-03-15 07:07:56 +00:00
blizzard%redhat.com 8957904eb0 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 41c47e0204 Changed to use do_GetService instead of CreateInstance, bug 30205, r=cata. 2000-03-15 01:33:43 +00:00
jefft%netscape.com 07dd82c225 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 d1f750751c 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 4791ab3e8f removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
pavlov%netscape.com 33ce2d4e90 changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
sfraser%netscape.com d9b76fa857 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 b952d774a7 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 7e37f4f478 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 27a14620ec 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 26066c1a6d # 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 8fcd2d03da 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 3e9d26015e 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 c09f2d0011 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 6acc399ce0 Implement the equivalent of Unix's realpath() for BeOS. Build blocker. a=leaf 2000-02-24 00:48:30 +00:00
sfraser%netscape.com ef42bb4bbe 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 968894a7f0 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 18587c5bde Added a .get() to a comptr to make it compile on linux. 2000-02-21 22:09:24 +00:00
dougt%netscape.com bb8576a079 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 55ac039b66 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 44b60ac3b7 fix windows build bustage 2000-02-17 16:08:53 +00:00
blizzard%redhat.com e44357530b 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 9b91e09227 Optimization for shortcut resolution. r=dveditz. 2000-02-15 21:28:13 +00:00
mkaply%us.ibm.com f30c8f5f61 # 25555
r= jdunn@netscape.com
OS/2 changes for Mozilla
2000-02-15 15:32:46 +00:00
dougt%netscape.com 7d4e5c9846 checking in makefile to build the interface nsIDirectoryService 2000-02-11 05:12:20 +00:00
dougt%netscape.com ebfc731fa5 removing unneed file. r=smfr. 2000-02-11 05:09:18 +00:00
dougt%netscape.com 030e0f2d0a first checking 2000-02-11 05:04:53 +00:00
dougt%netscape.com 982ca08e98 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 f9fe1c4033 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 d8f9f6841c 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 2bb0467282 Only a read of 0 means EOF. r=dougt 2000-02-11 00:50:58 +00:00
colin%theblakes.com 3fe0589fd1 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 20a322045f Fixing build bustage. 2000-02-09 08:47:51 +00:00
dougt%netscape.com ee48c9e90c 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 329536a73e 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 6bf6c95062 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 ac5dc8964e 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 a10fe33677 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 a6c2655b39 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 813f04865f 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 d7e10a167b 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 c1ecefa92f 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 74dbfa166b Fix for XPInstall horkage on the Mac. b = 26327 r = dougt a = leaf 2000-02-03 21:06:35 +00:00
sfraser%netscape.com 3176f02d0f Test that the filespec has been initialized, before using it to delete entire directory trees. Blocker. r=Ben_Goodger, a=leaf 2000-02-03 20:49:40 +00:00
sdagley%netscape.com 70a25d6825 Fixing bustages in nsLocalFileMac - fixes #25629, #26106 and #25277. r=pinkerton 2000-02-01 23:42:28 +00:00
dougt%netscape.com 487d702b76 bug fix 25626. r=tor@cs.brown.edu 2000-01-31 23:09:14 +00:00
dougt%netscape.com 41270b908d Since we are only getting information about this file, we should no pass the
GENERIC_READ flag.
2000-01-31 23:07:35 +00:00
dougt%netscape.com 0e51393c91 Initializing return values before they are used. 2000-01-31 23:06:04 +00:00
sdagley%netscape.com 07d524f0af Fix mem leak in My_CloseDir() (#25614). r=saari 2000-01-31 22:41:05 +00:00
dougt%netscape.com 7a86ad63df Changing IsContainedIn to contains. Reverting to prior version. 2000-01-29 00:00:21 +00:00
dougt%netscape.com 8b004ab19f Renaming IsContainedIn to contains. Fixing implementation on unix. 2000-01-28 23:53:59 +00:00
dougt%netscape.com 3b130cbe83 Changing CID format. r=dveditz 2000-01-28 23:38:20 +00:00
dougt%netscape.com ac2d28290e Fixing dll exports for NS_NewLocalFile()
r=dveditz
2000-01-28 23:35:55 +00:00
sspitzer%netscape.com 9e326fa03c fix build breakage on platforms with out ENOLINK
r=Pascal Hofstee <daeron@shadowmere.student.utwente.nl> and r=leaf
2000-01-28 23:09:58 +00:00
dougt%netscape.com f8874968d9 Removing WIN API which requires windows 98 or better. Fixes 25101, and
others.  I erronously checked in a fix which still linked with this non-win95
API.  So, now I am just defaulting to standard GetFileAttributes() and doing
away with the EX version.
2000-01-28 06:17:06 +00:00
sfraser%netscape.com c07437c9af More fixing for startup crashes and other badness (bugs 25366 and 24312). Fix off by one buffer write. r=sdagley 2000-01-28 01:50:05 +00:00
pollmann%netscape.com 86c6cc622e Fix VC 5.0 build bustage r=dougt, harishd 2000-01-28 00:41:06 +00:00
sfraser%netscape.com cdaa9d2fd6 Fix for 24312 and other unpredictable crashers on startup. r=sdagley 2000-01-27 23:28:49 +00:00
sgehani%netscape.com 16d46ff7ad Fix for XPInstall horkage on the Mac. b = 25288 r = sdagley a = mcafee (ssu will be watching the tree in my absence.) 2000-01-27 23:18:06 +00:00
putterman%netscape.com 09ef17770d Fixes 25272 and most likely 25274. r=dougt. 2000-01-27 20:06:23 +00:00
norris%netscape.com 32fc399bc6 Fix crash while loading jar: URI.
r=dougt
2000-01-27 15:58:23 +00:00
sdagley%netscape.com 2e00a8a146 Residual work on #17949 - Need to make sure that path passed to Mac impl of nsLocalFile::InitWithPath doesn't end in a :. r=davidm 2000-01-27 08:11:19 +00:00
dougt%netscape.com 8441cf8f7d All of these are broken. Alway double check submission/suggestions. 2000-01-27 04:35:44 +00:00
dougt%netscape.com f51f865389 Removing Windows95 compiler #ifdef in place of a runtime check
Fixing bug 25152 submitted by kin@netscape.com.

windows only changes.
2000-01-27 01:52:02 +00:00
dougt%netscape.com b9b159a38c xpcom/io changes,
Fixes bug 25028.
Added new dirty flag so that resolutions can be purged.
checked in VC5 fix from pollmann and jband
checked in fix from colin@theblakes.com for VMS.

r= valeski, pollmann, colin@theblakes
2000-01-26 21:55:13 +00:00
beard%netscape.com 5b0d0e9507 bustage fix. r=dougt 2000-01-25 22:35:47 +00:00
mscott%netscape.com 413c076a99 filesize bustage. dougt's fix, r=shaver@mozilla.org 2000-01-25 21:41:00 +00:00
ssu%netscape.com f786bd92f9 Fixing up directory service so that the current process will be looked up
before being calculated.

Changed this GetProcessDirectory to return an allocated nsIFile.

Making sure that object stored in the nsHashtable are not muteable.

dougt's changes.  r=ssu.  a=granrose.
2000-01-25 20:43:47 +00:00
dougt%netscape.com fd69a2f423 Landing nsIFile. 2000-01-24 21:28:28 +00:00
warren%netscape.com 852a0965c1 Fix for bugs 24008 and 23849 -- needed to keep mSegmentEnd and mWriteCursor in sync for out-of-memory case. a=chofmann r=fur,gordon 2000-01-21 23:16:35 +00:00
bienvenu%netscape.com c44ac9a727 fix crash on win98 with funny file names, r=dougt 23578 2000-01-19 07:29:33 +00:00
waterson%netscape.com 8bd0bd6d71 Make ResolveSymLink() fail silently if target was not a shortcut. r=lumpy 2000-01-19 00:35:01 +00:00
pinkerton%netscape.com b81e3728d4 fix the case where the char stream impl reallocated its buffer to accomodate data > 256 bytes. mLength wasn't set (at all) so the memcpy() copied nothing into the new buffer. 2000-01-13 02:00:57 +00:00
jdunn%netscape.com bf9205fff0 Fix slamm's warnings of shadowing previous variables.
r= rhp@netscape.com
r= warren@netscape.com
r= rpotts@netscape.com
2000-01-12 00:54:10 +00:00
duncan%be.com 6db56b6d39 Fix BeOS build by making changing nsResProtocolHandler.cpp like
Windows and Mac, and fix a couple nsSpecialSystemDirectory bugs.
All the changes are BeOS specific (i.e. wrapped in XP_BEOS or
only used by code wrapped in XP_BEOS).
r=mcafee
2000-01-08 09:09:02 +00:00
edburns%acm.org 507ee16e37 I know it's unorthodox to do a top level checkin like this, but I've got so many files
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got

r=dp

on this checkin.

Here are the touched files:

M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp

The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.

The new signature is

extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);

I filed a bug for this problem:

b=23157

The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.

I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
2000-01-06 01:05:13 +00:00
warren%netscape.com 04decf0f8c Added OnClose method to nsIPipeObserver (bug#23080) 2000-01-05 05:07:46 +00:00
sdagley%netscape.com f20fc0a6c7 Fix build bustage - warren obsoleted nsPipe2.h but didn't update the manifest 2000-01-05 04:57:12 +00:00
warren%netscape.com 27e979dd35 Removed nsPipe2.h -- obsolete. 2000-01-05 03:56:47 +00:00
dougt%netscape.com 737dceb668 Adding include of prlink.h to nsILocalFile.idl.
remove a bad semicolon in nsLocalFileWin

above not in build.

Adding an explict include of nsCRT to nsPipe2.cpp

this is in the build, but is trival.
1999-12-22 04:11:13 +00:00
dougt%netscape.com 6444a09bb5 implement load().
not part of build.
1999-12-22 03:01:08 +00:00
dougt%netscape.com 3862581bd1 adding a load() command which will allow loading of libraries.
not part of build
1999-12-22 02:59:01 +00:00
dougt%netscape.com 74d1fcfd28 1. First cut of a Special System Directory replacement (nsDirectoryService).
It is a nsIProperty.

2. Updates to the nsIFile and nsILocalFile interfaces based on conversations
   with warren. (thanks)

3. Updated windows mac and unix implementations based on interface changes.
   Mac and windows changes need to be reviewed.


                          Not part of build.
1999-12-22 01:56:45 +00:00