dougt%netscape.com
91d041c0be
bug fix 25626. r=tor@cs.brown.edu
...
git-svn-id: svn://10.0.0.236/trunk@59299 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:09:14 +00:00
dougt%netscape.com
90484f9667
Since we are only getting information about this file, we should no pass the
...
GENERIC_READ flag.
git-svn-id: svn://10.0.0.236/trunk@59298 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:07:35 +00:00
dougt%netscape.com
1951e2c190
Initializing return values before they are used.
...
git-svn-id: svn://10.0.0.236/trunk@59297 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:06:04 +00:00
sdagley%netscape.com
82c78a140a
Fix mem leak in My_CloseDir() ( #25614 ). r=saari
...
git-svn-id: svn://10.0.0.236/trunk@59288 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 22:41:05 +00:00
dougt%netscape.com
0bf3bafe38
Changing IsContainedIn to contains. Reverting to prior version.
...
git-svn-id: svn://10.0.0.236/trunk@59131 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 00:00:21 +00:00
dougt%netscape.com
717daf4b42
Renaming IsContainedIn to contains. Fixing implementation on unix.
...
git-svn-id: svn://10.0.0.236/trunk@59128 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:53:59 +00:00
dougt%netscape.com
87bba9868a
Changing CID format. r=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@59114 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:38:20 +00:00
dougt%netscape.com
bd62ec42b1
Fixing dll exports for NS_NewLocalFile()
...
r=dveditz
git-svn-id: svn://10.0.0.236/trunk@59111 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:35:55 +00:00
sspitzer%netscape.com
a1bc4260a6
fix build breakage on platforms with out ENOLINK
...
r=Pascal Hofstee <daeron@shadowmere.student.utwente.nl> and r=leaf
git-svn-id: svn://10.0.0.236/trunk@59095 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:09:58 +00:00
dougt%netscape.com
ec6ebc495d
Removing WIN API which requires windows 98 or better. Fixes 25101, and
...
others. I erronously checked in a fix which still linked with this non-win95
API. So, now I am just defaulting to standard GetFileAttributes() and doing
away with the EX version.
git-svn-id: svn://10.0.0.236/trunk@59028 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 06:17:06 +00:00
sfraser%netscape.com
3fb070fc7a
More fixing for startup crashes and other badness (bugs 25366 and 24312). Fix off by one buffer write. r=sdagley
...
git-svn-id: svn://10.0.0.236/trunk@58994 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 01:50:05 +00:00
pollmann%netscape.com
2af954496b
Fix VC 5.0 build bustage r=dougt, harishd
...
git-svn-id: svn://10.0.0.236/trunk@58972 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 00:41:06 +00:00
sfraser%netscape.com
64d592cd6a
Fix for 24312 and other unpredictable crashers on startup. r=sdagley
...
git-svn-id: svn://10.0.0.236/trunk@58962 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 23:28:49 +00:00
sgehani%netscape.com
545b9c8fb5
Fix for XPInstall horkage on the Mac.
...
b = 25288
r = sdagley
a = mcafee
(ssu will be watching the tree in my absence.)
git-svn-id: svn://10.0.0.236/trunk@58961 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 23:18:06 +00:00
putterman%netscape.com
12841d2e64
Fixes 25272 and most likely 25274. r=dougt.
...
git-svn-id: svn://10.0.0.236/trunk@58953 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 20:06:23 +00:00
norris%netscape.com
d62b3bb2f9
Fix crash while loading jar: URI.
...
r=dougt
git-svn-id: svn://10.0.0.236/trunk@58941 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 15:58:23 +00:00
sdagley%netscape.com
a0446fe3b0
Residual work on #17949 - Need to make sure that path passed to Mac impl of nsLocalFile::InitWithPath doesn't end in a :. r=davidm
...
git-svn-id: svn://10.0.0.236/trunk@58904 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 08:11:19 +00:00
dougt%netscape.com
ea7cd3e822
All of these are broken. Alway double check submission/suggestions.
...
git-svn-id: svn://10.0.0.236/trunk@58884 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 04:35:44 +00:00
dougt%netscape.com
2ed87fa438
Removing Windows95 compiler #ifdef in place of a runtime check
...
Fixing bug 25152 submitted by kin@netscape.com .
windows only changes.
git-svn-id: svn://10.0.0.236/trunk@58862 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 01:52:02 +00:00
dougt%netscape.com
9f7467a8a7
xpcom/io changes,
...
Fixes bug 25028.
Added new dirty flag so that resolutions can be purged.
checked in VC5 fix from pollmann and jband
checked in fix from colin@theblakes.com for VMS.
r= valeski, pollmann, colin@theblakes
git-svn-id: svn://10.0.0.236/trunk@58810 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 21:55:13 +00:00
beard%netscape.com
3ae9a394ca
bustage fix. r=dougt
...
git-svn-id: svn://10.0.0.236/trunk@58637 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:35:47 +00:00
mscott%netscape.com
09edcfccd8
filesize bustage. dougt's fix, r=shaver@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@58633 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 21:41:00 +00:00
ssu%netscape.com
4b30ec9aa5
Fixing up directory service so that the current process will be looked up
...
before being calculated.
Changed this GetProcessDirectory to return an allocated nsIFile.
Making sure that object stored in the nsHashtable are not muteable.
dougt's changes. r=ssu. a=granrose.
git-svn-id: svn://10.0.0.236/trunk@58619 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 20:43:47 +00:00
dougt%netscape.com
714da09a59
Landing nsIFile.
...
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
warren%netscape.com
e6edaea7c3
Fix for bugs 24008 and 23849 -- needed to keep mSegmentEnd and mWriteCursor in sync for out-of-memory case. a=chofmann r=fur,gordon
...
git-svn-id: svn://10.0.0.236/trunk@58362 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 23:16:35 +00:00
bienvenu%netscape.com
0f7df50fc0
fix crash on win98 with funny file names, r=dougt 23578
...
git-svn-id: svn://10.0.0.236/trunk@58234 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 07:29:33 +00:00
waterson%netscape.com
6e7877c837
Make ResolveSymLink() fail silently if target was not a shortcut. r=lumpy
...
git-svn-id: svn://10.0.0.236/trunk@58181 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 00:35:01 +00:00
pinkerton%netscape.com
7c063c5052
fix the case where the char stream impl reallocated its buffer to accomodate data > 256 bytes. mLength wasn't set (at all) so the memcpy() copied nothing into the new buffer.
...
git-svn-id: svn://10.0.0.236/trunk@57599 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 02:00:57 +00:00
jdunn%netscape.com
7fe5ff0d54
Fix slamm's warnings of shadowing previous variables.
...
r= rhp@netscape.com
r= warren@netscape.com
r= rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57481 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 00:54:10 +00:00
duncan%be.com
f02ebdc5fa
Fix BeOS build by making changing nsResProtocolHandler.cpp like
...
Windows and Mac, and fix a couple nsSpecialSystemDirectory bugs.
All the changes are BeOS specific (i.e. wrapped in XP_BEOS or
only used by code wrapped in XP_BEOS).
r=mcafee
git-svn-id: svn://10.0.0.236/trunk@57190 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 09:09:02 +00:00
edburns%acm.org
1af32fc433
I know it's unorthodox to do a top level checkin like this, but I've got so many files
...
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got
r=dp
on this checkin.
Here are the touched files:
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp
The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.
The new signature is
extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);
I filed a bug for this problem:
b=23157
The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.
I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
git-svn-id: svn://10.0.0.236/trunk@56916 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 01:05:13 +00:00
warren%netscape.com
4b49861500
Added OnClose method to nsIPipeObserver (bug#23080)
...
git-svn-id: svn://10.0.0.236/trunk@56824 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 05:07:46 +00:00
sdagley%netscape.com
25f02ff3af
Fix build bustage - warren obsoleted nsPipe2.h but didn't update the manifest
...
git-svn-id: svn://10.0.0.236/trunk@56822 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 04:57:12 +00:00
warren%netscape.com
62d1cbb631
Removed nsPipe2.h -- obsolete.
...
git-svn-id: svn://10.0.0.236/trunk@56814 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 03:56:47 +00:00
dougt%netscape.com
77509d47e0
Adding include of prlink.h to nsILocalFile.idl.
...
remove a bad semicolon in nsLocalFileWin
above not in build.
Adding an explict include of nsCRT to nsPipe2.cpp
this is in the build, but is trival.
git-svn-id: svn://10.0.0.236/trunk@56352 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 04:11:13 +00:00
dougt%netscape.com
de1e8beaf0
implement load().
...
not part of build.
git-svn-id: svn://10.0.0.236/trunk@56343 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 03:01:08 +00:00
dougt%netscape.com
da42fa46ee
adding a load() command which will allow loading of libraries.
...
not part of build
git-svn-id: svn://10.0.0.236/trunk@56342 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 02:59:01 +00:00
dougt%netscape.com
5e6a51e582
1. First cut of a Special System Directory replacement (nsDirectoryService).
...
It is a nsIProperty.
2. Updates to the nsIFile and nsILocalFile interfaces based on conversations
with warren. (thanks)
3. Updated windows mac and unix implementations based on interface changes.
Mac and windows changes need to be reviewed.
Not part of build.
git-svn-id: svn://10.0.0.236/trunk@56336 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:56:45 +00:00
dougt%netscape.com
b3545fcbef
removing nsIFile stuff from the windows makefile for now. a=sdagley.
...
git-svn-id: svn://10.0.0.236/trunk@56331 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:50:30 +00:00
valeski%netscape.com
4fd0540efa
a=chofmann, 21783. inverted parameter validation checks have been corrected.
...
git-svn-id: svn://10.0.0.236/trunk@56269 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 03:00:54 +00:00
valeski%netscape.com
62482783f2
21723. a=chofmann, r=warren. earlier this week segment size and max size parameters were exposed to higher level consumers of necko apis. this change warns a user if they try to create a pipe w/ zero len segs and max sizes. pipes are useless without sizes
...
git-svn-id: svn://10.0.0.236/trunk@55989 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 22:08:40 +00:00
bienvenu%netscape.com
a6d5ab0a18
fix file truncation on windows, was breaking pop filters, r=dougt, a=chofmann 20634
...
git-svn-id: svn://10.0.0.236/trunk@55871 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-10 23:33:30 +00:00
sdagley%netscape.com
fafc5636c1
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@55748 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 07:56:17 +00:00
fur%netscape.com
d500130ed8
Need to reset pointers within segment after realloc, since segment base
...
may have changed.
git-svn-id: svn://10.0.0.236/trunk@55738 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 06:28:44 +00:00
dougt%netscape.com
b80e941838
turning on nsIFile for windows. 13320
...
git-svn-id: svn://10.0.0.236/trunk@55731 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:14:54 +00:00
norris%netscape.com
d630910cd9
I ran Purify and found this:
...
>
> [E] ABR: Array bounds read in
> nsFileSpecHelpers::UnixToNative(nsSimpleCharString&) {48 occurrences}
> Reading 1 byte from 0x03f00b2c (1 byte at 0x03f00b2c illegal)
> Address 0x03f00b2c is 1 byte past the end of a 268 byte block at
> 0x03f00a20
> Address 0x03f00b2c points to a malloc'd block in heap 0x03c30000
> Thread ID: 0x9c
> Error location
> nsFileSpecHelpers::UnixToNative(nsSimpleCharString&)
> [nsFileSpecWin.cpp:111]
> src = (char*)ioPath;
>
> // Convert '/' to '\'.
> => while (*++src)
> {
> if (*src == '/')
> *src = '\\';
> nsFileSpec::+=(char const*) [nsFileSpecWin.cpp:394]
> nsChromeRegistry::CheckForProfileFile(nsCAutoString
> const&,nsCAutoString&) [nsChromeRegistry.cpp:1278]
> nsChromeRegistry::LoadDataSource(nsCAutoString const&,nsIRDFDataSource
> * *,int) [nsChromeRegistry.cpp:713]
>
> nsChromeRegistry::InitializeDataSource(nsString&,nsString&,nsIRDFDataSource *
> *,int) [nsChromeRegistry.cpp:784]
> nsChromeRegistry::ConvertChromeURL(nsIURI *)
> [nsChromeRegistry.cpp:527]
> nsChromeProtocolHandler::NewChannel(char const*,nsIURI *,nsILoadGroup
> *,nsIInterfaceRequestor *,UINT,nsIURI *,UINT,UINT,nsIChannel * *)
> [nsChromeProtocolHandler.cpp:371]
> nsIOService::NewChannelFromURI(char const*,nsIURI *,nsILoadGroup
> *,nsIInterfaceRequestor *,UINT,nsIURI *,UINT,UINT,nsIChannel * *)
> [nsIOService.cpp:250]
> nsDocumentOpenInfo::Open(nsIURI *,int,char const*,nsISupports *,nsIURI
> *,nsIInputStream *,nsISupports *,nsISupports * *) [nsURILoader.cpp:168]
> nsURILoader::OpenURIWithPostDataVia(nsIURI *,int,char
> const*,nsISupports *,nsIURI *,nsIInputStream *,nsISupports *,nsISupports *
> *,UINT) [nsURILoader.cpp:418]
> Allocation location
> malloc [dbgheap.c:129]
> PR_Malloc [prmem.c:38]
> nsSimpleCharString::ReallocData(UINT) [nsFileSpec.cpp:248]
> nsSimpleCharString::CopyFrom(char const*,UINT) [nsFileSpec.cpp:167]
> nsSimpleCharString::nsSimpleCharString(char const*)
> [nsFileSpec.cpp:60]
> nsFileSpecHelpers::UnixToNative(nsSimpleCharString&)
> [nsFileSpecWin.cpp:104]
> nsFileSpec::+=(char const*) [nsFileSpecWin.cpp:394]
> nsChromeRegistry::CheckForProfileFile(nsCAutoString
> const&,nsCAutoString&) [nsChromeRegistry.cpp:1278]
> nsChromeRegistry::LoadDataSource(nsCAutoString const&,nsIRDFDataSource
> * *,int) [nsChromeRegistry.cpp:713]
>
> nsChromeRegistry::InitializeDataSource(nsString&,nsString&,nsIRDFDataSource *
> *,int) [nsChromeRegistry.cpp:784]
>
> which is fixed by this patch.
git-svn-id: svn://10.0.0.236/trunk@55693 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:53:37 +00:00
dougt%netscape.com
0419f0e310
removing MoveToFollowingLinks(). It was discussed that was not needed due
...
to links being broken. r=shaver
more tweeks to get symlinks working correct on windows.
not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@55684 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:07:38 +00:00
dougt%netscape.com
83e21d3a65
13320 more tweaking to nsIFile windows impl.
...
not part of build yet.
git-svn-id: svn://10.0.0.236/trunk@55643 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 23:31:25 +00:00
sdagley%netscape.com
27cbf1994b
Part of #17949 . nsLocalFileMac work. Not part of build yet.
...
git-svn-id: svn://10.0.0.236/trunk@55624 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 22:26:51 +00:00
sdagley%netscape.com
4713b64ef5
nsStorageStream.h is needed by nkcache. Doesn't affect builds
...
git-svn-id: svn://10.0.0.236/trunk@55537 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:04:13 +00:00