110 Commits

Author SHA1 Message Date
brendan%mozilla.org
ce7e98de2c Follow the modeline, please.
git-svn-id: svn://10.0.0.236/trunk@147439 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-29 18:15:52 +00:00
cbiesinger%web.de
8dd5a08649 Bug 220406 nsLocalFileWin::Launch should return more specific errors
convert the specific return values to nsresult-errorcodes.

r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@147361 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 14:37:16 +00:00
cbiesinger%web.de
f06e5ad44e bug 220257. treat .hta files as executables
r=darin sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@147328 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-26 12:56:49 +00:00
bryner%brianryner.com
c81aa21722 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146626 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 00:31:50 +00:00
darin%meer.net
d87c18324b fixes bug 210588 "Cancelling download of .lnk file deletes target of .lnk file" r=dougt sr=bryner a=asa
git-svn-id: svn://10.0.0.236/trunk@146303 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-25 18:28:10 +00:00
mkaply%us.ibm.com
64242301f9 #214152
r=pedemont, sr=bz
Handle unicode conversion failure better


git-svn-id: svn://10.0.0.236/trunk@145282 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:02:45 +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
darin%netscape.com
4fec9c864a fixes bug 162025 "UNC Based Profiles don't work" r=dougt sr=dbaron a=asa
git-svn-id: svn://10.0.0.236/trunk@142454 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 21:56:49 +00:00
dougt%netscape.com
1692de2512 using strnicmp instead. r=darin
git-svn-id: svn://10.0.0.236/trunk@141362 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 05:43:41 +00:00
dougt%netscape.com
ea5682a29c bug 202480. Windows doesn't care about case. ::Contains must not either. r=darin
git-svn-id: svn://10.0.0.236/trunk@141349 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 00:48:38 +00:00
cls%seawood.org
7eb198d87a Remove bogus mingw & win16 ifdefs from plevent.h
Add stub declaration for _mbstr which isn't defined in the current mingw headers but is present in the libs.
Fix GRE definition of XPCOM_DLL for mingw.
Bug #134113 r=dougt


git-svn-id: svn://10.0.0.236/trunk@139321 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 08:35:57 +00:00
cls%seawood.org
609a196b54 XP code changes required for mingw landing.
Add NS_STDCALL macros for functions that require stdcall declarations.
Add NS_STDCALL_FUNCPROTO macro for stdcall function prototype typedefs.
Bug #134113 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139083 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 06:07:56 +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
neeti%netscape.com
f3e05e1045 fix for bug 163941-resolving shorcuts, r=rpotts,sr=darin
git-svn-id: svn://10.0.0.236/trunk@134488 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-26 21:37:58 +00:00
neeti%netscape.com
1806c8fb3d fix for bug 150156 - nsIFile's moveTo method does not overwrite existing files,r=dougt@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@133747 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 14:04:51 +00:00
darin%netscape.com
d0afbbaf0e fixes bug 166612 "implement NS_CopyNativeToUnicode / NS_CopyUnicodeToNative
on all platforms" r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@131251 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-06 00:29:46 +00:00
bryner%netscape.com
1da7619ee4 Fix a problem with the prefs file being deleted at shutdown on Windows, introduced by the checkin for bug 164190. Windows' implementation of nsLocalFile::CopyMove was assuming that a null parent directory meant we should always rename - not true. r=hewitt, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@130202 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-21 08:26:02 +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
darin%netscape.com
bc335a29e4 fixes bug 151843 "nsIFile::Append inconsistent across platforms" r=dougt sr=alecf
git-svn-id: svn://10.0.0.236/trunk@128751 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:40:45 +00:00
dougt%netscape.com
ecdd8ab65f Fixes the following:
154047
This change cleans up the category manager in hopes to freeze it for 1.1 final.  This change removes dead and unsupported methods from the interface as well as removes the C++ code from the interface.  This should land for 1.1b since users of the current category manager will have to update their components.

157597
Make embedding base and examples use XPCOM Glue
This change makes our embedding samples use the XPCOM glue.

157625
nsLocalFile::Remove's file pointer is sometimes null afte...
This fixes a crash when we dereference null.  It is a bandaide fix as the real problems involves retooling the directory enumerator.

157801
This fixes a terrible state which you can get into whereby XPCOM will fail to startup regardless of what you do.  The fix is to cause autoreg to happen if the component registry (compreg.dat) is not found.

r/sr=alecf@netscape.com, rpotts@netscape.com.  a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@125444 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:09:10 +00:00
neeti%netscape.com
29dc4eb3d1 fix for bug 142629 - [win32 only] recursive copy / move errors are not properly bubbled up, r=dougt, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122684 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:47:37 +00:00
dougt%netscape.com
c6a6d9af87 Fixes top crash in M1RC3 crash [@ nsLocalFile::GetPath], r=rpotts@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122522 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 01:47:11 +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
shanjian%netscape.com
bfcfeac51a #141877 file:// protocol does not display non ASCII folder name under cjk window system
use mbsrchr to check if the last char in patch is '\'
r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@120956 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 20:09:07 +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
sspitzer%netscape.com
b67360adf9 fix for #101527. moveTo() of directories leaves subdirectories behind on win2k.
r=dougt, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@119836 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 18:56:04 +00:00
shanjian%netscape.com
8514f72223 #128154 Crash: opening non-ascii attachments
replace default "default char" from "?" to "_".
r=ftang, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@119069 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 04:10:54 +00:00
alecf%netscape.com
adf49b8416 fix for bug 124497 - leaking nsLocalFile objects - the copy constructor was copying the refcount to the new object
so the new object would always leak
r=dbradley, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@116701 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 05:30:15 +00:00
blakeross%telocity.com
a7f45cbbc0 128667 - launch windows app picker dialog if file has no association. r=law sr=ben a=asa
git-svn-id: svn://10.0.0.236/trunk@115898 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 01:11:34 +00:00
law%netscape.com
5b4ec5ba97 Bug 106082; Adds code to select item in Explorer window for Reveal(); r=sgehani, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@115048 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 05:41:34 +00:00
timeless%mac.com
b054da113d Bug 52037 w/ w95osr2 and beyond you can get freediskspace for a full path (eg UNC Paths).
The code will use the Ex API if available.
With this change the function should get the correct freespace numbers for submounts and junction points (introduced in w2k).

r=dougt sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@113899 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 14:46:10 +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
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
alecf%netscape.com
0a5545c945 windows side of fix to bug 100676 - remove xpcom dependency on uconv by switching to native locale-conversion routines
r=ccarlen, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@113366 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:55:01 +00:00
darin%netscape.com
bbbf7288b3 fixes bug 114778 "formpost temp files not cleaned up when browser exits"
patch=badami@netscape.com, r=rpotts@netscape.com, sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@112917 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:38:37 +00:00
blakeross%telocity.com
57cf280c62 86979 - launch file after donwloading does not honor OS file associations. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112052 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 05:24:49 +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
dougt%netscape.com
6b5bff699c Fixes 116299 Reduce size of nsLocalFileWin by 2 ptrs by factoring out shortcut resolver. Also fixes crash 117258 caused by trying to create a file or directory to a nonexistant drive. sr=rpotts, dveditz for the first bug, and sr=darin, r=gagan for the second bug
git-svn-id: svn://10.0.0.236/trunk@111541 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 02:20:13 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +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
dougt%netscape.com
fd0bdbee9c fixing a bad #ifdef r=me. sr=darin
git-svn-id: svn://10.0.0.236/trunk@109925 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:08:35 +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
timeless%mac.com
535b6f20f2 Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 08:05:05 +00:00
dp%netscape.com
0a03dd13ac Printing the dll name in the timeline r=sgehani, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108388 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:23:48 +00:00
jaggernaut%netscape.com
640c7f02ab Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106946 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 09:09:57 +00:00
pete%alphanumerica.com
3c4492f3e0 b=107823, r=ccarlen, sr=brendan
--pete


git-svn-id: svn://10.0.0.236/trunk@106886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:11:15 +00:00
jaggernaut%netscape.com
bf7774eb72 Bug 81444: eliminate |null_nsCOMPtr|. Eliminating all callers, r=syd, rs=mozbot.
git-svn-id: svn://10.0.0.236/trunk@104764 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-07 10:58:39 +00:00