70 Commits

Author SHA1 Message Date
rickg%netscape.com
334907990d allow plain text file to be handled by HTML document
git-svn-id: svn://10.0.0.236/trunk@20771 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:37:53 +00:00
waterson%netscape.com
80bf7397a5 Got rid of #include's, too.
git-svn-id: svn://10.0.0.236/trunk@20733 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 19:56:47 +00:00
waterson%netscape.com
6d9e8212a0 Got rid of nsIRDFDocument: we never use it here anyway.
git-svn-id: svn://10.0.0.236/trunk@20732 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 19:53:55 +00:00
kipp%netscape.com
d7a75e4fba Removed some warnings
git-svn-id: svn://10.0.0.236/trunk@20559 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:14:26 +00:00
waterson%netscape.com
0893400c85 RDFDocument is now XULDocument.
git-svn-id: svn://10.0.0.236/trunk@20080 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:16:17 +00:00
hyatt%netscape.com
7713fd6b6f Implementing the XUL content sink. Teaching the document loader that it
can instantiate files of type "text/xul" using RDF.


git-svn-id: svn://10.0.0.236/trunk@19392 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:43:32 +00:00
waterson%netscape.com
ec955224ea Content model builder CID now specified by XML processing instruction.
git-svn-id: svn://10.0.0.236/trunk@19207 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:30:42 +00:00
rpotts%netscape.com
a3efbe88da fixed bug when firing the OnConnectionsComplete() notification. If one of the listeners initiated a new URL load then state in the doc loader became inconsistent...
git-svn-id: svn://10.0.0.236/trunk@18030 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 22:48:05 +00:00
rpotts%netscape.com
64515206b5 The DocumentLoader is now a global service. Rather than creating document loaders via the factory, they are now created as child loaders of the global DocumentLoader service which is accessable via GetService.
git-svn-id: svn://10.0.0.236/trunk@17935 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-17 11:48:58 +00:00
pierre%netscape.com
450d620463 no longer ignores the returned value from m_Observer->OnStartBinding(). This allows embedding apps (eg. Intuit) to intercept and filter URLs.
git-svn-id: svn://10.0.0.236/trunk@17879 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 22:34:46 +00:00
rpotts%netscape.com
401a0c93d9 Added some more debug trace messages...
git-svn-id: svn://10.0.0.236/trunk@17846 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 10:10:46 +00:00
rpotts%netscape.com
9251d0c8b0 Added support for GetContainer()/SetContainer(). Added the OnStartURLLoad() notification to the DocumentLoadObserver...
git-svn-id: svn://10.0.0.236/trunk@17714 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 06:44:23 +00:00
waterson%netscape.com
c637ea386a Factored content model builder code into its own interface. Hooked up RDF-to-content model notification. Minor bug fixes in data sources.
git-svn-id: svn://10.0.0.236/trunk@17595 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-12 19:41:06 +00:00
rpotts%netscape.com
6a46e826d5 Fixed the firing of the OnConnectionsComplete(...) notification so it worked correctly in framesets...
git-svn-id: svn://10.0.0.236/trunk@16926 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 04:45:00 +00:00
ramiro%netscape.com
6e143bcac4 Change #include "nsIHttpUrl.h" to #include "nsIHttpURL.h" for case sensitive
anality.


git-svn-id: svn://10.0.0.236/trunk@16517 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 10:27:49 +00:00
warren%netscape.com
5f54c1af03 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener.
git-svn-id: svn://10.0.0.236/trunk@16495 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:40:20 +00:00
waterson%netscape.com
cb39a2dc4c Changed RDF document CID.
git-svn-id: svn://10.0.0.236/trunk@15770 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-04 10:01:42 +00:00
waterson%netscape.com
d689488fcf Added factory method for RDF documents.
git-svn-id: svn://10.0.0.236/trunk@15566 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:28:27 +00:00
kipp%netscape.com
d9b72da670 Removed duplicate init
git-svn-id: svn://10.0.0.236/trunk@15361 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:06:08 +00:00
peterl%netscape.com
383116acf6 style change notification support
git-svn-id: svn://10.0.0.236/trunk@15337 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:34:53 +00:00
kipp%netscape.com
9292a738ca Added some debug noise (disabled by default) for document creation
git-svn-id: svn://10.0.0.236/trunk@15164 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 17:18:08 +00:00
rpotts%netscape.com
e020eaf4ef Return NS_BINDING_FAILED if nw stream was created...
git-svn-id: svn://10.0.0.236/trunk@15128 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-22 09:28:44 +00:00
pnunn%netscape.com
edfeb525c4 png is an interal format... -pnunn
git-svn-id: svn://10.0.0.236/trunk@15073 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 23:33:46 +00:00
rickg%netscape.com
11309dbf4e allow view-source on XML
git-svn-id: svn://10.0.0.236/trunk@14583 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 04:36:46 +00:00
vidur%netscape.com
467ad26d42 Added XML display support. Creation of XML document for text/xml and application/xml
git-svn-id: svn://10.0.0.236/trunk@14468 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:07:03 +00:00
rickg%netscape.com
e507069774 first pass support for view-source
git-svn-id: svn://10.0.0.236/trunk@14424 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 11:55:32 +00:00
rpotts%netscape.com
e79d0ccb4e do not allow the stream listener to be freed during a call to OnDataAvailable... It is possible, that OnStopBinding() wil lbe called while the listener is processing the data (ie. the URL load is interrupted). If this happens, do not free the listener until the OnDataAvailable() call has finished...
git-svn-id: svn://10.0.0.236/trunk@14335 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 07:06:02 +00:00
rpotts%netscape.com
6f2f42b217 fix bug #1112. Free the next stream listener as soon as OnStopBinding(...) is called...
git-svn-id: svn://10.0.0.236/trunk@14132 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 05:39:16 +00:00
rpotts%netscape.com
8e0bea5308 Added a skidmark when a content viewer cannot be found for a given content-type...
git-svn-id: svn://10.0.0.236/trunk@14072 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 08:49:05 +00:00
rpotts%netscape.com
acf0119e9e Removed the implementation of the nsIDocumentLoadInfo interface. This is an obsolete interface.
git-svn-id: svn://10.0.0.236/trunk@13975 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 10:09:42 +00:00
rpotts%netscape.com
51248e7bd6 Removed the implementation of nsINetSupport...
git-svn-id: svn://10.0.0.236/trunk@13962 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 08:02:33 +00:00
rpotts%netscape.com
18a5d0d12b Release the stream observer when stopping a document load. This will break the circular reference between the webshell and the docloader...
git-svn-id: svn://10.0.0.236/trunk@13720 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 07:10:10 +00:00
rpotts%netscape.com
e0c2486ca8 Call nsINetService::InterruptStream() when stopping a URL...
git-svn-id: svn://10.0.0.236/trunk@13038 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-16 22:30:57 +00:00
rpotts%netscape.com
174c4ac0a9 Only fire the OnConnectionsComplete(...) notification once per document...
git-svn-id: svn://10.0.0.236/trunk@12519 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-10 05:54:58 +00:00
rpotts%netscape.com
d38a282ad3 Removed assert that was not threadsafe...
git-svn-id: svn://10.0.0.236/trunk@12516 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-10 05:00:17 +00:00
rpotts%netscape.com
1186f79958 Added support for the loading of background URLs...
git-svn-id: svn://10.0.0.236/trunk@12504 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-10 04:33:29 +00:00
rpotts%netscape.com
9dcfa94a21 Wired up notifications of URLs loaded via OpenStream out to the StreamObserver...
git-svn-id: svn://10.0.0.236/trunk@12413 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-09 05:49:34 +00:00
rpotts%netscape.com
5763a74bc6 The document loader now supports nsIURLGroup interface.
git-svn-id: svn://10.0.0.236/trunk@11705 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-01 21:48:12 +00:00
michaelp%netscape.com
a285a5c984 changes for new nsiplugininstanceowner.
git-svn-id: svn://10.0.0.236/trunk@11194 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-27 22:46:41 +00:00
vidur%netscape.com
e792ef87b8 Added constructors for DOM JS classes. nsIScriptObjectOwner::ResetScriptObject is now SetScriptObject. New factory for layout. New interface nsIDOMNativeObjectRegistry.
git-svn-id: svn://10.0.0.236/trunk@10238 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 01:53:52 +00:00
valeski%netscape.com
edf8a94dff ? network/module/nsNetFactory.cpp
Added nsNetFactory implementation. This allows users to retrieve nsINetService pointers from the service factory manager.

M dom/src/base/nsGlobalWindow.cpp
M gfx/src/nsImageNetContextSync.cpp
M layout/html/document/src/nsHTMLDocument.cpp
M network/module/nsURL.cpp
Replaced NS_NewINetService() calls with nsServiceManager::GetService() calls.

M network/module/Makefile
M network/module/makefile.win
Added nsNetFactory.cpp to the builds.

M network/module/nsINetService.h
Added a #define for the class id of the nsNetService.

M network/module/nsIStreamListener.h
Removed the NS_DEFINE_IID of kIStreamListenerIID from the header file. Each module that wants this will need to delcare it themselves.

M network/module/nsNetFile.cpp
Fixed memory leak.

M network/module/nsNetService.cpp
Globalized the gNetlibService variable so the NetFactory can access it.

M webshell/src/nsDocLoader.cpp
M webshell/src/nsPluginViewer.cpp
NS_DEFINE_IID of kIStreamListenerIID

M webshell/tests/viewer/nsSetupRegistry.cpp
Added the netlib library to the list of libraries in the registry and register the nsNetFactory with the appropriate iid and clsids.


git-svn-id: svn://10.0.0.236/trunk@10234 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-17 00:55:35 +00:00
valeski%netscape.com
893604c431 M webshell/public/nsIDocumentLoader.h
nsIDocumentLoader interface method change to LoadURL() we now accept a local ip address.


M webshell/public/nsIWebShell.h
1. Extended the nsIWebShell LoadURL() method to take an additional PRUint32 parameter which represents an ip address. If specified, this address will be bound to the socket prior to connection as the local/client ip address to be used. The caller is guarantees the validity of this address.
2. Extended the nsReloadType enumeration to allow both proxy and cache bypass.


M webshell/src/nsDocLoader.cpp
1. Extended nsDocumentBindInfo::Bind() to take an additional nsILoadAttribs pointer. (class definitaion change and implementation).

2. Extended nsDocLoaderImpl::LoadURL() to take an additional PRUint32 param which represents an optional local ip address to bind the connecting socket to, prior to connection. (class definitaion change and implementation) The docloader object maintains a pointer to an nsILoadAttribs interface.


M webshell/src/nsWebShell.cpp
Implemented new LoadURL() routine. Simple pass down to doc loader of PRUint32.


M webshell/tests/ComFactory/makefile.win
Added netlib to the list of prerequisites.


git-svn-id: svn://10.0.0.236/trunk@10104 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-16 00:40:20 +00:00
kipp%netscape.com
8d8e8d1a47 Use traceable ctor design pattern
git-svn-id: svn://10.0.0.236/trunk@10013 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-15 00:17:53 +00:00
kipp%netscape.com
8005dd0043 Use NS_ADDREF macros to enable refcnt tracing
git-svn-id: svn://10.0.0.236/trunk@9953 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:30:49 +00:00
kipp%netscape.com
d87f9d1060 Support (in a shaky way) some various and sundry mime types for plugins
git-svn-id: svn://10.0.0.236/trunk@9682 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-09 23:51:43 +00:00
vidur%netscape.com
74ab64f3f0 Added nsIDocumentLoadInfo interface. Temporarily added service startup inside WebShell factory.
git-svn-id: svn://10.0.0.236/trunk@8273 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-20 22:28:52 +00:00
valeski%netscape.com
277cec0087 webshell/public/nsIDocumentLoader.h
Extended the nsIDocumentLoader interface's LoadURL() method to take a reload type parameter.

webshell/public/nsIWebShell.h
Extended the nsIWebShell interface's LoadURL() method to take a reload type parameter.

webshell/src/nsDocLoader.cpp
1. Extended the nsIDocumentBindInfo interface's Bind() method to take a reload type parameter. The Bind() method now takes the reload parameter and passes it to the nsIUrl it creates.
2. Added support to the DocumentLoader for the extended LoadURL() parameter list. It now passes the reload type down into the Bind() method of the nsIDocumentBindInfo.

webshell/src/nsWebShell.cpp
1. Added support to the nsWebShell to use the new reload type parameter during loads.
2. Hooked up the reload type parameter in the nsWebShell::Reload() method so we actually use it.


git-svn-id: svn://10.0.0.236/trunk@8211 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-19 23:01:52 +00:00
valeski%netscape.com
b4eb4f5402 webshell/public/nsIDocumentLoader.h
Removed support for the underlying timer/refreshurl infrastructure.

webshell/src/nsDocLoader.cpp
1. Added support in nsDocumentBindInfo for the new nsIRefreshUrl method for cancelling.
1.5 Changed the refreshurl() method so it delegates to the container's (i.e. webshell's) refreshurl() method.
2. Removed the "actual" refresh url implementation (timers) from the nsDocumentBindInfo. It's now in the webshell and nsDocumentBindInfo's implementation of nsIRefreshUrl simply delegates to the "container" (i.e. the webshell).
3. Added call to new NS_NewURL() routine which takes an nsISupports pointer as an arg, if the nsDocumentBindInfo has a container to pass along.

webshell/src/nsWebShell.cpp
Added support for the nsIRefreshUrl interface to nsWebShell (this includes the underlying timers and callback mechanism).


git-svn-id: svn://10.0.0.236/trunk@8164 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-18 23:25:17 +00:00
valeski%netscape.com
51e34f63fd webshell/src/nsDocLoader.cpp -
310133 - 1. added LoadURLOnTimer() and CancelLoadURLTimer() implementations to the nsDocLoaderImpl class.
2. Changed nsDocumentBindInfo class to support the nsIRefreshUrl interface.
3. Changed the nsDocumentBindInfo contructor to set the m_ExtraInfo variable to the aExtraInfo pointer passed in. This must have been an oversight on the part of the original implementor.
4. Added a simple data placeholder class to hold the data that will be used to load the url on the timer.

webshell/src/nsWebShell.cpp -
1. 310133 - When the webshell is destructed or about to load a new url, the loader now calls CancelLoadURLTimer() which cancels and releases the timers.


git-svn-id: svn://10.0.0.236/trunk@7954 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-13 20:08:19 +00:00
joki%netscape.com
9106b337ee Adding partial load event support, removing script context Run_GC method adding partial script error support
git-svn-id: svn://10.0.0.236/trunk@7810 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-12 04:56:40 +00:00