Commit Graph

1376 Commits

Author SHA1 Message Date
valeski%netscape.com
3b79ba312e NOT IN BUILD. Adding date time protocol handler files 1999-12-20 21:48:15 +00:00
morse%netscape.com
f4b2441812 add SelectDialog, bug=3110, coded by davidm, r=morse, a=chofmann 1999-12-19 18:32:21 +00:00
fur%geocast.com
0c469bc6e4 Reorder one class member initialization line to fix a warning. 1999-12-18 15:47:20 +00:00
fur%geocast.com
8ee9698da7 Fixes for HTTP 1.1 compliance with caching, a:chofmann
Fix #21569 (Use Etag header for cache validation, when present)
  Fix #21572 (Obey must-revalidate directive, when present)
1999-12-18 15:46:43 +00:00
fur%geocast.com
a516109cda Added assertion and trivial recovery code to catch the case of a load group
listener factory that reports success, but nevertheless returns a NULL stream
listener.
1999-12-18 14:59:59 +00:00
fur%geocast.com
94eddbd362 Fix #21660 (Browser buster crash in cache). a:chofmann 1999-12-18 14:58:09 +00:00
mscott%netscape.com
aabdc49dd6 fix mem leak of the http handler and the http request objects.
Add GetnsAuthEngine to nsIHTTPProtocolHandler, remove nsHTTPHandler::GetInstance, force callers to
go through the service manager. remove the http handler factory code since we just need the http
module
r=warren
1999-12-17 00:44:31 +00:00
rpotts%netscape.com
b8fa07f3ff bug #21884 (r=mscott) bug #21459 (r=warren). I'm checking in the changes for 21459 again with an important fix for the image crashes :-) 1999-12-16 07:59:25 +00:00
mscott%netscape.com
94216118f1 Bug #21884 --> backing out Rick's changes to http to fix this regression crasher tonight.
a=chofmann
1999-12-16 06:06:00 +00:00
rpotts%netscape.com
1aafb0dcce bug #21459 (r=warren). Made the consumer OnStopRequest fire before the channel is removed from the loadgroup... 1999-12-15 23:12:48 +00:00
briano%netscape.com
d226077369 Added a newline to the end of the file to make it compile on HP-UX. 1999-12-15 22:43:06 +00:00
pnunn%netscape.com
67f961d858 Correcting a mime type mapping. R:valeski@netscape.com OK:chofmann@netscape.com 1999-12-15 20:38:43 +00:00
briano%netscape.com
911b963ce5 Added a newline to the end of the file so HP-UX would be happy again. 1999-12-15 05:00:09 +00:00
valeski%netscape.com
2c8ae74076 21723, a=chofmann, r=rpotts. landing new FTP implementation. It's now much leaner on event processing, and no longer buffers data between the socket transport and consumer. This change went in in order to unblock the xpinstall guys on a UI thread starvation problem 1999-12-15 03:35:15 +00:00
valeski%netscape.com
e51a9fb7c2 added files: mozilla/netwerk/protocol/ftp/src/nsFTPListener.cpp 1999-12-15 03:32:56 +00:00
rhp%netscape.com
262d71cfa4 Performance fix for message display - Bug #: 21203 - r: rhp (external contribution) 1999-12-15 03:30:55 +00:00
valeski%netscape.com
6bd54014c8 adding files for new FTP impl, not in build yet 1999-12-15 03:30:33 +00:00
valeski%netscape.com
85b9c156a7 21723. a=chofmann, r=rpotts. AsyncOpen() in the socket transport was spinning out of control, causing socket transport thread deadlock. Now we move the socket transport off of the work queue after an AsyncOpen call 1999-12-15 00:28:39 +00:00
valeski%netscape.com
a58f6dc3b6 21197. a=jevering, r=rpotts. On a redirect we were firing header notification *after* the rediect which broke sites trying to set and retrieve a cookie using a redirect. Now we fire on headers before processing status code 1999-12-14 23:07:29 +00:00
ducarroz%netscape.com
e6c401cb3e Fix for bug 21314. Let PL_Base64Decode do the right job. R=warren 1999-12-13 22:49:12 +00:00
rjc%netscape.com
4ace8bbaaa Fix PDT+ bug # 21236: don't null out mResponseContext, as it needs to be valid for the life of the channel. (Its a nsCOMPtr, so it'll automatically release when it falls out of scope.) 1999-12-11 21:24:50 +00:00
sdagley%netscape.com
7f46d43ea4 Checking in fur's fix for #21162 - throbber animation not stoping. Also major speed improvment on NT and Mac. a=brendan 1999-12-11 02:25:00 +00:00
valeski%netscape.com
b42d295bb2 r=rhp. 21242 adjusted pipe buffer params for FTP Async file transfers. URI dispatching had aggrivated this bug. Now file viewing via FTP works. 1999-12-09 06:41:05 +00:00
valeski%netscape.com
e2f28b9ebe r=rhp. 21195. a=jevering. adjusted pipe buffer params for FTP OpenInputSTream. URI dispatching had aggrivated this bug. Now file downloads via FTP work. 1999-12-09 06:20:50 +00:00
jdunn%netscape.com
0f378c7e1f Include nsJARURI.cpp and nsJARChannel.cpp in the unix build
r= warren, chofmann
1999-12-08 23:47:11 +00:00
alecf%netscape.com
9eb84400c8 fix bustage so I can check in 1999-12-08 06:44:18 +00:00
fur%netscape.com
14b7a8cb5a Move OnHeadersAvailable() after processing of server's "Not Modified" response,
so that the cached HTTP headers can be substituted for the 304 response headers.
1999-12-08 06:37:28 +00:00
fur%netscape.com
e422da8a9b It turns out that PR_Now() has only one second resolution on the Mac, hence it's unsuitable for computing download rates for the cache. Thanks to sdagley for pointing this out. 1999-12-08 05:46:31 +00:00
warren%netscape.com
70e183d895 Fixed leak on shutdown. Bug#21118 1999-12-08 05:14:52 +00:00
morse%netscape.com
022b1a3ef9 fix bug 21083, multiple cookies being ignored, r=valeski 1999-12-08 05:07:31 +00:00
fur%netscape.com
fc0e0c24cf Fix mac build bustage. Use LL* macros with int64 types 1999-12-08 04:56:15 +00:00
fur%netscape.com
e00611be38 Fix usual bustage due to not including header with an nsCOMPtr type 1999-12-08 04:08:48 +00:00
fur%netscape.com
e8deaace7a + Fix unix build bustage: Add explicit casts to XPIDLCString rvalues.
+ Fixed warnings
1999-12-08 04:04:26 +00:00
fur%netscape.com
62f3732c2a Build cache tests 1999-12-08 03:36:10 +00:00
fur%netscape.com
ed725966ce + Handle the case of inability to write into cache correctly.
+ Be more aggressive about clearing the UPDATE_IN_PROGRESS flag on the cache entry
1999-12-08 03:32:56 +00:00
fur%netscape.com
82e896700b Change failure to shut down memory cache cleanly into a warning, instead of an assertion 1999-12-08 03:29:21 +00:00
fur%netscape.com
bb2347d383 Disable cache by default on Windows 1999-12-08 03:25:44 +00:00
fur%netscape.com
1f6919c4a6 Bug #8305 (Implement cache). Whacked the HTTP protocol handler hard to support caching. 1999-12-08 03:23:14 +00:00
rhp%netscape.com
98d15c511d Remove printf()'s that I missed earlier 1999-12-08 02:49:46 +00:00
rhp%netscape.com
ac426513a5 Fixing "const" problem 1999-12-08 02:42:43 +00:00
rhp%netscape.com
ad4360fbc5 Fix for TXT - HTML conversion - r: rhp - external contributor 1999-12-08 02:10:57 +00:00
norris%netscape.com
9aea6d6321 The data protocol doesn't seem to be working. The problem appears to be that a nsStdURL is used to hold the data URI.
Unfortunately, using nsStdURL parses the data URI so that a URI like "data:text/html,<html>hi</html>" gets parsed with a
host of "text". When the rest of the data URI processing calls GetSpec, it then gets "//text/html,<html>hi</html>", which
confuses the content type parsing so no data is displayed.

This checkin changes to use a nsSimpleURI instead.
r=valeski
1999-12-07 23:42:58 +00:00
valeski%netscape.com
de9d6ddf86 r=chofmann. adding content-type to default response headers for testserver 1999-12-07 22:36:47 +00:00
rhp%netscape.com
33774bf8ac Fixing Mac Project - Location of new stream converter 1999-12-07 22:31:49 +00:00
rhp%netscape.com
7e88e5f745 Fixes for TXT - HTML Conversion - r: rhp (externally contributed) 1999-12-07 22:20:02 +00:00
fur%netscape.com
971124a079 Change name of cache lib from libnkcache.so to libnecko_cache.so, to be more consistent with other necko components 1999-12-07 22:16:58 +00:00
scc%netscape.com
db5cd594e2 Make observers support weak references. Bug #18682; r=dp. 1999-12-07 14:06:36 +00:00
fur%netscape.com
45bb9c5427 + Eliminated use of bool to accommodate non-ANSI C++ compilers.
(Thanks to tor@cs.brown.edu for the patch)
+ Eliminated compiler warnings
1999-12-07 09:49:55 +00:00
sspitzer%netscape.com
736cf231a3 ignore the generated Makefiles 1999-12-07 09:31:05 +00:00
valeski%netscape.com
2cf1b6fae4 r=rickg. replacing a char const w/ an int literal 1999-12-07 08:58:50 +00:00
fur%netscape.com
771d577a8e Fixed incorrect calculation of content download time and profitability of caching a given URL. r:none 1999-12-07 08:51:03 +00:00
fur%netscape.com
c9ad7f29ae Increase default memory cache capacity to 1M from 100KB testing value 1999-12-07 08:49:42 +00:00
fur%netscape.com
4bfc9b0810 Sun compiler requires nsCOMPtr types to be fully defined 1999-12-07 07:51:31 +00:00
fur%netscape.com
bb0b094ab5 Include definition of nsIStorageStream class to satisfy Sun compiler 1999-12-07 07:05:31 +00:00
valeski%netscape.com
06d6ba655f 20956. r=rpotts. necko no longer assumes any MIME type. we send out application/x-unknown-content-type internal MIME type if we don't *know* what the type is. It's now truly up to the app to figure out what to do 1999-12-07 07:00:47 +00:00
valeski%netscape.com
43c04c96a7 20956. r=rpotts. necko no longer assumes any MIME type. we send out application/x-unknown-content-type internal MIME type if we don't *know* what the type is. It's now truly up to the app to figure out what to do" 1999-12-07 06:59:25 +00:00
valeski%netscape.com
2988398b46 nsJARProtocol.cpp 1999-12-07 06:58:55 +00:00
sfraser%netscape.com
1c1ea70b42 Add DBM to the project. r=fur 1999-12-07 06:48:22 +00:00
sfraser%netscape.com
11bbeee76c First Checked In. 1999-12-07 06:43:19 +00:00
rpotts%netscape.com
c41e03ef63 bug #20490 (r=valeski). Fixed problem where OnStopRequest was being fired (incorrectly) on 30x and 40x redirects... 1999-12-07 06:35:55 +00:00
sfraser%netscape.com
f63f0d0e73 Changing usage of nsCOMPtr on a non-interface pointer to raw addref-release. r=fur 1999-12-07 06:32:52 +00:00
sfraser%netscape.com
d7bec0c5bc Some casts and a .get() so that it compiles on Mac. r=fur 1999-12-07 06:31:14 +00:00
sfraser%netscape.com
e72089e1d6 Fixes to build on Mac, where PRInt64 is a struct, and fix a typo. r=fur 1999-12-07 06:29:13 +00:00
sdagley%netscape.com
07e8b3cac6 First Checked In. 1999-12-07 06:05:45 +00:00
fur%netscape.com
f084d505e3 + Added cast to help Mac compile
+ Fixed problem in which download-time was not being computed (#8305)
1999-12-07 04:54:05 +00:00
fur%netscape.com
1a5893f09f Christ, forgot the semicolon 1999-12-07 04:49:43 +00:00
fur%netscape.com
f9af2987a9 Remove test code 1999-12-07 04:45:44 +00:00
pavlov%netscape.com
78ef5d486d build cache build r=fur 1999-12-07 04:29:26 +00:00
warren%netscape.com
5993e3d66a Swapped res: and resource: protocol schemes so that now nsResProtocolHandler is used by default. r=pavlov 1999-12-07 04:04:21 +00:00
fur%netscape.com
f22aeb2ee4 Disabling the cache build on unix until I can get a handle on the problem 1999-12-07 04:00:43 +00:00
fur%netscape.com
d76b5dd09c Enable building of cache on unix 1999-12-07 02:39:31 +00:00
fur%netscape.com
2f6776efa2 Add cache tests 1999-12-07 02:32:34 +00:00
fur%netscape.com
e8c6079e93 Enable building of cache on Windows 1999-12-07 02:19:56 +00:00
fur%netscape.com
a3e4a5596f Landing of CacheIntegration_BRANCH in support of bug #8305 (Implement cache) 1999-12-07 02:07:31 +00:00
fur%netscape.com
fd0efb29ca Added cache control flags, in support of Bug #8305 (Implement cache) 1999-12-06 23:31:47 +00:00
rhp%netscape.com
1feb3b1c0a Cleanup printf's 1999-12-06 20:29:27 +00:00
rhp%netscape.com
75c6ab3016 Build bustage fix for picky commercial C++ compilers. Fixes a couple member function prototypes to match their implementation. Contributed by: Tim Rowley <tor@cs.brown.edu> r: rhp 1999-12-06 20:07:06 +00:00
rhp%netscape.com
e16eeb9d25 Landing new txt - HTML scanning functionality - Bug 19251 - r: rhp (contributed by Ben Bucksch) 1999-12-06 04:55:54 +00:00
rhp%netscape.com
5c1d1ddd4b Landing new txt to HTML scanning functionality - Bug #: 19251 - r: rhp (contributed by Ben Bucksch) 1999-12-06 04:53:29 +00:00
rhp%netscape.com
f9ae380b1e Adding new file - NOT PART OF THE BUILD 1999-12-05 16:56:04 +00:00
warren%netscape.com
6af4802e75 Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408 1999-12-04 10:01:32 +00:00
fur%netscape.com
4f385605be Fix build bustage on Linux 1999-12-03 02:59:37 +00:00
warren%netscape.com
b6282abafe Fix for downloaded jar files. Now they appear to work, except we aren't checking the cache to see if they already exist. r=gayatrib 1999-12-03 02:22:48 +00:00
warren%netscape.com
277a68344f Added missing addref. r=gayatrib 1999-12-03 02:22:02 +00:00
fur%netscape.com
4a9b290d72 More infrastructure work in support of bug #8305 (Implement
cache).  Added several nsHTTPResponse methods dealing with
header parsing and manipulation of date-containing header fields.
(None of these methods are yet invoked.)
1999-12-03 01:51:07 +00:00
fur%netscape.com
c434d9514d Quash warning 1999-12-03 01:45:22 +00:00
fur%netscape.com
316fe1fcf8 Added missing HTTP header atoms 1999-12-03 01:44:38 +00:00
rpotts%netscape.com
ed1cb83b57 bug #13157 (r=valeski). Added support for HTTP/0.9 server responses. This fixes a whole class of bugs where CGI scripts were displaying blank pages because we just ignored the response :-( 1999-12-02 23:09:15 +00:00
valeski%netscape.com
1f8fcf2c95 r=mcafee. 20464. we were crashing when data: urls were accessed. Now we're safe; for the time being that is :) 1999-12-02 22:02:30 +00:00
mscott%netscape.com
91e51cd9f8 oh the horror! We were leaking all channel listeners that ran through the http channel. Fixed the
leak by using a nsCOMPtr.
1999-12-02 09:11:51 +00:00
sfraser%netscape.com
93c0a29f45 Fix the fragment name in both targets to be unique. Again. r=pinkerton. 1999-12-02 04:53:47 +00:00
sfraser%netscape.com
ff90394468 Fix the fragment name in both targets to be unique. r=pinkerton. 1999-12-02 04:51:11 +00:00
fur%netscape.com
a9a35d34c5 Laying the foundation for the incorporation of caching, by
reorganizing/splitting protocol handler methods, though not yet adding any
new functionality:

    Allow for multiple instances of nsHTTPResponse to be associated
    with the same connection, i.e. so that response headers from the
    cache and response headers from the server can coexist
    simultaneously.  To wit:

        Moved content-length, charset and content-type information
        from nsHTTPChannel into nsHTTPResponse

        Split into separate functions the accumulation of a single line of
        HTTP header data (from the input stream) and the parsing of
        that line.  This permits cached response headers and server
        response headers to be parsed from separate data sources, the
        latter arriving from a nsIBufferInputStream and the former
        retrieved from the cache as a string.

        Moved the newly-created header-parsing methods to
        nsHTTPResponse from nsHTTPResponseListener

    Fixed some bugs in the interaction between AsyncOpen and
    AsyncRead.  It was possible for an OnHeadersAvailable event to be
    triggered *after* the associated OnDataAvailable, rather than the
    other way around.  It was also possible, in a rare case, for
    mOpenObserver->OnStopRequest() to be called without ever having
    called mOpenObserver->OnStartRequest().  I think my changes made
    the logic a bit more foolproof.

    Removed ancient ifdef NSPIPE2
1999-12-02 03:53:28 +00:00
warren%netscape.com
0d72878cfc Fixed bug where file transport would spin if it failed in the nsIFileSystem::Open method. Affected jar protocol. 1999-12-02 02:50:48 +00:00
rpotts%netscape.com
1b0f903b3f (r=valeski) Fix for new bloat (leaking HTTPChannels) that was introduced yesterday 1999-12-01 04:32:58 +00:00
sspitzer%netscape.com
f8899d4936 bulletproofing to prevent #20410 1999-12-01 01:26:08 +00:00
mscott%netscape.com
df05f7c5cb implement retargeting for SetLoadGroup
r=valeski,rpotts
1999-11-30 22:19:53 +00:00
mscott%netscape.com
1ef3b0359f implement retargeting for SetLoadGroup
r=valeski
1999-11-30 22:19:35 +00:00
valeski%netscape.com
643953578f r=rpotts, 17052. FTP now implements nsIProgressEventSink and sits inbetween the transport's notifications and the consumers. 1999-11-30 15:07:32 +00:00
warren%netscape.com
da354ddd80 Fixed bug GetContentType/GetContentLength. 1999-11-30 07:36:14 +00:00