Commit Graph

1224 Commits

Author SHA1 Message Date
andreas.otte%primus-online.de
eb286e33d1 add some more testcases 1999-09-18 11:12:45 +00:00
andreas.otte%primus-online.de
1cae2db3a1 modified comment to DirFile to reflect changed nsStdURL.cpp 1999-09-18 09:24:17 +00:00
andreas.otte%primus-online.de
b0d8245e50 add protocol/jar makefiles 1999-09-18 09:13:20 +00:00
andreas.otte%primus-online.de
a150884e5a NOT ON BUILD: add ignore files 1999-09-18 09:11:27 +00:00
andreas.otte%primus-online.de
094c80303a NOT ON BUILD: Add loadgroup parameter 1999-09-18 09:08:56 +00:00
andreas.otte%primus-online.de
c2931d16b3 fixing a memory leak, thanks David 1999-09-18 09:06:23 +00:00
slamm%netscape.com
d4f05404b5 Re-order initializers to match class declarations (i.e. fix build warning). 1999-09-18 01:38:46 +00:00
valeski%netscape.com
42c78be306 added more logging. fix attempt at 14209. 1999-09-18 00:37:21 +00:00
briano%netscape.com
a99e9a73ca General cleanup. 1999-09-17 21:06:32 +00:00
valeski%netscape.com
428c99910a fix for 14143. also yanked local isspace, isdigit, isalpha routines from FTP dir listing converter, and corrected a buffer allocation problem that was causing extra data 'bad data' to be buffered. 1999-09-17 20:13:33 +00:00
valeski%netscape.com
2697a44285 I'm a moron. backing out previous change 1999-09-17 18:40:12 +00:00
valeski%netscape.com
2a3a1917bf 14143 1999-09-17 18:05:11 +00:00
valeski%netscape.com
1bc83966ea the Directory parser want uppercase; PS I know I'm checking in while the tree's closed, flame me 1999-09-17 18:04:01 +00:00
valeski%netscape.com
9940aa8e82 NOT IN BUILD - adding boilerplate for jar protocol handler 1999-09-17 16:12:41 +00:00
andreas.otte%primus-online.de
1d3ac5be65 fix for bug 14132 1999-09-17 14:52:39 +00:00
rpotts%netscape.com
e5409b13e3 bug #13477. nsHeaderEntry structs were leaking... 1999-09-17 09:21:50 +00:00
andreas.otte%primus-online.de
fb0e5b529c fix for bug 9040 1999-09-16 21:51:54 +00:00
andreas.otte%primus-online.de
c67042c8b1 fix for bug 12059, bug 13311, bug 13313, bug 12769, bug 11643 and bug 11648 1999-09-16 20:08:21 +00:00
dp%netscape.com
d0ccf9a6eb Ability for XPCOM to use non-default component registry and component directory 1999-09-16 19:28:57 +00:00
rpotts%netscape.com
5205b9890f Fire an OnStopRequest notification if the load group is cancelled... 1999-09-16 08:53:21 +00:00
warren%netscape.com
2635eceaa5 Fixed breakage. 1999-09-16 08:34:20 +00:00
warren%netscape.com
ba45516208 Fix for the editor coming up DOA. nsInputStreamChannel wasn't getting the load group propagated to it. 1999-09-16 08:03:02 +00:00
warren%netscape.com
e0e4b005af Added 1999-09-16 02:33:31 +00:00
warren%netscape.com
4ac98d62ef Added missing includes for nsCOMPtr (why doesn't Windows complain about this!). 1999-09-16 01:48:00 +00:00
gordon%netscape.com
9ecddd21c9 Remove include of nsDirectoryStreamMumbleSomething.h. 1999-09-16 01:28:16 +00:00
warren%netscape.com
3283a0e5f9 removed in favor of idl 1999-09-16 01:25:54 +00:00
warren%netscape.com
7d5e565fd5 Factored file transport service out of file: protocol. 1999-09-16 01:16:22 +00:00
gordon%netscape.com
d99240d307 Added nsIFileTransportService.idl and nsISocketTransportService.idl to netwerkIDL.mcp. Removed nsDirectoryIndexStream.cpp from file.mcp and added nsFileTransport.cpp, nsFileTransportService.cpp, and nsDirectoryIndexStream.cpp to netwerk.mcp. All part of warren's checkin. 1999-09-16 01:16:17 +00:00
gagan%netscape.com
bb3286dcc1 Now throwing a dialog box for basic auth username/password. This is a temporary checkin to allow basic auth work to progress. Eventually this will/must go away as the dialog box will come from the app triggered thru the HTTP event sink. But using this basic auth could be tested now. 1999-09-15 23:38:39 +00:00
valeski%netscape.com
cf50888d59 minor logging adjustment 1999-09-15 21:56:34 +00:00
warren%netscape.com
994f05a34e Making nsIThread nsIRunnable and nsIThreadPool idl interfaces. 1999-09-15 21:41:20 +00:00
slamm%netscape.com
93bea7dbd6 Fix build warnings: reorder initializers. 1999-09-15 19:24:20 +00:00
slamm%netscape.com
ad29db07a7 Fix build warnings. 1999-09-15 19:18:15 +00:00
warren%netscape.com
be2ef806ea idl versions 1999-09-15 09:51:46 +00:00
warren%netscape.com
279545985d Adding includes for nsIThreadPool.h and nsIRunnable.h in anticipation of idl files. 1999-09-15 09:49:18 +00:00
ramiro%netscape.com
e8ba593918 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
valeski%netscape.com
8a900bcfe5 FTP now uses the unknown content-type when it can't find one for the file it's transferring 1999-09-15 00:04:32 +00:00
valeski%netscape.com
b29015ef0d we now attempt a read even if the buffer's available count is zero. we were calling available before any data was getting in 1999-09-14 21:21:00 +00:00
valeski%netscape.com
e8c2fedfd3 updated date formatting code for FTP dir listing. we're now more accurate. also commented out some extraneous logging 1999-09-14 19:45:43 +00:00
valeski%netscape.com
fea615e364 content types are now forced to lower case: 13609 1999-09-14 19:42:09 +00:00
warren%netscape.com
f5b8d2c733 Getting ready to turn on the new file transport. 1999-09-14 04:36:16 +00:00
jdunn%netscape.com
c123f33f8a Fix MAC bustage... don't need the static declaration 1999-09-14 02:54:23 +00:00
jdunn%netscape.com
d2a6677712 move GetInstance from the header to the CPP since HPUX was throwing an
unresolved symbol.
1999-09-14 02:05:47 +00:00
briano%netscape.com
a54c669e40 General cleanup. 1999-09-14 01:35:43 +00:00
sfraser%netscape.com
bdcf7c443e Fix the file type of the shared lib 1999-09-14 00:49:58 +00:00
valeski%netscape.com
9e63a60731 fixed buffer mem allocation inconsistencies. we now loop for more data on long dir listings. we also consider any server string with 'windows' in it, to be an NT server. also added deletion of dir listing underlying buffer fir stringstream to the OnDataAvailEvent destructor; kinda ugly, but works 1999-09-13 23:29:12 +00:00
valeski%netscape.com
354974765f we're now registering sreamconverters in the NSRegisterSelf function; HURRAY!. Also added escaping to FTP's rendition of http-index filenames and dates. date formatting is still hosed though :(. I'm working on it) 1999-09-13 23:26:26 +00:00
warren%netscape.com
1072360e3f Moving this from netwerk/protocol/file/src. 1999-09-13 20:20:21 +00:00
warren%netscape.com
9d0374e06a New modernized file transport. I'm in the process of factoring this out from nsFileChannel. 1999-09-13 20:19:32 +00:00
valeski%netscape.com
5488cf13f2 optimized user-agent setting 1999-09-13 18:36:20 +00:00
valeski%netscape.com
ae6af510a2 beefed up the user agent string component initialization stuff, see bug 10465 for more info 1999-09-13 18:35:27 +00:00
rpotts%netscape.com
704d411d11 Fixed unix build bustage with forward declared nsCOMPtrs... 1999-09-13 07:40:10 +00:00
rpotts%netscape.com
111c42ebe0 Remove the socket transport from the list of active transports if an error occurs while writing the request out to the server... 1999-09-13 06:59:20 +00:00
cls%seawood.org
adf94e4618 Add -D_POSIX_SOURCE to DEFS to get rid of those useless 'index shadow' warnings. Add either -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 to whichever Makefile.ins need it to accommodate for Posix' strictness. Add check for getopt.h for nsinstall.c. 1999-09-12 14:25:28 +00:00
cls%seawood.org
f0889ec840 Reorderd member initializers to remove silly warnings. 1999-09-12 12:02:03 +00:00
rpotts%netscape.com
c69272c96e Throw away any pending channels when Cancel is called... 1999-09-12 08:44:53 +00:00
rpotts%netscape.com
b641e81433 oops.. 1999-09-12 06:02:51 +00:00
rpotts%netscape.com
c1578109bd The DNS Service is now used for hostname resolution... 1999-09-12 05:29:27 +00:00
warren%netscape.com
834f4d890e Re-adding these files. 1999-09-11 22:32:20 +00:00
warren%netscape.com
31bc33179f Attempt to fix linux bustage. 1999-09-11 20:45:50 +00:00
warren%netscape.com
506438ded2 More fixes for nsCOMPtr inconsistencies. 1999-09-11 19:43:06 +00:00
warren%netscape.com
df96620f94 Fix for linux breakage. 1999-09-11 19:32:03 +00:00
warren%netscape.com
d3eb73be23 Removed caps dependency from necko. Used nsCOMPtr for nsInputStreamChannel. 1999-09-11 18:45:36 +00:00
mscott%netscape.com
d3aa1711da export nsIRequest.idl so other idl files outside of netwerk can inherit from it. 1999-09-11 05:13:13 +00:00
warren%netscape.com
04332c183c Reduced IO buffer and transfer size. 1999-09-11 00:56:22 +00:00
jdunn%netscape.com
d6e55f9dc4 hp requires a newline at the end 1999-09-10 23:56:20 +00:00
mscott%netscape.com
fe4d9c99f3 export nsIChannel.idl so other idl files outside of netwerk can inherit from it. 1999-09-10 23:23:24 +00:00
hoa.nguyen%intel.com
adf82b7cf1 Initial checking 1999-09-10 23:17:09 +00:00
hoa.nguyen%intel.com
3ab6a57a1d Initial checkin 1999-09-10 23:16:40 +00:00
valeski%netscape.com
96799ab633 added more robust/accurate numeric ip address check 1999-09-10 22:33:09 +00:00
valeski%netscape.com
4840abba0f we now handle a complete single line greeting from an ftp server 1999-09-10 22:09:39 +00:00
valeski%netscape.com
fc5428a60f we're now escaping the filename in ftp dirlisting's dump of http-index, also fixed a MonthNumber() bug. 1999-09-10 22:08:26 +00:00
valeski%netscape.com
ecae4a681a added accept */* to the default http request 1999-09-10 18:32:02 +00:00
valeski%netscape.com
4513ebaee5 forcing CString and setting capacitynsStdURL.cpp 1999-09-10 18:30:51 +00:00
valeski%netscape.com
d9dc484fc8 linux breakage. 1999-09-10 15:38:35 +00:00
valeski%netscape.com
78f83b1a41 build bustage 1999-09-10 15:27:19 +00:00
brade%netscape.com
d58e203a43 add files for valeski 1999-09-10 15:02:10 +00:00
valeski%netscape.com
c5ca8a0101 fixing mac bustage - mac doesn't have int 64s it has a struct for it instead 1999-09-10 14:53:49 +00:00
valeski%netscape.com
675eca537d adding nsFTPDirListingConv stream converter to the build. we now dump all stream converter factory registration into one file 1999-09-10 14:36:56 +00:00
valeski%netscape.com
6661597694 updated FTP to use the directory listing stream converter when it encounters a dir listing. also removed it's dependency on time.h 1999-09-10 14:32:06 +00:00
valeski%netscape.com
c59bbe1062 added bin,exe extensions 1999-09-10 14:27:16 +00:00
valeski%netscape.com
022431ebf3 using NS_GET_IID macro now 1999-09-10 14:26:47 +00:00
briano%netscape.com
32510b6ff3 General cleanup. 1999-09-10 01:57:11 +00:00
warren%netscape.com
2ea5b49ec9 Fix for blocking output streams (affects mailnews). Basically we were calling ReadSegments with a 0 count, and when it returned 0 we thought it was EOF. 1999-09-10 01:46:49 +00:00
briano%netscape.com
de44b4d417 General cleanup. 1999-09-10 00:59:21 +00:00
vidur%netscape.com
8fae5bb797 nsLoadGroup now uses weak pointers for observers and LoadGroupListenerFactory. 1999-09-09 23:55:19 +00:00
warren%netscape.com
39799a6d16 EOF changes. 1999-09-09 22:18:44 +00:00
warren%netscape.com
40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
valeski%netscape.com
5ffbf3effa NOT HOOKED INTO BUILD. adding FTP directory listing stream converter 1999-09-09 19:33:16 +00:00
briano%netscape.com
f8e486e56b General cleanup. 1999-09-09 07:32:15 +00:00
rpotts%netscape.com
d78c217f46 bug #11376. I added GetContentLength to nsIChannel so the content length can be gotten from a channel... 1999-09-09 05:07:30 +00:00
briano%netscape.com
c858c8cd9c General cleanup. 1999-09-09 02:02:21 +00:00
briano%netscape.com
2ff5e413e7 Removed the obsolete non-NECKO leftovers. 1999-09-09 01:08:34 +00:00
briano%netscape.com
696e28cdec Removed the obsolete non-NECKO leftovers. 1999-09-09 00:59:41 +00:00
briano%netscape.com
b77bbb9a68 Removed the obsolete non-NECKO leftovers. 1999-09-09 00:41:10 +00:00
dougt%netscape.com
f7d5f139ef bug fix for 13321. 1999-09-08 22:53:13 +00:00
andreas.otte%primus-online.de
056f7d5fcd adding the data protocol to the build 1999-09-08 07:21:22 +00:00
andreas.otte%primus-online.de
3a3660436b forgot this one 1999-09-08 07:18:45 +00:00
andreas.otte%primus-online.de
8d0370fffd add protocol/data makefiles 1999-09-08 07:17:24 +00:00
andreas.otte%primus-online.de
91f0402f9e add a missing return 1999-09-08 07:16:10 +00:00
andreas.otte%primus-online.de
12ce8bf4c1 add some ignorance 1999-09-08 07:14:49 +00:00
brendan%mozilla.org
f3bfcd687b Don't abuse nsAutoLock in single-exit nsSocketTransport::Process and PR_Unlock
and relock it in subroutines -- this causes false deadlock-detection positives.
Also comment module callouts with lock held.
1999-09-08 06:17:20 +00:00
norris%netscape.com
2d8e12375f * Add checks on urls formed from web scripts
* Make nsScriptSecurityManager implement nsXPCSecurityManager
* Fix unix warnings
1999-09-07 02:54:19 +00:00
cls%seawood.org
91c70687a3 include <string.h> for when it disappears from nsID.h again. 1999-09-06 23:08:43 +00:00
brendan%mozilla.org
a84076e44e Expand tabs to spaces per Emacs modeline; other space cleanups. 1999-09-06 22:59:11 +00:00
brendan%mozilla.org
7de384224d Use deadlock detecting nsAutoMonitors, etc., correctly. 1999-09-06 19:57:40 +00:00
shaver%netscape.com
0251fe0ed6 convert to CreateInstanceFromProgID 1999-09-05 06:42:13 +00:00
shaver%netscape.com
6cecf4c569 convert to CreateInstanceFromProgID 1999-09-05 06:27:42 +00:00
bruce%cybersight.com
d16eeb2d46 Change delete[] of nsEscape() result to nsCRT::free(). 1999-09-04 16:37:24 +00:00
valeski%netscape.com
f7e8b6cd05 changed nsCOMTypeInfo<> template to NS_GET_IID macro 1999-09-03 23:51:14 +00:00
dougt%netscape.com
028f11d2bf Changes nsIAtom iterface to return a shared (non-allocated) wstring when
GetUnicode() is called.  (thanks waterson, jband)

Also fixing 12237.  (thanks jband).
1999-09-03 22:21:29 +00:00
mscott%netscape.com
eb22c256d5 Bug #10845 --> mailnews mime stream converter now works with the stream converter service and uses nsIstreamConverter
instead of nsIStreamConverter2.
1999-09-03 22:03:12 +00:00
bruce%cybersight.com
f67b510aa5 Use nsCRT::free() instead of delete[] for char* data. 1999-09-03 07:53:26 +00:00
valeski%netscape.com
036616dcaa adding data protocol to the build 1999-09-03 00:44:28 +00:00
valeski%netscape.com
9bd1d6e8d4 adding data protocol handler to necko 1999-09-03 00:39:55 +00:00
kipp%netscape.com
78bace2449 Use nsAutoString instead of nsString for temps 1999-09-02 18:13:07 +00:00
valeski%netscape.com
7d4ee90d8c stream converter service uses the component mgr now to create stream converter instances, rather than the old use of the service mananger. 1999-09-02 03:39:10 +00:00
valeski%netscape.com
8d8b9baa71 fixing an ftp crasher 1999-09-02 03:30:04 +00:00
waterson%netscape.com
79d165f38c Fix ambiguity that was busting --pedantic. 1999-09-02 02:54:57 +00:00
valeski%netscape.com
02f3298de1 added a context param to the stream converter service 1999-09-02 02:18:28 +00:00
valeski%netscape.com
b177237e32 fixed mem leak 1999-09-01 23:20:22 +00:00
valeski%netscape.com
617b0c2db7 fixing warning 1999-09-01 20:07:50 +00:00
dougt%netscape.com
4b6c318cdc Bug fix for 12702.
Adding notes to remove nsIAtom comparison by string.
1999-09-01 20:06:30 +00:00
jdunn%netscape.com
de5a534c65 change static_cast to NSCAP_STATIC_CAST 1999-09-01 19:47:50 +00:00
valeski%netscape.com
b314594876 warning fixes + removal of nsString constructor usage w/ internal string byte size specifier 1999-09-01 14:13:51 +00:00
valeski%netscape.com
dc75493b3e warning fix 1999-09-01 14:11:15 +00:00
warren%netscape.com
daec1b8fe3 Cleaning up dependency on nsIBuffer.h 1999-09-01 04:40:12 +00:00
gagan%netscape.com
ec8d3b31ef Basic Auth stuff. very basic indeed. 1999-09-01 04:21:12 +00:00
warren%netscape.com
bc9c0f4451 Fix case where suspended file transport terminates early. Fixes missing Help menu and toolbar problem. 1999-09-01 01:31:39 +00:00
cyeh%netscape.com
34cd2ddae1 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
rickg%netscape.com
2783bc0081 removed a warning 1999-09-01 00:58:45 +00:00
warren%netscape.com
efb0c1cd5d Made NS_BASE_STREAM_WOULD_BLOCK a failure code (for JS). Reduced socket transport buffer size. Fixed ABBA deadlock when calling OnEmpty in pipe code (bug#12870). 1999-08-31 21:47:30 +00:00
gagan%netscape.com
e3df677e44 added files: mozilla/netwerk/protocol/http/src/nsAuth.cpp, mozilla/netwerk/protocol/http/src/nsBasicAuth.cpp 1999-08-31 10:46:23 +00:00
gagan%netscape.com
e611258377 added files: mozilla/netwerk/protocol/http/src/nsAuth.cpp, mozilla/netwerk/protocol/http/src/nsBasicAuth.cpp 1999-08-31 10:46:10 +00:00
gagan%netscape.com
4d9f337895 Basic Auth files. First checkin. 1999-08-31 10:40:12 +00:00
gagan%netscape.com
4aa3207b39 Added a struct to hold auth stuff. Not in the build (at least not for a couple of cycles anyway) 1999-08-31 10:39:38 +00:00
rpotts%netscape.com
89e414a3f4 ug #8443. Added GetCharset to nsIHTTPChannel 1999-08-31 04:46:05 +00:00
jdunn%netscape.com
02595d2f21 HP requires a newline... 1999-08-30 22:34:15 +00:00
norris%netscape.com
d8507f844e * clean up nsScriptSecurityManager
* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments
1999-08-29 21:58:42 +00:00
beard%netscape.com
b772d8ec15 First Checked In. 1999-08-29 20:02:46 +00:00
rickg%netscape.com
4dea02ede3 replaced call to deprecated method in nsString 1999-08-29 17:44:48 +00:00
rickg%netscape.com
5fa59a798b converted an instance to nsCString and replaced deprecated nsString call 1999-08-29 17:42:34 +00:00
valeski%netscape.com
c52959b8f1 nsString2 to nsCString 1999-08-29 16:46:30 +00:00
valeski%netscape.com
40b89c7eea nsSTring2 to nsCString changeover 1999-08-29 16:43:16 +00:00
valeski%netscape.com
0b30c81c11 change nsString2 to nsCString 1999-08-29 16:42:27 +00:00
valeski%netscape.com
e4721cc30c now we're handlin data sent in non-delimited chunks 1999-08-29 15:53:59 +00:00
valeski%netscape.com
7c0f309bdf added file to export list 1999-08-29 14:36:43 +00:00
valeski%netscape.com
7bf9003be8 added the converters dir to the builds (mac isn't in yet :( 1999-08-29 14:16:32 +00:00
valeski%netscape.com
639287b4ae added GetContentType functionality. Now the channel tries the mime service and uses it's own member when possible. 1999-08-29 14:14:30 +00:00
valeski%netscape.com
f83d51a664 mem leak fix 1999-08-29 14:12:05 +00:00
valeski%netscape.com
e4de57add0 updated final receiver's OnDataAvailable so it now outputs the data it receives. Also added asyncronous conversion test w/ multiple OnDataAvailables 1999-08-29 14:11:41 +00:00
valeski%netscape.com
e543752523 added newline and encapsulating header file ifdef 1999-08-29 14:09:16 +00:00
bruce%cybersight.com
ad7abbafe9 Fix build bustage. This has an nsCOMPtr<nsIEventSinkGetter> so it must include nsIEventSinkGetter.h to fully define the type. 1999-08-29 07:04:31 +00:00
rpotts%netscape.com
dc14f6f1d9 Moved redirect logic out of the HTTPResponseListener and into the Channel... 1999-08-29 06:02:27 +00:00
dougt%netscape.com
02c9ac8e9a Fix for 12702. cookies work again. 1999-08-28 22:28:08 +00:00
jdunn%netscape.com
67091cd2ca HP requires a newline at the end 1999-08-27 21:23:42 +00:00
sfraser%netscape.com
9d55eb4970 Remove errant semicolon 1999-08-27 20:54:22 +00:00
valeski%netscape.com
e1ba01e5de not in main build - added comments and collapsed interface method definitions into related macros 1999-08-27 15:12:40 +00:00
valeski%netscape.com
c0dc78036c not in builds yet. updated MUltiMixed stream converter to new model 1999-08-27 14:10:21 +00:00
gagan%netscape.com
58d5877fdf Fixed tabs to spaces and misc leaks... 1999-08-27 12:38:06 +00:00
warren%netscape.com
136db06f40 Fix for linux bustage (different includes for some reason). 1999-08-27 11:03:12 +00:00
warren%netscape.com
ed1d3aa12e Fix for failure case. 1999-08-27 10:58:23 +00:00
warren%netscape.com
b1c540e4a4 Ported to the new nsPipe2 implementation. 1999-08-27 10:33:37 +00:00
warren%netscape.com
2c5f004652 Fixed leak in NewURI. 1999-08-27 10:32:55 +00:00
gagan%netscape.com
48a6252554 More mem leak fixes. 1999-08-27 10:03:07 +00:00
gagan%netscape.com
013eeb5f2a More mem leak fixes which were showing up originating in nsStdURL. 1999-08-27 09:59:59 +00:00
andreas.otte%primus-online.de
a470d9dbdf adding netwerk/streamconv/converters/Makefile 1999-08-27 08:33:31 +00:00
andreas.otte%primus-online.de
081d3a5b1d first checked in 1999-08-27 08:32:24 +00:00
andreas.otte%primus-online.de
df9cc3406c first checked in - not on current build 1999-08-27 08:31:57 +00:00
jevering%netscape.com
8dfa81c80e Finshed null reference fix. 1999-08-27 06:32:18 +00:00
jevering%netscape.com
49ec00b6b5 Free'd memory read fix. 1999-08-27 06:08:21 +00:00
rjc%netscape.com
9ab582d122 When enumerating a folder's contents, don't resolve aliases, and don't return hidden files/folders. 1999-08-27 03:42:23 +00:00
rpotts%netscape.com
094c37e358 Fix for unix... nsIChannel needed to be fully defined... 1999-08-26 23:05:20 +00:00
rpotts%netscape.com
0085d83ab0 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
andreas.otte%primus-online.de
7be99f3cfa Don't forget the last one in the converter chain 1999-08-26 15:05:26 +00:00
valeski%netscape.com
6c3d09ea42 added virtual specifier to destructor 1999-08-26 14:55:14 +00:00
valeski%netscape.com
271b4483c7 adding multipartmixed stream converter implementation NOTE: it's not part of the build yet 1999-08-26 14:53:01 +00:00
valeski%netscape.com
394c235b4e fixed transposed args, we now pass the listener in as we're supposed to when we find a 1-to-1 mapping 1999-08-26 14:33:25 +00:00
valeski%netscape.com
a1171738f9 added virtual destructor to elliminate linux warning 1999-08-26 14:28:17 +00:00
andreas.otte%primus-online.de
1dd7cc989e adding the test directory 1999-08-26 09:21:42 +00:00
andreas.otte%primus-online.de
931bef08c5 adding netwerk/streamconv/test/Makefile 1999-08-26 09:19:21 +00:00
andreas.otte%primus-online.de
81474cea1e first checked in 1999-08-26 09:18:33 +00:00
waterson%netscape.com
a079c6ff90 Fix compiler warning. 1999-08-26 04:28:14 +00:00
gagan%netscape.com
a5d6c9c5de Argh... missed a free. 1999-08-25 23:58:24 +00:00
gagan%netscape.com
54c84be4b4 Fix for #11204. 1999-08-25 23:27:58 +00:00
jdunn%netscape.com
7e20f0761f HP requires a newline at the end 1999-08-25 21:21:22 +00:00
ramiro%netscape.com
5c9835cc68 Cleanup linking of libimg. 1999-08-25 13:37:11 +00:00
dougt%netscape.com
4fa0148c0f fixing build bustage. 1999-08-25 00:19:00 +00:00
dougt%netscape.com
9d805dcf7b Fix for bug 10435. Everything except CopyFrom() and MoveFrom() 1999-08-24 22:30:59 +00:00
waterson%netscape.com
4b3a77da70 Okay, checking back in my fix for the filespec and iterator. 1999-08-24 22:08:55 +00:00
valeski%netscape.com
162f83d534 added stream converter test dir and accompanying files (win build only for now). fixed an out of order param in teh service implementation as well 1999-08-24 22:04:05 +00:00
valeski%netscape.com
8e17ea1cfb Added start request event firing, and we now maintain the initial response code from a multi-line response 1999-08-24 21:53:27 +00:00
warren%netscape.com
fe52d530ae Added new nsIPipe/nsPipe2 stuff inside #ifdef NSPIPE2. 1999-08-24 21:47:23 +00:00
valeski%netscape.com
2c118bb38b added pr logging to ftp 1999-08-24 21:46:09 +00:00
valeski%netscape.com
c87f374efc fixed mem leak 1999-08-24 21:45:20 +00:00
waterson%netscape.com
0def552738 Backed out per don's request. 1999-08-24 20:07:12 +00:00
waterson%netscape.com
eca4eb2378 Can't keep a ref to iterator's filespec, and then advance the iterator; need to make a copy. 1999-08-24 19:58:07 +00:00
danm%netscape.com
90596b6aad removing (faulty) GLOWCODE directives 1999-08-24 19:18:20 +00:00
hshaw%netscape.com
6114a3c317 purging temporary NET_SOCKET_PROVIDER_BUILD ifdef, dougt checked in mac build support 1999-08-24 19:04:58 +00:00
warren%netscape.com
895a69acc1 Replaced nsPipe2.h with nsIPipe.idl 1999-08-24 08:46:32 +00:00
hshaw%netscape.com
737c7c0824 NS_DECL_NSIFOO changes 1999-08-24 06:50:41 +00:00
waterson%netscape.com
6282b19257 Add some commentary. 1999-08-24 06:45:06 +00:00
waterson%netscape.com
03ef9a0dd7 Oops. Left off the 'file-type' specifier in the '200' line. 1999-08-24 06:41:35 +00:00
hshaw%netscape.com
37b1f71f8d now that we are sure the socket Makefile got regenerated on linux and solaris, we can reference the output 1999-08-24 04:54:03 +00:00
hshaw%netscape.com
18a2becea1 let's make sure configure gets run 1999-08-24 04:26:51 +00:00
waterson%netscape.com
f35714a8a6 Add nsDirectoryIndexStream to the build. 1999-08-24 04:24:35 +00:00
waterson%netscape.com
087fbea164 Add nsDirectoryIndexStream.cpp to the build. 1999-08-24 04:23:55 +00:00
hshaw%netscape.com
d777716bcd remove temporary ifdef 1999-08-24 04:16:15 +00:00
dougt%netscape.com
0eb69adb48 adding socket/base 1999-08-24 03:43:37 +00:00
dougt%netscape.com
ce7ee8aba7 First Checked In. 1999-08-24 03:42:59 +00:00
waterson%netscape.com
64ab1c9f4e Initial revision. Not yet in the build. 1999-08-24 01:32:19 +00:00
dougt%netscape.com
a7dd519e15 Making nsNetModuleMgr use proxy.
Clean up nsNetModuleMgr API.
Change http to use new API.
1999-08-24 00:34:51 +00:00
mscott%netscape.com
cfa2aabcd3 Add a do_QueryInterface to a call in AsyncRead. This fixes an assertion I keep getting whenever I bring up the browser. 1999-08-24 00:29:24 +00:00
hshaw%netscape.com
62d6c9c8a4 backout reference to socket provider library until I can figure out why it isn't being built 1999-08-23 15:29:58 +00:00
hshaw%netscape.com
6b4e74c1d7 initial checkin 1999-08-23 14:40:24 +00:00
hshaw%netscape.com
09384ece15 build with socket provider - thanks Andreas Otte 1999-08-23 14:38:31 +00:00
hshaw%netscape.com
045e488d6c link with socket provider base library 1999-08-23 14:37:37 +00:00
hshaw%netscape.com
1e3813fab0 list makefiles for socket provider 1999-08-23 14:35:44 +00:00
hshaw%netscape.com
c3cb20f78d initial checkin - thanks Andreas Otte 1999-08-23 14:34:41 +00:00
hshaw%netscape.com
5a772d3166 conditionally build socket provider until Mac build works - thanks Andreas Otte 1999-08-23 14:20:23 +00:00
gagan%netscape.com
eac40b7d91 We dont need this macro here now. Its available in nsCRT for all to use. 1999-08-23 08:30:55 +00:00
hshaw%netscape.com
16daea328d fix depend file generation 1999-08-23 02:14:16 +00:00
mccabe%netscape.com
a900e17559 Replace declarations of interface methods in implementation classes with xpidl-generated NS_DECL_NSIFOO.
Remainder of the netwerk portion of the NS_DECL_NSIFOO spam.
1999-08-22 23:52:07 +00:00
hshaw%netscape.com
cb611f5354 initial checkin 1999-08-22 20:22:43 +00:00
hshaw%netscape.com
3d5ddfe1c7 get macro definition from config.mak 1999-08-22 17:51:49 +00:00
hshaw%netscape.com
62064636df allow inheritance 1999-08-22 17:28:36 +00:00
hshaw%netscape.com
a16de4ba9d allow selection of socket type using socket providers 1999-08-22 17:26:09 +00:00
hshaw%netscape.com
a51f42652e add socket provider support under NET_SOCKET_PROVIDER_BUILD ifdef (temporary until linux/mac build scripts checked in 1999-08-22 15:20:43 +00:00
hshaw%netscape.com
30a60a78ae compile socket subdir if NET_SOCKET_PROVIDER_BUILD set (will be removed when linux/mac build scripts checked in) 1999-08-22 14:42:05 +00:00
hshaw%netscape.com
edc9d201e9 Initial checkin of socket provider 'base' files 1999-08-22 14:40:41 +00:00
mccabe%netscape.com
17cdc659d1 NS_DECL_NSIFOO spam for nsIRequest, nsIChannel, nsIStreamListener, nsIStreamObserver, all from netwerk/
convert manual interface method declarations in implementation class to NS_DECL_NSIFOO macro.
1999-08-22 13:26:18 +00:00
mccabe%netscape.com
381fb81c4f Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO. 1999-08-22 11:25:50 +00:00
ramiro%netscape.com
2c19866af3 cleanup linking of libmozreg. 1999-08-21 15:41:53 +00:00
gagan%netscape.com
0c214adc91 Code style consistency cleanup. 1999-08-21 00:22:18 +00:00
cls%seawood.org
c2bdb85bf4 Removed all references to obsolete OBJDIR variable.
Removed various sections of config.mk & rules.mk that were only used by OBJDIR or by a non-autoconf build.
1999-08-20 06:52:59 +00:00
jdunn%netscape.com
3ee9202c46 Fix problem for HP Native compiler which does not allow 'deletes' on void *.
Judson ok'd the fix
1999-08-19 21:42:13 +00:00
sspitzer%netscape.com
d59e01480f fix warning 1999-08-19 06:27:24 +00:00
tbogard%aol.net
57feff30c2 XPCOM Cleanup: Fixed Aggregation macros in nsAgg.h to do aggregation correctly. Fixed usages and implementation of aggregation using these macros through out the tree. 1999-08-19 05:36:30 +00:00
leaf%mozilla.org
0dae772019 Finishing backout of dougt 1999-08-19 02:58:12 +00:00
leaf%mozilla.org
e7d4319fdd backing out dougt 1999-08-19 02:35:39 +00:00
dougt%netscape.com
0b7cc4c86e Updating to use new NetMod Notification. 1999-08-18 09:33:27 +00:00
dougt%netscape.com
431a9eef50 Adding thread proxy support to Net Module Notification.
General cleanup
1999-08-18 09:32:26 +00:00
ramiro%netscape.com
ee33c47ded Link in secfree dynamically only where needed. 1999-08-17 15:46:57 +00:00
gordon%netscape.com
be0cd1d2e5 This is just a NECKO test app. Updating to work on Mac. 1999-08-13 22:18:34 +00:00
gagan%netscape.com
63d548333f backslashes in ..\.. cases fixed. Thanks bratell@lysator.liu.se 1999-08-13 05:20:45 +00:00
warren%netscape.com
d944d70a84 Fix for bug 7682: StringBundle can't load URLs from imap thread. 1999-08-13 00:43:48 +00:00
gagan%netscape.com
1581724dae Fixed bunch of M9 bugs for Necko. 1999-08-12 09:59:24 +00:00
briano%netscape.com
955529a7f3 Unix native compilers don't like it when files don't end with a newline. 1999-08-12 01:58:19 +00:00
valeski%netscape.com
0091d03cb8 added pipe2 stuff back in after patrick got the pipe2 stuff linking in w/ mac 1999-08-12 01:01:55 +00:00
valeski%netscape.com
a652772b48 removed nsPipe2 api usage 1999-08-11 23:58:35 +00:00
valeski%netscape.com
4c6ccdee2b added files: mozilla/netwerk/protocol/ftp/public/nsIFTPContext.idl 1999-08-11 22:27:12 +00:00
valeski%netscape.com
87e42a03b1 adding next rev of ftp protocol 1999-08-11 22:26:32 +00:00
rpotts%netscape.com
a806fec196 Bug #11410. Changed NS_ASSERTION to checkc the *correct* variable. Someday I'll grow a brain and become really dangerous... 1999-08-11 21:15:49 +00:00
warren%netscape.com
9ac2ca82f2 Fixed problem for large files (or small buffers). Added logging. 1999-08-11 08:17:35 +00:00
gagan%netscape.com
4207799f58 Temporarily fixing the assert which I think is ok, but would let rpotts confirm it. 1999-08-11 04:28:32 +00:00
valeski%netscape.com
551c3fdc95 added user agent language setter routine 1999-08-10 18:33:27 +00:00
mccabe%netscape.com
2a403483de Changes to the xpidl compiler -
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].

This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.

As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout.  As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.
1999-08-10 12:18:01 +00:00
rpotts%netscape.com
f2ce78ae81 Release the pointers that were passed into AsyncRead(...) when the operation is compelete. This breaks some circular references that prevented WebShells from being deleted... 1999-08-10 04:02:10 +00:00
rpotts%netscape.com
04a3d364ce Implement the nsIRequest interface for nsHTTPChannel. This allows channels that are cancelled from a LoadGroup to *actually* get removed... 1999-08-09 07:07:08 +00:00
rpotts%netscape.com
eabc748ec0 Implement nsIRequest::Cancel() for the SocketTransport. 1999-08-09 07:05:15 +00:00
rpotts%netscape.com
449ba12da6 bug #10790. The HTTPChannel is now given to the HTTPResponseListener during construction. Before, it was getting it via a dirty cast in the OnStartRequest notification. Unfortunately, OnStartRequest is only called if the connection is successful. This caused a crash in OnStopRequest if the HTTPChannel was not available :-( 1999-08-06 07:57:44 +00:00
morse%netscape.com
e3092f3888 cleaned up dialogs 1999-08-06 00:29:10 +00:00
valeski%netscape.com
9ef221c292 fixing mac build bustage. brade verified the changes in her mac build. I switched from com ptrs to regular pointers as the com pointer abuse wasn't appreciated on the mac 1999-08-05 16:17:22 +00:00
rhp%netscape.com
98bb37cae0 added files: mozilla/netwerk/protocol/http/src/nsHTTPHeaderArray.cpp, mozilla/netwerk/protocol/http/src/nsHTTPAtoms.cpp 1999-08-05 13:23:45 +00:00
rhp%netscape.com
f02cb85a5f added files: mozilla/netwerk/protocol/http/public/nsIHTTPHeader.idl 1999-08-05 13:16:39 +00:00
rpotts%netscape.com
fd0ec4db70 Fix for build bustage on Linux... 1999-08-05 09:07:29 +00:00
rpotts%netscape.com
37703cf101 Added code to dump all headers in the OnHeadersAvailable() notification. 1999-08-05 08:29:36 +00:00
rpotts%netscape.com
1a4d82c21f bug #10739. Reworking header APIs... I've removed nsIHeader.h. 1999-08-05 08:28:49 +00:00
rpotts%netscape.com
0d546eaffa bug #10739. Reworking header APIs... I've added 2 new CPP files - nsHTTPAtoms.cpp and nsHTTPHeaderArray.cpp. 1999-08-05 08:27:49 +00:00
rpotts%netscape.com
6e6cdb32c5 bug #10739. Reworking header APIs... I've added a new IDL file - nsIHTTPHeader.idl and remove 3 obsolete header files... 1999-08-05 08:26:57 +00:00
mscott%netscape.com
d37e51242e bulletproof some NS_RELEASE's with NS_IF_RELEASE. 1999-08-04 21:23:26 +00:00
valeski%netscape.com
8cd7c54894 nsNetModRegEntry.cpp - fixed mem leak. nsStdURL.cpp - fixed port parsing bug 1999-08-04 21:20:48 +00:00
gagan%netscape.com
f182cc62db Added a new MANIFEST file for nsHTTP stuff. 1999-08-04 16:12:30 +00:00
gagan%netscape.com
46143f3127 POSTing works now. 1999-08-04 15:07:26 +00:00
briano%netscape.com
3c91849065 Added a newline at the EOF to fix the HP build (and others). 1999-08-04 02:11:03 +00:00
briano%netscape.com
16db76eb51 Yet another case of a new file checked in missing the newline at EOF required by Unix native compilers. 1999-08-04 02:02:15 +00:00
valeski%netscape.com
31e057081c win32 bustage. nspr wasn't being linked into the stream conv dll 1999-08-04 00:50:21 +00:00
valeski%netscape.com
308f65e005 memory deallocation macro problem 1999-08-03 23:44:16 +00:00
valeski%netscape.com
422e84ccad added stream converter to the builds 1999-08-03 22:04:57 +00:00
warren%netscape.com
8d70ef168e Returned error when file not found for OpenInputStream. 1999-08-03 22:00:17 +00:00
briano%netscape.com
e2cc541f86 Cleaned it up and got rid of the redundant HP-specific SHARED_LIBRARY_LIBS stuff. 1999-08-03 21:40:56 +00:00
dougt%netscape.com
3c1d894f1c removing hard coded "http" string and using GetScheme() instead.
cleaning up a memory leak
1999-08-03 02:15:30 +00:00
warren%netscape.com
529c0b2b71 Removed hack to export to netwerk/dist (used before landing necko). 1999-08-03 00:38:25 +00:00
valeski%netscape.com
1cdf612052 pulled file extension search code and started using new mime mapping method which does it for us 1999-08-01 16:44:29 +00:00
valeski%netscape.com
99a28ebe09 factored repeated mime type retrieval implementations into mime mapping service methods 1999-08-01 16:42:25 +00:00
warren%netscape.com
7451a9a44d Took out more f*** nsCOMPtrs 1999-07-31 07:51:35 +00:00
warren%netscape.com
5e143d61d4 Removed nsCOMPtr breakage. 1999-07-31 07:30:49 +00:00
warren%netscape.com
07b963204e Added GetLoadGroup/SetLoadGroup to nsIChannel so that redirects can discover the group. 1999-07-31 06:53:12 +00:00
warren%netscape.com
38ba2d2fad Lots of cool logging code. 1999-07-31 06:28:31 +00:00
warren%netscape.com
8c9db416e3 Added shtml 1999-07-31 06:27:03 +00:00
beard%netscape.com
8a020feafa removed special handling of /usr/local/bin/netscape in favor of better solution in resource: URL handler. 1999-07-31 01:04:23 +00:00
gagan%netscape.com
7226dc69b4 Fix MLK. Freeing up previous versions of mPath/mScheme 1999-07-31 00:15:49 +00:00
rpotts%netscape.com
558cdd62be bug #10424 URL redirects. If the server did *not* send an entity along with the 302, necko would not correctly follow the redirect. 1999-07-30 07:13:05 +00:00
rpotts%netscape.com
21e7d3da37 bug #10424 URL redirects. If the server did *not* send an entity along with the 302, necko would not correctly follow the redirect. 1999-07-30 06:39:24 +00:00
warren%netscape.com
57392932f9 Fixed to not put stuff in netwerk/dist anymore. 1999-07-30 06:10:53 +00:00
warren%netscape.com
ec14999c47 Added NS_ERROR_UNKNOWN_PROTOCOL, and changed dns error to NS_ERROR_UNKNOWN_HOST. 1999-07-30 04:17:23 +00:00
valeski%netscape.com
2c443202a5 crahser fix 10843 - bad host name was crashing the socket transport in error state 1999-07-30 02:36:52 +00:00
valeski%netscape.com
8cf1dba87f added dns failure check to output 1999-07-30 02:35:12 +00:00
gagan%netscape.com
7404fbfb83 Fixes the spaces problem also on the Mac! 1999-07-30 01:17:29 +00:00
gagan%netscape.com
c6472453b8 Fixed the spaces problem. File path is now unescaped before being handed over to file spec. 1999-07-30 00:55:35 +00:00
sdagley%netscape.com
55649b036c Temp hack for the Mac to address error opening files that aren't properly un-escaped (%20 still in the path instead of spaces for example). We still fail to open the file but now there's an error message to go along with the failure. Note that this will require Macsbug to be installed or a Mac hitting this error will crash. Since we were already telling people that they needed Macsbug installed to run the developmental builds I don't see a problem with this. 1999-07-30 00:37:58 +00:00
briano%netscape.com
adb4c20ef7 Fix for platforms whose ld's don't have a --whole-archive equivalent. 1999-07-29 22:47:42 +00:00
valeski%netscape.com
f915d4a913 not in default build - added stream conversion test app 1999-07-29 21:18:35 +00:00
valeski%netscape.com
b955d14bca not in default builds. fixed mem leaks in stream service 1999-07-29 21:17:33 +00:00
valeski%netscape.com
75449d0dff not in default builds - stream converter leak updates and we're now poping from the Q from the top (FIFO) 1999-07-29 07:09:46 +00:00
sspitzer%netscape.com
0f1188a8ce ignore generated Makefile 1999-07-29 05:00:07 +00:00
bruce%cybersight.com
e2e303a78d Build fix for aCC on HP-UX. Approved by leaf. 1999-07-29 04:21:42 +00:00
mscott%netscape.com
94b8521246 fix build breakage...include config.mak 1999-07-29 03:17:36 +00:00
mscott%netscape.com
d563520210 fix build by including config.mak 1999-07-29 03:10:23 +00:00
mscott%netscape.com
17edea3140 fix build breakage...include config.mak 1999-07-29 02:49:02 +00:00
mscott%netscape.com
c0c1cc8e74 fix build breakage by including config.mak 1999-07-29 02:47:16 +00:00
mscott%netscape.com
203c991819 Fix build breakage...include config.mak 1999-07-29 02:35:45 +00:00
briano%netscape.com
5ca4aa0b87 Trivial elimination of some pointless macros as discussed in bug 8568. Approved by leaf@mozilla.org. 1999-07-29 01:18:12 +00:00
rpotts%netscape.com
02062599f9 Close the socket if an error occurred... 1999-07-28 11:08:18 +00:00
rpotts%netscape.com
3aed16e4b8 Changed OnStopRequest(...) to always file - regardless of the mStatus. This insures that the consumer will *always* receive an OnStopRequest(...) notification. 1999-07-28 11:07:39 +00:00
rpotts%netscape.com
8c60c16be7 Set the max number of open transports to 8. 1999-07-28 09:26:55 +00:00
rpotts%netscape.com
315de829f9 Obsolete file... 1999-07-28 09:25:51 +00:00
rpotts%netscape.com
bf7d1235bc Support for a Max number of open transports. 1999-07-28 09:25:31 +00:00
warren%netscape.com
c7b57f1e08 Fixed mismatched delete problem (purify). 1999-07-28 04:05:10 +00:00
warren%netscape.com
7b13572242 Fixed UMR / refcounting problem (purify). 1999-07-28 04:02:07 +00:00
gagan%netscape.com
ca73a1f56c More URL parsing updates for not so common cases. 1999-07-28 02:13:07 +00:00
valeski%netscape.com
8fe0e5315f free memory mismatch fix 1999-07-27 23:35:01 +00:00
mcafee%netscape.com
9e9afeb293 Minor comment change. 1999-07-27 23:31:48 +00:00
briano%netscape.com
007ea62765 Cleaned it up and changed the name of libreg.{a,so} to libmozreg.{a,so} to fix the conflict reported in bug 8568. 1999-07-27 23:27:44 +00:00
ducarroz%netscape.com
69fb203755 Fix shlb name conflict between netwerk:mime and mailnews:mime. Necko only. 1999-07-27 23:17:49 +00:00
gagan%netscape.com
f127b5bcec Fixed the URL parsing for http://foo:80 1999-07-27 21:28:05 +00:00
valeski%netscape.com
a176e19e98 fixing mem leak 1999-07-27 21:12:50 +00:00
mcafee%netscape.com
11cfd5f1b9 Adding testserver/Makefile 1999-07-27 20:33:00 +00:00
mcafee%netscape.com
09740c6d93 First checkin 1999-07-27 20:32:08 +00:00
valeski%netscape.com
2964097b08 memory leak fix on ns_makeabsoluteURI calls 1999-07-27 14:42:19 +00:00
rpotts%netscape.com
4c8f571a13 Added a temporary new define called USE_POLLABLE_EVENT which windows and unix both define... On the Mac, rather than using NSPR pollable events, a small timeout is set for PR_Poll(...) and new entry processing occurs after a timeout :-( 1999-07-27 09:21:07 +00:00
warren%netscape.com
cfc523f742 Added assertion for bug I was hitting (spinning). 1999-07-27 08:47:43 +00:00
warren%netscape.com
17c0cb8533 Added missing error check. 1999-07-27 08:47:13 +00:00
warren%netscape.com
0cf03128d0 Fixed tab-width 1999-07-27 08:46:27 +00:00
warren%netscape.com
d8715087fe Added logging. 1999-07-27 08:45:35 +00:00
warren%netscape.com
065cd2992d Fixed NewURI to not pass base URI when spec is absolute. 1999-07-27 08:45:20 +00:00
gagan%netscape.com
dc9fb63f38 -Fixed parsing to handle the mscott cases of-
mailbox://foo:25/user@netscape.com
	pop3://foo:110?check
-Fixed missing directory situations. (thanks Andreas)
-Removed the temporary hack for converting from ToNewCString to nsCRT::free'able
type. This removes the FMM errors on Bruce's log. No more mismatched freeing.


? diffs
Index: nsStdURL.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/base/src/nsStdURL.cpp,v
retrieving revision 1.5
diff -r1.5 nsStdURL.cpp
147,150c147
<     {
< 		//TODO
<         return NS_ERROR_FAILURE; // this should really be NS_ERROR_URL_PARSING
<     }
---
>         return NS_ERROR_MALFORMED_URI;
154c151
<     static const char delimiters[] = "/:@"; //this order is optimized.
---
>     static const char delimiters[] = "/:@?"; //this order is optimized.
157,493c154
<     if (brk)
<     {
<         switch (*brk)
<         {
<         case '/' :
<             // If the URL starts with a slash then everything is a path
<             if (brk == mSpec)
<             {
< 				ExtractString(mSpec, &mPath, 0, len);
<                 return NS_OK;
<             }
<             else // The first part is host, so its host/path
<             {
<                 ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                 ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
<                 return NS_OK;
<             }
<             break;
<         case ':' :
<             if (*(brk+1) == '/')
<             {
<                 ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<
<                 if (*(brk+2) == '/') // e.g. http://
<                 // If the first colon is followed by // then its definitely a spec
<                 {
<                     lastbrk = brk+3;
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // standard case- http://host/path
<                                 ExtractString(mSpec, &mHost,
< 								    (lastbrk - mSpec), (brk - lastbrk));
<                                 ExtractString(mSpec, &mPath,
< 								    (brk - mSpec), (len - (brk - mSpec)));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 {
<                                     // It could be http://user:pass@host/path
< 								    // or http://host:port/path
<                                     // For the first case, there has to be an
< 								    // @ after this colon, so...
<                                     char* atSign = PL_strchr(brk, '@');
<                                     if (atSign)
<                                     {
<                                         ExtractString(mSpec, &mPreHost,
< 										    (lastbrk - mSpec), (atSign - lastbrk));
<                                         brk = PL_strpbrk(atSign+1, "/:");
<                                         if (brk) // http://user:pass@host:port/path or http://user:pass@host/path
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    (brk - (atSign+1)));
<                                             if (*brk == '/')
<                                             {
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk - mSpec),
< 												    len - (brk - mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else // we have a port since (brk == ':')
<                                             {
<                                                 lastbrk = brk+1;
<                                                 brk = PL_strchr(lastbrk, '/');
<                                                 if (brk) // http://user:pass@host:port/path
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), (brk-lastbrk));
<                                                     ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                                                     return NS_OK;
<                                                 }
<                                                 else // http://user:pass@host:port
<                                                 {
<                                                     mPort = ExtractPortFrom(mSpec, (lastbrk - mSpec), len - (lastbrk - mSpec));
<                                                     return NS_OK;
<                                                 }
<                                             }
<
<                                         }
<                                         else // its just http://user:pass@host
<                                         {
<                                             ExtractString(mSpec, &mHost,
< 											    (atSign+1 - mSpec),
< 											    len - (atSign+1 - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // definitely the port option, i.e. http://host:port/path
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec),
< 										    (brk-lastbrk));
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // http://host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec),
< 											    len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // http://host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                 }
<                                 break;
<                             case '@' :
<                                 // http://user@host...
<                                 {
<                                     ExtractString(mSpec, &mPreHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     lastbrk = brk+1;
<                                     brk = PL_strpbrk(lastbrk, ":/");
<                                     if (brk)
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk-mSpec), (brk - lastbrk));
<                                         if (*brk == ':') // http://user@host:port...
<                                         {
<                                             lastbrk = brk+1;
<                                             brk = PL_strchr(lastbrk, '/');
<                                             if (brk)    // http://user@host:port/path
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                                 ExtractString(mSpec, &mPath,
< 												    (brk-mSpec),
< 												    len - (brk-mSpec));
<                                                 return NS_OK;
<                                             }
<                                             else        // http://user@host:port
<                                             {
<                                                 mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                                 return NS_OK;
<                                             }
<
<                                         }
<                                         else // (*brk == '/') so no port just path i.e. http://user@host/path
<                                         {
<                                             ExtractString(mSpec, &mPath,
< 											    (brk - mSpec),
< 											    len - (brk - mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // its just http://user@host
<                                     {
<                                         ExtractString(mSpec, &mHost,
< 										    (lastbrk+1 - mSpec), len - (lastbrk+1 - mSpec));
<                                         return NS_OK;
<                                     }
<
<                                 }
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<
<                     }
<                     else // everything else is a host, as in http://host
<                     {
<                         ExtractString(mSpec, &mHost,
< 						    (lastbrk - mSpec),
< 						    len - (lastbrk - mSpec));
<                         return NS_OK;
<                     }
<
<                 }
<                 else // This is a no // path alone case like file:/path, there is never a prehost/host in this case.
<                 {
<                     ExtractString(mSpec, &mPath, (brk-mSpec+1), len - (brk-mSpec+1));
<                     return NS_OK;
<                 }
<             }
<             else // scheme:host or host:port...
<             {
<                 lastbrk = brk+1;
<
<                 if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
<                 {
<                     ExtractString(mSpec, &mHost, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its host:port/path
<                                 mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, brk-lastbrk);
<                                 ExtractString(mSpec, &mPath, brk- mSpec, len - (brk-mSpec));
<                                 return NS_OK;
<                                 break;
<                             case ':' :
<                                 return NS_ERROR_FAILURE;//TODO NS_ERROR_URL_PARSING;
<                                 break;
<                             case '@' :
<                                 // This is a special case of user:pass@host... so
<                                 // Cleanout our earliar knowledge of host
<                                 ExtractString(mSpec, &mHost, -1, -1);
<
<                                 ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
<                                 lastbrk = brk+1;
<                                 brk = PL_strpbrk(lastbrk, ":/");
<                                 if (brk)
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), (brk-lastbrk));
<                                     if (*brk == ':') // user:pass@host:port...
<                                     {
<                                         lastbrk = brk+1;
<                                         brk = PL_strchr(lastbrk, '/');
<                                         if (brk)    // user:pass@host:port/path
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                                             ExtractString(mSpec, &mPath,
< 											    (brk-mSpec), len - (brk-mSpec));
<                                             return NS_OK;
<                                         }
<                                         else        // user:pass@host:port
<                                         {
<                                             mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                                             return NS_OK;
<                                         }
<                                     }
<                                     else // (*brk == '/') so user:pass@host/path
<                                     {
<                                         ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                         return NS_OK;
<                                     }
<                                 }
<                                 else // its user:pass@host so everthing else is just the host
<                                 {
<                                     ExtractString(mSpec, &mHost,
< 									    (lastbrk-mSpec), len - (lastbrk-mSpec));
<                                     return NS_OK;
<                                 }
<
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // Everything else is just the port
<                     {
<                         mPort = ExtractPortFrom(mSpec, lastbrk-mSpec, len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // scheme:host...
<                 {
<                     ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
<                     brk = PL_strpbrk(lastbrk, delimiters);
<                     if (brk)
<                     {
<                         switch (*brk)
<                         {
<                             case '/' : // The path, so its scheme:host/path
<                                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                                 return NS_OK;
<                                 break;
<                             case '@' : // scheme:user@host...
<                                 ExtractString(mSpec, &mPreHost, (lastbrk-mSpec), (brk-lastbrk));
<                                 // TODO more here...
<                                 break;
<                             case ':' : // scheme:user:pass@host... or scheme:host:port...
<                                 /* TODO
<                                 if you find @ in the remaining string then // scheme:user:pass@host...
<                                 {
<
<
<                                 }
<                                 else // scheme:host:port
<                                 {
<                                     ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<
<                                 }
<                                 */
<                                 break;
<                             default: NS_POSTCONDITION(0, "This just can't be!");
<                                 break;
<                         }
<                     }
<                     else // its just scheme:host
<                     {
<                         ExtractString(mSpec, &mHost, (lastbrk-mSpec), len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<             }
<             break;
<         case '@' :
<             //Everything before the @ is the prehost stuff
<             ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
<             lastbrk = brk+1;
<             brk = PL_strpbrk(lastbrk, ":/");
<             if (brk)
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
<                 if (*brk == ':') // user@host:port...
<                 {
<                     lastbrk = brk+1;
<                     brk = PL_strchr(lastbrk, '/');
<                     if (brk)    // user@host:port/path
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
<                         ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
<                         return NS_OK;
<                     }
<                     else        // user@host:port
<                     {
<                         mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),len - (lastbrk-mSpec));
<                         return NS_OK;
<                     }
<                 }
<                 else // (*brk == '/') so user@host/path
<                 {
<                     ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
<                     return NS_OK;
<                 }
<             }
<             else // its user@host so everything else is just the host
<             {
<                 ExtractString(mSpec, &mHost, (lastbrk-mSpec), (len - (lastbrk-mSpec)));
<                 return NS_OK;
<             }
<             break;
<         default:
<             NS_ASSERTION(0, "This just can't be!");
<             break;
<         }
<     }
<     else // everything is a host
---
>     if (!brk) // everything is a host
495a157
> 		return NS_OK;
496a159,501
> 	switch (*brk)
> 	{
> 	case '/' :
> 	case '?' :
> 		// If the URL starts with a slash then everything is a path
> 		if (brk == mSpec)
> 		{
> 			ExtractString(mSpec, &mPath, 0, len);
> 			return NS_OK;
> 		}
> 		else // The first part is host, so its host/path
> 		{
> 			ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 			ExtractString(mSpec, &mPath, (brk - mSpec), (len - (brk - mSpec)));
> 			return NS_OK;
> 		}
> 		break;
> 	case ':' :
> 		if (*(brk+1) == '/')
> 		{
> 			ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
>
> 			if (*(brk+2) == '/') // e.g. http://
> 			// If the first colon is followed by // then its definitely a spec
> 			{
> 				lastbrk = brk+3;
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // everything else is a host, as in http://host
> 				{
> 					ExtractString(mSpec, &mHost,
> 						(lastbrk - mSpec),
> 						len - (lastbrk - mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // standard case- http://host/path
> 					case '?' : // missing path cases
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk - mSpec), (brk - lastbrk));
> 						ExtractString(mSpec, &mPath,
> 							(brk - mSpec), (len - (brk - mSpec)));
> 						return NS_OK;
> 						break;
> 					case ':' : // http://user:... or http://host:...
> 					{
> // It could be http://user:pass@host/path
> // or http://host:port/path we find that by checking further...
> char* nextbrk = PL_strpbrk(brk+1, delimiters);
> if (!nextbrk) // http://host:port
> {
> 	ExtractString(mSpec, &mHost,
> 		(lastbrk-mSpec), (brk-lastbrk));
> 	mPort = ExtractPortFrom(mSpec,
> 		(lastbrk-mSpec), len - (lastbrk-mSpec));
> 	return NS_OK;
> }
> switch (*nextbrk)
> {
> 	case '/': // http://host:port/path
> 	case '?': // http://host:port?path
> 		ExtractString(mSpec, &mHost,
> 			(lastbrk-mSpec), (brk-lastbrk));
> 		mPort = ExtractPortFrom(mSpec, (brk-mSpec+1),(nextbrk-brk-1));
> 		ExtractString(mSpec, &mPath,
> 				(nextbrk-mSpec), len - (nextbrk-mSpec));
> 		return NS_OK;
> 		break;
> 	case '@': // http://user:pass@host...
> 		ExtractString(mSpec, &mPreHost,
> 			(lastbrk - mSpec), (nextbrk - lastbrk));
> 		brk = PL_strpbrk(nextbrk+1, delimiters);
> 		if (!brk) // its just http://user:pass@host
> 		{
> 			ExtractString(mSpec, &mHost,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 		}
>
> 		ExtractString(mSpec, &mHost,
> 			(nextbrk+1 - mSpec), brk - (nextbrk+1));
>
> 		switch (*brk)
> 		{
> 		case '/': // http://user:pass@host/path
> 		case '?':
> 			ExtractString(mSpec, &mPath,
> 				(nextbrk+1 - mSpec),
> 				len - (nextbrk+1 - mSpec));
> 			return NS_OK;
> 			break;
> 		case ':': // http://user:pass@host:port...
> 			lastbrk = brk;
> 			brk = PL_strpbrk(lastbrk+1, "/?");
> 			if (brk)    // http://user:pass@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // http://user:pass@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 			break;
> 		default: NS_POSTCONDITION(0, "This just can't be!");
> 			break;
> 		}
> 		break;
> 	case ':': // three colons!
> 		return NS_ERROR_MALFORMED_URI;
> 		break;
> 	default: NS_POSTCONDITION(0, "This just can't be!");
> 		break;
> }
> 						}
> 						break;
> 					case '@' : // http://user@host...
> 						{
> 							ExtractString(mSpec, &mPreHost,
> 								(lastbrk-mSpec), (brk-lastbrk));
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, delimiters);
> 							if (!brk) // its just http://user@host
> 							{
> 								ExtractString(mSpec, &mHost,
> 									(lastbrk+1 - mSpec),
> 									len - (lastbrk+1 - mSpec));
> 								return NS_OK;
> 							}
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), (brk - lastbrk));
> 							switch (*brk)
> 							{
> 								case ':' : // http://user@host:port...
> 									lastbrk = brk+1;
> 									brk = PL_strpbrk(lastbrk, "/?");
> 									if (brk)    // http://user@host:port/path
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),(brk-lastbrk));
> 										ExtractString(mSpec, &mPath,
> 											(brk-mSpec),
> 											len - (brk-mSpec));
> 										return NS_OK;
> 									}
> 									else        // http://user@host:port
> 									{
> 										mPort = ExtractPortFrom(mSpec,
> 											(lastbrk-mSpec),
> 											len - (lastbrk-mSpec));
> 										return NS_OK;
> 									}
> 									break;
> 								case '/' : // http://user@host/path
> 								case '?' : // http://user@host?path
> 									ExtractString(mSpec, &mPath,
> 										(brk - mSpec),
> 										len - (brk - mSpec));
> 									return NS_OK;
> 									break;
> 								case '@' :
> 									return NS_ERROR_MALFORMED_URI;
> 								default : NS_POSTCONDITION(0,
> 									"This just can't be!");
> 									break;
> 							}
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // This is a no // path alone case like file:/path,
> 				// there is never a prehost/host in this case.
> 			{
> 				ExtractString(mSpec, &mPath, (brk-mSpec+1),
> 					len - (brk-mSpec+1));
> 				return NS_OK;
> 			}
> 		}
> 		else // scheme:host or host:port...
> 		{
> 			lastbrk = brk+1;
>
> 			if ((*lastbrk >= '0') && (*lastbrk <= '9')) //host:port...
> 			{
> 				ExtractString(mSpec, &mHost, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // Everything else is just the port
> 				{
> 					mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its host:port/path
> 					case '?' : // The path, so its host:port?path
> 						mPort = ExtractPortFrom(mSpec, lastbrk-mSpec,
> 							brk-lastbrk);
> 						ExtractString(mSpec, &mPath, brk- mSpec,
> 							len - (brk-mSpec));
> 						return NS_OK;
> 						break;
> 					case ':' :
> 						return NS_ERROR_MALFORMED_URI;
> 						break;
> 					case '@' :
> 						// This is a special case of user:pass@host... so
> 						// Cleanout our earliar knowledge of host
> 						ExtractString(mSpec, &mHost, -1, -1);
>
> 						ExtractString(mSpec, &mPreHost, 0, (brk-mSpec));
> 						lastbrk = brk+1;
> 						brk = PL_strpbrk(lastbrk, ":/");
> 					// its user:pass@host so everthing else is just the host
> 						if (!brk)
> 						{
> 							ExtractString(mSpec, &mHost,
> 								(lastbrk-mSpec), len - (lastbrk-mSpec));
> 							return NS_OK;
> 						}
> 						ExtractString(mSpec, &mHost,
> 							(lastbrk-mSpec), (brk-lastbrk));
> 						if (*brk == ':') // user:pass@host:port...
> 						{
> 							lastbrk = brk+1;
> 							brk = PL_strpbrk(lastbrk, "/?");
> 							if (brk)    // user:pass@host:port/path
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),(brk-lastbrk));
> 								ExtractString(mSpec, &mPath,
> 									(brk-mSpec), len - (brk-mSpec));
> 								return NS_OK;
> 							}
> 							else        // user:pass@host:port
> 							{
> 								mPort = ExtractPortFrom(mSpec,
> 									(lastbrk-mSpec),len - (lastbrk-mSpec));
> 								return NS_OK;
> 							}
> 						}
> 						else // (*brk == '/') so user:pass@host/path
> 						{
> 							ExtractString(mSpec, &mPath, (brk - mSpec),
> 								len - (brk - mSpec));
> 							return NS_OK;
> 						}
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 			else // scheme:host...
> 			{
> 				ExtractString(mSpec, &mScheme, 0, (brk - mSpec));
> 				brk = PL_strpbrk(lastbrk, delimiters);
> 				if (!brk) // its just scheme:host
> 				{
> 					ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 						len - (lastbrk-mSpec));
> 					return NS_OK;
> 				}
> 				switch (*brk)
> 				{
> 					case '/' : // The path, so its scheme:host/path
> 					case '?' : // The path, so its scheme:host?path
> 						ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						ExtractString(mSpec, &mPath, (brk - mSpec),
> 							len - (brk - mSpec));
> 						return NS_OK;
> 						break;
> 					case '@' : // scheme:user@host...
> 						ExtractString(mSpec, &mPreHost, (lastbrk-mSpec),
> 							(brk-lastbrk));
> 						// TODO more here...
> 						break;
> 					case ':' : // scheme:user:pass@host...or scheme:host:port...
> 						/* TODO
> 						if you find @ in the remaining string
> 						then // scheme:user:pass@host...
> 						{
>
>
> 						}
> 						else // scheme:host:port
> 						{
> 							ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 								(brk-lastbrk));
> 						}
> 						*/
> 						break;
> 					default: NS_POSTCONDITION(0, "This just can't be!");
> 						break;
> 				}
> 			}
> 		}
> 		break;
> 	case '@' :
> 		//Everything before the @ is the prehost stuff
> 		ExtractString(mSpec, &mPreHost, 0, brk-mSpec);
> 		lastbrk = brk+1;
> 		brk = PL_strpbrk(lastbrk, ":/");
> 		if (!brk) // its user@host so everything else is just the host
> 		{
> 			ExtractString(mSpec, &mHost, (lastbrk-mSpec),
> 				(len - (lastbrk-mSpec)));
> 			return NS_OK;
> 		}
> 		ExtractString(mSpec, &mHost, (lastbrk-mSpec), (brk-lastbrk));
> 		if (*brk == ':') // user@host:port...
> 		{
> 			lastbrk = brk+1;
> 			brk = PL_strpbrk(lastbrk, "/?");
> 			if (brk)    // user@host:port/path
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),(brk-lastbrk));
> 				ExtractString(mSpec, &mPath, (brk-mSpec), len - (brk-mSpec));
> 				return NS_OK;
> 			}
> 			else        // user@host:port
> 			{
> 				mPort = ExtractPortFrom(mSpec, (lastbrk-mSpec),
> 					len - (lastbrk-mSpec));
> 				return NS_OK;
> 			}
> 		}
> 		else // (*brk == '/') so user@host/path
> 		{
> 			ExtractString(mSpec, &mPath, (brk - mSpec), len - (brk - mSpec));
> 			return NS_OK;
> 		}
> 		break;
> 	default:
> 		NS_ASSERTION(0, "This just can't be!");
> 		break;
> 	}
578,580c583
<     {
<         return NS_ERROR_OUT_OF_MEMORY;
<     }
---
>         return returnValue; // ERROR!
620,626c623
< 	// TODO- Fix this. Hack to create tmp only becuz nsString can't
< 	// give us a PR_Malloc (nsCRT/nsAllocator) string
< 	char* tmp = dir.ToNewCString();
< 	if (!tmp)
< 		return NS_ERROR_OUT_OF_MEMORY;
<     mDirectory = nsCRT::strdup(tmp);
< 	delete[] tmp;
---
>     mDirectory = dir.ToNewCString();
677d673
<     nsresult status = NS_ERROR_FAILURE;
782,783c778,782
<     NS_ASSERTION(file, "This can't be! ParsePath called without a /Path");
<     if (!file) return NS_OK;
---
>     if (!file)
> 	{
> 		// Treat the whole mPath as file -- this could still have ?, # etc.
> 		file = mPath;
> 	}
788a788,790
> 	else
> 		DupString(&mDirectory, "/");
>
795,819c797
<     if (brk)
<     {
<         ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
<         //Keep pulling out other pieces...
<         while (brk)
<         {
<             char* lastbrk = brk;
<             brk = PL_strpbrk(lastbrk+1, delimiters);
<             switch (*lastbrk)
<             {
<                 case ';' : /*
<                            ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                            */
<                     break;
<                 case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
<                     break;
<                 default:
<                     NS_ASSERTION(0, "This just can't be!");
<                     break;
<             }
<         }
<     }
<     else // Everything in the file is just the filename
---
>     if (!brk) // Everything in the file is just the filename
822a801,821
> 	ExtractString(file, &mFileName, 1 /* skip the leading / */, (brk-file-1));
> 	//Keep pulling out other pieces...
> 	while (brk)
> 	{
> 		char* lastbrk = brk;
> 		brk = PL_strpbrk(lastbrk+1, delimiters);
> 		switch (*lastbrk)
> 		{
> 			case ';' : /*
> 					   ExtractString(lastbrk, &mParam, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 					   */
> 				break;
> 			case '?' : ExtractString(lastbrk, &mQuery, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			case '#' : ExtractString(lastbrk, &mRef, 1, (brk ? (brk-lastbrk-1) : (len - (lastbrk-file) -1)));
> 				break;
> 			default:
> 				NS_ASSERTION(0, "This just can't be!");
> 				break;
> 		}
> 	}
912,915c911
< 	// TODO fix when nsString changes
< 	char* tempDirFile = temp.ToNewCString();
< 	*o_DirFile = nsCRT::strdup(tempDirFile);
< 	delete[] tempDirFile;
---
> 	*o_DirFile = temp.ToNewCString();
1999-07-27 07:40:38 +00:00
valeski%netscape.com
2316686429 this dir is not in any builds. removed the unwanted AsyncConvertSTream method. now we support one sync conversion method, and one async 1999-07-27 03:25:57 +00:00
hoa.nguyen%intel.com
30774b9c9e Removed backed out change which added dns/daemon to build. Need to test on Windows and Mac build first. 1999-07-27 02:56:36 +00:00
hoa.nguyen%intel.com
76e62584cf Added dns/daemon to makefiles 1999-07-27 02:44:16 +00:00
gordon%netscape.com
22715d631f Find proper resource directory for Mac, rather than /usr/local/netscape/bin. 1999-07-27 01:11:03 +00:00
gagan%netscape.com
0b54a9d025 Necko only. Added a missing trailing newline. 1999-07-26 22:44:22 +00:00
valeski%netscape.com
0aa4b40d49 stream converter interface changes. the sync and 2nd async methods are now implemented by the service too 1999-07-26 22:12:05 +00:00
dougt%netscape.com
5adb63dcaf Fix for bug 10177 and 10041. 1999-07-26 22:09:42 +00:00
hoa.nguyen%intel.com
2ff37fbe4e Standalone daemon process to handle async DNS lookup on Unix/Linux. 1999-07-26 21:25:00 +00:00
hoa.nguyen%intel.com
af36f5dd52 Makefile for DNS daemon process. 1999-07-26 21:23:24 +00:00
beard%netscape.com
a0521b8805 Makes resource URLs work, by special-casing "/usr/local/netscape/bin" on the Mac. This should probably be moved elsewhere, but works for now. 1999-07-25 18:39:41 +00:00
beard%netscape.com
edf11af6ff First Checked In. 1999-07-25 18:35:34 +00:00
valeski%netscape.com
748a1853fe necko - we now set the user agent by default 1999-07-25 13:54:47 +00:00
sdagley%netscape.com
f2f9874640 Removed mime component from main newterk and put it into its own project. 1999-07-25 01:39:44 +00:00