81 Commits

Author SHA1 Message Date
warren%netscape.com
9fa657f1cd 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.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
jband%netscape.com
de356b636c if people are going to insert four space tabs then let's set the Mode line's tab-width correctly
git-svn-id: svn://10.0.0.236/trunk@64327 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 05:01:05 +00:00
sgehani%netscape.com
b99e4be772 Fixing nsIFile::SetLastModificationDate on Win32.
b = 12368
r = dbragg


git-svn-id: svn://10.0.0.236/trunk@64307 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:39:02 +00:00
dougt%netscape.com
38316cfc04 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.


git-svn-id: svn://10.0.0.236/trunk@63999 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 05:47:39 +00:00
dougt%netscape.com
27ce86ed83 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


git-svn-id: svn://10.0.0.236/trunk@63678 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 01:37:52 +00:00
dougt%netscape.com
5721f55fcf fix for 28942 nsILocalFile::Exists() returns a FILE_NOT_FOUND error.
r=pete@alphanumerica.com


git-svn-id: svn://10.0.0.236/trunk@62871 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 05:11:02 +00:00
rickg%netscape.com
1bd57cb94b removed calls to deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62707 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 09:14:14 +00:00
waterson%netscape.com
d3f9e9a69d 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
git-svn-id: svn://10.0.0.236/trunk@62370 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 02:53:04 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
dougt%netscape.com
bb7f9cc62a 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.


git-svn-id: svn://10.0.0.236/trunk@61424 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-22 06:16:08 +00:00
dougt%netscape.com
6cea14f715 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


git-svn-id: svn://10.0.0.236/trunk@61389 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-21 21:51:47 +00:00
blizzard%redhat.com
6289913285 fix windows build bustage
git-svn-id: svn://10.0.0.236/trunk@61205 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 16:08:53 +00:00
blizzard%redhat.com
0759887c2e 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
git-svn-id: svn://10.0.0.236/trunk@61201 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 15:35:54 +00:00
dougt%netscape.com
fad7a57b1a Fix from warren to check for the return val of Clone.
Also adding extra ('s around a arguably confusing if statement
r=warren


git-svn-id: svn://10.0.0.236/trunk@60433 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 04:50:23 +00:00
dougt%netscape.com
90484f9667 Since we are only getting information about this file, we should no pass the
GENERIC_READ flag.


git-svn-id: svn://10.0.0.236/trunk@59298 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:07:35 +00:00
dougt%netscape.com
0bf3bafe38 Changing IsContainedIn to contains. Reverting to prior version.
git-svn-id: svn://10.0.0.236/trunk@59131 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 00:00:21 +00:00
dougt%netscape.com
717daf4b42 Renaming IsContainedIn to contains. Fixing implementation on unix.
git-svn-id: svn://10.0.0.236/trunk@59128 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:53:59 +00:00
dougt%netscape.com
bd62ec42b1 Fixing dll exports for NS_NewLocalFile()
r=dveditz


git-svn-id: svn://10.0.0.236/trunk@59111 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:35:55 +00:00
dougt%netscape.com
ec6ebc495d 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.


git-svn-id: svn://10.0.0.236/trunk@59028 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 06:17:06 +00:00
putterman%netscape.com
12841d2e64 Fixes 25272 and most likely 25274. r=dougt.
git-svn-id: svn://10.0.0.236/trunk@58953 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 20:06:23 +00:00
dougt%netscape.com
ea7cd3e822 All of these are broken. Alway double check submission/suggestions.
git-svn-id: svn://10.0.0.236/trunk@58884 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 04:35:44 +00:00
dougt%netscape.com
2ed87fa438 Removing Windows95 compiler #ifdef in place of a runtime check
Fixing bug 25152 submitted by kin@netscape.com.

windows only changes.


git-svn-id: svn://10.0.0.236/trunk@58862 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 01:52:02 +00:00
dougt%netscape.com
9f7467a8a7 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


git-svn-id: svn://10.0.0.236/trunk@58810 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 21:55:13 +00:00
dougt%netscape.com
714da09a59 Landing nsIFile.
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
dougt%netscape.com
77509d47e0 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.


git-svn-id: svn://10.0.0.236/trunk@56352 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 04:11:13 +00:00
dougt%netscape.com
de1e8beaf0 implement load().
not part of build.


git-svn-id: svn://10.0.0.236/trunk@56343 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 03:01:08 +00:00
dougt%netscape.com
5e6a51e582 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.


git-svn-id: svn://10.0.0.236/trunk@56336 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:56:45 +00:00
bienvenu%netscape.com
a6d5ab0a18 fix file truncation on windows, was breaking pop filters, r=dougt, a=chofmann 20634
git-svn-id: svn://10.0.0.236/trunk@55871 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-10 23:33:30 +00:00
dougt%netscape.com
0419f0e310 removing MoveToFollowingLinks(). It was discussed that was not needed due
to links being broken. r=shaver

more tweeks to get symlinks working correct on windows.

not part of the build yet.


git-svn-id: svn://10.0.0.236/trunk@55684 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:07:38 +00:00
dougt%netscape.com
83e21d3a65 13320 more tweaking to nsIFile windows impl.
not part of build yet.


git-svn-id: svn://10.0.0.236/trunk@55643 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 23:31:25 +00:00
dougt%netscape.com
94ecbedb06 renamed from the hated nsISomethingImpl.
git-svn-id: svn://10.0.0.236/trunk@55246 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:13:44 +00:00