650 Commits

Author SHA1 Message Date
dougt%netscape.com
7af79c83df Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@86717 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:16:26 +00:00
ducarroz%netscape.com
73decc4752 Part of fix for bug 45225. I forget to rename the class nsAppleFileDecoder before the initial checkin. SR=mscott
git-svn-id: svn://10.0.0.236/trunk@86504 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 06:44:07 +00:00
mscott%netscape.com
bc268e0986 Bug #63193 --> the external protocol handler should only return a url or a new channel if we really do
have an external app that can handle the url. otherwise return NS_ERROR_UNKNOWN_PROTOCOL so we'll throw up an alert
dialog later on.
sr=sspizter


git-svn-id: svn://10.0.0.236/trunk@86497 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 05:24:27 +00:00
mscott%netscape.com
63dc88b0dd Bug #63193 --> register our default protocol handler
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@86471 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 04:23:34 +00:00
ducarroz%netscape.com
2f051af7be Part of fix for bug 45225. Need to move part of appledouble decoder to uriLoader. SR=mscott
git-svn-id: svn://10.0.0.236/trunk@86468 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 04:10:41 +00:00
ducarroz%netscape.com
ed92604001 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@86465 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 04:09:11 +00:00
mscott%netscape.com
0771bb3280 Bug #67598 --> we no longer need to invoke the ucth dialog here.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@86442 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:44:09 +00:00
mscott%netscape.com
336f3c5ff8 Bug #67598 --> remove CanHandleContent and DoContent
as this code has been reconsolidated in the base class for
all to use. For everyone, if the mime type is unknown or octet,
then try to guess a content type by file extension in doContent.
Also, if we can't find a mime type, create a new one for all platforms
so we don't need to bring up the ucth dialog.

sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@86441 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:43:18 +00:00
mscott%netscape.com
f2f1bfde92 bug #63193 --> add nsExternalProtocolHandler to the unix build
git-svn-id: svn://10.0.0.236/trunk@86432 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:03:55 +00:00
mscott%netscape.com
6b9402995e Bug #63193 --> add classid for external protocol handler
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@86431 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:00:09 +00:00
mscott%netscape.com
7dd1309da4 add new extprotocolhandler file to the windows build
git-svn-id: svn://10.0.0.236/trunk@86430 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:58:58 +00:00
mscott%netscape.com
a2ec5045b5 Bug #63193 --> add these two new files for a default protocol handler which will kick urls out to the OS
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@86419 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:21:58 +00:00
mscott%netscape.com
36c3cc94b2 remove obsolete files that are no longer part of the build from the repository.
git-svn-id: svn://10.0.0.236/trunk@86359 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:08:19 +00:00
mscott%netscape.com
593691b225 don't build this obsolete directory.
git-svn-id: svn://10.0.0.236/trunk@86312 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 04:40:32 +00:00
mkaply%us.ibm.com
8c0c1f6ef0 OS/2 and other ports breakage
git-svn-id: svn://10.0.0.236/trunk@86226 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-05 14:11:15 +00:00
locka%iol.ie
397a03c159 Added js linker dependency. sr=mscott@netscape.com b=41241
git-svn-id: svn://10.0.0.236/trunk@86219 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-05 11:31:27 +00:00
locka%iol.ie
bb1c820b2e Added code to create a new window for _blank, _new targets before URI loader tries to push content into it and fails. sr=mscott@netscape.com b=41241
git-svn-id: svn://10.0.0.236/trunk@86213 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-05 10:50:33 +00:00
locka%iol.ie
7e8aa60979 Added linker dependency to js engine, sr=mscott@netscape.com, b=41241
git-svn-id: svn://10.0.0.236/trunk@86212 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-05 10:46:24 +00:00
mkaply%us.ibm.com
d8abd33145 OK, seriously, we fixed the TB to handle this now
git-svn-id: svn://10.0.0.236/trunk@85979 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 18:32:15 +00:00
valeski%netscape.com
038cdde0c2 r=ccarlen, sr=rpotts. 65925. making webprogress implementation store weak refs to listeners.
git-svn-id: svn://10.0.0.236/trunk@85867 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:02:08 +00:00
mkaply%us.ibm.com
ac1207cbbd OK, I give up. We even tested this on the TB itself. Why doesn't it work?
git-svn-id: svn://10.0.0.236/trunk@85682 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 23:34:21 +00:00
mscott%netscape.com
b07bb4b4ae Back out changes I added for implementing a launch and reveal method on nsIExternalProtocolService.
I've decided to move that functionality over to nsILocaFile where it makes more sense.


git-svn-id: svn://10.0.0.236/trunk@85680 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 21:35:12 +00:00
mkaply%us.ibm.com
1255161f55 #65880
r=cls
Taking this back out - it was a TB problem


git-svn-id: svn://10.0.0.236/trunk@85678 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 20:49:35 +00:00
mkaply%us.ibm.com
d124df1bae Stupid OS/2 VPATH problems breaking Os/2 build
git-svn-id: svn://10.0.0.236/trunk@85649 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 19:24:27 +00:00
mkaply%us.ibm.com
e84e0199ce #65880
r=cls
Enable OBJDIR builds for OS/2


git-svn-id: svn://10.0.0.236/trunk@85630 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 15:36:41 +00:00
mscott%netscape.com
473b0dc188 back out a piece of code that was not meant to be checked in and was not reviewed.
git-svn-id: svn://10.0.0.236/trunk@85485 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 07:00:06 +00:00
mscott%netscape.com
d5c29a9c28 Bug #63346 --> implement open and open folder APIs for windows
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85482 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 06:48:47 +00:00
mscott%netscape.com
9c1ecef472 Bug #66323 --> always show the progress dialog even if
we are already done with the download. Break apart
SaveTodisk and LaunchWithTempFile into to separate
methods. never try to really open or save to disk
until we are sure we've brought up the progress window.

Bug #61947 --> pass in the initial time when we started the download via getDownloadInfo so
the progress dialog can use this information.

sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85481 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 06:48:16 +00:00
mscott%netscape.com
e452dfb04b Bug #63346 --> add open and open folder APIs for the OS.
Bug #61947 --> pass in the initial time
when we started the download via getDownloadInfo so
the progress dialog can use this information.


git-svn-id: svn://10.0.0.236/trunk@85480 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 06:47:12 +00:00
mscott%netscape.com
d491c5014f clean up some rv error code handling
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85395 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 22:35:54 +00:00
mscott%netscape.com
cfbef5cbcc Bug #65515 --> if we can't create a mime info from the registry, then create a new
entry for this mime type.
Bug #57364 --> look up content type to file extension mappings using the windows mime registry.
Bug #65872 --> if we get a content type of unknown or octet, try to ignore that content type
and extract the extension from the url and looking that up to see if we can get a better
content type.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85143 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:43:26 +00:00
mkaply%us.ibm.com
2048158f0f #65732
r=cls
Make SHORT_LIBNAMEs (used by OS/2 only) match Windows DLL names


git-svn-id: svn://10.0.0.236/trunk@85086 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 15:53:33 +00:00
mkaply%us.ibm.com
0a4cf90939 r=mkaply, a=blizzard
Bring OS/2 helpers up to current level


git-svn-id: svn://10.0.0.236/trunk@84950 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-16 00:09:58 +00:00
pchen%netscape.com
33e95aab49 Fix #62939. r=pinkerton, sr=sfraser. Return error when no match in IC database. Fixes DL of QT5 beta from apple.com (where they had a warning not to use Netscape 6)
git-svn-id: svn://10.0.0.236/trunk@84398 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 00:44:16 +00:00
rpotts%netscape.com
a63a689198 bug #62955 - Dialog boxes are the wrong size.
git-svn-id: svn://10.0.0.236/trunk@84034 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 06:07:38 +00:00
mscott%netscape.com
3d4b1daba2 Bug #59827 --> pass the redirect flag up via a OnStatechange if we get a redirect. Also set the is document
flag if the original channel matches mDocumentChannel.
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@83865 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-19 22:07:58 +00:00
mscott%netscape.com
81f074b874 Bug 57347 --> add a null ptr check to prevent a crash.
patch contributed by waterson
r=brendan
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@83800 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-18 21:46:35 +00:00
rpotts%netscape.com
fa30354552 bug #46866. Added a read-only DOMWindow attribute to nsIWebProgress.
git-svn-id: svn://10.0.0.236/trunk@83666 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 23:26:35 +00:00
mscott%netscape.com
adb8c92516 Bug #60069 --> checking this patch in for Sergey Lunegov (lsv@sparc.spb.su)
make sure the mime action is initialized with the right action.
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@82862 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-22 19:48:49 +00:00
cls%seawood.org
6088dfbf6b Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
mscott%netscape.com
09dfe3c0bc Bug #58774 --> salt the temp file name we generate when downloading external content
r=sspitzer,
sr=alecf


git-svn-id: svn://10.0.0.236/trunk@82196 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:27:12 +00:00
mscott%netscape.com
1ac1af786f Bug #56938 --> get the document channel from the docloader
and force any Refresh urls back through the original window
context that initiated the helper app download. This solves
the problem where the user clicks on a link to download
content (either to disk or to a helper app) and that document
contains both a redirect for the actual content and a REFRESH
header which is used to point at a page the content provider
wants to see after the download is complete.

sr=rpotts, r=sspizter


git-svn-id: svn://10.0.0.236/trunk@82140 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 08:06:19 +00:00
mscott%netscape.com
20116a00b3 Bug #56938 --> add a method for retrieving the doc loader's
document channel.
r=sspitzer, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@82139 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 08:04:49 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
b725c37ce9 Removed extra 0 arg
git-svn-id: svn://10.0.0.236/trunk@81893 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:21:30 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mscott%netscape.com
455ed3c418 Bug #56934 --> properly determine the status for on end document load. We used to
use the status of the last request processed in loading the document to determine
success or failure. That's incorrect. Instead, test to see if the load group is being
canceled. If it is, use that as the status for the entire document. Otherwise, ignore
the status for the last request and instead use the status for the main document
(the default load channel).
sr=rpotts, r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@81801 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 06:34:20 +00:00
mscott%netscape.com
f5242e2306 Bug #57207 --> When we bring up the progress dialog, if we've already received a on stop request,
then go ahead and make the progress dialog go away again. r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@81687 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:18:56 +00:00
pollmann%netscape.com
f75f6c4d49 Bug 13871: Frameset spoofing - cleanup unneeded DOM interface. r=jst, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@81659 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 04:35:25 +00:00
mscott%netscape.com
fbc2cd3592 Bug #35956, 57619 --> be sure to disable auto conversion if we are handling the content
via an external app. sr=rpotts, r=gagan


git-svn-id: svn://10.0.0.236/trunk@81594 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 04:31:07 +00:00