norris%netscape.com
d129ce569d
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
git-svn-id: svn://10.0.0.236/trunk@55647 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 23:42:58 +00:00
scc%netscape.com
fd67f20a6a
Make observers support weak references. Bug #18682 ; r=dp.
...
git-svn-id: svn://10.0.0.236/trunk@55580 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 14:06:36 +00:00
valeski%netscape.com
592665b4d9
r=rickg. replacing a char const w/ an int literal
...
git-svn-id: svn://10.0.0.236/trunk@55573 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 08:58:50 +00:00
valeski%netscape.com
152b822223
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
...
git-svn-id: svn://10.0.0.236/trunk@55551 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 07:00:47 +00:00
valeski%netscape.com
7a2ef93455
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"
...
git-svn-id: svn://10.0.0.236/trunk@55550 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:59:25 +00:00
valeski%netscape.com
359944da48
nsJARProtocol.cpp
...
git-svn-id: svn://10.0.0.236/trunk@55549 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:58:55 +00:00
rpotts%netscape.com
b5e7662905
bug #20490 (r=valeski). Fixed problem where OnStopRequest was being fired (incorrectly) on 30x and 40x redirects...
...
git-svn-id: svn://10.0.0.236/trunk@55544 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:35:55 +00:00
warren%netscape.com
d0ed1c4035
Swapped res: and resource: protocol schemes so that now nsResProtocolHandler is used by default. r=pavlov
...
git-svn-id: svn://10.0.0.236/trunk@55523 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 04:04:21 +00:00
warren%netscape.com
c7d8a4a439
Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408
...
git-svn-id: svn://10.0.0.236/trunk@55285 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 10:01:32 +00:00
fur%netscape.com
ac87ce19c4
Fix build bustage on Linux
...
git-svn-id: svn://10.0.0.236/trunk@55156 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 02:59:37 +00:00
warren%netscape.com
dac168d0d6
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
...
git-svn-id: svn://10.0.0.236/trunk@55154 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 02:22:48 +00:00
fur%netscape.com
5dabafa40b
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.)
git-svn-id: svn://10.0.0.236/trunk@55150 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:51:07 +00:00
fur%netscape.com
902d510731
Quash warning
...
git-svn-id: svn://10.0.0.236/trunk@55149 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:45:22 +00:00
fur%netscape.com
02494ac189
Added missing HTTP header atoms
...
git-svn-id: svn://10.0.0.236/trunk@55148 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 01:44:38 +00:00
rpotts%netscape.com
9145120320
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 :-(
...
git-svn-id: svn://10.0.0.236/trunk@55103 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 23:09:15 +00:00
valeski%netscape.com
8d420bdb8c
r=mcafee. 20464. we were crashing when data: urls were accessed. Now we're safe; for the time being that is :)
...
git-svn-id: svn://10.0.0.236/trunk@55089 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 22:02:30 +00:00
mscott%netscape.com
9752ae7af4
oh the horror! We were leaking all channel listeners that ran through the http channel. Fixed the
...
leak by using a nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@55056 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 09:11:51 +00:00
sfraser%netscape.com
8af29b1bde
Fix the fragment name in both targets to be unique. Again. r=pinkerton.
...
git-svn-id: svn://10.0.0.236/trunk@55020 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 04:53:47 +00:00
sfraser%netscape.com
d1d215cecb
Fix the fragment name in both targets to be unique. r=pinkerton.
...
git-svn-id: svn://10.0.0.236/trunk@55018 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 04:51:11 +00:00
fur%netscape.com
4df51cacc5
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
git-svn-id: svn://10.0.0.236/trunk@55016 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:53:28 +00:00
rpotts%netscape.com
ad8a426d0f
(r=valeski) Fix for new bloat (leaking HTTPChannels) that was introduced yesterday
...
git-svn-id: svn://10.0.0.236/trunk@54866 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 04:32:58 +00:00
mscott%netscape.com
86572486f8
implement retargeting for SetLoadGroup
...
r=valeski,rpotts
git-svn-id: svn://10.0.0.236/trunk@54781 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:19:53 +00:00
mscott%netscape.com
d992f3098b
implement retargeting for SetLoadGroup
...
r=valeski
git-svn-id: svn://10.0.0.236/trunk@54780 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:19:35 +00:00
valeski%netscape.com
82cca0d48b
r=rpotts, 17052. FTP now implements nsIProgressEventSink and sits inbetween the transport's notifications and the consumers.
...
git-svn-id: svn://10.0.0.236/trunk@54755 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 15:07:32 +00:00
warren%netscape.com
4aa59d97bd
Fixed bug GetContentType/GetContentLength.
...
git-svn-id: svn://10.0.0.236/trunk@54734 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 07:36:14 +00:00
warren%netscape.com
05d899f92a
Added include of nsNetUtil.h to pick up NS_NewSyncStreamListener
...
git-svn-id: svn://10.0.0.236/trunk@54725 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 05:32:14 +00:00
warren%netscape.com
51881fbcea
Landing no_neckoutil2_branch. Bug #11159 . Removes neckoutil_s.lib from build which helps beos and openvms.
...
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +00:00
valeski%netscape.com
432c3ffc1f
r=waterson. 16914. FTP was authentication anonymously even though username and pwd info were suppplied in the url. now it isn't
...
git-svn-id: svn://10.0.0.236/trunk@54719 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:39:29 +00:00
valeski%netscape.com
77c6e839a9
18434. r=rpotts. HTTP now implements OpenInputStream and proxies event sink callbacks between the caller and the transport.
...
git-svn-id: svn://10.0.0.236/trunk@54714 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:15:27 +00:00
dougt%netscape.com
0c53e29d87
fix for 18078. r=mstoltz,warren
...
git-svn-id: svn://10.0.0.236/trunk@54648 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:32:43 +00:00
mscott%netscape.com
acd1ca8191
modify SetLoadGroup to work with retargeting.
...
r=rpotts
git-svn-id: svn://10.0.0.236/trunk@54635 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:10:37 +00:00
rpotts%netscape.com
258f8c739b
bug #18651 . Explicitly cancel te transport to make it go away even if it is blocked waiting for the consumer to empty the pipe...
...
git-svn-id: svn://10.0.0.236/trunk@54450 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 23:51:09 +00:00
valeski%netscape.com
4695b284df
r=mscott, premature stream closure cleanup and minor state change to FTP state machine.
...
git-svn-id: svn://10.0.0.236/trunk@54429 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 21:08:04 +00:00
warren%netscape.com
f45da4fd55
Added friend _class_ for hpukes.
...
git-svn-id: svn://10.0.0.236/trunk@54418 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 20:42:04 +00:00
warren%netscape.com
cb0dd060c7
Added nsIInterfaceRequestor.h to keep nsCOMPtr happy.
...
git-svn-id: svn://10.0.0.236/trunk@54403 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 08:31:06 +00:00
warren%netscape.com
bed9c57e40
Added optimized dependency on netwerk util.
...
git-svn-id: svn://10.0.0.236/trunk@54402 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 08:28:08 +00:00
warren%netscape.com
af805ec2ae
Added include for nsCOMPtr.
...
git-svn-id: svn://10.0.0.236/trunk@54401 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 07:40:54 +00:00
warren%netscape.com
f59f13ab64
Somehow added to wrong directory. Moving.
...
git-svn-id: svn://10.0.0.236/trunk@54399 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 07:19:12 +00:00
warren%netscape.com
edca144500
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@54398 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 07:16:03 +00:00
warren%netscape.com
673fa8a01b
Added res and jar protocols.
...
git-svn-id: svn://10.0.0.236/trunk@54395 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:29:44 +00:00
warren%netscape.com
f6aaeb2e77
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@54390 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 05:54:31 +00:00
warren%netscape.com
a707b9e5a7
*** empty log message ***
...
git-svn-id: svn://10.0.0.236/trunk@54389 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 05:51:32 +00:00
warren%netscape.com
5d77bc1cb6
Added nsIHttpEventSink.h
...
git-svn-id: svn://10.0.0.236/trunk@54388 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 05:49:38 +00:00
warren%netscape.com
b775f4788a
Fix to use the resource url as the original url if an original wasn't supplied.
...
git-svn-id: svn://10.0.0.236/trunk@54374 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 04:32:49 +00:00
valeski%netscape.com
ebe6074d2f
bustage fix. comptr include ordering problem
...
git-svn-id: svn://10.0.0.236/trunk@54341 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:15:16 +00:00
valeski%netscape.com
742ccc82f5
bustage attempt. chasing comptr fun
...
git-svn-id: svn://10.0.0.236/trunk@54340 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:14:08 +00:00
warren%netscape.com
03a7be4590
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@54335 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 23:03:43 +00:00
valeski%netscape.com
5387fd9909
18434, r=rpotts. HTTP now implements AsyncOpen. AsyncOpen will be used by URI dispatching
...
git-svn-id: svn://10.0.0.236/trunk@54328 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:23:06 +00:00
valeski%netscape.com
702135127e
added files: mozilla/netwerk/protocol/ftp/public/nsPIFTPChannel.idl, removed files: mozilla/netwerk/protocol/ftp/public/nsIFTPChannel.idl
...
git-svn-id: svn://10.0.0.236/trunk@54320 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:00:54 +00:00
valeski%netscape.com
217a9a5ea0
18435,18413. r=warren. Implemented AsyncOpen for FTP, as well as OpenInputStream. FTP no longer implements the stream listener interface
...
git-svn-id: svn://10.0.0.236/trunk@54318 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:00:18 +00:00