reed%reedloden.com
96a2ebaa88
Bug 315305 - "Improve nsILocalFile error reporting on Mac" [p=smfr r=ccarlen sr=dougt a1.9=sayrer]
...
git-svn-id: svn://10.0.0.236/trunk@237739 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-15 03:05:20 +00:00
roc+%cs.cmu.edu
2d2e1edfb6
Bug 394691. nsTArray should not do default initialization of POD elements. Also, switch nsAutoBuffer users to nsAutoTArray. patch by Chris Pearce, r=bsmedberg, sr=roc, a=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@236258 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-18 23:12:10 +00:00
enndeakin%sympatico.ca
7982dc0d36
Bug 380813, improve scriptable io, and give file objects class info, meant to check this in a while ago, r=mfinkle,bsmedberg,sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@230940 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 16:53:39 +00:00
bzbarsky%mit.edu
63374b745b
Fix string leak. Bug 389191, r=josh, sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@230801 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 20:19:03 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
joshmoz%gmail.com
b9f5f419a0
fix some gcc 4 warnings in xpcom. patch by Christian Haberstroh. b=382753 r=bent sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@227468 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-04 15:44:43 +00:00
joshmoz%gmail.com
b1bbf339d9
nsLocalFile::GetParent() doesn't return nsnull at top of volume. patch by Wladimir Palant. b=332389 r=sayrer r=josh
...
git-svn-id: svn://10.0.0.236/trunk@221485 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-07 22:17:01 +00:00
sayrer%gmail.com
c3796add5f
Bug 367608. implement nsIFile::normalize() on OS X. r=mano, sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@219205 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 21:50:45 +00:00
mozilla.mano%sent.com
84eb283b30
Bug 364521 - Need a bundleIdentifier attribute in nsILocalFileMac. r=mento, sr=pink.
...
git-svn-id: svn://10.0.0.236/trunk@217400 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-23 20:17:29 +00:00
gavin%gavinsharp.com
072db601f3
Mac bustage fix for bug 361351
...
git-svn-id: svn://10.0.0.236/trunk@217063 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-16 15:11:56 +00:00
gavin%gavinsharp.com
bccaa15503
Bug 361351: nsIFile.exists() should throw NOT_INITIALIZED if nsIFile is not initialized, patch by Ryan Jones <sciguyryan+bugzilla@gmail.com>, r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@217060 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-16 14:55:00 +00:00
joshmoz%gmail.com
a124bbcf35
Since some platforms do string operations within local file ::Load, we shouldn't declare that objects being created/destroyed from static ctor/dtor is not legal throughout the entire ::Load function. That only needs to be true around the actual PR_LoadLibrary calls. Fixing this stops the ridiculous amount of warning output that we get from every debug mac build. Also removing unused old mac local file impls. b=326837 r=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@215283 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-14 22:06:00 +00:00
timeless%mozdev.org
198adb9d95
Bug 106386 Correct misspellings in source code
...
r=bernd rs=brendan
git-svn-id: svn://10.0.0.236/trunk@208663 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-28 20:17:01 +00:00
mark%moxienet.com
383394097f
347778 nsLocalFile::MoveTo no longer creates directories when needed on OS X after bug 294584. r=darin
...
git-svn-id: svn://10.0.0.236/trunk@206753 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 21:27:09 +00:00
mark%moxienet.com
2590391b96
294584 Profile fills with bookmarks-##.html (and cookies-##.txt) files due to contention with Spotlight and virus scanners. Use POSIX rename/unlink/rmdir APIs instead of higher-level File Manager equivalents. r=josh sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@206247 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 01:48:24 +00:00
mark%moxienet.com
45e529bd46
345397 Support pathnames in nsLocalFileOSX::SetPersistentDescriptor. r=josh sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@203468 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-23 15:16:37 +00:00
beng%bengoodger.com
0dc71f905e
334747, 339893 - desktop application feed readers do not display their app name properly or launch with the specified feed on OSX due to lack of support for a function to get the application bundle name, and a method to invoke an application bundle on OS X with a URL. Add an attribute to nsILocalFileMac called bundleDisplayName to show the application's name, and a method to nsIShellService called openApplicationWithURL which launches an application with a URL parameter appropriately across platforms (nsIProcess on windows and linux, LaunchServices on OS X). Update the client code to use bundleDisplayName, and also the <filefield> binding in preferences to use it too. r=mark sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@201036 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-27 22:38:55 +00:00
benjamin%smedbergs.us
88fde33686
Reverting bug 326925 because of a 6.5% Ts increase, even in static builds.
...
git-svn-id: svn://10.0.0.236/trunk@194327 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-13 17:24:12 +00:00
benjamin%smedbergs.us
abca0d0f6e
Bug 326925 - components should be loaded with RLTD_NOW, r=darin - This is an experimental checkin that has the potential to affect Ts times on linux machines, especially nonstatic builds.
...
git-svn-id: svn://10.0.0.236/trunk@194120 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 13:28:21 +00:00
darin%meer.net
4038b065af
fixes bug 328920, r=mark.mentovai
...
git-svn-id: svn://10.0.0.236/trunk@191959 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 05:47:22 +00:00
mark%moxienet.com
3da307361c
326668 Add NS_NewLocalFileWithFSRef function to create nsLocalFiles from FSRefs on Mac prior to xpcom startup. r=josh sr=dougt
...
git-svn-id: svn://10.0.0.236/trunk@191869 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 01:26:13 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bsmedberg%covad.net
3dfaf68486
Bug 320328 (mac) - Ts regression from bug 316416 (possible fix), r=josh moa=shaver
...
git-svn-id: svn://10.0.0.236/trunk@186287 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 20:19:09 +00:00
mark%moxienet.com
289664ab46
Bug 317345, nsLocalFile(OSX)::IsHidden is broken garbage. Use kFSCatInfoFinderInfo to obtain Finder attributes. r=josh sr=smfr
...
git-svn-id: svn://10.0.0.236/trunk@185118 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 05:09:38 +00:00
bsmedberg%covad.net
18e938131b
Followup to bug 316732 - impls actually have to QI to the interface (pointed out by bz)
...
git-svn-id: svn://10.0.0.236/trunk@184931 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-18 20:12:46 +00:00
bsmedberg%covad.net
bbf7fb0c53
Bug 316732 - Allow for hashing on nsIFile by introducing a new nsIHashable interface and implementing it for the file types r=darin
...
git-svn-id: svn://10.0.0.236/trunk@184904 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-18 14:18:49 +00:00
mark%moxienet.com
50961f1832
Bug 298529, Core support for Mac 10.4u ("universal") SDK, part 2. Mac alias API update. r=josh sr=smfr a=asa via irc
...
git-svn-id: svn://10.0.0.236/trunk@175379 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-30 04:32:24 +00:00
mozilla.mano%sent.com
190f080619
Bug 298801 - [Mac] nsLocalFile::InitWithNativePath doesn't interpret ~/... paths. r=jhpedemonte, sr=smfr, a=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@175224 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-28 16:35:24 +00:00
ben%bengoodger.com
9c6d01071e
291177 - need interface for enumerating directories, implement nsIDirectoryEnumerator with close() method to free system resources after enumeration complete - used incorrect checkin comment for previous checkin which has the meat of the change! r+sr=darin a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@172634 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-23 01:41:42 +00:00
ben%bengoodger.com
3b79325273
286034 - allow extensions to be installed/uninstalled by simply adding/removing their directories... r=bsmedberg, sr=darin, a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@172633 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-23 01:39:51 +00:00
pinkerton%aol.net
fa13c13dad
fix mem leak (rs=pink)
...
git-svn-id: svn://10.0.0.236/trunk@168897 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 03:12:25 +00:00
jshin%mailaps.org
095eb6f421
bug 233485 : add 'size' parameter to nsAutoBuffer (patch for customers) : r=ccarlen, sr=rbs)
...
git-svn-id: svn://10.0.0.236/trunk@152926 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 11:00:29 +00:00
jshin%mailaps.org
3366b1fd05
follow-up to bug 227547 (not a bug) : added missing 'const' qualifier to the first parameter of CopyUTF8toUTF16NFC()
...
git-svn-id: svn://10.0.0.236/trunk@151945 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 08:21:39 +00:00
jshin%mailaps.org
1952f8f7e3
bug 227547: return local file names after converting NFD (decomposed Unicode) to NFC (composed Unicode) for consumers (Mac OS X only). r=ccarlen, sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@151943 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 05:55:30 +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
peter%propagandism.org
0d4c0de85b
Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@150667 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 09:56:23 +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
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
dwitte%stanford.edu
dc7e857400
bug 100649: Length() being used where IsEmpty() is meant
...
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().
thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.
got the ok from Asa to land into a closed tree.
git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
sgehani%netscape.com
007624fc6a
Make GetFSRefInternal assume NS_ERROR_FILE_NOT_FOUND when CFURLGetFSRef
...
returns false.
b=202772; r=ssu, ccarlen; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@142674 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 00:53:36 +00:00
ccarlen%netscape.com
c64a019647
Bug 202798 - Save page as fails when downloads.rdf does not exist (new Profile) r=varga/sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@141531 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 21:43:38 +00:00
ccarlen%netscape.com
8a64538c4b
Bug 164396 - Change internal representation of file from FSRef to CFURL, reducing conversions between path and FSRef and fixing other bugs. 2nd checkin of this after testing on other Tinderboxen showed Ts improvement. r=sdagley/sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@141381 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 13:50:38 +00:00
ssu%netscape.com
5e2bb02a1f
fixing bug 186088 - Mozilla crashes during installation of XPI Packages [@ nsInstallFile::CreateAllFolders]. r=ccarlen,sr=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@139987 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 22:18:17 +00:00
ccarlen%netscape.com
b48a83b1bd
Backing out due to huge Ts increase
...
git-svn-id: svn://10.0.0.236/trunk@139829 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 08:45:50 +00:00
ccarlen%netscape.com
b2784602b3
Bug 164396 - [OS X]Reduce conversions between path and FSRef. Changes internal representation to not use FSRef which should fix various bugs. r=sdagley/sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@139825 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 06:05:03 +00:00
ccarlen%netscape.com
aa7c17d84b
If the destination file already exists, moveTo[Native] should replace it. Bug 195109 r=sdagley/sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@139464 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 20:01:41 +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
ccarlen%netscape.com
dc6239e350
Bug 173668 - InitWithNativePath crashes if given a URL which begins with a forward slash. It happens during URI fixup. r=sdagley/sr=jaggernaut
...
git-svn-id: svn://10.0.0.236/trunk@134695 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 15:51:25 +00:00
ccarlen%netscape.com
5660acb14f
Bug 179932 - Need GetCFURL() on nsILocalFileMac. r=sdagley/sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@133909 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 15:35:17 +00:00