120 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
bzbarsky%mit.edu
af7c69e56c Relanding, since backing out did not fix orange. Bug 232691.
git-svn-id: svn://10.0.0.236/trunk@156781 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 20:02:43 +00:00
bzbarsky%mit.edu
3594b59c19 Backing out to attempt to fix Mac orange. Bug 232691
git-svn-id: svn://10.0.0.236/trunk@156776 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 19:26:52 +00:00
bzbarsky%mit.edu
b500ffc684 Convert users of nsC?String(), nsC?AutoString(), and NS_LITERAL_C?STRING("") to
using EmptyC?String instead.  Bug 232691, patch by Charles Fenwick
<clf03f@garnet.acns.fsu.edu>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@156769 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 17:04:53 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
cbiesinger%web.de
21bde374e6 backing out 240192 patch
git-svn-id: svn://10.0.0.236/trunk@154985 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-16 20:10:47 +00:00
cbiesinger%web.de
bec7802615 bug 240192, nsLocalFileUnix doesn't work with files larger than 2 GB
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@154980 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-16 19:01:58 +00:00
bryner%brianryner.com
f2b469b08b fixing hpux bustage, bug 239465, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@154465 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-02 23:48:18 +00:00
bryner%brianryner.com
a35df343bc Fixing hpux bustage. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@154442 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-01 23:13:25 +00:00
darin%meer.net
af98e4f306 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
bryner%brianryner.com
b5ccad4460 Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151359 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 06:14:18 +00:00
cbiesinger%web.de
4f3a7ca850 Bug 183871
Crash on "Show hidden files and directories" [@ nsFileView::SetDirectory(nsIFile*) ]
fix: don't let files be initialized with relative paths.
also fix the directory service to not do that.

r=dougt sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@150734 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-25 22:05:01 +00:00
dwitte%stanford.edu
8480c7c032 Bug 122892: nsLocalFile::Clone should preserve stat info.
make nsLocalFile* impls use copy constructors for their nsIFile::Clone methods.
This avoids unnecessary |stat| calls inherent in using NS_NewNativeLocalFile.

b=122892, r=dougt, sr=darin, with many thanks to biesi & mkaply for testing on other
plats.


git-svn-id: svn://10.0.0.236/trunk@144961 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 22:14:16 +00:00
caillon%returnzero.com
1c1e0c7bb4 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag


git-svn-id: svn://10.0.0.236/trunk@144011 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:15:41 +00:00
timeless%mozdev.org
f1f6532817 Bug 187031 [nsLocalFileWin] nsLocalFile::Remove returns os remove values (-1) as nsresults
r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@143899 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 23:19:11 +00:00
dbaron%dbaron.org
2c50ed9f87 Make implementations consistent across platforms: ensure IsDirectory and IsFile return false even when the file doesn't exist (and they return an nsresult error status). b=187014 r=dougt sr=alecf
git-svn-id: svn://10.0.0.236/trunk@136268 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 23:17:49 +00:00
dbaron%dbaron.org
6ed727cbe8 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@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
arougthopher%lizardland.net
cf8138c948 Bug#169506
IsExecutable() deos not work for BeOS

BeOS now uses stat() instead of access() for:
IsWritable()
IsReadable()
IsExecutable()

sr=scc
r-dougt,arougthopher


git-svn-id: svn://10.0.0.236/trunk@131245 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-05 19:06:28 +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
pete%alphanumerica.com
56babc3f58 b=121489, r=dougt, sr=bzbarsky
Simple fix for nsIFile GetParent to return null when already at the top of the volume
Thanks guys for the speedy review.

--pete


git-svn-id: svn://10.0.0.236/trunk@129027 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 02:00:31 +00:00
dougt%netscape.com
b1b39f9e94 Fixes 165561. r=me, sr=darin, by=pete collins
git-svn-id: svn://10.0.0.236/trunk@128503 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-29 23:11:20 +00:00
shaver%mozilla.org
e97285d861 Bug 76968: expand ~/ into NS_OS_HOME_DIR in nsLocalFileUnix. r=bzbarsky,
sr=blizzard.


git-svn-id: svn://10.0.0.236/trunk@123459 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:03:43 +00:00
darin%netscape.com
dcfb0a0f1f fixes bug 147333 "Cannot load local files whose names contain
Japanese/Chinese characters" r=bstell sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@122994 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:50:11 +00:00
darin%netscape.com
0990c0c6cf freezing nsIFile/nsILocalFile API (b=129279)
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@121410 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-13 22:55:29 +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
timeless%mac.com
f347f0f70b Bug 125489 'Privacy & Security' item has no children + items from tasks menu
patch by Roland.Mainz@informatik.med.uni-giessen.de
r=dougt sr=brendan


git-svn-id: svn://10.0.0.236/trunk@120478 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 23:04:46 +00:00
brendan%mozilla.org
07e8f26854 Avoid opening and trying to reopen in CopyTo, so we work on FAT32 filesystems mounted on Linux (e.g.; 134163, r=dougt, sr=waterson).
git-svn-id: svn://10.0.0.236/trunk@120253 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 23:35:18 +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
seawood%netscape.com
0d828695c6 Backing out alecf's checkin for bug 124497 to fix comet startup test problem.
Dougt claims that nsLocalFile's copy constructor doesn't work.
r=sleestack


git-svn-id: svn://10.0.0.236/trunk@116946 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 03:16:09 +00:00
alecf%netscape.com
afdf75f460 fix leak caused by nsLocalFile::Clone() where we were copying the refcnt to the new object - bug 124497
this ends up being more of a performance win than anyting on Unix and OS/2
r=mkaply, dbaron, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@116924 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 00:25:21 +00:00
arougthopher%lizardland.net
c5d18ad8c1 Fix for Bug#69707
BeOS implementation of nsLocalFile::Launch and nsLocalFile::Reveal

r=cls (seawood@netscape.com)
a=asa (asa@mozilla.org) on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@115140 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 03:33:42 +00:00
bzbarsky%mit.edu
e27ee398e4 Get rid of extra leading slashes appearing in unix paths. Bug 124873,
r=petejc@optonline.net, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@114303 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 21:05:56 +00:00
dougt%netscape.com
1569da98b1 backing out. not part of 122523 bug fix
git-svn-id: svn://10.0.0.236/trunk@113818 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:42:02 +00:00
dougt%netscape.com
9cf73ec70e Optimization which gathers stat() info when opening a file. bug 122523, r=dp@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113817 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:40:40 +00:00
dougt%netscape.com
bb7377d5e8 backing out my optimization
git-svn-id: svn://10.0.0.236/trunk@113502 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 03:20:01 +00:00
darin%netscape.com
7814a2d020 should fix btek bustage
git-svn-id: svn://10.0.0.236/trunk@113501 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:49:52 +00:00
dougt%netscape.com
154c1a0782 fixes 122892. Optimization Clone of nsLocalFile. Instead of reiniting object, we use default c++ copy construction. r=ccarlen@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113489 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:25:57 +00:00
seawood%netscape.com
8eaaa40a4c S_ISSOCK isn't defined on BeOS.
git-svn-id: svn://10.0.0.236/trunk@113026 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 07:02:02 +00:00
pete%alphanumerica.com
e39572043e movind implementation of FilleStatCache into nsLocalFileUnix.cpp
where other calls to lstat work fine

This is an attempt to fix bustage on some linux platfroms

--pete


git-svn-id: svn://10.0.0.236/trunk@112996 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:02:18 +00:00
pete%alphanumerica.com
c7642c235b b=107641, r=blizzard, sr=brendan
fix: CopyTo won't copy read-only files or broken symlinks

Thanks to garths@oeone.com for help on this one.

--pete


git-svn-id: svn://10.0.0.236/trunk@112993 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 14:31:25 +00:00
darin%netscape.com
59c63dba70 these files no longer need to include nsEscape.h
git-svn-id: svn://10.0.0.236/trunk@111998 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:21:40 +00:00
alecf%netscape.com
f6d3d22234 final fix for bug 100212 - removal final dependency on necko from xpcom by removing nsIFile.URL r=dougt, sr=darin Yay!
git-svn-id: svn://10.0.0.236/trunk@111722 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 20:03:46 +00:00
tingley%sundell.net
c0aa10d601 bug 100132: clean up over-zealous error masking in
nsRDFXMLDataSource::BlockingParse(), and bring nsLocalFileUnix's
OpenNSPRFileDesc() return values in line with other platforms.
r=waterson, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@111039 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-22 19:08:48 +00:00
dougt%netscape.com
8ca28ff027 more bustage
git-svn-id: svn://10.0.0.236/trunk@110762 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 01:03:10 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
dbaron%fas.harvard.edu
52c1373494 Fix inefficient Assign pattern to use Append instead. b=113188 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@110100 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 22:51:15 +00:00
pete%alphanumerica.com
14973255e8 b=112515, r=douft, sr=jst
remove spawn method from nsIFile.

/**
    Warning nsIFile API change
 */

--pete


git-svn-id: svn://10.0.0.236/trunk@109584 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:27:43 +00:00
pete%alphanumerica.com
2921cd1a40 b=92569, r=dougt, sr=brendan
nsLocalFileUnix cleanup part two.
nothing but white space and comment cleanup

--pete


git-svn-id: svn://10.0.0.236/trunk@109149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:10 +00:00
pete%alphanumerica.com
727438403c b=92569, r=dougt, sr=brendan
nsLocalFileUnix general clean up

--pete


git-svn-id: svn://10.0.0.236/trunk@109136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 15:12:14 +00:00
dbaron%fas.harvard.edu
c0b306795b Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@109114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:22:57 +00:00