mkaply%us.ibm.com
d5d97c8b5f
#55327
...
r=mkaply, a=blizzard
OS/2 only code - bring nsLocalFileOS2 to current level
2000-10-05 20:44:11 +00:00
colin%theblakes.com
5d88f8bd74
r=dougt, sr=blizzard, bugzilla=55163
...
OpenVMS-specific change to handle HOME
correctly. Fixes location of appreg bug.
2000-10-05 10:12:15 +00:00
vishy%netscape.com
8113e13325
sr=mscott,r=vishy (this is racham's code), bugzilla=48981
...
for standalone app, the profile data has to go in the windows
app data directory - not where the app is running
2000-10-05 03:34:18 +00:00
mkaply%us.ibm.com
a47da58b87
#54535
...
r=mkaply, dougt, a=jband
Code from jpedemonte to fix profile creation
2000-09-29 20:40:10 +00:00
sgehani%netscape.com
cb37a54b7a
Merging pr3 branch to trunk:
...
Renaming "Plugins" -> "Plug-ins"
b=53976
r=ssu
a=sfraser
2000-09-28 22:52:51 +00:00
mkaply%us.ibm.com
c90bc3ef8b
OS/2 Tinderbox breakage
...
HOME dir isn't working on OS/2, so profile can't be created so the browser won't come up.
Change to OS2 dir to get things working.
r=dr
2000-09-22 17:32:10 +00:00
ccarlen%netscape.com
48d1306eb1
Fix for #52181
r=dougt, a=buster
2000-09-21 13:45:31 +00:00
brendan%mozilla.org
a791fb2253
Fixes to use atomic rename(2) if possible in nsLocalFile::MoveTo (33098, r=?),
...
plus a bunch of other fixes and cleanups:
- Fix comment misstatements of fact in nsIFile.idl, improve style slightly.
- Fix typo in comment in nsILocalFile.idl.
- Avoid gratuitous nsCString and nsXPIDLCString copy-constructions, which
entail malloc'ing, in nsLocalFileUnix.cpp's CopyTo and GetParent methods.
But do use nsXPIDLCString instead of raw nsMemory::Alloc/Free.
- Get rid of unnecessary mLL_II2L and mLL_L2II macros, use "prlong.h" API only.
Also use the LL_* macros consistently in case a Unix lacking long long type
support wants to use this code.
* BTW, the "Date" methods should be renamed to use "Time" instead -- after all
PRTime is the type, and traditionally "time" refers to the time-number, a
scalar independent of one's position on the surface of the earth, while
"date" refers to a struct full of locale-specific information derived from
time and some "environment" variables such as DST. Can we rename these
nsIFile methods before Mozilla 0.9 / Netscape 6?
- Use CHECK_mPath consistently and first, before any assertions relating to
arguments (which logically come after the 'this' parameter CHECK_mPath is
making assertions about).
- Use nsCOMPtr for singly-inheriting implementations of XPCOM interfaces, to
avoid scary-when-scaled 0-refcnt instances from being handled (these all
got a ref via QI or equivalent soon enough, but you never know). This also
removed some naked deletes.
- Canonize all paths copied into mPath to lack trailing slashes, so we don't
need to strip trailing slashes elsewhere, in higher-frequency methods (you
set path less often than you get it or a substring of it).
- ssize_t for strlen return values.
- Since shaver used a function pointer to consolidate creat/mkdir logic, but
didn't fold the necessary close of the new fd returned by non-failing creat
into the pointed-at function, I did that.
- AppendRelativePath forbids .. as a component (bounded by / or beginning or
end of string on either side), not just in the middle of fragment (so that
foo..bar is not an illegal relative pathname -- it should not be). BTW,
what the heck is the difference between NS_ERROR_FILE_UNRECOGNIZED_PATH and
...INVALID_PATH?
- SetLeafName was overallocating the new pathname buffer by failing to subtract
the old leafname's length.
- CopyTo was failing to return an NSRESULT_FOR_ERRNO(), it just called that
macro on a line by itself -- eek! It also contained redundant if (newFD
== nsnull) {...} cleanup code, it did a useless PR_GetFileInfo call, and it
leaked FDs on read or write error.
- Implemented CopyToFollowingLinks as a forwarded call to CopyTo, Unix does
not support "copying" a symlink via normal file i/o. Should we instead
lstat in CopyTo and if a link is the source of the copy, do readlink and
then symlink?
- Fixed the readlink method (GetTarget) to null-terminate the link string in
the out parameter (readlink does not do that for you).
- Lots of little nsnull vs. NULL vs. 0, == and != applied to boolean or null
literals, white-space, indentation, bracing, comment, and sloppy code order
(e.g., declaring an initialized variable that's not used till after early
returns) fixes. Also invert some return logic so that NS_OK is the normal,
least indented, final return.
2000-09-19 00:22:41 +00:00
rayw%netscape.com
0257791053
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
2000-09-13 23:57:52 +00:00
mkaply%us.ibm.com
1f08244363
OS/2 Tinderbox break
...
Need cast for VisualAge
2000-09-12 12:28:31 +00:00
mkaply%us.ibm.com
5d8916353e
OS/2 Tinderbox break
...
The Windows way was right, not sure why it was made different for OS/2.
2000-09-12 12:24:32 +00:00
warren%netscape.com
9fc7180eb9
Added URL attribute to nsIFile (why: because (a) needs to vary for different implementations, and (b) need to factor out of necko for installer). Not implemented yet.
2000-09-12 08:05:13 +00:00
rpotts%netscape.com
b845d5a563
Changed the nsIInputStreams created by the storage stream to be thread-safe...
2000-09-10 08:12:26 +00:00
ccarlen%netscape.com
68500bd674
Fix for Win95 machines which don't have APP_DATA dir
r=racham
2000-09-09 15:31:27 +00:00
ccarlen%netscape.com
fa65e9669f
Fix for #38770
Also fixed (unreported bug) in SetPersistentDescriptor.
r=dougt
2000-09-09 15:26:52 +00:00
warren%netscape.com
52514c7ffc
Bug 46772. Added nsIDirectoryService::UnregisterProvider
2000-09-08 04:57:33 +00:00
warren%netscape.com
996cfbc2fc
Changed assertion to warning when platform charset doesn't exist.
2000-09-06 23:42:59 +00:00
pchen%netscape.com
7a08a7e5c0
bug #43585 , r=sfraser, add Mac_DefaultDownloadDirectory to SystemDirectories enum
2000-09-06 21:13:14 +00:00
pchen%netscape.com
fa8df5e6b1
bug #43585 , r=sfraser, here resides the actual code to handle new mac default download directory, prepended code to call new nsIInternetConfigService to get IC default download folder. If we can't get it, then fall back to using desktop folder like before.
2000-09-06 21:13:12 +00:00
pchen%netscape.com
dcd27732f8
bug #43585 , r=sfraser, fix type/creator mix up calling FSpCreate() in nsLocalFile::Create(), fix passing correct FSSpec to AECreateDesc, fix passing AppParameters correctly in LaunchParamBlockRec.
2000-09-06 21:13:10 +00:00
pchen%netscape.com
9edc591583
bug #43585 , r=sfraser, add string NS_MAC_DEFAULT_DOWNLOAD_DIR
2000-09-06 21:13:06 +00:00
pchen%netscape.com
be126281cc
bug #43585 , r=sfraser, add static atom for mac default download dir
2000-09-06 21:13:04 +00:00
pchen%netscape.com
605a452be5
bug #43585 , r=sfraser, add atoms and case for new mac default download folder dir
2000-09-06 21:13:02 +00:00
dbaron%fas.harvard.edu
6034cb7c24
Fixing code that relied on implicit string construction. r=scc (verbally)
2000-09-03 00:02:34 +00:00
scc%mozilla.org
e52e438806
bug #49817 : fix |normalize_forward|, |normalize_backward|; make |Begin(Read|Writ)ing| call |normalize_forward|; pass iterators by reference. r=mjudge
2000-09-02 04:10:44 +00:00
mkaply%us.ibm.com
2fcc576271
#51105
...
r=dougt, a=brendan
Missing OS/2 support for HOME dir
2000-09-01 22:53:55 +00:00
pavlov%netscape.com
364611d68d
fix for crash when trying to get the parent file when the file was a drive r=dougt bug 50837
2000-09-01 07:36:55 +00:00
cls%seawood.org
11e77d89f5
Build fixes for BeOS. Thanks to Dan Moore <pergamon@68k.org> for the patch.
2000-08-30 07:21:31 +00:00
racham%netscape.com
8e5937715a
Fixing bug 6464. Moving Users50 and registry location on windows to Application Data folder. r=dveditz, ccarlen
2000-08-29 23:44:53 +00:00
racham%netscape.com
2e07457d80
Fixing bug 6464. Moving Users50 and registry location on windows to Application Data folder. r=dveditz,ccarlen
2000-08-29 23:44:48 +00:00
dougt%netscape.com
90b2424793
Fixing 49866. Could cause a crash on opt builds that did not set the env HOME. r=adamlock@netscape.com
2000-08-28 22:14:02 +00:00
bienvenu%netscape.com
61896d4c98
fix 48952 local file list of root windows directory broken r=dougt
2000-08-23 14:06:37 +00:00
racham%netscape.com
7e1c976d1e
Fixing bug 49699. Adding a windows directory as fall back to all those windows OS versions that return null for HOME. r=dougt
2000-08-23 01:24:30 +00:00
jband%netscape.com
23fac07700
fix Mac bustage?
2000-08-22 07:53:24 +00:00
warren%netscape.com
7a1efd9573
Fixed comments which got swapped around.
2000-08-22 07:12:56 +00:00
warren%netscape.com
e05eef45e9
Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan
2000-08-22 07:03:33 +00:00
scc%mozilla.org
2fe691fa70
fixing code that relied on implicit string construction
2000-08-20 07:33:54 +00:00
scc%mozilla.org
7d2020e4f9
fixing code that relied on implicit string construction
2000-08-20 07:18:09 +00:00
mccabe%netscape.com
f803b21326
Rectify // comment to /** comment
2000-08-18 01:09:29 +00:00
mkaply%us.ibm.com
6ddfa37f7e
OS/2 Tinderbox break
...
OK will someone WAKE UP and realize that we need XP_WIN defined in the build?
XP_PC does NOT mean XP_WIN.
WE NEED XP_WIN IN THE BUILD
SOMEONE TURN IT ON IN THE MAKEFILE!
2000-08-17 03:18:03 +00:00
mcafee%netscape.com
8de69e3e35
Fix build warning, trailing slash looks run-on comment to the egcs compiler.
2000-08-17 01:53:59 +00:00
racham%netscape.com
cddb62593d
Fixing bug 46320. Reducing the number of global files by moving profile registry to product sub-directory under HOME. r=dougt
2000-08-16 22:40:27 +00:00
mkaply%us.ibm.com
69397914bf
#44517
...
r=dougt, a=brendan
Make OS/2 Desktop directory NLS aware
2000-08-16 14:27:18 +00:00
conrad%ingress.com
26dd1bf2fd
1. Changed from using strings to using macro names for property keys
2. Fixed return val of RegisterProvider
r=valeski
2000-08-11 20:25:18 +00:00
mcafee%netscape.com
c6ded73515
More double-space lossage, whitespace change only.
2000-08-10 08:16:40 +00:00
warren%netscape.com
84b5fd67e3
Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
2000-08-10 06:19:37 +00:00
conrad%ingress.com
f32e087836
Fixed double line feed problem.
2000-08-10 06:06:02 +00:00
valeski%netscape.com
c38e718733
fixing windows hatred of goto inits
2000-08-10 05:23:05 +00:00
mcafee%netscape.com
18b68e428a
Adding nsDirectoryServiceDefs.h, fixing whitespace problems. This would have become linux bustage later.
2000-08-10 04:53:37 +00:00
conrad%ingress.com
da645761e9
Changed strings to use macros
Fixed FindWinFolder which was not doing anything.
2000-08-10 04:39:30 +00:00
conrad%ingress.com
a76baabb28
Added nsDirectoryServiceDefs.h
2000-08-10 04:37:43 +00:00
conrad%ingress.com
acabcc13af
Export of nsDirectoryServiceDefs.h
r=valeski
2000-08-10 04:12:16 +00:00
conrad%ingress.com
34afc03823
First checkin.
r=valeski
2000-08-10 04:03:52 +00:00
syd%netscape.com
97248be348
Set sane directory permissions on creation. Partial fix for 43091. r=dougt
2000-08-04 22:13:10 +00:00
mscott%netscape.com
418070a7ab
Landing branch fix to the trunk. bug #47248 --> Implement MoveTo for Unix.
2000-08-03 22:17:43 +00:00
mscott%netscape.com
645dd5e80d
landing branch fix to trunk. Bug #47248 ---> Fix GetParent such that if appendedPath is an empy string we treat it the same as if it were null and create a dummy path.
r=dougt
2000-08-03 22:13:34 +00:00
valeski%netscape.com
5b6a28fffd
raw pointer mlk fix. r=dougt
2000-08-01 22:57:58 +00:00
danm%netscape.com
dcd004f45b
Deathgrip the output stream during WriteSegments to prevent bug 46267. This is a temporary patch to stop a common startup crash, until the real underlying cause is found. r=ruslan
2000-08-01 21:33:36 +00:00
dougt%netscape.com
30f07cfd34
r,a=brendan@mozilla.org 24052
2000-07-31 03:46:22 +00:00
dougt%netscape.com
9f5f745910
46044 fixes ABR. submitted by jband@netscape.com.
2000-07-29 08:13:39 +00:00
cls%seawood.org
8e82535d4f
Bringing BeOS up to speed
2000-07-26 06:22:37 +00:00
conrad%ingress.com
fcb5d64b7f
1. Fixed ResolvePathAndSpec - if directories did not exist, the vRefNum and dirID were getting zeroed out. If the path was relative this was wrong.
2. Fixed MoveCopy - If nsnull was passed as newName, which is valid, new name was uninitialized garbage.
r-dougt
2000-07-24 20:05:54 +00:00
dougt%netscape.com
3a70ed325d
r,a=brendan@mozilla.org 24052
2000-07-21 22:16:18 +00:00
mkaply%us.ibm.com
ee0249ccf8
#45973
...
r=dougt, a=brendan
OS/2 specific changes for nsAppFileLocationProvider.cpp
2000-07-20 18:55:28 +00:00
mkaply%us.ibm.com
522aaa276a
#45690
...
r=mkaply, a=brendan
Sync up nsLocalFileOS2.cpp with Windows changes
2000-07-20 14:54:24 +00:00
conrad%ingress.com
db6eb046ac
Not part of build!
Added some <includes> needed on Mac
2000-07-19 21:47:08 +00:00
dougt%netscape.com
780e01b652
Adding UNIX makefiles.
...
making compile on unix
(NOT PART OF BUILD)
2000-07-19 21:20:35 +00:00
dougt%netscape.com
f11513d107
Fixing line feeds.
...
Adding makefiles for windows.
Making compile on windows.
(not part of build!)
2000-07-19 19:58:35 +00:00
conrad%ingress.com
a348a7e8c7
1. Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath.
2. It is now possible to pass nsnull for the path param to NS_NewLocalFile(). This allows one to create an unspecified file.
r = dougt
2000-07-17 15:03:05 +00:00
conrad%ingress.com
eedd73c66d
Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath.
r = dougt
2000-07-17 15:01:10 +00:00
conrad%ingress.com
71b8e272d8
Added Get/SetPersistentDescriptor method. Use this instead of GetPath/InitWithPath.
2000-07-17 14:57:14 +00:00
conrad%ingress.com
9038f4adb8
First checkin - Not yet part of build.
2000-07-16 14:20:33 +00:00
mkaply%us.ibm.com
892de09884
#42637
...
r = mkaply, a = brendan
TINDERBOXBREAK - THIS FILE IS OS/2 ONLY
2000-07-13 15:39:52 +00:00
dougt%netscape.com
c555c3e7c1
Fixing bustage.
2000-07-12 23:59:33 +00:00
dougt%netscape.com
d84c495203
bug 40750.
...
Adding followSymlink flag to nsILocalFile.
Adjusting callers.
windows shortcut optimizations.
r=blizzard@mozilla.org .
a=brendan@mozilla.org
2000-07-12 23:31:31 +00:00
dbragg%netscape.com
cfb6d3817e
Fix for bug #42719 . SetLeafName was not removing the old leaf name before appending a new one. r=sgehani
2000-07-07 21:54:08 +00:00
colin%theblakes.com
48f9742dca
Remove VMS specific code; not needed any more. r,a=leaf
2000-07-06 20:11:38 +00:00
cls%seawood.org
1f3b6d75ab
Removed obsolete REQUIRES variable from every Makefile.in/makefile.win
2000-06-30 08:08:04 +00:00
mkaply%us.ibm.com
c051dc5537
#42637
...
r=mkaply, a=brendan
OS/2 bringup - rewrite of nsFileSpecOS2.cpp to be more like Windows
2000-06-28 14:50:12 +00:00
mkaply%us.ibm.com
6ed25d5b08
#42637
...
r=valeski, a=brendan
OS/2 bringup - Support for OS/2 special system directories
2000-06-27 21:23:51 +00:00
dougt%netscape.com
87f7739f82
Initializing var before use. simple fix.
2000-06-27 20:55:54 +00:00
cls%seawood.org
b85f37fcb6
Given the statement "a == b ? c : d;" , the WorkShop 5.0 compiler expects c & d to be of the same type.
2000-06-27 06:10:21 +00:00
dougt%netscape.com
69db7ba963
Bug 43314.
...
r=Henry Sobotka <sobotka@axess.com>
a=brendan@mozilla.org
s=Robert O'Callahan <roc+moz@cs.cmu.edu>
2000-06-27 03:35:32 +00:00
mkaply%us.ibm.com
a8e37d78ac
#42637
...
r=mkaply, a=brendan
OS/2 bring up - Set mresolvepath - OS/2 only
2000-06-26 14:50:20 +00:00
dougt%netscape.com
ee20e4ebcb
nsIFile unique file creation is racy and insecure
...
bug 43314. a=brendan@mozilla.org
written by Robert O'Callahan <roc+moz@cs.cmu.edu>
2000-06-24 01:50:53 +00:00
mscott%netscape.com
0152413cae
Bug #33768 --> add MakeUnqiue to nsIFile. this is actually dougt's code.
...
r=mscott
2000-06-21 06:32:45 +00:00
mkaply%us.ibm.com
f74e55bdcb
#42637
...
r=mkaply, a=brendan
OS/2 bring up - Need io.h for GCC build
2000-06-21 01:35:21 +00:00
beard%netscape.com
1c926d81a2
bug #42100 , Carbon compatibility. r=gordon, saari, pinkerton, sfraser
2000-06-20 23:10:06 +00:00
mkaply%us.ibm.com
a129b14b91
#42637
...
r=mkaply, a=brendan
OS/2 bring up - rewrite some nsLocalFileOS2 stuff to be more like Windows
2000-06-20 14:06:00 +00:00
mkaply%us.ibm.com
ab95b94e76
#42637
...
r=mkaply, a=brendan
Remove OS/2 debugging messages during bringup
2000-06-20 13:21:22 +00:00
bryner%uiuc.edu
8195675560
Fix for blocker bug 42371 - unable to startup on Linux. r=akkana.
2000-06-13 20:26:30 +00:00
ruslan%netscape.com
cf1d7874af
Partial fix for 41248. Check for the buffer being null and assert, but don't
...
crash, a=gagan
2000-06-10 02:11:04 +00:00
ssu%netscape.com
4461693aaa
Fixing bug #31259 (nsbeta2+) - Install.modDate() and Install.modDateChanged() now shows the correct values.
This *might* also happen to fix the following bugs:
#42070 - Mac files get installed with the wrong date
#38553 - nsIFile - Reducing modification dates significant digits
#36681 - document.lastModified date is incorrect for a local file
This only affects the Mac platforms.
Pre-Checkin Tests: passed
r=sgehani
2000-06-10 00:51:06 +00:00
ssu%netscape.com
406d3196ea
fixing bug #37168 - fixing the mac side of the bug. Install.Execute() now works on the Mac.
precheckin tests=passed
r=sgehani
2000-06-08 00:31:06 +00:00
inaky.gonzalez%intel.com
98157fd5a1
Fixed nsSupportsHashtable behaviour and API to fix leaks in
...
nsDirectoryService. Fixes bugs #38606 and #39859 .
a=waterson; r=rayw,brendan,warren
2000-06-06 22:06:56 +00:00
nhotta%netscape.com
3fc67a80b0
Added PRUnichar version of escape function, bug 34373, r=rhp, a=bobj.
2000-06-05 22:01:32 +00:00
warren%netscape.com
512c8bf433
Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
2000-06-03 09:46:12 +00:00
mkaply%us.ibm.com
2639f7608b
# 37239
...
r = mkaply, a = brendan
OS/2 bringup - need a cast for OS/2 - OS/2 only
2000-06-02 20:15:33 +00:00
warren%netscape.com
c1de4be154
Fixed leak.
2000-05-31 04:34:54 +00:00
mkaply%us.ibm.com
94965403ad
# 37239
...
r = dougt, a = brendan
OS/2 bringup continues on M16 - #ifdefs for OS/2 only
2000-05-25 14:26:34 +00:00