91 Commits

Author SHA1 Message Date
vidur%netscape.com
1336fb61cc Fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@8277 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 23:07:31 +00:00
vidur%netscape.com
4c4c6f8445 Added nsIConnectionInfo interface. Temporarily special-cased javascript: URLs in URL parsing.
git-svn-id: svn://10.0.0.236/trunk@8272 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 22:28:09 +00:00
kmcclusk%netscape.com
5b9b614171 Added XP_UNIX code to leave the top slash for absolute file paths under UNIX.
This fixes a problem where all of the slashs get stripped off because the URL
is asked to parse a previously parsed url string.


git-svn-id: svn://10.0.0.236/trunk@8261 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 20:32:52 +00:00
valeski%netscape.com
b4d5c7e4ce RAPTOR ONLY CHECKIN
network/module/nsIURL.h
Added Get/Set ReloadType methods so a user can query/set the reload type for the url. The default is normal reload.

network/module/nsURL.cpp
Added support for the new nsIURL interface methods (Get/Set ReloadType).

network/module/nsNetService.cpp
OpenStream and OpenBlockingStream now query the nsIURL for it's reload type before creating the url struct. This way we can control how the url is loaded.


git-svn-id: svn://10.0.0.236/trunk@8210 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 23:00:15 +00:00
scullin%netscape.com
0c740efd34 Move resource hack to tip.
git-svn-id: svn://10.0.0.236/trunk@8205 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 21:38:57 +00:00
cls%seawood.org
4288391d23 AUTOCONF_1_0 landing.
git-svn-id: svn://10.0.0.236/trunk@8198 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 20:42:14 +00:00
valeski%netscape.com
a192f6bdd0 network/module/nsIRefreshUrl.h
Extended the nsIRefreshUrl interface to include a cancel method.

network/module/nsNetService.cpp
1. Added code to hook the nsConnectionInfo object up to the nsISupports pointer in the url being loaded.
2. Removed the redirect logic in bam_exit_routine(). The backend dependency on the front end is gone.

network/module/nsNetStream.cpp
Added initialization/destruction of the nsISupports pointer in the nsConnectionInfo.

network/module/nsNetStream.h
Added the nsISupports member declaration to nsConnectionInfo, and remvoed the redirect member variable.

network/module/nsNetStubs.cpp
FE_SetRefreshURLTimer() routine has been modified so it no longer relies on the pConsumer (i.e. nsDocumentBindInfo) which was causing us to leak it. Now we use the nsISupports pointer in the nsConnectionInfo object to access the nsIRefreshURL interface so we can reload the url.

network/module/nsStubContext.cpp
Modified stub_complete() so we no longer pay attention to the redirect member of the nsConnectionInfo object.

network/module/nsIURL.h
1. Added GetContainer() method to nsIURL which returns the nsISupports pointer of the container for this url.
2. created a new NS_NewURL() routine which takes an nsISupports pointer as a parameter.

network/module/nsURL.cpp
1. Added a new nsURL constructor that takes a nsISupports pointer as a param.
2. Added GetContainer() method and nsISupports pointer initialization/destruction.


git-svn-id: svn://10.0.0.236/trunk@8163 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-18 23:24:28 +00:00
valeski%netscape.com
e05d07e172 fixed a memory leak
git-svn-id: svn://10.0.0.236/trunk@8152 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-18 22:38:03 +00:00
troy%netscape.com
098866905a Changed PR_FREEIF to delete[] (call to nsString::ToNewCString)
git-svn-id: svn://10.0.0.236/trunk@8064 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-15 01:53:38 +00:00
thom%netscape.com
1d944d9fe8 added nsIRefreshUrl.h to manifest
git-svn-id: svn://10.0.0.236/trunk@8039 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-14 21:35:42 +00:00
valeski%netscape.com
09a03524ca network/module/Makefile -
1. 310133 - Added nsIRefreshUrl.h to the list of exports.

network/module/makefile.win -
1. 310133 - Added nsIRefreshUrl.h to the list of exports.

network/module/nsIHttpUrl.h -
1. 310133 - Extended the nsIHttpUrl interface to include the AddMimeHeader() method which adds an http header to the url.

network/module/nsHttpUrl.cpp -
310133 - 1. Added support for the AddMimeHeader() method so http urls can have headers added outside of the actual data retrieval in netlib. This method calls NET_ParseMimeHeader() directly.
2. Added a public member, a pointer to the netlib URL_Struct that was created for this nsHttpUrlImpl. This pointer is the link between netlib and the outside world; the adhesive agent between url structs and nsURLImpls.

network/module/nsNetStream.h -
1. 310133 - Added a public memeber variable to nsConnectionInfo. It's a bool that tells us whether or not a redirect has occurred.

network/module/nsNetStream.cpp -
1. 310133 - Added initialization (FALSE) of new redirect member.

network/module/nsNetStubs.cpp -
1. 310133 - Implemented FE_SetRefreshURLTimer(). This function is called from NET_GetURL() when we recognize that we have a url to refresh.

network/module/nsStubContext.cpp -
1. 310133 - Added check to see if we're redirecting in stub_complete() which gets called when a stream completes. If we are, we don't want to release/destroy the pConsumer, this will happen in nsNetService's bam_exit_routine().

network/module/nsNetService.cpp -
1. 310133 - added nsConnectionInfo->redirect check in bam_exit_routine() so we give the consumer a successful binding event if the consumer is still around. This is iffy.


git-svn-id: svn://10.0.0.236/trunk@7956 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 20:10:49 +00:00
valeski%netscape.com
4fb073d7b5 310133 - Added nsIRefreshUrl.h to the build. This file defines the nsIRefreshUrl interface which simply declares a method that allows a url to be refreshed/reloaded after a given interval.
git-svn-id: svn://10.0.0.236/trunk@7952 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 20:05:13 +00:00
vidur%netscape.com
a7c49785ad Fixed problem with mSpec being allocated with something other than PR_Malloc
git-svn-id: svn://10.0.0.236/trunk@7945 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 19:05:36 +00:00
rpotts%netscape.com
246f5b3065 Fixed OnDataAvailable(...) to abort the stream if it returns a failure code...
git-svn-id: svn://10.0.0.236/trunk@7929 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 08:19:49 +00:00
vidur%netscape.com
7ea13344a9 Added better handling of search component of URL. Added GetSearch() method to nsIURL.
git-svn-id: svn://10.0.0.236/trunk@7904 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 04:35:37 +00:00
michaelp%netscape.com
07f92ff77f fixed build.
git-svn-id: svn://10.0.0.236/trunk@7893 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 00:07:09 +00:00
warren%netscape.com
ed2c784ba2 Fixed version umber for js3250.lib.
git-svn-id: svn://10.0.0.236/trunk@7292 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 01:33:36 +00:00
rpotts%netscape.com
fe90fe64c6 Disable NET_PollSockets(...) optimization until it works correctly...
git-svn-id: svn://10.0.0.236/trunk@7036 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 09:13:20 +00:00
scullin%netscape.com
9eb212f8af Safety check our automatic context deleting. (NGLayout only)
git-svn-id: svn://10.0.0.236/trunk@6742 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 18:44:23 +00:00
rpotts%netscape.com
fa4119dae4 Removed all calls to NET_PollSockets(...). Netlib now does the polling itself...
git-svn-id: svn://10.0.0.236/trunk@6706 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:01:57 +00:00
rpotts%netscape.com
9c98d36f7e Removed the need for clients to explicitly call NET_PollSockets(...). This has been replaced with a timer based polling scheme
git-svn-id: svn://10.0.0.236/trunk@6705 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 06:01:11 +00:00
dcone%netscape.com
810d77c032 defined a mac WH_TempName for modular Netlib. Raptor change.
git-svn-id: svn://10.0.0.236/trunk@6552 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-27 19:53:51 +00:00
vidur%netscape.com
62319c5f57 Added methods to nsINetService to get and set cookie string for a URL
git-svn-id: svn://10.0.0.236/trunk@6459 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 00:32:32 +00:00
rpotts%netscape.com
ce01187b95 Get rid of some unix warnings...
git-svn-id: svn://10.0.0.236/trunk@6414 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 20:53:38 +00:00
kipp%netscape.com
dc04c5339f Handle absolute url's better
git-svn-id: svn://10.0.0.236/trunk@6405 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 18:16:05 +00:00
rpotts%netscape.com
b174cb490f Added IStreamListener::OnStatus(...)...
git-svn-id: svn://10.0.0.236/trunk@6389 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 10:02:50 +00:00
michaelp%netscape.com
117c98f47a modified for new streaming APIs.
git-svn-id: svn://10.0.0.236/trunk@6308 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:43:08 +00:00
scullin%netscape.com
2be66236a5 Fixed build bustage. I can't believe people are still adding context
functions. They should be shot.


git-svn-id: svn://10.0.0.236/trunk@6275 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 18:31:05 +00:00
kipp%netscape.com
4a3ed7cb7d Added in parsing for references
git-svn-id: svn://10.0.0.236/trunk@6204 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:38:20 +00:00
jevering%netscape.com
43474df1cd Fixed build problem on NT 5.0 with null exports line.
git-svn-id: svn://10.0.0.236/trunk@6200 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 23:25:35 +00:00
rpotts%netscape.com
fe21e56f28 Allow OnDataAvailable(...) to abort a binding operation by returning an error code...
git-svn-id: svn://10.0.0.236/trunk@6164 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:21:27 +00:00
rpotts%netscape.com
3bc4158ab9 Removed some signed/unsigned warnings...
git-svn-id: svn://10.0.0.236/trunk@6163 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 11:20:37 +00:00
scullin%netscape.com
e6798021cc Fix crash _and_ memory leak? Is it too much to hope?
git-svn-id: svn://10.0.0.236/trunk@6144 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 03:48:17 +00:00
scullin%netscape.com
264497527a Fix crash, leak again.
git-svn-id: svn://10.0.0.236/trunk@6137 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 02:56:50 +00:00
scullin%netscape.com
ece788d507 Fix context leakage.
git-svn-id: svn://10.0.0.236/trunk@6127 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-22 00:16:00 +00:00
scullin%netscape.com
1aa94e896b Added rules to install/clobber resource gifs.
git-svn-id: svn://10.0.0.236/trunk@6107 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 21:22:25 +00:00
scullin%netscape.com
629d196dca Hook up status remarks from netlib, add interface for prompts and alerts.
git-svn-id: svn://10.0.0.236/trunk@6099 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 20:27:59 +00:00
scullin%netscape.com
d9de96f70c Icons for ftp/file directories.
git-svn-id: svn://10.0.0.236/trunk@6086 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 19:35:35 +00:00
scullin%netscape.com
0f1d8f5b7d Allow multipe urls on command line.
NGLayout only.


git-svn-id: svn://10.0.0.236/trunk@6083 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 18:44:20 +00:00
scullin%netscape.com
5758ee1ca9 Moved from branch
git-svn-id: svn://10.0.0.236/trunk@5827 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 18:07:21 +00:00
guha%netscape.com
086796380f Fix for bug reported by Mr. Hickman
git-svn-id: svn://10.0.0.236/trunk@5717 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 18:22:23 +00:00
guha%netscape.com
7f12704c8a Fix bug in related links
git-svn-id: svn://10.0.0.236/trunk@5665 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-16 00:10:48 +00:00
guha%netscape.com
b5e791727c Remove duplicates from related links
git-svn-id: svn://10.0.0.236/trunk@5659 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 23:39:14 +00:00
rpotts%netscape.com
ced3fe0f75 Added nsIURL argument to the nsIStreamListener interface
git-svn-id: svn://10.0.0.236/trunk@5656 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:38:01 +00:00
jevering
0eabd76492 Related links stuff.. Guha's related links code stolen from 4.5 and
spanked seriously.. then jammed into netlib.  Nice huh?


git-svn-id: svn://10.0.0.236/trunk@5614 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 18:44:26 +00:00
kipp
5d58dac108 Hack around url parsing bug; urls that start with / are not absolute even if they contain a colon
git-svn-id: svn://10.0.0.236/trunk@5481 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 15:24:32 +00:00
scullin
605bf92aef Fix UNIX link problems.
git-svn-id: svn://10.0.0.236/trunk@5453 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:57:49 +00:00
scullin
ccf0a01c00 Fix nglayout UNIX build?
git-svn-id: svn://10.0.0.236/trunk@5446 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:17:00 +00:00
scullin
6e47abf3ed Fix build?
git-svn-id: svn://10.0.0.236/trunk@5445 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-14 00:13:49 +00:00
scullin
20cdc31eeb Re-enable normal netlib stream handling. Caching and chunking should
work now.


git-svn-id: svn://10.0.0.236/trunk@5438 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 23:43:13 +00:00