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
fur%netscape.com
997f01f69a
Export nsStorageStream.h
...
git-svn-id: svn://10.0.0.236/trunk@55486 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 00:05:37 +00:00
valeski%netscape.com
e875c61670
r=mcafee. 20677 assistance. We now have a scriptable input stream implementation and interface for js. Hurray!
...
git-svn-id: svn://10.0.0.236/trunk@55308 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 20:29:42 +00:00
dougt%netscape.com
fe5547695c
adding some error codes which I will need.
...
git-svn-id: svn://10.0.0.236/trunk@55247 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:18:48 +00:00
dougt%netscape.com
94ecbedb06
renamed from the hated nsISomethingImpl.
...
git-svn-id: svn://10.0.0.236/trunk@55246 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:13:44 +00:00
dougt%netscape.com
9381ffc62d
Replaced by:
...
nsLocalFile.h
nsLocalFileUnix.cpp
nsLocalFileUnix.h
nsLocalFileWin.cpp
nsLocalFileWin.h
git-svn-id: svn://10.0.0.236/trunk@55241 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:02:45 +00:00
dougt%netscape.com
6771abf254
removing nsFileUtils.
...
git-svn-id: svn://10.0.0.236/trunk@55136 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:43:35 +00:00
dougt%netscape.com
88fc92f608
Removing Dir enumerator as it will be part of nsIFile
...
removing nsFileUtils.
Changing the name of nsIFile children to directoryEntries
removing nsIFile trucate.
Rewrote large parts of nsIFileImplWin to use native APIs.
not part of build
git-svn-id: svn://10.0.0.236/trunk@55133 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:39:31 +00:00
dougt%netscape.com
fd347bcedd
Fix tabs.
...
added enumerator.
git-svn-id: svn://10.0.0.236/trunk@55084 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 21:45:50 +00:00
dougt%netscape.com
9f59512919
Removing init() methods as warren suggested. These now live in the new
...
nsILocalFile interface.
git-svn-id: svn://10.0.0.236/trunk@55051 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:49:57 +00:00
dougt%netscape.com
b7a4eda34c
First cut.
...
These are the local file init methods for a nsIFile.
not hooked up to the build
git-svn-id: svn://10.0.0.236/trunk@55050 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:45:12 +00:00
sfraser%netscape.com
7d7ac5b8ec
Additional fix to the linebreakers when munging nsStrings. r=pinkerton.
...
git-svn-id: svn://10.0.0.236/trunk@55023 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 05:33:50 +00:00
briano%netscape.com
cbd2a79d4f
Fix for QNX-specific build bustage. QNX doesn't provide a prototype for truncate().
...
git-svn-id: svn://10.0.0.236/trunk@55012 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:17:04 +00:00
dougt%netscape.com
c0e28dfae6
Changes to the nsIFile.idl which were discussed between shaver, brendan,
...
sdagley and I. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@54989 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 01:19:10 +00:00
warren%netscape.com
871543dac7
Fix from Jud where we were dropping error code. r=warren
...
git-svn-id: svn://10.0.0.236/trunk@54972 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 00:58:43 +00:00