174 Commits

Author SHA1 Message Date
asqueella%gmail.com
149eee17b3 Bug 372298 - xpcom/io: 10K codesize reduction by fixing string array
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r+a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@233758 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-02 21:57:11 +00:00
asqueella%gmail.com
1c566151d6 Bug 375778 - Read-Only Files Changed to Read-Write
p=Simon Bunzli (busy) <zeniko@gmail.com>
r=dougt, sr=bsmedberg, a=bz


git-svn-id: svn://10.0.0.236/trunk@233756 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-02 21:50:48 +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
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
jwatt%jwatt.org
3039ca67d8 Fixing bug 383769. nsLocalFile::EnsureShortPath should check if GetShortPathNameW failed. r=benjamin@smedbergs.us
git-svn-id: svn://10.0.0.236/trunk@228829 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 08:36:03 +00:00
jwalden%mit.edu
3aa1dfb759 Bug 373640 - nsIFile.parent throws an exception on reaching top of file system on Windows -- should return null. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@222344 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-25 07:28:06 +00:00
sspitzer%mozilla.org
00ca127988 supplimental fix for bug #364599: some newly created profile files are write protected, for example bookmarks.html
in addtion to fixing the permissions of bookmarks.html, we need to fix the permissions of the bookmark.html.moztmp file, otherwise we'll still fail to modify bookmarks.

r=dveditz


git-svn-id: svn://10.0.0.236/trunk@218692 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-20 01:28:33 +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
dveditz%cruzio.com
99da3d9a95 Sync executable extension list w/Outlook (bug 348763) r/sr=dougt, a=pavlov
git-svn-id: svn://10.0.0.236/trunk@216141 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-30 04:36:21 +00:00
jshin%mailaps.org
46531d3b27 bug 359808 : drop support Win 9x/ME in xpcom/io (r/sr=darin)
git-svn-id: svn://10.0.0.236/trunk@215776 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-24 01:02:56 +00:00
jshin%mailaps.org
12f38f5ea7 bug 359808 : drop support for Win 9x/ME (r/sr=darin)
git-svn-id: svn://10.0.0.236/trunk@215339 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-16 00:59:55 +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
jshin%mailaps.org
c595f7d5a9 bug 344630: "mojibake" in download dialog (relanding with a bustage fix)
git-svn-id: svn://10.0.0.236/trunk@211772 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-15 02:56:02 +00:00
jshin%mailaps.org
2ab1128787 back out the patch for bug 344630
git-svn-id: svn://10.0.0.236/trunk@211763 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-15 01:52:09 +00:00
jshin%mailaps.org
6fcd6e0af8 bug 344630 : "Mojibake" in file download dialog : r/sr=darin
git-svn-id: svn://10.0.0.236/trunk@211710 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-14 18:34:17 +00:00
dougt%meer.net
a5583106c2 Enable Reveal and Launch for WINCE. r=me, b=342172
git-svn-id: svn://10.0.0.236/trunk@200734 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-23 21:38:38 +00:00
dveditz%cruzio.com
f869942298 Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
simplify OOM checks when growing an nsAString. r/sr=darin


git-svn-id: svn://10.0.0.236/trunk@200610 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:30 +00:00
cls%seawood.org
7b54f3005e Fix mingw cross-compile & static build bustage
Bug #333941 r=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@194439 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 22:59:21 +00:00
darin%meer.net
43eaf218c1 fixing typos in comment
git-svn-id: svn://10.0.0.236/trunk@194078 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 23:43:12 +00:00
darin%meer.net
94f60d7965 fixes bug 333212 "SetLastModifiedTime does not work correctly on windows" patch by kovalchuk77@list.ru, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@194017 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 18:29:41 +00:00
jshin%mailaps.org
cf055041ee bug 332123: ] nsLocalFileWin::AppendRelativeNativePath broken with multiple path components r/sr=darin
git-svn-id: svn://10.0.0.236/trunk@193198 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 17:14:07 +00:00
jshin%mailaps.org
2988e15bda bug 331453 : downloading a binary file results in a corrupted (truncated) file : r/sr=darin
git-svn-id: svn://10.0.0.236/trunk@193009 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 15:34:40 +00:00
jshin%mailaps.org
e3879bcb74 bug 162361 : fix a 'typo' in the previous check-in. The line in question should have been left alone, but it's changed in the previous check-in by mistake. r/sr=darin
git-svn-id: svn://10.0.0.236/trunk@192910 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 07:30:22 +00:00
jshin%mailaps.org
72de74893a bug 162361 : Unicode file i/o in XPCOM/IO (cannot open files whose names contain characters outside the current locale: e.g. Japanese/Chinese on French Windows) : r/sr=darin, r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@192754 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 04:26:30 +00:00
timeless%mozdev.org
af51e73d0e Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 09:36:43 +00:00
bsmedberg%covad.net
9dbcbaa07f Bug 320328 - Ts regression from bug 316416 (nsIModuleLoader) - cache the canonical (short) pathname (windows only), r=darin
git-svn-id: svn://10.0.0.236/trunk@187251 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 20:33:54 +00:00
bsmedberg%covad.net
a36acf65ba Bug 316732 followup - cache the calculated nsLocalFile hashcode on windows to avoid extra stat()s in the GetShortPathName function, r=darin
git-svn-id: svn://10.0.0.236/trunk@185955 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-12 14:07:41 +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
darin%meer.net
1093b35b11 fixes bug 308369 "Stop copying stat cache when cloning nsIFile instances" r=josh sr=dougt
git-svn-id: svn://10.0.0.236/trunk@180149 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-13 22:08:52 +00:00
dougt%meer.net
8c4e2f1dda WinCE only. ShellExecute is now in the shunt lib, so I can remove a WINCE #define. Also, for process creation WinCE uses NSPR like a good child.... i wonder why the other platforms don't as well.
git-svn-id: svn://10.0.0.236/trunk@179552 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-02 18:00:23 +00:00
bsmedberg%covad.net
10d638b203 Bug 297312 - EM gets confused between multiple installations of the same version, r=darin+robstrong, self-approving per deerpark triage meeting.
git-svn-id: svn://10.0.0.236/trunk@176484 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-23 14:00:07 +00:00
bsmedberg%covad.net
025d273bae Bug 297312 - nsILocalFile (windows) .equals is case-sensitive, which is causing problems with contains() and relativedescriptors - I'm not going to commit the rest of that patch (nsIPersistentDescriptorService) until the code that uses it is also written r=shaver a=asa
git-svn-id: svn://10.0.0.236/trunk@175757 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 16:19:20 +00:00
bienvenu%nventure.com
f0ea07725c fix 254527 crash when using a symlink to a signature file, r/sr=darin, a=benjamin
git-svn-id: svn://10.0.0.236/trunk@175307 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 17:25:24 +00:00
darin%meer.net
a2354b4d36 fixes bug 231300 "nsLocalFile::MoveTo is very slow to move directories [Cause of disk trashing (on NT) when clearing cache?]" patch by alfredkayser@nl.ibm.com, r+sr=darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@172764 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-27 04:38:21 +00:00
dbaron%dbaron.org
5fcf1dd8ac Fix const-ness of variables so this code compiles when _mbsstr and _mbschr are an overloaded pair of functions differing in constness, as seems to be the case on Visual Studio 2005. r=darin a=asa
git-svn-id: svn://10.0.0.236/trunk@172663 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-24 16:53:25 +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
cbiesinger%web.de
24b0bb81d6 281343 show an error message when filenames are too long; and convert that error
to an nsresult
patch by Son Le <son.le0@gmail.com> r=biesi sr=darin


git-svn-id: svn://10.0.0.236/trunk@170100 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-02 18:16:37 +00:00
ben%bengoodger.com
4211826967 252189, XPCOM section:
add nsILocalFileWin interface and implementation with method to retrieve VERSIONINFO metadata from Windows binaries. r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@169836 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-25 09:00:45 +00:00
dougt%meer.net
830c305229 nsLocalFileWin::IsExecutable needs to trim trailing dots. After talking with dbaron, we agreeded that we shouldn't mutate the object. r=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@169132 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-11 23:13:38 +00:00
dougt%meer.net
7430419967 nsLocalFileWin::IsExecutable needs to trim trailing dots. Fixes bug 267828. r=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@169126 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-11 22:11:45 +00:00
dougt%meer.net
e01d005842 bug 280245. WinCE build and support changes. r=darin
git-svn-id: svn://10.0.0.236/trunk@168534 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-30 21:33:47 +00:00
bzbarsky%mit.edu
6cc2aafe00 Make people that want empty strings use EmptyC?String(). Bug 232691, patch by
Daniel Kraft <d@daniel-kraft.net>, r=jst, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@167258 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-04 19:31:31 +00:00
timeless%mozdev.org
36bfd3d2ba Bug 251749 use initializers for ShortcutResolver::ShortcutResolver() and nsLocalFile::nsLocalFile() and clobber mFileInfo64
r=darin sr=darin
(changing style per darin)


git-svn-id: svn://10.0.0.236/trunk@160211 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-02 06:10:37 +00:00
brofield%jellycan.com
21c3f1e317 bug 148704: directories should always return PR_TRUE from IsWritable(), r=darin sr=dougt
git-svn-id: svn://10.0.0.236/trunk@160094 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 23:25:32 +00:00
brofield%jellycan.com
746c0a5d90 bug 187957: implement nsIFile.normalize for windows and os/2, r=darin sr=dougt
git-svn-id: svn://10.0.0.236/trunk@160053 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 15:08:25 +00:00
timeless%mozdev.org
fc9a67a907 Bug 237094 [W] UMC: Uninitialized memory copy in nsLocalFile::nsLocalFile(nsLocalFile const&) {1 occurrence}
r=dougt


git-svn-id: svn://10.0.0.236/trunk@159824 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-25 05:39:26 +00:00
darin%meer.net
0c7e3a2622 fixes regression caused by patch for bug 243473. patch by Brodie Thiesfield, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@158486 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-25 17:27:24 +00:00
darin%meer.net
6c32749348 fixes bug 243473 "nsLocalFileWin shortcut resolver does more work than necessary" patch by brofield@jellycan.com r=darin sr=dougt
git-svn-id: svn://10.0.0.236/trunk@158034 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 16:37:25 +00:00